body {
    margin: 0;
    padding: 0;
    background: #000;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 800px;
    height: 600px;
    margin: 20px auto;
    border: 2px solid #333;
}

#gameCanvas {
    background: #87CEEB;
    display: block;
}

#game-ui {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    font-size: 18px;
    text-shadow: 2px 2px 2px black;
}

#game-ui div {
    margin-bottom: 5px;
}

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

#start-screen h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

#start-screen p {
    font-size: 24px;
    margin-bottom: 30px;
}

button {
    padding: 15px 30px;
    font-size: 20px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #ff6666;
}

#controls {
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

#controls h3 {
    margin-bottom: 10px;
}

#controls p {
    margin: 5px 0;
    font-size: 16px;
}

#virtual-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: none;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.control-button {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px;
    font-size: 24px;
    color: white;
    user-select: none;
    cursor: pointer;
}

.control-button:active, .control-button.active {
    background-color: rgba(255, 255, 255, 0.6);
}

.control-row {
    display: flex;
}

#debug-panel {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    font-size: 12px;
    font-family: monospace;
    max-width: 300px;
    max-height: 100px;
    overflow: auto;
}

#key-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    font-size: 12px;
    font-family: monospace;
}
