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

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

body{
    background-color: hsl(0, 0%, 95%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;

}

#card{
    display: flex;
    width: 890px;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
}

#card section{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 45px;
    height: 500px;

}

h2{
    font-family: Big Shoulders, sans-serif;
    font-size: 40px;
    color: hsl(0, 0%, 95%);
    padding: 20px 0;
    margin-top: 10px;
}

p{
    color: hsl(0, 0%, 100%, 0.75);
    line-height: 1.6;
    margin-top: 18px;

}

p,a{
    font-family: Lexend Deca, sans-serif;
    font-size: 15px;
}

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

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

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

a{
    text-decoration: none;
    text-align: center;
    background: hsl(0, 0%, 95%);
    border-radius: 30px;
    padding: 15px 30px;
    margin-top: auto;

}

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

}

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

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

a:visited{
    color: hsl(281, 74%, 26%);
}

.sedans a:hover{
    color: hsl(31, 73%, 41%);
    }

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

.luxury a:hover{
    color: hsl(184, 100%, 22%);

}


@media (max-width: 700px) {
    #card {
        flex-direction: column;
        height: auto;
    }

    #card section {
        height: auto;
    }

    a{
        margin: 24px 0;
    }
    
    body {
        padding: 24px;
    }
}
