body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

h2 {
    color: #333;
    margin-top: 10px;
    margin-bottom: 10px;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    background-color: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.score-container, .timer-container {
    font-size: 20px;
    font-weight: bold;
}

#score {
    color: #4CAF50;
}

#timer {
    color: #f44336;
}

.video-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

video, canvas {
    width: 100%;
    display: block;
    transform: scaleX(-1); /* Mirror view */
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
}

#item-prompt {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
    z-index: 10;
    transform: translateY(-50%);
}

#gesture-result {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

#reset-game {
    background-color: #f44336;
}

#reset-game:hover {
    background-color: #d32f2f;
}

.instructions {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.instructions p {
    margin: 10px 0;
    font-size: 16px;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    #item-prompt {
        font-size: 36px;
    }
    
    #gesture-result {
        font-size: 24px;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    button {
        width: 100%;
        max-width: 200px;
    }
} 