*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    /* color: white; */
}

body{
    /* background-color: rgb(22, 37, 37); */
    /* background-image: url("./media/bg.jpg"); */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-blend-mode: color-burn;
    height: 100dvh;
    width: 100%;
}

#navbarContianer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #0066ff;
    background-color: #e54b4c;
    background-color: #d8456b;
    /* background-color: rgb(216, 16, 113); */
    color: white;
}

#menubarContainer{
    /* display: none; */
    position: fixed;
    top: 0%;
    right: 0%;
    width: 50%;
    height: 100dvh;
    padding: 1rem;
    background-color: #d8456b;

    box-shadow: -2px 0px 5px 0 rgba(0, 0, 0, 0.5);

    display: flex;
    flex-direction: column;
    gap: 2rem;
    visibility: collapse;

    z-index: 2;
}

header{
    position: sticky;
    top: 0%;
}

#navbarContianer ul{
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

#menubarContainer ul{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    /* padding: 1rem; */
}

#navbarContianer ul li a, #menubarContainer ul li a{
    text-decoration: none;
    color: white;
}

#logo{
    font-size: 2rem;
    font-weight: bold;
}

#loginBtn, #logoutBtn{
    background-color: #61BAAD;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition-duration: 0.2s;
}

#logoutBtn{
    display: none;
}

#loginBtn:hover, #logoutBtn:hover{
    transform: scale(1.1);
}

#menubarBtn{
    display: none;
    background-color: rgba(0, 0, 0, 0);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
}

#menubarCloseBtn{
    /* display: none; */
    background-color: rgba(0, 0, 0, 0);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

.menubarHr{
    width: 100%;
    height: 1px;
    background-color: rgba(250, 132, 164, 0.8);
    border: none;
}

#searchTxt{
    color: #d8456b;
    font-weight: bold;
    font-size: 2rem;
    padding: 1rem 0rem 0rem 1rem;
}

#ingredientSelector{
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 1rem;
}

#ingredientSelector label{
    background-color: #f0f2f4;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    color: #acaeb4;
}

#ingredientSelector input{
    display: none;
}

#ingredientSelector label:hover{
    background-color: rgb(215, 215, 215);
}

#filterBtn{
    background-color: #d8456b;
    color: white;
    /* height: 3.2rem; */
    /* width: 3.2rem; */
    padding: 0.5rem 1rem 0.5rem 1rem;
    border: none;
    border-radius: 100px;
    font-size: 1.6rem;
    text-align: center;
    cursor: pointer;
}

#filter{
    display: flex;
    gap: 1rem;
    align-items: center;
    /* padding: 1rem; */
    margin-bottom: 1rem;

    background-color: #f0f2f4;
    text-align: center;
    /* visibility: collapse; */
    overflow: hidden;
    height: 0%;

    transition-duration: 0.5s;
}

#buttonsContainer{
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    align-items: center;
}

#submitBtn{
    background-color: #d8456b;
    color: white;
    height: 3.2rem;
    width: 3.2rem;
    border: none;
    border-radius: 50%;
    font-size: 1.6rem;
    text-align: center;
    cursor: pointer;
}

#clearBtn{
    background-color: #d8456b;
    color: white;
    height: 3.2rem;
    width: 3.2rem;
    border: none;
    border-radius: 50%;
    font-size: 1.6rem;
    text-align: center;
    cursor: pointer;
}

.selected{
    background-color: #61BAAD !important;
    color: white !important;
}

#result{
    display: flex;
    gap: 5rem;
    flex-wrap: wrap;
    padding: 2rem;
}

.card{
    height: 10rem;
    width: 30rem;
    overflow: hidden;
    display: flex;
    gap: 10px;

    border-radius: 10px;
    box-shadow: 2px 2px 5px hsla(0, 0%, 0%, 0.4);
}

.imgDiv{
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    height: 100%;
    width: 40%;
}

.infoWindow{
    max-width: 70%;
    height: 70%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    border-radius: 10px;
    overflow-x: hidden;
    word-wrap: break-word;

    background-color: white;
}

.infoWindowImgDiv{
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    height: 30%;
}

.textDiv{
    font-size: 1.4rem;
    width: 50%;
}

.favoriteBtn{
    background-color: rgba(0, 0, 0, 0);
    border: none;
    font-size: 1.1rem;
    padding: 0.5rem;
}

#darkDiv{
    width: 100%;
    height: 100dvh;
    position: fixed;
    top: 0%;
    left: 0%;
    background-color: rgba(0, 0, 0, 0.7);
    visibility: collapse;
}

.content{
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;

    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.closeBtn{
    border: none;
    background-color: rgba(0, 0, 0, 0);
    position: absolute;
    top: 3%;
    right: 5%;
    font-size: 1.5rem;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.8);

    text-shadow: 0px 0px 2px rgba(255, 255, 255, 0.9);
}

.closeBtn:hover{
    color: red;
}

.reviewBtn{
    background-color: rgba(0, 0, 0, 0);
    border: none;
    font-size: 1.2rem;
    margin-right : 0.4rem;
    cursor: pointer;
}

#addBtn{
    background-color: #61BAAD;
    color: white;
    height: 5rem;
    width: 5rem;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    text-align: center;
    cursor: pointer;

    position: fixed;
    bottom: 5%;
    right: 5%;

    transition-duration: 0.5s;
}

#addBtn i{
    transition-duration: 0.5s;
}

#addRecipeDiv{
    height: 70%;
    width: 70%;
    background-color: #d8456b;
    color: white;
    border-radius: 1rem;

    visibility: collapse;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    overflow: auto;
}

#addRecipeForm{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
}

#addRecipeForm input{
    height: 2.5rem;
    border: none;
    border-radius: 5px;
    padding-left: 1rem;

    background-color: rgba(255, 255, 255, 0.245);
}

#addRecipeForm textarea{
    border: none;
    border-radius: 5px;
    padding-left: 1rem;
    padding-top: 1rem;
    background-color: rgba(255, 255, 255, 0.245);
}

#addRecipeForm select{
    height: 2.5rem;
    border: none;
    border-radius: 5px;
    padding-left: 1rem;
    background-color: rgba(255, 255, 255, 0.245);
}

#addRecipeForm button{
    background-color: #61BAAD;
    color: white;
    height: 3rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.speakBtn{
    background-color: #e54b4c;
    color: white;
    height: 3rem;
    width: 3rem;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
}

@media screen and (max-width: 600px) {
    .card{
        width: 100%;
        height: 8rem;
    }

    #navbar{
        display: none !important;
    }

    #navbarContianer{
        justify-content: space-between;
    }
    
    #menubarBtn{
        display: block;
    }

    #logo{
        font-size: 1.4rem;
    }

    #addBtn{
        scale: 0.8;
        font-size: 1.5rem;
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(0%);
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(100%);
    }
}