body {
    background: var(--default);
    font-family: Georgia, serif;
}

:root {
    --default: #121213;
    --empty: #383636;
    --wrong: #867c30;
    --right: #387d15;
}

header {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 20px;
}

h1 {
    font-size: 55px;
    color: white;
}

h2 {
    font-size: 35px;
    color: white;
}

#instructions {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    color: #333;
}

#instructions h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

#instructions p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

#instructions ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

#instructions ul li {
    margin-bottom: 5px;
}

#instructions ul li .box {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.start-button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.start-button-container button {
    width: 150px; /* Adjust button width as needed */
    height: 40px;
    font-size: 16px;
    border-radius: 4px;
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    cursor: pointer;
}

#game {
    display: grid;
    place-items: center;
    width: 100%;
    height: 600px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(5, 60px); /* Adjust based on your design */
    gap: 10px; /* Adjust spacing between boxes */
}

.box {
    width: 60px;
    height: 60px;
    border: 2px solid;
    margin: 5px;
    color: white;
    text-transform: uppercase;
    display: grid;
    place-items: center;
    font-family: Georgia, serif;
    font-size: 25px;
}

.box.empty {
    background: var(--empty);
}

.box.right {
    background: var(--right);
}

.box.wrong {
    background: var(--wrong);
}

.keyboard {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.keyboard button {
    width: 40px;
    height: 40px;
    margin: 5px;
    font-size: 16px;
    border-radius: 4px;
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    cursor: pointer;
}

#deleteBtn, #submitBtn {
    width: 80px;
    height: 40px;
    margin: 5px;
    font-size: 16px;
    border-radius: 4px;
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    cursor: pointer;
}

.win-message {
    font-size: 24px;
    font-weight: bold;
    color: green;
    text-align: center;
    margin-top: 20px;
}

.lose-message {
    font-size: 24px;
    font-weight: bold;
    color: rgb(232, 0, 0);
    text-align: center;
    margin-top: 20px;
}

.restart-button {
    width: 80px;
    height: 40px;
    margin: 5px;
    font-size: 20px;
    border-radius: 4px;
    background-color: #387d15;
    border: 1px solid #ccc;
    cursor: grabbing;
}

.invalid-message {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 100;
}