* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
}

.container {
    width: 100%;
    height: 100vh;
    position: relative;
}

.header {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.instructions {
    font-size: 1.1em;
    margin-bottom: 10px;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.red-text {
    color: #ff6b6b;
    font-weight: bold;
}

.blue-text {
    color: #4dabf7;
    font-weight: bold;
}

.score {
    font-size: 1.8em;
    font-weight: bold;
    display: flex;
    justify-content: center;
    gap: 40px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 30px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.game-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

#video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scaleX(-1); /* Mirror the video */
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scaleX(-1); /* Mirror the canvas */
}

#status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 1.2em;
    text-align: center;
    pointer-events: none;
}

#status.hidden {
    display: none;
}
