body {
    margin: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

#gameCanvas {
    display: block;
    background-color: #70c5ce;
}

#scoreContainer {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: bold;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    width: auto;
}

#score, #game-duration {
    margin: 0;
}

#gameTimerContainer {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: bold;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 10;
}

#gameTimer {
    font-size: 24px;
}

#game-over {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    z-index: 20;
}

.hidden {
    display: none;
}

#game-over ul {
    list-style: none;
    padding: 0;
}

#game-over li {
    margin: 5px 0;
}

#adsense-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    text-align: center;
}

button {
    padding: 10px 20px;
    border: none;
    background-color: red;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

button:hover {
    background-color: darkred;
}

/* Welcome Screen */
#welcome-screen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    z-index: 30;
}

#welcome-screen h2 {
    margin-bottom: 10px;
}

#start-button {
    padding: 10px 20px;
    border: none;
    background-color: green;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

#start-button:hover {
    background-color: darkgreen;
}