@font-face {
    font-family: 'PressStart2P';
    src: url('PressStart2P-Regular.ttf') format('truetype');
}

body {
    font-family: 'PressStart2P', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #9bbc0f; /* Game Boy green */
    margin: 0; /* Remove default body margin */
}

#tetris {
    border: 4px solid #306230; /* Darker green border */
    background-color: #0f380f; /* Darkest green background */
    image-rendering: pixelated; /* Ensure pixelated rendering */
}

#start-menu, #end-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(48, 98, 48, 0.85); /* Dark green with opacity */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #e0f8cf; /* Light green text */
    z-index: 10;
    image-rendering: pixelated;
}

#end-screen {
    display: none; /* Initially hidden */
}

#start-menu > button, #end-screen > button {
    padding: 10px 20px;
    font-size: 0.8em;
    cursor: pointer;
    margin-top: 0.5rem;
    background-color: #306230;
    color: #e0f8cf;
    border: 2px solid #e0f8cf;
    image-rendering: pixelated;
}

#instructions {
  margin-top: 10px;
  text-align: center;
  font-size: 0.6em;
}

#score-container, #level-container {
    position: absolute; /* Position absolutely */
    top: 10px; /* Position at the top */
    left: 10px;
    font-size: 0.6em; /* Reduce font size */
    color: #306230;
    z-index: 1; /* Ensure it's above the canvas */
    background-color: rgba(224, 248, 207, 0.8); /* Add a semi-transparent background */
    padding: 5px;
    border: 1px solid #306230;
}

#level-container {
    top: 40px; /* Position below the score */
}

h1 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
}