@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700&family=Lexend+Deca&display=swap');

:root {
    /* ------------ Primary ------------ */
    --Bright-orange: hsl(31, 77%, 52%);
    --Dark-cyan: hsl(184, 100%, 22%);
    --Very-dark-cyan: hsl(179, 100%, 13%);

    /* ------------ Neutral ------------ */
    --Transparent-white-paragraphs: hsla(0, 0%, 100%, 0.75);
    --Very-light-gray-background-headings-buttons: hsl(0, 0%, 95%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: 15px;
    font-family: 'Lexend Deca', sans-serif;
    color: var(--Very-light-gray-background-headings-buttons);
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--Very-light-gray-background-headings-buttons);
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 950px;
    max-height: 490px;
    border-radius: .5rem;
    overflow: hidden;
}

main .sedans {
    background-color: var(--Bright-orange);
}

main .suvs {
    background-color: var(--Dark-cyan);
}

main .luxury {
    background-color: var(--Very-dark-cyan);
}

section {
    padding: 3rem;
}

section img {
    margin-bottom: 1.7rem;
}

section h2 {
    font-family: 'Big Shoulders Display', cursive;
    text-transform: uppercase;
    font-size: 2.5rem;
    margin-bottom: 1.7rem;
}

section p {
    line-height: 1.5rem;
    margin-bottom: 5rem;
    opacity: 65%;
    margin-right: 1rem ;
}


button {
    border: none;
    background-color: var(--Very-light-gray-background-headings-buttons);
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-weight: 700;
    transition: ease-in-out .6s;
}

button:hover {
    cursor: pointer;
    color: var(--Very-light-gray-background-headings-buttons);
    border: 2px solid var(--Very-light-gray-background-headings-buttons);
    background: rgba(242, 242, 242,0)
}

.yellow {
    color: var(--Bright-orange);
}

.blue {
    color: var(--Dark-cyan);
}

.green {
    color: var(--Very-dark-cyan);
}

footer .attribution { 
    font-size: 11px; 
    text-align: center;
    margin-top: 2rem; 
    color: black;
}

footer .attribution a { 
    color: hsl(228, 45%, 44%); 
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 375px) {
    body {
        height: 100%;
        width: 100%;
    }
    
    main {
        flex-direction: column;
        max-height: 100%;
        border-radius: 0;
    }

    footer {
        display: none;
    }
}