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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to bottom, #87CEEB 0%, #E0F6FF 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 1200px;
    height: 600px;
    background: #E0F6FF;
    border: 4px solid #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

#hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    pointer-events: none;
}

#question-display {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 25px 30px;
    text-align: center;
    border-bottom: 4px solid #FFD700;
}

#question-text {
    font-size: 32px;
    font-weight: bold;
    min-height: 40px;
}

#score-display {
    position: absolute;
    top: 100px;
    right: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 26px;
    font-weight: bold;
}

#answer-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.answer-label {
    position: absolute;
    color: #000;
    font-weight: bold;
    font-size: 18px;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #333;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#start-screen,
#game-over-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    text-align: center;
}

#start-screen h1,
#game-over-screen h2 {
    font-size: 64px;
    margin-bottom: 30px;
    color: #FFD700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

#start-screen p,
#game-over-screen p {
    font-size: 24px;
    margin-bottom: 15px;
}

button {
    margin-top: 30px;
    padding: 20px 50px;
    font-size: 24px;
    font-weight: bold;
    background: #FFD700;
    color: #333;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

button:hover {
    background: #FFA500;
    transform: scale(1.05);
}

button:active {
    transform: scale(0.95);
}

.hidden {
    display: none !important;
}

@media (max-width: 1220px) {
    #game-container {
        width: 100vw;
        height: 100vh;
        border: none;
        border-radius: 0;
    }

    #question-text {
        font-size: 18px;
    }
}
