body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #228B22; /* Forest Green (Land) */
    font-family: 'Comic Sans MS', 'Chalkboard SE', sans-serif; /* Cartoonish font */
    touch-action: none; /* Prevent default touch actions like scrolling */
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

#ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#score {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    color: white;
    text-shadow: 2px 2px 0px #000;
    font-weight: bold;
}

#gameOver {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    pointer-events: auto;
    border: 5px solid #333;
}

#mainMenu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #87CEEB; /* Sky blue background for menu */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#mainMenu h1 {
    font-size: 60px;
    color: #fff;
    text-shadow: 4px 4px 0px #000;
    margin-bottom: 50px;
}

.hidden {
    display: none !important;
}

h1 {
    color: #333;
    margin-top: 0;
}

button {
    background: #ffcc00;
    border: 3px solid #333;
    padding: 15px 30px;
    font-size: 24px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: transform 0.1s;
    margin: 10px;
}

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