body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

#game-container {
    width: 100%;
    height: 100%;
}

#ui-container {
    position: fixed;
    top: 10px;
    left: 10px;
    color: white;
    font-size: 18px;
}

#copyright {
    position: fixed;
    bottom: 10px;
    left: 10px;
    color: white;
    font-size: 12px;
}

#game-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
}

.horizontal-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.control-btn {
    width: 60px;
    height: 60px;
    font-size: 24px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
    border-radius: 8px;
    margin: 2px;
    touch-action: manipulation;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    color: white;
}

.control-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.control-btn:active {
    background-color: rgba(161, 158, 158, 0.9);
}

#up-btn {
    margin-bottom: 2px;
}

#down-btn {
    margin-top: 2px;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    z-index: 1000;
}

#start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#start-btn, #reset-btn, #settings-btn {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    margin: 10px;
}

#menu-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
}

#menu {
    position: fixed;
    top: 50px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 5px;
    display: none;
}

@media (max-width: 768px) {
    #game-controls {
        bottom: 10px;
        right: 10px;
    }

    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
