h1 {
    text-align: center;
}

#game-board {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.letter-box {
    border: 2px solid black;
    border-radius: 3px;
    margin: 2px;
    font-size: 2.5rem;
    font-weight: 700;
    height: 3rem;
    width: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
}

.filled-box {
    border: 2px solid black;
}

.letter-row {
    display: flex;
}

#keyboard-cont {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#keyboard-cont div {
    display: flex;
}

#second-row {
    margin: 0.5rem 0;
}

.key {
    font-size: 1rem;
    font-weight: 700;
    padding: 0.5rem;
    margin: 0 2px;
    cursor: pointer;
    text-transform: uppercase;
}

#mp-rematch {
    display: none;
}

#mp-leave {
    display: none;
}

#mp-restart {
    display: none;
    margin: 1rem auto;
}

#settings-dialog {
    width: min(420px, calc(100vw - 64px));
    max-height: calc(100vh - 64px);
    box-sizing: border-box;
    overflow-y: auto;

    padding: 28px;
    margin: auto;

    background: white;
    color: #222;
    border: none;
    border-radius: 12px;

    box-shadow: 0 12px 40px rgb(0 0 0 / 20%);
    font-family: Arial, sans-serif;
}

/* The layer covering the page behind the dialog */
#settings-dialog::backdrop {
    background: rgb(160 160 160 / 55%);
}

#settings-dialog h2 {
    margin-top: 0;
    text-align: center;
}

#settings-dialog .slider-container {
    margin: 20px 0;
}

#settings-dialog input[type="range"] {
    width: 100%;
}

.settings-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.settings-buttons button {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f3f3f3;
    font-size: 1rem;
    cursor: pointer;
}

.settings-buttons button:hover {
    background: #e3e3e3;
}

.github-link {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: #0366d6;
    text-decoration: none;
}

.github-link:hover {
    text-decoration: underline;
}
    