/* Custom Styles - Mostly for elements that need specific positioning or overrides */

/* Video container with captions overlay */
.video-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #000;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 4px solid #000;
}

#video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.captions-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 500;
    border-top: 4px solid #000;
}

/* Recording indicator animation */
.recording-dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    background-color: #ef4444;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.recording-dot.hidden {
    display: none;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        opacity: 1;
    }
}

/* Custom component styling */
.question-display {
    background: white;
    border: 4px solid #000;
    border-radius: 0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 500;
    box-shadow: 8px 8px 0 0 #000;
}

.question-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* 90s Nickelodeon Style Buttons */
.nickelodeon-btn {
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 12px 24px;
    background: #ffcc00;
    color: #000;
    border: 4px solid #000;
    border-radius: 0;
    box-shadow: 8px 8px 0 0 #000;
    transition: all 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nickelodeon-btn:hover {
    background: #ffd700;
    transform: translate(2px, 2px);
    box-shadow: 6px 6px 0 0 #000;
}

.nickelodeon-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 4px 4px 0 0 #000;
}

.nickelodeon-btn:disabled {
    background: #cccccc;
    color: #666666;
    box-shadow: 8px 8px 0 0 #666666;
    transform: none;
}

.nickelodeon-btn-green {
    background: #39ff14;
}

.nickelodeon-btn-red {
    background: #ff0000;
}

.nickelodeon-btn-blue {
    background: #1f75fe;
}

/* Recording controls */
.recording-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.recording-status {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
}

/* Recording item styling */
.recording-item {
    background: white;
    border: 4px solid #000;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 8px 8px 0 0 #000;
    transition: transform 0.1s ease;
}

.recording-item:hover {
    transform: translate(2px, 2px);
    box-shadow: 6px 6px 0 0 #000;
}

.recording-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 4px solid #000;
}

.recording-info {
    padding: 1rem;
}

.recording-info h3 {
    margin-bottom: 0.5rem;
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', sans-serif;
}

.recording-info p {
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.recording-actions {
    display: flex;
    gap: 0.5rem;
}

/* Camera selector */
#camera-select {
    border: 4px solid #000;
    border-radius: 0;
    box-shadow: 4px 4px 0 0 #000;
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', sans-serif;
    font-weight: bold;
}

#refresh-cameras {
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    padding: 8px 16px;
    background: #1f75fe;
    color: white;
    border: 4px solid #000;
    border-radius: 0;
    box-shadow: 6px 6px 0 0 #000;
}

#refresh-cameras:hover {
    background: #3385ff;
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0 0 #000;
}

/* Header */
header {
    border-bottom: 4px solid #000;
    box-shadow: 0 8px 0 0 rgba(0, 0, 0, 0.2);
}

/* Sections */
section {
    border: 4px solid #000;
    border-radius: 0;
    box-shadow: 8px 8px 0 0 #000;
    margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-container {
        height: 300px;
    }
    
    .recording-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .question-controls {
        flex-direction: column;
        align-items: center;
    }
    
    #recordings-list {
        grid-template-columns: 1fr;
    }
    
    .nickelodeon-btn {
        width: 100%;
        max-width: 300px;
    }
}
