/* whole page */
*{
    padding: 0;
    margin: 0;
}
/* for hide scroll bar */
::-webkit-scrollbar {
    display: none;
}

body::-webkit-scrollbar {
    overflow: hidden;
    display: none;
} 

body {
    margin: 0px;
    overflow: hidden;
    display: flex;
}

#container {
    height: 100vh;
    width: 100vw;
}

/* nav bar section */
#nav-menu {
    height: 9vh;
    width: 100vw;
    padding: 10px;
    background-color: rgb(255, 255, 255);
    display: flex;
    opacity: 100%;
    transition: background-color 0.3s ease; /*Add transition for smooth effect*/
}

#nav-menu:hover {
    background-color: rgb(0, 0, 0); 
}

#audio-player {
    margin-top: 17px;
    margin-bottom: 5px;
    height: 50%;
    width: 10%;
    margin-left: 10px; /* Adjust margin as needed */
    
}

#logo {
    height: 60px;
    width: 60px;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 5px;
}

#logo1 {
    height: 50px;
    width: 50px;
    margin-left: auto;
    margin-right: 20px;
    align-self: center; /* Adjust the alignment */
    position: relative;
    top: -10px; /* Adjust the top position */
}


#favourite_btn {
    margin-top: 20px;
    margin-right: 30px;
    color: bisque;
    height: 40%;
    border: none;
    font-size: 20px;
    font-weight: bold;
    background-color: transparent;
    font-family: Arial, Helvetica, sans-serif;
}

#favourite_btn:hover {
    color: white;
    cursor: pointer;
}

#login_btn {
    margin-top: 20px;
    margin-right: 20px; 
    color: bisque;
    height: 40%;
    border: none;
    font-size: 20px;
    font-weight: bold;
    background-color: transparent;
    font-family: Arial, Helvetica, sans-serif;
}

#login_btn:hover {
    color: white;
    cursor: pointer;
}


#text {
    margin-top: 18px;
    font-family: Arial, Helvetica, sans-serif;
    color: bisque;
    font-size: 29px;
}

#home {
    margin-left: auto;
    margin-top: 18px;
    height: 40%;
    border: none;
    font-size: 13px;
    background-color: transparent;
    transition: all 0.3s linear;
}

#home:hover {
    font-size: 20px;
    margin-top: 16px;
}

/* background image carousel */
@keyframes carousel {
    0% {
      background-image: url(assets/cooking1.jpg);
    }
    25% {
      background-image: url(assets/cooking2.jpg);
    }
    50% {
      background-image: url(assets/cooking3.jpg);
    }
    75% {
      background-image: url(assets/cooking4.jpg);
    }
    100% {
      background-image: url(assets/cooking5.jpg);
    }
  }
  
  #content {
    /* Full height */
    height: 100%;
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    /* Apply animation */
    animation: carousel 30s infinite;
  }

/* header section start */
#header {
    height: 30vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
}
#h1 {
    margin: 0px;
    color: white;
    letter-spacing: 6px;
    font-size: 35px;
    font-family: Arial, Helvetica, sans-serif;
}

/* THIS IS FOR SEARCH BOX */
#search_box {
    height: 25%;
    width: 60%;
    padding: 12px;
    outline: none;
    border-style: hidden;
    margin-top: 30px;
    margin-bottom: 20px;
    border-radius: 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: bold;
    padding-left: 15px;
    padding-right: 10px;
    background-color: black;
    color: white;
}

#search_box::placeholder {
    color: white; /* Changing the placeholder text color */
}

#search_box:hover {
    background-color: rgb(43, 43, 43); /* Changing background color on hover */
}

#search_box:focus {
    background-color: black; /* Changing background color on focus */
}

#h3 {
    margin: 28px;
    color: white;
    letter-spacing: 2px;
    font-size: 25px;
    font-family: Arial, Helvetica, sans-serif;
}

/* main section start  */
#main {
    height: 50vh;
    width: 100vw;
    margin-left: 34px;
    display: flex;
    flex-wrap: wrap;
    overflow-y: scroll;
}

/* THIS ONE IS FOR FOOD CARD */
/* each food card use this CSS */
/* fetch recipes card css property */
.food_card {
    background-color: rgba(0, 0, 0, 0.5); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 46vh;
    width: 15vw;
    min-width: 220px;
    min-height: 315px;
    margin: 6px;
    border-radius: 25px;
    transition: background-color 0.3s ease; 
}

.food_card:hover {
    background-color: rgba(0, 0, 0, 0.4); 
}

.card_img_div {
    height: 60%;
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;

}
.card_img {
    height: 200px;
    width: 200px;
    border-radius: 50%;
}

.card_text_para {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    margin: 15px;
}

.card_lower_div {
    height: 12%;
    width: 90%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 10px;

}

.btn {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    color: black;
    height: 75%;
    width: 52%;
    border-radius: 10px;
    border: 3px solid black;
    cursor: pointer;
}

.btn:hover {
    color: white;
    background-color: black;
    border: 2px solid white;
}

/* google icons script1 */
.material-symbols-sharp {
    color: black;
  font-variation-settings:
  'FILL' 1,
  'wght' 600,
  'GRAD' 0,
  'opsz' 40
}

.material-symbols-sharp:hover {
    color: red;
    cursor: pointer;
}

/* THIS IS FOR RECIPE CARD */
/* work on View Recipe */
.Recipe_card {
    height: 80vh;
    width: 60vw;
    background-image: url(assets/recipebackground.jpg);
    position: absolute;
    top: 15vh;
    left: 2.5vw;
    border-radius: 35px;
    display: flex;
}

#left {
    height: 100%;
    width: 40%;
    margin-left: 20px;
    margin-top: 10vh;
}

