/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    background-image: url('data/background.jpg'); /* Main repeating background */
    background-size: auto; /* Keeps the original size of the image */
    background-position: center top; /* Aligns image to the top center */
    background-repeat: repeat; /* Repeats the image both horizontally and vertically */
    background-attachment: fixed; /* Optional: keeps the background fixed while scrolling */
    background-color: #f4f4f9; /* Fallback color */
}

/* Header */
header {
    display: flex;
    justify-content: space-between; /* Space between logo and menu */
    align-items: center; /* Vertically align logo and menu items */
    background: linear-gradient(to right, #e63946, #4a90e2); /* Gradient background */
    color: white;
    padding: 10px 20px; /* Add spacing around the header */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Logo Styling */
header .logo img {
    width: 150px; /* Fix the width to 200px */
    height: auto; /* Maintain the aspect ratio */
    display: block; /* Ensures proper alignment */
}

/* Navigation: Horizontal layout */
header nav ul {
    display: flex; /* Display menu items in a row */
    list-style: none; /* Remove bullet points */
    gap: 20px; /* Add spacing between items */
    margin: 0;
    padding: 0;
}

/* Menu Items: Styling */
header nav ul li {
    position: relative; /* For dropdown positioning */
}

header nav ul li a {
    display: inline-block; /* Ensure proper spacing */
    padding: 10px 15px; /* Add padding around menu items */
    text-decoration: none; /* Remove underline */
    color: white; /* White text color */
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

header nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Add hover effect */
    transform: scale(1.1); /* Slightly enlarge on hover */
    color: white;
}

/* Dropdown Menu Styling */
header nav ul .dropdown {
    display: none; /* Hide dropdown initially */
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(to right, rgba(230, 57, 70, 0.8), rgba(74, 144, 226, 0.8)); /* Semi-transparent gradient */
    padding: 10px 0;
    border-radius: 5px;
    z-index: 10;
    min-width: 150px;
    white-space: nowrap; /* Prevent text wrapping */
}

/* Show dropdown on hover */
header nav ul li:hover .dropdown {
    display: block;
}


/* Main Navigation Styling */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

nav ul li {
    position: relative;
}

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

/* Dropdown Menu Styling */
nav ul .dropdown {
    display: none; /* Hide dropdown initially */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #222;
    padding: 10px 0;
    border-radius: 5px;
    z-index: 10;
    min-width: 150px; /* Ensures the dropdown is wide enough */
    white-space: nowrap; /* Prevents text from wrapping */
}


/* Show dropdown on hover */
nav ul li:hover .dropdown {
    display: block;
}

/* Dropdown Items */
.dropdown li {
    padding: 5px 15px;
}

.dropdown li a {
    color: white;
    font-size: 1rem;
}

.dropdown li a:hover {
    color: #e63946;
}


@media (max-width: 768px) {
    .episode-list {
        grid-template-columns: 1fr; /* Single column for smaller screens */
    }
    header .logo img {
        max-width: 100px; /* Smaller size for mobile */
    }
    header nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    header nav ul li {
        width: 100%;
    }
}

/* Hero Section */
.hero {
    position: relative;
    background-image: url('data/background.jpg'); /* Main background image */
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data/overlay.jpg'); /* Overlay image of the vinyl */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1.1; /* Adjust transparency as desired */
    z-index: 1;
}

/*.hero-content {
    position: relative;
    z-index: 2; /* Ensures text and button appear above overlay */
/*    padding-top: 550px; /* Adjust this value to move the button down */
/*    text-align: center;*/
/*}*/

/* Centered Hero Content */
.hero-content {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; /* Ensures content is above the overlay */
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    color: white;
    background-color: #e63946;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #d62828;
}

/* Episodes Section */
.episodes {
    background-image: url('data/background.jpg'); /* Use the same background image */
    background-size: auto; /* Ensures the image keeps its original size */
    background-repeat: repeat-y; /* Repeats the image vertically only */
    background-position: center top; /* Centers the image horizontally */
    color: white;
    padding: 50px;
    text-align: center;
}

.episode-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 20px; /* Space between items */
    margin: 20px 0;
    padding: 0;
}

.episode-item {
    background: rgba(0, 0, 0, 0.8); /* Add a semi-transparent background */
    color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.episode-item:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
}

.episode-description {
    flex: 1;
    margin-left: 20px; /* Add some space between title and description */
    font-style: italic;
    color: #ccc;
}

/* Align details directly under the heading */
.episode-details {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 10px;
}

/* Container for controls and description */
.episode-content {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    gap: 10px; /* Add space between elements */
}

/* Episode description styling */
.episode-description {
    margin-top: 10px;
    font-size: 1rem;
    line-height: 1.5;
    color: white; /* Ensure the description is readable */
}



.popup-player {
    text-align: center;
    padding: 20px;
    background-color: #222;
    color: white;
    font-family: Arial, sans-serif;
}

#popup-audio {
    width: 100%;
    margin-top: 20px;
}


