body {
    background-color: #111;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Press Start 2P', cursive;
}

#game-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

h1 {
    color: #f0f0f0;
    text-shadow: 2px 2px #555;
    margin: 0;
}

#game-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.side-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 140px;
}

.panel-box {
    background-color: #222;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
}

.panel-box h2 {
    font-size: 12px;
    color: #aaa;
    margin-top: 0;
    margin-bottom: 10px;
}

.panel-box p {
    font-size: 14px;
    margin: 0;
    color: #fff;
}

.main-screen {
    position: relative;
    background-color: #000;
    border: 4px solid #333;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

canvas {
    display: block;
}

#hold-canvas, #next-canvas {
    background-color: transparent;
    margin: 0 auto;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.overlay.hidden {
    display: none;
}

.overlay h2 {
    color: #ff3333;
    margin-bottom: 20px;
    font-size: 20px;
    text-shadow: 2px 2px #000;
    text-align: center;
    line-height: 1.5;
}

#start-screen h2 {
    color: #4CAF50;
}

button {
    font-family: 'Press Start 2P', cursive;
    background-color: #4CAF50;
    color: white;
    border: 2px solid #fff;
    padding: 10px 20px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.1s, background-color 0.2s;
}

button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

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

.controls-help p {
    font-size: 9px;
    line-height: 1.8;
    text-align: left;
    color: #ccc;
}