#left_upper {
    height: 70%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#left_upper_img {
    height: 270px;
    width: 270px;
    border-radius: 30px;
}

#left_upper_p1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 3px;
    color: black;
    margin: 25px;
}

#left_upper_p2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: bold;
    color: black;
    margin-top: -14px;
}

#left_lower {
    height: 15%;
    width: 100%;
    display: flex;
    justify-content: center;
}

#left_lower_btn {
    height: 45%;
    width: 100%;
    padding: 9px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    color: black;
    border-radius: 5px;
    border: 3px solid black;
    cursor: pointer;
}

#left_lower_btn:hover {
    color: white;
    background-color: black;
    border: 2px solid white;
}

#right {
    height: 85%;
    width: 60%;
    margin-right: 40px;
    margin-top: 10vh;
    margin-left: 40px;
    overflow-y: scroll;
}

#right_inst {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.7rem;
    margin: 0px;
    color: black;
    font-weight: bold;
    text-align: center;
    text-decoration: underline;
}

#right_p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    color: black;
    text-align: justify;
    margin-top: 23px;
}

.cross {
    position: absolute;
    top: 3vh;
    right: 1.5vw;
    font-size: 1.8rem; 
}
/* google icons script 2 */
.material-symbols-outlined {
  cursor: pointer;
  font-variation-settings:
  'FILL' 1,
  'wght' 700,
  'GRAD' 0,
  'opsz' 40
}

.material-symbols-outlined:hover {
    color: white;
}

/* No search found */
#error1 {
    width: 90%;
    margin-left: 0.5em;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    text-align: center;
}

#sad {
    font-size: 7rem;
    margin: 0px;
}

/* Making Favourite section */
#favourite_container {
    background-color: rgba(0, 0, 0, 0.5);
    height: 100vh;
    width: 360px;
/*     position: absolute; */
    right: -360px;
    position: fixed;
    transition: right 0.3s linear;
}

#fav_head {
    height: 10vh;
    width: 360px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(0, 0, 0);
}

#fav_head h1 {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0px;
    padding-left: 1vw;
    color: bisque;
}

#exit {
    position: absolute;
    top: 3vh;
    right: 1vw;
    font-size: 1.8rem;
    color: white;
}

.container {
    box-sizing: border-box;
    padding-top: 10px;
    height: 90vh;
    width: 360px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('your-background-image.jpg'); /* Adjust the URL accordingly */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: scroll;
}
#fav_body h2 {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0px;
    font-size: 1.7rem;
    font-weight: bold;
    color: white;
    text-align: center;
    margin-top: 40vh;
}

.card_lower_div_fav {
    height: 10%;
    width: 90%;
    display: flex;
    justify-content: space-around;
    align-items: center;

}

.btn1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: bold;
    color: black;
    height: 90%;
    width: 40%;
    border-radius: 10px;
    border: 3px solid black;
    margin: 5px;
    cursor: pointer;
    padding: 4px;
}

.btn1:hover {
    color: white;
    background-color: black;
    border: 2px solid white;
    cursor: pointer;
}


/* CODE FOR RESPONSIVENESS */

 @media screen and (max-width: 900px){
     /* No search found */
    #error1 {
        font-size: 2rem;
    }

    #sad {
        font-size: 5.5rem;
    }
     
    /* home page */
    #header {
        width: 100vw;
    }

    /* main section food card*/
    #main {
        width: 100vw;
        margin-left: 0px;
        justify-content: center;
    }

    /* Recipe_card Section*/
    .Recipe_card {
        width: 90vw;
        left: 5vw;
    }

    #left_upper {
        margin-top: 0vw;
    }

    #left_upper_img {
        height: 200px;
        width: 200px;
    }

    #left_lower {
        margin-top: -5vh;
    }

    #right_inst {
        font-size: 1.5rem;
    }
    
    .cross {
        top: 2.4vh;
        right: 2.7vw;
    }
 }

 @media screen and (max-width: 500px) {
     /* No search found */
    #error1 {
        font-size: 1.5rem;
    }

    #sad {
        font-size: 4.5rem;
    }

    /* nav bar */
    #text {
        font-size: 0.8rem;
        margin-top: 26px;
    }
    
    #favourite_btn {
        font-size: 0.7rem;
        margin-left: auto;
        border: 2px solid black;
        border-radius: 20px;
    }

/*     #home {
        position: absolute;
        visibility: hidden;
    } */

    /* home page */
    #h1 {
        letter-spacing: 3px;
        font-size: 1.5rem;
    }
    
    #h3 {
        letter-spacing: 1px;
        font-size: 15px;
    }

    /* Recipe_card Section*/
    .Recipe_card {
        flex-direction: column;
    }
    
    #left {
        height: 50%;
        width: 100%;
        margin-left: 0px;
        margin-top: 3vh;
    }
    
    #left_upper {
        height: 90%;
    }
    
    #left_upper_img {
        height: 160px;
        width: 160px;
    }
    
    #left_upper_p1 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    #left_upper_p2 {
        font-size: 0.8rem;
    }
    
    #left_lower {
        height: 25%;
        margin-top: 0vh;
    }
    
    #left_lower_btn {
        font-size: 0.8rem;
    }
    
    #right {
        height: 37.5%;
        width: 90%;
        margin-right: 20px;
        margin-left: 20px;
        margin-top: 4vh;
    }
    
    #right_inst {
        font-size: 1.4rem;
    }
    
    #right_p {
        font-size: 0.9rem;
        margin-top: 12px;
    }

    .cross {
        top: 2.3vh;
        right: 4.2vw;
        font-size: 1.2rem; 
    }
 }
