
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Courier New', Courier, monospace;
}

body {
    line-height: 1.6;
    background-color: #fffaf0;
}

/* Nav Bar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #0072C6; 
    color: white;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0;
    z-index: 1000;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #ffcc00;
}

/* Sections */
section {
    padding: 100px 20px 50px;
    margin-top: 80px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#about { background-color: #FBCEB1; }
#ingredients { background-color: #FF6347; }
#instructions { background-color: #FBCEB1; }

/* Hero Image */
.hero-image {
    display: block;
    max-width: 400px;
    width: 90%;
    margin: 20px auto;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Headings */
h1, h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Ingredients Grid */
.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-items: center;
    align-items: start;
}

.ingredient {
    text-align: center;
    background-color: rgba(255,255,255,0.3);
    border-radius: 10px;
    padding: 10px;
    transition: transform 0.3s;
}

.ingredient:hover {
    transform: scale(1.05);
}

.ingredient img {
    width: 100%;
    max-width: 120px;
    height: auto;
    border-radius: 8px;
}

/* Instructions with video */
.instruction-video-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
}

.instructions, .video-wrapper {
    flex: 1 1 300px;
}

.video-wrapper iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
    border-radius: 10px;
    border: none;
}

.video-disclaimer {
    font-size: 0.9rem;
    color: #333;
    margin-top: 10px;
    text-align: center;
    font-style: italic;
}

/* Footer */
footer {
    background-color: #0072C6;
    color: white;
    padding: 20px 10px;
    text-align: center;
}

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

footer a:hover {
    color: #ffcc00;
}


@media (max-width: 768px) {
    .instruction-video-container {
        flex-direction: column;
        align-items: center;
    }
    .ingredients-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    section {
        padding: 80px 10px 40px;
    }
}

@media (max-width: 480px) {
    nav {
        font-size: 0.9rem;
        gap: 1rem;
    }
    h1, h2 { font-size: 1.5rem; }
    footer .info { text-align: center; }
}




