body {
    margin: 0;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: "Courier New", monospace; /* Changed to typewriter font */
    color: green; /* Changed to green */
}

#game-container {
    display: flex;
    background-color: #222;
    border: 5px solid #555;
}

#tetrisCanvas {
    background-color: #000;
    border-right: 2px solid #555;
}

#sidebar {
    width: 180px; /* Increased width to accommodate more info */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align items to the start */
}

#nextPieceCanvas,
#stashedPieceCanvas {
    background-color: #111;
    border: 1px solid #444;
    margin-bottom: 10px; /* Reduced margin for more elements */
}

h2 {
    margin-top: 0;
    margin-bottom: 5px; /* Reduced margin */
}

#controls-display {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

button {
    background-color: #4CAF50;
    color: black;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-top: auto; /* Push button to the bottom */
    font-family: "Courier New", monospace;
}

button:hover {
    background-color: #45a049;
}

#gameOverScreen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: green;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    z-index: 100;
}

#gameOverScreen h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

#gameOverScreen p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

#gameOverScreen button {
    background-color: green;
    color: black;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
}

#gameOverScreen button:hover {
    background-color: #0056b3;
}

.hidden {
    display: none !important;
}