body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    width: 100%;
    font-family: sans-serif;
    background-color: transparent; /* Make body transparent */
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    /* background color is now handled by the script to fill the canvas */
}

#exclamation {
    position: absolute;
    color: red;
    font-size: 32px;
    font-weight: bold;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    pointer-events: none;
    z-index: 10;
}

#end-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 2em;
    z-index: 20;
}

#restart-button {
    font-size: 0.8em;
    padding: 10px 20px;
    margin-top: 20px;
    cursor: pointer;
    border: 2px solid white;
    background-color: #4CAF50;
    color: white;
    border-radius: 8px;
}
