* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #ffffff;
}

.game-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

header {
    margin-bottom: 20px;
}

#board {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 30px;
}

.row {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.tile {
    width: 60px;
    height: 60px;
    border: 2px solid #d3d6da;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

#keyboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.key {
    background-color: #d3d6da;  /* Light grey for unused keys */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    min-width: 40px;
    height: 58px;
    padding: 0 8px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.key:hover {
    filter: brightness(0.9);  /* Darken slightly on hover */
}

.key.wide {
    min-width: 65px;
}

/* Add new animation classes */
@keyframes flip {
    0% {
        transform: rotateX(0);
        background-color: white;
    }
    45% {
        transform: rotateX(90deg);
        background-color: white;
    }
    55% {
        transform: rotateX(90deg);
    }
    100% {
        transform: rotateX(0);
    }
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(5px); }
    50% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

@keyframes pop {
    0% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.1);
    }
    100% { 
        transform: scale(1);
    }
}

.tile.flip {
    animation: flip 0.5s ease;
    transform-style: preserve-3d;
}

.tile.shake {
    animation: shake 0.5s ease;
}

.tile.pop {
    animation: pop 0.1s ease;
}

.row.shake {
    animation: shake 0.5s ease;
}

/* Add these styles for the message overlay */
.message-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.message-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 23px 0 rgba(0, 0, 0, 0.2);
    animation: pop-in 0.3s ease-in;
}

.message-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.message-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #3a3a3c;
}

.message-content button {
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.message-content button:hover {
    filter: brightness(0.9);
}

@keyframes pop-in {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hidden {
    display: none;
} 