/* Import font */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;600&display=swap');

/* Basic styling for full-screen video and overlay */
body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    height: 100vh;
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

/* Fullscreen video */
#videoPlayer {
    position: absolute;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    transition: opacity 0.1s ease;
}

/* Overlay for the middle section */
.overlay {
    position: absolute;
    top: 0;
    left: 33.33%;
    width: 33.33%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgba(220, 240, 255, 0.9);
    font-size: 22px;
    text-align: center;
    z-index: 1;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(15, 198, 223, 0.5);
    box-sizing: border-box;
}

/* Start button */
#startButton {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 60px;
    font-size: 24px;
    cursor: pointer;
    background-color: transparent;
    border: 2px solid rgba(15, 198, 223, 0.6);
    color: rgba(220, 240, 255, 0.9);
    z-index: 2;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(15, 198, 223, 0.2);
    animation: pulse 2s infinite;
}

#startButton:hover {
    background-color: rgba(15, 198, 223, 0.2);
    border-color: rgba(15, 198, 223, 0.8);
    box-shadow: 0 0 30px rgba(15, 198, 223, 0.6);
    animation: none;
}

/* Pulse animation */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 15px rgba(15, 198, 223, 0.2);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 0 30px rgba(15, 198, 223, 0.4);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 15px rgba(15, 198, 223, 0.2);
    }
}

/* Question container */
#questionContainer {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Question text styling */
#questionText {
    margin-bottom: 20px;
    line-height: 1.4;
    text-shadow: 0 0 10px rgba(15, 198, 223, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Question title */
.question-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: rgba(15, 198, 223, 0.9);
    text-shadow: 0 0 15px rgba(15, 198, 223, 0.4);
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Button container for horizontal layout */
.button-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    width: 100%; /* Take full width of parent (which is the overlay at 33.33%) */
    padding: 0 20px; /* Add some padding on sides */
    box-sizing: border-box;
}

/* Answer buttons */
.answerButton {
    padding: 6px 6px;
    font-size: 18px;
    cursor: pointer;
    background-color: rgba(15, 198, 223, 0.1);
    border: 1px solid rgba(15, 198, 223, 0.6);
    color: rgba(220, 240, 255, 0.9);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
    backdrop-filter: blur(5px);
    flex: 1; /* Allow buttons to share available space equally */
    min-width: 0; /* Remove min-width to allow flexbox to control size */
    max-width: calc(50% - 10px); /* Ensure buttons don't get too wide */
    margin: 0;
}

.answerButton:hover {
    background-color: rgba(15, 198, 223, 0.6);
    border-color: rgba(15, 198, 223, 0.8);
    box-shadow: 0 0 15px rgba(15, 198, 223, 0.3);
}

/* Countdown text */
.countdown-text {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(220, 240, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
    font-weight: 300;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 10;
}

.countdown-text.visible {
    opacity: 1;
}

#questionContainer.visible {
    display: flex;
}

.cheat-sheet {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(15, 198, 223, 0.6);
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
    font-size: 14px;
    cursor: pointer;
    z-index: 3;
    text-align: center;
    transition: opacity 0.3s ease;
}

.toggle-text {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.toggle-text:hover {
    opacity: 1;
}

.endings-content {
    margin-top: 10px;
    font-size: 12px;
    text-align: center;
}

.endings-content p {
    margin: 5px 0;
    opacity: 0.8;
}

p {
    color: #FFFFFF;
    padding-top: 100px;
}