/* ANNOTATION: Basic reset for styles and setting the horror theme background. */
body {
    margin: 0;
    font-family: 'Courier New', Courier, monospace; /* Classic digital/tech font */
    background-color: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden; /* Prevents scrollbars */
}

/* ANNOTATION: The main container holds our video and overlay. We use aspect-ratio to maintain a 16:9 video shape. */
#game-container {
    position: relative;
    width: 90vw;
    max-width: 1280px;
    aspect-ratio: 16 / 9;
    background-color: #111;
}

/* ANNOTATION: The video feed should fill the container completely. */
#camera-feed {
    width: 100%;
    height: 100%;
    display: block;
}

/* ANNOTATION: The overlay sits directly on top of the video. `pointer-events: none;` allows clicks to go through to elements underneath if needed. */
#camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    padding: 1.5em;
    box-sizing: border-box;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.top-hud, .bottom-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
}

/* ANNOTATION: A simple blinking animation for the REC indicator to make it feel live. */
#rec-indicator {
    color: #ff0000;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ANNOTATION: Styles for the clickable prompt that appears after a video clip ends. */
#interaction-prompt {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px 25px;
    border-radius: 5px;
    border: 1px solid #444;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.3s ease;
}

/* ANNOTATION: A utility class to easily hide/show elements. */
.hidden {
    opacity: 0;
    pointer-events: none;
}