* {
    margin: 0;
    padding: 0;
  }

body {
    font-family: monospace;
    background-color: black;
}

header {
    color: white;
    font-size: x-large;
    margin: 10px;
    padding: 5px; 
    border-bottom: 1px solid rgb(58, 58, 60);
    display: flex;
    justify-content: center;
    align-items: center;
}

#container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#game {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    width: 100%;
    height: 100%;
}

#board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    grid-gap: 5px;
    padding: 5px;
}

.tile {
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    border: 2px solid grey;
    width: 70px;
    height: 70px;
    color: white;
    font-size: 36px;
    font-weight: bold;
}

#keyboard-container {
    height: 200px;
    padding: 8px, 10px, 8px, 10px;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 2px;
    touch-action: manipulation;
}

.keyboard-row button {
    font-family: monospace;
    border: 0;
    padding: 0;
    height: 58px;
    cursor: pointer;
    background-color: grey;
    color: white;
    text-transform: uppercase;
    margin: 2px;
    border-radius: 4px;
    flex-grow: 1;
    user-select: none;
}


.instructions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.instructions button {
    font-family: monospace;
    font-size: medium;
    border: 0;
    padding: 0;
    height: 50px;
    width: 100px;
    cursor: pointer;
    background-color: grey;
    color: white;
    text-transform: uppercase;
    margin-right: 6px;
    border-radius: 4px;
}

#game-rules {
    height: 50px;
    width: 120px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #d2c8c8;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
