/* Color variables for consistent theming */
:root {
    --primary: #000000;
    --secondary: #4d0000;
    --accent: #ff3333;
    --text: #ffffff;
    --shadow: rgba(0, 0, 0, 0.3);
}

/* Global reset and box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main body layout and theme */
body {
    font-family: 'Arial', sans-serif;
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Centered title with red accent */
.title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
    margin: 2rem 1rem;
    text-shadow: 1px 1px 3px var(--shadow);
}

/* Centered paragraph text */
p {
    text-align: center;
    max-width: 80%;
    margin: 1rem auto;
    color: var(--text);
}

/* Navigation list with centered flex layout */
nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
    max-width: 90%;
}

/* Navigation links styled as buttons */
nav li a {
    display: block;
    padding: 0.75rem 1.5rem;
    background-color: var(--secondary);
    color: var(--text);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.25rem;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 2px 2px 5px var(--shadow);
}

/* Hover and focus effects for navigation */
nav li a:hover,
nav li a:focus {
    background-color: var(--accent);
    transform: translateY(-2px);
    outline: none;
}

/* Recipe content block */
.recipe-block {
    background-color: var(--secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 90%;
    width: 600px;
    box-shadow: 2px 2px 5px var(--shadow);
}

/* Centered subheadings */
h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px var(--shadow);
}

/* Centered container for lists */
.list-container {
    text-align: center;
}

/* Left-aligned lists within centered container */
.list-container ul,
.list-container ol {
    display: inline-block;
    text-align: left;
    margin: 1rem auto;
    padding-left: 1.5rem;
}

/* Spacing for list items */
.list-container li {
    margin-bottom: 0.5rem;
}

/* Centered recipe image */
#recipe-image {
    display: block;
    margin: 2rem auto;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 2px 2px 5px var(--shadow);
}

/* Container for Spotify playlist embeds */
.playlist-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem auto;
    padding: 1.5rem;
    max-width: 90%;
    width: 600px;
    background-color: var(--secondary);
    border-radius: 12px;
    box-shadow: 2px 2px 5px var(--shadow);
}

/* Responsive Spotify iframes */
.playlist-container iframe {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
}

/* Centered footer with red text */
footer {
    text-align: center;
    margin: 2rem 1rem;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--accent);
    text-shadow: 1px 1px 3px var(--shadow);
    flex-shrink: 0;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    /* Smaller title font */
    .title {
        font-size: 1.75rem;
    }

    /* Smaller navigation links */
    nav li a {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    /* Adjust content block sizes */
    .recipe-block,
    .playlist-container {
        padding: 1rem;
        width: 90%;
    }

    /* Smaller subheading font */
    h2 {
        font-size: 1.25rem;
    }

    /* Responsive images and iframes */
    #recipe-image,
    .playlist-container iframe {
        width: 90%;
    }
}