body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #222;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

#game-container {
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

canvas {
    background: linear-gradient(to bottom, #00b4db, #0083b0);
    display: block;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#start-screen, #game-over-screen {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    pointer-events: auto;
}

.hidden {
    display: none !important;
}

button {
    background-color: #f1c40f;
    border: none;
    color: #333;
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
    transition: transform 0.1s;
}

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

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

#score-display {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
