body {
    margin: 0;
    padding: 0;
    background-color: #87CEEB; /* Light sky blue */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', sans-serif;
    color: white;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: 450px; /* Good for mobile portrait */
    max-height: 800px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    overflow: hidden;
    background-color: #a7d3f0;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #78c045; /* Grass green */
}

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

.screen {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2em;
    border-radius: 20px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    pointer-events: all;
    backdrop-filter: blur(5px);
}

#level-complete-screen {
    display: flex;
    flex-direction: column;
    align-items: center; /* centraliza horizontalmente */
}


.screen h1 {
    margin-top: 0;
    font-size: 2.5em;
    color: #FFD700;
}

.screen p {
    font-size: 1.2em;
    margin-bottom: 1.5em;
}

button {
    padding: 0.8em 2em;
    font-size: 1.2em;
    border-radius: 50px;
    border: 3px solid white;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    transition: transform 0.1s;
    pointer-events: all;
}

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

#hud {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 1.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    pointer-events: none;
}

