@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@100;200;300;400;500;600;700;800;900&family=Montserrat:wght@100;200;300;400;500;600;700;800;900&family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

html,body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat';
}
.categories-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    margin-left: 3vw;
    margin-right: 3vw;
}
.category {
    border-radius: 20px;
    text-decoration: none;
    color: #373737;
    height: 300px;
    padding:10px;
    box-sizing: border-box;
    background-color: white;
    margin-bottom: 10px;
}
.category:hover {
    background-color: whitesmoke;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
        border: 0.1px solid #373737;
    transform: translateY(-10px);
    transition: all 300ms ease-in-out;
    color: #00ac96;
}

.category-image {
    border-radius: 20px;

    height:200px;
    width:100%;
}
.category-name {
    font-size: 23px;
}

.main {

}

.top {
    height:65vh;
    width: 100%;
    position: relative;
}
.cuisine-image {
    height:100%;
    width:100%;
    object-fit: cover;
}
.card {
    font-size: 40px;
    padding:15px 15px;
    background-color: white;
    position: absolute;
    left:6vw;
    top: 50%;
    transform: translate(0%, -50%);
    max-width: 550px;
    border: 1px solid #00ac96;
}
.card p {
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 12px;
    margin-left: 5px;
    color:crimson

}
.card h1 {
    margin-top: 0;
}


.restaurants {
    background-color: whitesmoke;
    height:fit-content;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 2vw 6vw;
    box-sizing: border-box;
    gap:2vw;
}
.restaurant {
    height: 350px;
    width:100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    border-bottom: 0.1px solid #00ac96;;
}


.restaurant-link {
    text-decoration: none;
    color: black;
}
.restaurant-image {
    height:250px;
    width: 100%;
    object-fit: cover;
    margin-right: auto;
}
.restaurant-image:hover {
    opacity: 0.8;
}
.restaurant-name {
    margin: 0;
    font-weight: 200;
    margin: 0;
    margin-right: auto;
    font-size: 25px;
}
.restaurant-name-flex {
    display: flex;
    width:100%;
    align-items: center;
    justify-content: space-between;
}

.restaurant-small-text {
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-right: auto;
    font-size: 12px;
    color: #00ac96;
    margin-top: 30px;
}
@media only screen and (max-width:600px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }


    .restaurants {
        padding-top: 25px;
        box-sizing: border-box;
        grid-template-columns: 1fr;
    }
    .card h1 {
        font-size: 30px;
    }
    .top {
        height: 40vh;
        box-sizing: border-box;
    }
    .card {
        width: 90%;
        box-sizing: border-box;

    }
}