
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #000;
    overflow-x: hidden;
}

.start-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    z-index: 100;
    pointer-events: none;
    animation: fadeInOut 3s forwards;
    text-align: center;
    transition: opacity 0.5s;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0.7; }
}

#video-container {
    position: relative;
    width: fit-content;
    height: fit-content;
    background-color: #000;
    max-width: 100vw;
    max-height: 90vh;
}

#video-player {
    display: block;
    max-width: 100vw;
    max-height: 90vh;
}

#hotspot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hotspot {
    position: absolute;
    cursor: pointer;
    pointer-events: auto;
    border: 0;
    background-color: 0;
    transition: background-color 0.3s, border-color 0.3s;
}

.hotspot:hover {
    background-color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 1);
}

#controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

#play-pause {
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 20px; 
    margin-right: 10px;
    transition: background-color 0.3s;
}

#play-pause:hover {
    background-color: #ddd;
}

#timeline-slider {
    width: 100%;
    max-width: 80vw;
    height: 10px;
    margin: 0 auto;
    cursor: pointer;
}

#timestamp-display {
    font-size: 14px;
    color: #fff;
    margin-right: 30px;
    margin-left: 10px;
    min-width: 80px;
    text-align: center;
}

/* Enhanced Quiz Styles */
#quiz-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.quiz-popup-content {
    background: linear-gradient(135deg, #2c3e50, #1a2533);
    color: #fff;
    padding: 30px;
    border-radius: 15px;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.3s ease-out;
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.quiz-popup-content h3 {
    margin-top: 0;
    color: #fff;
    font-size: 24px;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.quiz-popup-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 25px 0;
}

.quiz-popup-option {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
    color: #fff;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.quiz-popup-option:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3498db;
    opacity: 0;
    transition: opacity 0.3s;
}

.quiz-popup-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.quiz-popup-option:hover:before {
    opacity: 1;
}

.quiz-popup-option.correct {
    background: rgba(46, 204, 113, 0.2);
    border-color: rgba(46, 204, 113, 0.5);
    color: #fff;
    animation: correctPulse 1s;
}

.quiz-popup-option.correct:before {
    background: #2ecc71;
    opacity: 1;
}

@keyframes correctPulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.quiz-popup-option.incorrect {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.5);
    color: #fff;
    animation: incorrectShake 0.5s;
}

.quiz-popup-option.incorrect:before {
    background: #e74c3c;
    opacity: 1;
}

@keyframes incorrectShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.quiz-popup-result {
    margin: 15px 0;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    transform: scale(0);
    animation: popIn 0.5s forwards;
}

@keyframes popIn {
    0% { transform: scale(0); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.quiz-popup-result .correct {
    color: #2ecc71;
    font-weight: bold;
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
}

.quiz-popup-result .incorrect {
    color: #e74c3c;
    font-weight: bold;
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
}

.quiz-popup-result p {
    margin-top: 15px;
    opacity: 0.9;
}

.quiz-popup-continue {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    cursor: pointer;
    margin: 15px auto 5px;
    transition: all 0.3s;
    display: block;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.quiz-popup-continue:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(52, 152, 219, 0.6);
}

.quiz-popup-continue:active {
    transform: translateY(1px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .quiz-popup-content {
        max-width: 95%;
        padding: 20px;
    }
    
    .quiz-popup-content h3 {
        font-size: 20px;
    }
    
    .quiz-popup-option {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    #controls {
        padding: 5px;
    }
    
    #play-pause {
        margin-left: 5px;
        margin-right: 5px;
        padding: 5px 10px;
        font-size: 12px;
    }
    
    #timestamp-display {
        font-size: 12px;
        margin-right: 5px;
        margin-left: 5px;
        min-width: 60px;
    }
    
    .mobile-view #video-player {
        width: 100vw;
    }
}