body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}

.container {
    width: 400px;
    text-align: center;
    margin: 0 auto;
    padding: 20px;
}

.menu-button {
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 2;
    background-color: transparent;
    border: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 50px;
    left: 10px;
    background-color: #111;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 3;
    width: 150px;
}

.dropdown-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu ul li {
    border-bottom: 1px solid #333;
}

.dropdown-menu ul li:last-child {
    border-bottom: none;
}

.dropdown-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 12px 15px;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-menu ul li a:hover {
    background-color: #575757;
    color: #fff;
}

#game-board {
    display: grid;
    grid-template-columns: repeat(5, 60px);
    grid-template-rows: repeat(6, 60px);
    gap: 10px;
    margin: 20px 0;
}

.letter-box {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #ccc;
    font-size: 24px;
    background-color: #fff;
    text-transform: uppercase;
}

.green {
    background-color: #6aaa64;
    color: white;
}

.yellow {
    background-color: #c9b458;
    color: white;
}

.gray {
    background-color: #787c7e;
    color: white;
}

input, button {
    margin: 5px;
    padding: 10px;
    font-size: 16px;
}

.controls {
    margin-top: 20px;
}

#invalid-message {
    color: red;
    font-size: 18px;
    margin-bottom: 10px;
    opacity: 0;
    transition: opacity 1s ease-out;
}

#invalid-message.show {
    opacity: 1;
}

#keyboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    margin: 5px 0;
}

.key {
    width: 40px;
    height: 40px;
    margin: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #eee;
    font-size: 18px;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hint-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: none;
    width: 300px;
    text-align: center;
}

.hint-popup.show {
    display: block;
}

.close-button {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #333;
}