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

#game-container {
    text-align: center;
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

#puzzle-container {
    width: 320px;
    height: 320px;
    margin: 0 auto;
    border: 5px solid #4A2C2A; /* Darker brown for border */
    padding: 5px;
    background-color: #5A3F3F; /* Medium brown for background */
    position: relative;
}

.tile {
    width: 75px;
    height: 75px;
    background-color: #DEB887; /* Brighter wood tone (BurlyWood) */
    border: 1px solid #B8860B; /* Darker golden brown for border */
    font-size: 2rem;
    color: #000000; /* Black color for the numbers */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s, top 0.3s ease-in-out, left 0.3s ease-in-out;
    position: absolute;
    z-index: 10;
}

.tile:hover {
    background-color: #C2B280; /* Slightly darker light brown on hover */
}

.empty {
    background-color: #654321 !important; /* Dark wood brown for empty space */
    border: none;
    cursor: default;
    z-index: 5;
}

#shuffle-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.2rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#shuffle-button:hover {
    background-color: #0056b3;
}

#message {
    margin-top: 20px;
    font-size: 1.5rem;
    min-height: 2rem;
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }
    #puzzle-container {
        width: 280px;
        height: 280px;
    }
    .tile {
        width: 65px;
        height: 65px;
        font-size: 1.8rem;
    }
}

#fireworks-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}
