body {
    font-family: 'Press Start 2P', cursive;
    /* cursor: pointer; */
    background-color: #fff;
}

h1 {
    text-align: center;
    color: #1b1e52;
    text-shadow: 2px 5px 2px #a0aad1;
}

canvas {
    border: 5px solid black;
    border-radius: 5px;
    background-color: #9bbc0f;
    width: 100%;
    cursor: pointer;
}

footer {
    text-align: center;
    color: #1b1e52;
    text-shadow: 2px 3px 2px #a0aad1;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #bdbcbc;
    padding: 20px;
    width: 75%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 15px;
    box-shadow: 2px 2px 2px black;
}

#score {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2em;
    font-weight: 900;
    text-shadow: 2px 3px 2px #dddedb;
}

#introduction {
    position: absolute;
}

#restart {
    background-color: #7e0a44;
    color: white;
    box-shadow: 1px 1px 4px 0px #555;
    border: 0;
    padding: 0.25rem 0.75rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
}

#pauseButton {
    background-color: #7e0a44;
    color: white;
    box-shadow: 1px 1px 4px 0px #555;
    border: 0;
    padding: 0.25rem 0.75rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
}

#resumeButton {
    background-color: #7e0a44;
    color: white;
    box-shadow: 1px 1px 4px 0px #555;
    border: 0;
    padding: 0.25rem 0.75rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
}

#menu {
    background-color: white;
    color: black;
    padding: 1.5rem;
    text-align: center;
    position: absolute;
    z-index: 5;
    border-radius: 10px;
    box-shadow: 2px 2px 2px 2px black;
}

#menu p {
    margin: 0 0 1rem 0;
}

#menu input {
    display: block;
    margin: 0 auto 1rem;
}

#menuStartGame {
    background-color: #7e0a44;
    color: white;
    box-shadow: 1px 1px 4px 0px #555;
    border: 0;
    padding: 0.25rem 0.75rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
}

html,
body {
    height: 100%;
    margin: 0;
}


.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#score {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2em;
    font-weight: 900;
}

#introduction {
    width: 200px;
    height: 150px;
    position: absolute;
    font-weight: 600;
    font-size: 0.8em;
    text-align: center;
    transition: opacity 2s;
    pointer-events: none;
}

#leaderboard {
    background-color: white;
    color: black;
    padding: 2%;
    display: none;
    text-align: center;
    position: absolute;
    z-index: 5;
    border-radius: 10px;
    box-shadow: 2px 2px 2px black;
}

#leaderboardTitle {
    margin: 0 0 1.25rem;
}

#leaderboardScore {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 0.75rem;
}

#perfect {
    position: absolute;
    opacity: 0;
    transition: opacity 2s;
}

#pauseScreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10; /* Ensure it's above other elements */
    color: white;
    font-size: 2em;
}

#saveButton, #newGame, #loadGame {
    background-color: #7e0a44;
    color: white;
    box-shadow: 1px 1px 4px 0px #555;
    border: 0;
    padding: 0.25rem 0.75rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
}

#newGame {
    margin-left: auto;
    margin-right: auto;
    left: 44%;
}

#loadGame {
    margin-right: auto;
    margin-left: auto;
    left: 51%;
}

#loadGameMenu {
    background-color: white;
    color: black;
    padding: 1.5rem;
    text-align: center;
    position: absolute;
    z-index: 5;
    border-radius: 10px;
    box-shadow: 2px 2px 2px 2px black;
}

.selection{
    font-size: 14px;
}