/* Player Controls */
.player-controls {
    display: flex;
    gap: 10px; /* Space between buttons */
}

.player-controls button, .download-link {
    padding: 10px 20px;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    border: none;
}

.player-controls button {
    background-color: #e63946;
}

.player-controls button:hover {
    background-color: #d62828;
}


.player-controls .listened-icon {
    color: green;
    font-size: 1.2rem;
    margin-left: 10px; /* Space between the checkmark and the Download button */
    vertical-align: middle; /* Aligns the icon with the text */
}

.download-link {
    background-color: #4a90e2;
    text-decoration: none;
}

.download-link:hover {
    background-color: #357abd;
}


/* Center the Choose a Season section */
.choose-season {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80vh;
    text-align: center;
}

/* Rotated Choose a Season Text */
.season-title {
    font-size: 2rem;
    font-weight: bold;
    color: #b388ff !important;
    transform: rotate(-90deg);
    white-space: nowrap;
    margin-right: 20px;
}

/* Season Links Styling */
.season-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.season-link {
    font-size: 1.8rem;
    font-weight: bold;
    color: white !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.season-link:hover {
    color: #357abd;
}

/* Center the Choose Season Container */
.choose-season-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh; /* Adjust height to ensure the container is prominent */
    padding: 20px;
    text-align: center;
}

/* Season links */
.season-links {
    display: flex;
    flex-direction: column; /* Stack links vertically */
    gap: 15px; /* Space between links */
    margin-top: 20px; /* Add spacing below the title */
}



/* Season Links Styling */
.season-link {
    color: white; /* Links in white */
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.season-link:hover {
    color: #ffd700; /* Highlight color for links on hover */
}

/* Details or Additional Text */
.season-box p {
    color: white; /* Ensure paragraph text inside the box is white */
    margin: 10px 0;
}



/* Season Box Styling */
/* Style for the season box */
.season-box {
    background: linear-gradient(to right, #e63946, #4a90e2); /* Apply gradient only to the box */
    color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
    max-width: 600px;
    width: 100%; /* Ensure it fills its container */
}

/* Title Styling */
.season-title {
    font-size: 2rem;
    font-weight: bold;
    color: white; /* Title text in white */
    margin-bottom: 20px;
}



/* Mobile Styles (max-width: 768px) */
@media only screen and (max-width: 768px) {

    /* Navigation */
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    nav ul li {
        margin: 5px 0;
    }

    .dropdown {
        position: static;
        display: block;
        width: 100%;
        text-align: center;
    }

    .dropdown li {
        padding: 10px;
    }

    /* Hero Section */
    .hero {
        height: 60vh;
        padding: 20px;
    }

    .hero-overlay {
        opacity: 0.7;
    }

    .hero-content {
        padding-top: 300px;
        font-size: 2rem;
    }

    .cta-button {
        font-size: 0.9rem;
        padding: 8px 15px;
    }

    /* Episodes Page */
    .choose-season-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .season-box {
        width: 90%;
        min-height: 200px;
        padding: 20px;
        gap: 10px;
    }

    .season-title {
        font-size: 1.5rem;
        transform: rotate(0); /* Remove rotation for mobile */
        margin-bottom: 15px;
    }

    .season-links {
        gap: 10px;
    }

    .season-link {
        font-size: 1.5rem;
    }

    /* Episode Items */
    .episode-item {
        width: 90%;
        padding: 15px;
        font-size: 0.9rem;
    }

    .player-controls {
        flex-direction: column;
        gap: 10px;
    }

    .episode-description {
        max-width: 100%;
        margin: 10px 0;
    }
}


/* Footer */
footer {
    text-align: center;
    padding: 10px;
    background-color: #222;
    color: white;
    font-size: 0.9rem;
}
