* {
    margin: 0;
    padding: 0;
}

.main {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}

.box {
    width: 100%;
    margin-top: 20px 0;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    /* margin-bottom: 30px; */
}

.firstCard {
    width: 250px;
    margin: 30px;
    margin-top: 80px;
    box-shadow: rgba(0, 0, 0, 0.5) 4px 10px 10px;
    height: 350px;
    transition: all 0.4s;
    position: relative;
    display: flex;
    justify-content: center;
    background-color: white;
}

.firstCard img {
    width: 100%;
    transition: all 0.4s;
    transition: all 0.6s;
    height: 100%;
}

.overlay {
    width: 100%;
    height: 0%;
    display: flex;
    align-items: end;
    position: absolute;
    /* transform: translateY(-100%); */
    opacity: 0;
    bottom: 0;
    visibility: hidden;
    transition: all 0.3s;
    background-color: rgba(0, 0, 0, 0.6);
}

.content p {
    font-size: 15px;
}

.content{
    margin: 10px 0;
    text-transform: lowercase;
    /* overflow: scroll; */
}

.firstCard:hover .overlay {
    height: 65%;
    opacity: 1;
    visibility: visible;
    transition: all 0.6s;
}

.firstCard:hover img {
    transition: all 0.4s;
    border-radius: 50%;
    height: 40%;
    transform: translateY(-50%);
    object-fit: cover;
    width: 60%;
    border: 1px solid black;
}

.text {
    height: 50%;
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: end;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.footer button {
    width: 100px;
    height: 35px;
    margin-top: 10px;
    color: white;
    cursor: pointer;
    background-color: transparent;
    border: 1px solid white;
    border-radius: 4px;
}

.footer button a {
    color: white;
    text-decoration: none;
}

nav {
    width: 100%;
    height: 50vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    /* gap: 20px; */
}

.category {
    width: 600px;
    height: 100px;
    display: flex;
    position: relative;
    align-items: center;
    overflow: hidden;
}

.category .dishes input {
    width: 100px;
    height: 40px;
    border-radius: 33px;
    border: none;
    cursor: pointer;
    background-color: rgb(13, 108, 241);
    color: white;
    font-size: 17px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;

}

.category .dishes input:hover {
    background-color: rgb(235, 234, 233);
    transition: all 0.4s;
    color: black;
}

.dishes {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    position: absolute;
    gap: 10px;
    align-items: center;
    transition: all 0.6s ease-in-out;
}


#next {
    position: absolute;
    z-index: 999;
    right: 10px;
    width: 50px;
    height: 50px;
    display: flex;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: none;
}

#pre {
    position: absolute;
    z-index: 999;
    left: 10px;
    cursor: pointer;
    width: 40px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}





.search {
    position: relative;
}

.logo {
    margin: 0 20px;
    font-size: 30px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.text h1 {
    font-size: large;
}

.input-div {
    width: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    height: 50px;
    border: 1px solid black;
    background-color: white;
    border-radius: 30px;
    margin: 0 20px;
}

.input-div input {
    width: 75%;
    height: 100%;
    border-radius: 20px;
    border: none;
    font-size: 19px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    outline: none;
    padding: 0 10px;
}

.input-div button {
    border: none;
    height: 90%;
    cursor: pointer;
    width: 12%;
    background-color: white;
    /* border: 1px solid black; */
    border-radius: 50%;
    outline: none;
}

.box h1{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    
}

@media (max-width:600px) {

    .category {
        width: 450px;
        height: 100px;
    }


    .logo {
        font-size: 25px;
    }

    #pre {

        left: 0;
    }

    #next {
        right: 0;
        /* width: 50px; */
    }

    #dish {
        width: 90px;
    }

    .input-div {
        width: 90%;
    }
}

@media (max-width:470px) {
    .category {
        width: 300px !important;
    }

    .input-div {
        width: 80%;
        margin-left: 30px !important;
    }

    #pre {
        width: 40px;
        height: 40px;
        left: 0;
    }

    #next {
        width: 40px;
        height: 40px;
        right: 0;
    }

    #dish {
        width: 60px;
        height: 30px;
        font-size: 13px;
    }
}