@import url('https://fonts.googleapis.com/css2?family=Gugi&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&family=Gugi&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&family=Gugi&family=Merriweather+Sans:ital,wght@0,300..800;1,300..800&display=swap');

header {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #ffffff; /* White background color */
    background: url("../img/StockCake-Organized\ Refrigerator\ Contents_1720699601.jpg") center center no-repeat, #ffffff; /* Fallback to white if image fails to load */
    background-size: cover,contain; /* Applies contain first, then cover */
    border-bottom-left-radius: 1px;
    border-bottom-right-radius: 1px;
    border-bottom: double #fff;
    max-height: 200px;
}
/* For Webkit browsers (Chrome, Safari) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* For Firefox */
* {
    scrollbar-width: auto;
    scrollbar-color: #888 #f1f1f1;
}


/* Ensure the body always has a scrollbar */
html, body {
    overflow-y: scroll;
}

body {
    display: flex;
    flex-direction: column;
    min-width: 100wv;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #ffffff;
    overflow: hidden;
    -ms-overflow-style: scrollbar;
}
header h1, header p, h2, h3 {
    word-wrap: break-word;
  }
header h1{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 40px;
    font-weight: 1000;
    color: #ffffff;
}
header p {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 4px;
    overflow: hidden;
    color: linear-gradient( #000, #fff, #000);
  
}
.wrapper{
    flex: 1;
}
body h2{
    text-align: center;
    text-transform: uppercase;
    font-family: "Merriweather Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    text-decoration-line: underline;
    color: #242323;
}

#my-recipes-container{
    padding: 20px;
    margin: 10px
}
.recipe-info{
    animation-name: recipeload;
    animation-duration: 2s;
}
@keyframes recipeload{
    from{
        top:-100px;
        opacity: 0;
    }
    to{
        top :0;
        opacity: 1;
    }
}

.hidden {
    display: none;
}
h3{
    font-family: "Gugi", sans-serif;
    font-style: normal;
    color: #242323;
    font-weight: 600;
    font-size: 15px;
    padding-bottom: 0;
    margin-bottom: 5px;
}
h4{
    font-family: "Merriweather Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
}
ol li, ul li{
    font-family: system-ui,'Segoe UI','Open Sans', 'Helvetica Neue';
    text-transform: capitalize;
}
.preptime{
    font-family: system-ui,'Segoe UI','Open Sans', 'Helvetica Neue';
    color: #242323;
    background: #888;
    width: fit-content;
    padding: 10px;
    border-radius: 5px;
}
button{
    border-style: none;
    min-width: 70px;
    min-height: 30px;
    background-color: #242323;
    color: #fff;
    border-radius: 2px;
    font-weight: 700;
}

button:hover{
    border-style: solid ;
    border: 1px soild #242323;
    background-color: #fff;
    color:  #242323;
    cursor: pointer;
}

#add-new-recipes {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 100vw;
    overflow: hidden;
} 
section #form-id{
    display: flex;
    flex-direction: column;
    font-weight: 700;
}
section #form-id label{
    font-weight: 1000;
    font-size: 20px;
    color: #fff;
    padding: 5px;
}
#form-id label{
    font-family: system-ui,'Segoe UI','Open-sans';
}

#form-id input{
    line-height: 3em;
    background-color: #fff;
    color: #131212;
    border: 1px double #d3cccc;
    border-radius: 5px;
    padding-left: 10px;
    text-align: left;
    font-family: system-ui,'Segoe UI','Open Sans';
    font-weight: 700;
    text-transform: capitalize;
}
    
#form-id textarea{
    background-color: #fff;
    color: #131212;
    font-weight: 700;
    border: 1px double #d3cccc;
    border-radius: 5px;
    padding-left: 10px;
    text-align: left;
    font-family: system-ui,'Segoe UI','Open Sans';
    padding: 20px;
    text-transform: capitalize;
    line-height: 1.5rem;
}
#form-id button{
    font-weight: 700;
}
#form-id button:focus{
    background-color: #242323;
    color: #fff;
}
#add-recipe{
    padding: 10px;
    margin: 10px;
    border-radius: 5px;
    border: 1px solid #242323;
    text-align: center;
}
/* Main content should take up all available space */
#recipe-display {
    flex: 1;
}

