body {
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}

hr {
    width: 500px;
}

#title {
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 2px;
}

#board {
    width: 350px;
    height: 420px;
    margin: 0 auto;
    margin-top: 3px;
    display: flex;
    flex-wrap: wrap;
}

.tile {
    /* Box */ 
    border: 2px solid lightgray;
    width: 60px;
    height: 60px;
    margin: 2.5px;

    /* Text */
    color: black;
    font-size: 36px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tile.correct, .key-tile.correct {
    background-color: #6aaa64;
    color: white;
    border-color: white;
}

.tile.present, .key-tile.present {
    background-color: #c9b458;
    color: white;
    border-color: white;
}

.tile.absent, .key-tile.absent {
    background-color: #787c7e;
    color: white;
    border-color: white;
}

.tile.flip {
    animation: flip 0.5s ease;
}

@keyframes flip {
    0% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0);
    }
    100% {
        transform: scaleY(1);
    }
}

#keyboard {
    width: 100%;
    max-width: 500px; /* Adjust for optimal width */
    margin: 30px auto 0 auto; /* Add some space above the keyboard */
}

.keyboard-row {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 5px auto;
}

.key-tile {
    width: 40px;
    height: 58px;
    margin: 2px;
    border: 1px solid lightgray;
    border-radius: 4px;

    /* Text */
    font-size: 1em;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    background-color: #d3d6da;
    touch-action: manipulation; /* Add this line */
}

.key-tile.wide-key {
    width: 70px;
}

#play-again-button {
    display: none; /* Hidden by default */
    margin: 20px auto; /* This centers the button */
    padding: 10px 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid lightgray;
    border-radius: 8px;
    background-color: #6aaa64;
    color: white;
}

#credits {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #787c7e;
    font-size: 69px;
}

#credits img {
    height: 200px; /* Adjust the image size as needed */
    margin-left: 10px;
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

/* Add this to the end of your wordle.css file */

#easter-egg-container {
    display: none; /* Hidden by default */
    margin: 20px auto;
    text-align: center;
}

#easter-egg-container img {
    max-width: 300px;
    width: 80%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}