body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

#game-container {
    position: relative;
    border: 2px solid #fff;
}

canvas {
    display: block;
    background-color: #000;
}

#game-ui {
    position: absolute;
    top: 90px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 1.5em;
    pointer-events: none;
}

#back-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    background-color: #333;
    padding: 5px 10px;
    border: 1px solid #fff;
    z-index: 5;
}

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

#start-screen h1 {
    font-size: 4em;
    color: #ff0000;
    margin-bottom: 20px;
}

#start-screen p {
    font-size: 1.2em;
    margin: 5px;
}

#start-button {
    margin-top: 30px;
    padding: 15px 30px;
    font-size: 1.5em;
    background-color: #ff0000;
    color: #fff;
    border: 2px solid #fff;
    cursor: pointer;
}

#game-over-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none; /* Hide by default */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
}

#game-over-screen h1 {
    font-size: 4em;
    color: #ff0000;
    margin-bottom: 20px;
}

#new-game-button {
    margin-top: 30px;
    padding: 15px 30px;
    font-size: 1.5em;
    background-color: #ff0000;
    color: #fff;
    border: 2px solid #fff;
    cursor: pointer;
}
