body {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background-color: rgb(237, 237, 237); 
}


@media (max-width: 700px) {
    main {
        display: grid;
        grid-template-rows: 442px 442px 442px 442px 442px;
        grid-template-columns: 87px 327px 87px;
        margin-top: 60vh;
    }

    #first-div, #last-div {
        height: 8vh;
    }

    #first-div {
        grid-row: 1/2;
        grid-column: 2/3;
    }

    #sedans {
        background-color: hsl(31, 77%, 52%);
        grid-column: 2/3;
        grid-row: 2/3;
        overflow: hidden;
        border-radius: 8px 8px 0 0;
    }

    #suvs {
        background-color: hsl(184, 100%, 22%);
        grid-row: 3/4;
        grid-column: 2/3;
    }
    
    #luxury {
        background-color: hsl(179, 100%, 13%);
        grid-row: 4/4;
        grid-column: 2/3;
        border-radius: 0 0 8px 8px;
    }

    #last-div {
        grid-row: 5/5;
        grid-column: 2/3;
    }

    .car-image {
        padding-left: 40px;
        padding-top: 40px;
        margin: 0;
    }

    .type-of-car {
        color: hsl(0, 0%, 95%);
        font-size: 40px;
        font-family: 'Big Shoulders Display', sans-serif;
        width: 200px;
        padding-left: 40px;
        padding-top: 35px;
        margin: 0;
    }

    .car-detail {
        color: hsla(0, 0%, 100%, 0.75);
        font-size: 15px;
        font-family: 'Lexend Deca', sans-serif;
        padding-left: 40px;
        padding-right: 60px;
        padding-top: 20px;
        margin: 0;
        line-height: 25px;
        opacity: 0.8; 
    }
    
    .button {
        background-color: hsl(0, 0%, 95%);
        align-items: end;
        left: 20px;
        height: 48px;
        width: 146px;
        margin-top: 25px;
        margin-left: 35px;
        border-radius: 25px;
        border: none;
        font-family: 'Lexend Deca', sans-serif;
        font-size: 18px;
    }
    
    #sedans > .button {
        color: hsl(31, 77%, 52%);
        font-weight: bold;
    }
    
    #sedans > .button:hover {
        cursor: pointer;
        border: 3px white solid;
        background-color: hsl(31, 77%, 52%);
        color: hsl(0, 0%, 95%);
    }
    
    
    #suvs > .button {
        color: hsl(184, 100%, 22%);
        font-weight: bold;
    }
    
    #suvs > .button:hover {
        cursor: pointer;
        border: 3px white solid;
        background-color: hsl(184, 100%, 22%);
        color: hsl(0, 0%, 95%);
    }
    
    #luxury > .button {
        color: hsl(179, 100%, 13%);
        font-weight: bold;
    }
    
    #luxury > .button:hover {
        cursor: pointer;
        border: 3px white solid;
        background-color: hsl(179, 100%, 13%);
        color: hsl(0, 0%, 95%);
    } 
}



@media (min-width: 700px) {
    main {
    display: grid;
    grid-template-columns: 300px 300px 300px 300px 280px;
    grid-template-rows: 160px 500px 160px;
}

#first-div {
    grid-column: 1/2;
}


#sedans {
   background-color: hsl(31, 77%, 52%);
   grid-column: 2/3;
   grid-row: 2/3;
   overflow: hidden;
   border-radius: 8px 0 0 8px;
}

#suvs {
    background-color: hsl(184, 100%, 22%);
    grid-column: 3/4;
    grid-row: 2/3;
}

#luxury {
    background-color: hsl(179, 100%, 13%);
    grid-column: 4/5;
    grid-row: 2/3;
    border-radius: 0 8px 8px 0;
}

#last-div {
    grid-column: 5/5;
}

.car-image {
    padding-left: 40px;
    padding-top: 40px;
    margin: 0;
}

.type-of-car {
    color: hsl(0, 0%, 95%);
    font-size: 40px;
    font-family: 'Big Shoulders Display', sans-serif;
    width: 200px;
    padding-left: 40px;
    padding-top: 35px;
    margin: 0;
}

.car-detail {
    color: hsla(0, 0%, 100%, 0.75);
    font-size: 15px;
    font-family: 'Lexend Deca', sans-serif;
    padding-left: 40px;
    padding-right: 60px;
    padding-top: 20px;
    margin: 0;
    line-height: 25px;
    opacity: 0.8; 
}

.button {
    background-color: hsl(0, 0%, 95%);
    align-items: end;
    left: 20px;
    height: 44px;
    width: 150px;
    margin-top: 70px;
    margin-left: 35px;
    border-radius: 25px;
    border: none;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 18px;
}

#sedans > .button {
    color: hsl(31, 77%, 52%);
    font-weight: bold;
}

#sedans > .button:hover {
    cursor: pointer;
    border: 3px white solid;
    background-color: hsl(31, 77%, 52%);
    color: hsl(0, 0%, 95%);
}


#suvs > .button {
    color: hsl(184, 100%, 22%);
    font-weight: bold;
}

#suvs > .button:hover {
    cursor: pointer;
    border: 3px white solid;
    background-color: hsl(184, 100%, 22%);
    color: hsl(0, 0%, 95%);
}

#luxury > .button {
    color: hsl(179, 100%, 13%);
    font-weight: bold;
}

#luxury > .button:hover {
    cursor: pointer;
    border: 3px white solid;
    background-color: hsl(179, 100%, 13%);
    color: hsl(0, 0%, 95%);
}

::selection {
    color: black;
    background: white;
}
}