/* Custom styles for the chemistry experiment page */
.video-container {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.experiment-video {
    transition: all 0.3s ease;
    background-color: #000;
}

.experiment-video:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Video loading state */
.experiment-video:not([data-loaded="true"]) {
    background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                      linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                      linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: loading-pattern 0.5s linear infinite;
}

@keyframes loading-pattern {
    0% {
        background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    }
    100% {
background-position: 20px 20px, 20px 30px, 30px 10px, 10px 20px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom button hover effects */
button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-1px);
}

/* Progress indicator for sequential playback */
.progress-indicator {
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .experiment-video {
        height: 200px !important;
    }
}

/* Scene indicator styles */
.scene-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

/* Animation for active video */
.active-video {
    border: 3px solid #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Fade-in animation for containers */
.video-container {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.video-container:nth-child(1) { animation-delay: 0.1s; }
.video-container:nth-child(2) { animation-delay: 0.2s; }
.video-container:nth-child(3) { animation-delay: 0.3s; }
.video-container:nth-child(4) { animation-delay: 0.4s; }
.video-container:nth-child(5) { animation-delay: 0.5s; }
.video-container:nth-child(6) { animation-delay: 0.6s; }
.video-container:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
