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

#game-description {
    margin: 10px 0;
    text-align: center;
    color: #555;
}

#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#grid-container {
    display: grid;
    grid-template-columns: repeat(10, 40px); /* Adjust size as needed */
    grid-template-rows: repeat(10, 40px);    /* Adjust size as needed */
    border: 2px solid #333;
    background-color: #fff;
}

.grid-cell {
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-transform: uppercase;
    background-color: #777;
    color: #777; /* Hide text by matching background color */
}

.grid-cell.revealed {
    background-color: #fff;
    color: #000; /* Show text */
}

.grid-cell.valid {
    background-color: lightgreen;
}

#letter-bank {
    display: flex;
    gap: 10px;
}

.letter-button {
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
}

#word-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

#word-input {
    padding: 10px;
    font-size: 18px;
    text-align: center;
    text-transform: uppercase;
}

#clear-message {
    font-size: 48px;
    font-weight: bold;
    color: #4CAF50;
    padding: 20px;
    border: 4px solid #4CAF50;
    border-radius: 10px;
    background-color: white;
}

.hidden {
    display: none;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
  20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.shake {
  animation: shake 0.5s;
}