/* Footer styles */
body > .body-container {
    flex: 1;
}

footer {
    background-color: #242323;
    color: #fff;
    text-align: left;
    padding: 1rem 0;
    width: 100%;
    height: max-content;
    position: sticky;
    top: 100%;
}
footer p{
    overflow: hidden;
    position: relative;
    padding-left: 20px;
}

/* modal style */

.edit-modal, .modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */

    animation-name: animatemodal;
    animation-duration: 2s;

.modal-content {
    border-radius: 8px;
    background-color: #fefefe;
    margin: 1% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 70%; /* Could be more or less, depending on screen size */
    background: url("../images/Mango.jpg") center center no-repeat, #ffffff; /* Fallback to white if image fails to load */
    background-position: 100%,100%;
}
}

.close-btn {
    color: #000;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close-btn:active{
    animation-name: closebutton;
    animation-duration: 2s;
}
@keyframes closebutton{
    from{
        opacity: 1;
    }
    to{
        opacity: 0;
    }
}

.close-btn:hover,
.close-btn:focus {
    background: linear-gradient( #FFD700, #e09e0e, #FF8C00, #ad3c13);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    cursor: pointer;
}

/* delete Modal  */
.delete-modal{
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0,0,0,0.2); /* Black w/ opacity */

    animation-name: deletemodal;
    animation-duration: 1s;

    .delete-modal-content{
        border-radius: 8px;
        background-color: #fefefe;
        margin: 1% auto; /* 15% from the top and centered */
        padding: 20px;
        border: 1px solid #888;
        width: 33%; /* Could be more or less, depending on screen size */
    }
}

@keyframes deletemodal{
    from{ 
        top: -50px;
        opacity:0;
    } 
    to {
        top :0;
        opacity: 1;
    }
}

@keyframes animatemodal{
    from {
        top: 0%;
        opacity: 0;
    }
    to {
        top: 0%;
        opacity: 1;
    }
}


.delete-confirm{
    font-family: sans-serif,serif;
    text-align: center;
    padding-bottom: 5px;
}
#confirm-buttons {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
}
 
/* Edit Section */
#edit-section{
    position: relative;
}

/* Extra small devices (phones, less than 576px) */
/* Base styles for mobile devices */
body {
    font-size: 16px;
  }
  
  /* Small devices (landscape phones, 576px and up) */
  @media (min-width: 576px) {
    header {
        display: grid;
        place-items: center;
    }
    body {
      font-size: 15px;
    }
    .edit-modal, .modal{
        .modal-content{
            width: 70%;
        }
    }
    .delete-modal{
        .delete-modal-content {
            width: 30%;
        }
    }
    
  }
  
  /* Medium devices (tablets, 768px and up) */
  @media (min-width: 768px) {
    header {
        display: grid;
        place-items: center;
    }
    body {
      font-size: 16px;
    }
    .edit-modal, .modal{
        .modal-content{
            width: 75%;
        }
    }
    .delete-modal{
        .delete-modal-content {
            width: 30%;
        }
    }
  }
  
  /* Large devices (desktops, 992px and up) */
  @media (min-width: 992px) {
    body {
      font-size: 17px;
    }

    .edit-modal, .modal{
        .modal-content{
            background: url("../img/StockCake-Dewy\ Mango\ Portrait_1720701236.jpg") center center/cover no-repeat, #ffffff; /* Fallback to white if image fails to load */
            width: 70%;
        }
    }
    .delete-modal{
        .delete-modal-content {
            width: 25%;
        }
    }
  }
  
  /* Extra large devices (large desktops, 1200px and up) */
  @media (min-width: 1200px) {
    body {
      font-size: 18px;
    }
    .delete-modal{
        .delete-modal-content {
            width: 25%;
        }
    }
  }
