body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #70c5ce;
    font-family: Arial, sans-serif;
    overflow: hidden;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

#game-container {
    position: relative;
    width: 400px;
    height: 600px;
    overflow: hidden;
    background-color: #70c5ce;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

#game-canvas {
    position: absolute;
    top: 0;
    left: 0;
}

#wd{
    display: none;
}

#start-screen, #game-over-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.5);
    z-index: 10;
    color: white;
}

#game-over-screen {
    display: none;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px #000;
}

#pausebt{
    background-color: #f8d347;
    color: #000;
    position: absolute;
    top: 1.6%;
    left: 3%;
    z-index: 100;
}

button {
    padding: 10px 20px;
    font-size: 1.2em;
    background-color: #f8d347;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
}

button:active {
    transform: scale(0.95);
}

#score-display {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 2em;
    color: white;
    text-shadow: 2px 2px 4px #000;
    z-index: 5;
}

#theme-toggle {
    position: absolute;
    top: 8.1%;
    left: 3%;
    padding: 8px 15px;
    font-size: 0.9em;
    z-index: 5;
    background-color: #333;
    color: white;
}

.instructions {
    margin-top: 20px;
    text-align: center;
    font-size: 1.1em;
    max-width: 80%;
}

/* Night mode styles */
.night-mode {
    background-color: #0a0a2a;
}

.night-mode #game-container {
    background-color: #0a0a2a;
}

/* Mobile styles */
@media (max-width: 480px) {
    #game-container {
        width: 100vw;
        height: 100vh;
        box-shadow: none;
    }

    h1 {
        font-size: 2em;
    }

    button {
        padding: 8px 16px;
        font-size: 1em;
    }

    .instructions {
        font-size: 0.9em;
    }
}

@media (max-height: 700px) {
    #game-container {
        height: 100vh;
    }
}