/* General styling */
body {
    font-family: 'Poppins', sans-serif;
    background: #f4f4f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
    box-sizing: border-box;
}

.quiz-container {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 80%;
    max-width: 500px;
}

h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.answer-option {
    background: #eee;
    margin: 10px;
    padding: 15px;
    cursor: pointer;
    border-radius: 5px;
    font-family: cursive;
    transition: background 0.3s ease;
    border: none;
    text-align: center;
}

.answer-option:hover {
    background: #dcdcdc;
}

.correct {
    background: #4CAF50;
    color: #fff;
}

.incorrect {
    background: #f44336;
    color: #fff;
}

#progress-bar {
    width: 100%;
    background-color: #f1f1f1;
    height: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

#progress {
    width: 0;
    height: 100%;
    background-color: #2196F3;
    border-radius: 5px;
}

.result-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 20px;
    font-size: 1.5rem;
    border-radius: 10px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    text-align: center;
}

#retry-button {
    background: #FF5722;
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
}

#quiz-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    display: none;
}

/* Ensure the body takes up the full height and is positioned relative */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    overflow: hidden; /* Hide overflow to ensure video doesn't create scrollbars */
    color: #333;
    position: relative; /* This ensures the quiz container can be above the video */
}

/* Styling the video background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#bg-video {
    object-fit: cover; /* Make the video cover the entire screen */
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Quiz container styles */
.quiz-container {
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent background to see the video behind */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 80%;
    max-width: 500px;
    position: relative; /* Ensure quiz content is above video */
    z-index: 2;
}

/* Other styles for text, buttons, etc. remain the same */
h1 {
    font-family: 'Quicksand', sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

#next-button {
    display: none; /* Hide the Next button initially */
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: transform 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

#next-button:hover {
    transform: scale(1.1);
}

#music-toggle-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#toggle-music {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

#toggle-music:hover {
    background-color: #0056b3;
}