html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: linear-gradient(to bottom, rgb(71, 191, 221), rgb(35, 75, 134));
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#gameCanvas {
    display: block;
}


#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: bold;
    color: yellow;
    pointer-events: none;
    text-align: center;
    z-index: 200;
    flex-direction: column;
    text-shadow:
        -4px -4px 0 orange,
        4px -4px 0 orange,
        -4px 4px 0 orange,
        4px 4px 0 orange;
}

#overlay button {
    pointer-events: auto;
}

#restartBtn {
    width: 240px;
    height: 60px;
    font-size: 24px;

}

#control-panel {
    position: absolute;
    right: 0;
    top: 0;
    width: 240px;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
    box-sizing: border-box;
    font-family: sans-serif;
    z-index: 1000;
    display: none;
}

#control-panel button,
#control-panel input,
#control-panel select,
#control-panel p {
    margin: 8px 0;
    width: 100%;
}

#scoreHistory {
    border: 1px solid #ccc;
    padding: 12px;
    margin-top: 12px;
    max-height: 300px;
    overflow-y: auto;
}

#showMenuBtn,
#closeMenuBtn {
    right: 0;
    margin-top: 10px;
    padding: 8px 12px;
    width: 220px;
}