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

body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #70c5ce;
}

/* Game container styling */
#game-container {
    position: relative;
    width: 320px;
    height: 480px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Canvas styling */
#game-canvas {
    display: block;
    background-color: #70c5ce;
    width: 100%;
    height: 100%;
}

/* Screen overlays styling */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 20px;
}

.hidden {
    display: none;
}

/* Text elements styling */
h1, h2 {
    margin-bottom: 20px;
    color: #f8e71c;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
}

p {
    margin-bottom: 15px;
    font-size: 18px;
}

/* Button styling */
button {
    padding: 10px 20px;
    font-size: 18px;
    background-color: #f8e71c;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

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

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

/* Score display styling */
#score-display {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 50px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
    z-index: 10;
    pointer-events: none;
}
