                    /* WEBPAGE */
body {
    animation: gradientShift 20s ease infinite;
    background-color: #fffaf0;
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
}

.page-container {
    /* fills to grow space btwn nav and footer, pushing footer to bottom  */
    flex: 1;
}

                     /* NAVIGATION / HEADER */
.nav-container {
    align-items: center;
    background-color: #fffaf0;
    border-bottom: 2px solid #de6b48;
    display: flex;
    flex-direction: column;
}

.hero-banner {
    height: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
    
}

#hero-img {
    aspect-ratio: 16 / 8;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

#heading {
    background-color: #ffffff72;
    border-radius: 12px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
    font-size: 3rem;
    left: 50%;
    margin: 0;
    padding: 20px 30px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

#heading a {
    color: #1a515c;
    font-family: 'Titan One', cursive;
    text-decoration: none;
    text-shadow:
      1px 1px 0 #de6b48,
      2px 2px 0 #b03f24,
      3px 3px 3px rgba(0, 0, 0, 0.3);
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 20px;
    padding-left: 0;
}

.nav-list a {
    color: #1a515c;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: #de6b48;
    text-decoration: underline;
}

                        /* FEATURED SECTION */
.featured-section {
    display: flex;
    flex-direction: column;
}

.featured-section-2 {
    display: flex;
    padding: 2rem 1rem;
}

.featured-text {
    font-size: 1.5rem;
    color: #1a515c;
    font-family: 'Raleway', sans-serif;
    margin-bottom: 0.5rem;
    text-align: center;
}

.featured-title {
    color: #de6b48;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-align: center;
}

#meal-name {
    color: #1a515c;
    font-family: 'Titan One', cursive;
    font-size: 1.9rem;
    font-weight: 700;
}

#featured-img {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    margin-top: 1rem;
    max-width: 500px;
    transition: transform 0.3s ease;
    width: 100%;
}

#featured-img:hover {
    transform: scale(1.02);
}

                        /* SUB SECTION */
                        
.sub-container {
    background-color: #f8f8f8;
    padding: 40px 20px;
}

.popular-section {
    display: flex;
    justify-content: space-around;
    overflow: hidden;
    gap: 60px;
}
    
#sub-heading {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #222;
}

/* Individual category sections (Desserts, Fun App, etc.) */
.popular-section section {
    /* width: 100%; */
}

/* Category titles (e.g. Desserts, Fun Appetizers) */
.popular-section section > h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #444;
    text-align: center;
}

/* Recipe list styling from earlier (add this if not yet) */
.recipe-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    list-style: none;
    justify-content: center;
}

.recipe-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px;
    transition: transform 0.2s ease;
    width: 200px;
}

.recipe-card:hover {
    transform: scale(1.03);
}

.recipe-link {
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.recipe-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.recipe-name {
    font-size: 1rem;
    font-weight: bold;
    padding: 10px;
    color: #333;
}

                     /* FOOTER STYLING */
#footer-container {
    background-color: #1a515c;
    color: #de6b48;
    text-align: center;
    padding: 1.5rem 1rem;
    border-top: 2px solid #de6b48;
    margin-top: 3rem;
}

#footer-heading {
    font-weight: 500;
    font-size: 1.1rem;
    border-bottom: 1px solid #de6b48;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer-icons a {
    margin: 0 0.5rem;
}

#footer-icons img {
    width: 32px;
    height: auto;
    transition: transform 0.3s ease;
}

#footer-icons img:hover {
    transform: scale(1.1);
}

#footer-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-family: 'Raleway', sans-serif;
}

footer a {
    color: #de6b48;
    text-decoration: none;
}

footer a:hover {
    color: #fff;
}

                        /* MEDIA QUERIES */

@media screen and (min-width: 1120px){
     /* Nav */
     #hero-img {
        height: 400px;
    }

    /* Featured */
    .featured-section {
        margin: 30px 30px 30px;
    }

    .featured-section-2 {
        text-align: center;
    }

    .featured-title {
        padding: 10px 30px;
    }

    .featured-title,
    #meal-name {
        font-size: 3rem;
    }

     /* Sub */
     .popular-section {
        align-items: center;
        justify-content: center;
        gap: 0;
    }
        
    #sub-heading {
        font-size: 2rem;
    }

    .recipe-card {
        width: 70%;

    }

    .recipe-image {
        height: 300px;
        object-fit: cover;
        width: 100%; 
    }
} 

@media screen and (max-width: 900px){
    /* Nav */
    /* Featured */

    /* Sub */

    .popular-section {
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    .popular-section ul {
        padding: 0;
    }
        
    #sub-heading {
        font-size: 2rem;
    }

    .recipe-card {
        max-width: 250px;
    }

    .recipe-image {
        max-height: 300px;
        object-fit: cover;
        width: 100%; 
    }

}

@media screen and (max-width: 765px){
    /* Nav */

    .hero-banner {
        overflow: hidden;
        position: relative;
        width: 100%;
    }

    #hero-img {
        margin: 0;
        object-fit: cover;
        width: 100%;
    }

    #heading {
        font-size: 2rem;
    }

    /* Featured */

    .featured-section-2 {
        padding: 20px;
    }

    /* Sub */

    .popular-section {
        align-items: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
    }
    .popular-section ul {
        padding: 0;
    }
        
    #sub-heading {
        font-size: 2rem;
    }

    .recipe-container {
        max-width: 400px;
    }
    .recipe-card {
        width: 100%;
    }

    .recipe-image {
        height: 100%;
        object-fit: cover;
        width: 100%; 
    }
}
@media screen and (max-width: 535px){
    /* Nav */
    #heading {
        font-size: 1rem;
        padding: 12px;
    }
    .nav-list {
        display: flex;
        gap: 10px;
        margin: 5px;
        padding: 5px;
        text-align: center;
    }

    .nav-list a {
        font-size: 12px;
    }

    /* Featured */
    .featured-section{
        align-items: center;
    }

    .featured-section-2 {
        display: flex;
        flex-direction: column;
        padding: 20px;
    }

    .featured-title, 
    #meal-name {
        font-size: 1rem;
    }

    .featured-text {
        font-size: 1.2rem;
    }

    #featured-img-link {
        max-width: 80%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
}