body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #1a1a2e;
    font-family: 'Arial', sans-serif;
    color: white;
    overflow: hidden;
}

#game-container {
    position: relative;
    border: 3px solid #0f3460;
    box-shadow: 0 0 20px #e94560;
}

#ui-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none; /* Allow clicks to pass through to canvas */
}

#score-container {
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    display: flex;
    justify-content: space-between;
}

#start-screen, #game-over-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 46, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    pointer-events: all; /* Capture clicks on this screen */
}

#start-screen.hidden, #game-over-screen.hidden {
    display: none;
}

h1 {
    font-size: 72px;
    color: #e94560;
    text-shadow: 0 0 15px #e94560;
    margin: 0;
}

p {
    font-size: 24px;
    margin-top: 10px;
}

button {
    margin-top: 30px;
    padding: 15px 30px;
    font-size: 24px;
    color: white;
    background-color: #16213e;
    border: 2px solid #0f3460;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 0 10px #e94560;
}

button:hover {
    background-color: #e94560;
    border-color: #e94560;
    transform: scale(1.05);
}

canvas {
    display: block;
    background-color: #1a1a2e;
}

