body {
    background-color: #73c8a9;
    font-family: 'Press Start 2P', cursive;
    background-image: linear-gradient(to right, #73c8a9, #373b44);
}

h1::selection {
    background: inherit;
    color: inherit;
}

button {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    line-height: normal;
    overflow: visible;
    text-align: left;
    cursor: pointer;
    outline: none;
  }

button .mute-toggle-btn {
    background: inherit;
    color: inherit;
    border: none;
}

h1{
    text-align: center;
}

#audio-toggle {
    cursor: pointer;
    text-align: center;
    font-size: 2.5rem;
}

#audio-toggle::selection {
    text-decoration: none;
    background: inherit;
    color: inherit;
}

canvas {
    border: 5px solid #2e2e2e;
    border-radius: 10px;
    display: block;
    margin: 20px auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-image: url('assets/playground.png');
    background-size: cover;
    background-repeat: no-repeat;
    /* we will make the end menu overlap the game canvas, so we need here a lower z-index */
    z-index: 1;
}

.backdrop-blur {
    filter: blur(5px);
}

#end-menu {
    /* we will toggle then the display of the end-menu */
    display: none;
    margin: 50px auto;
    width: 200px;
    padding: 20px;
    text-align: center;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: absolute;
    left: 50%;
    transform: translate(-50%, 50%);
    z-index: 1000;
}

#score-display {
    color: #fff;
    font-size: 2em;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.audio-setting {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn {
    background-color: #2e2e2e;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: 1em;
    padding: 15px 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
}

btn:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.instrcution {
    text-align: right;
    margin-right: 20%;
}

.key-w, .key-space {
    border: #2e2e2e 1px solid;
    background: grey;
    padding: 4px;
}