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

body {
    font-family: "Lexend Deca", sans-serif;
    background-color: hsl(0, 0%, 95%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.card {
    max-width: 327px;
    width: 100%;
    margin: 3rem;
}

.card div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem;
    gap: 1.5rem;
}

.sedans {
    background-color: hsl(31, 77%, 52%);
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.suvs {
    background-color: hsl(184, 100%, 22%);
}

.luxury {
    background-color: hsl(179, 100%, 13%);
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.card div h2 {
    color: hsl(0, 0%, 95%);
    font-family: "Big Shoulders Display", sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
}

.card div p {
    color: hsla(0, 0%, 100%, 0.75);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.75;
}

.card div a {
    background-color: hsl(0, 0%, 95%);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    border: 0.125rem solid hsl(0, 0%, 95%);
    padding: 0.75rem 2rem;
    border-radius: 1.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.card div a:hover,
.card div a:focus-visible {
    color: hsl(0, 0%, 95%);
}

.sedans a {
    color: hsl(31, 77%, 52%);
}

.sedans a:hover,
.sedans a:focus-visible {
    background-color: hsl(31, 77%, 52%);
}

.suvs a {
    color: hsl(184, 100%, 22%);
}

.suvs a:hover,
.suvs a:focus-visible {
    background-color: hsl(184, 100%, 22%);
}

.luxury a {
    color: hsl(179, 100%, 13%);
}

.luxury a:hover,
.luxury a:focus-visible {
    background-color: hsl(179, 100%, 13%);
}

.attribution { 
    font-size: 11px; 
    text-align: center; 
}
    
.attribution a { 
    color: hsl(228, 45%, 44%); 
}

@media (min-width: 750px) {
    .card {
        display: flex;
        max-width: 918px;
        width: 100%;
        max-height: 500px;
        height: 100%;
    }

    .sedans {
        border-top-left-radius: 0.5rem;
        border-top-right-radius: 0;
        border-bottom-left-radius: 0.5rem;
        border-bottom-right-radius: 0;
    }

    .luxury {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0.5rem;
        border-top-left-radius: 0;
        border-top-right-radius: 0.5rem;
    }

    .card div a {
        margin-top: 3.5rem;
    }
}

