body {
    font-family: sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f4f9;
}

.container {
    text-align: center;
    background-color: #fff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: grid;
    place-items: center;
    background-image: url('https://i.pinimg.com/originals/9c/8c/67/9c8c67bb187d650ad0f18545f7567113.gif');
    background-size: cover;
    width: 1000px;
    height: 500px;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        width: 80%; /* Reduce the container width on smaller screens */
        padding: 20px;
    }

    .game-board {
        grid-template-columns: repeat(3, 80px); /* Adjust grid size for mobile */
        grid-template-rows: repeat(3, 80px);
    }

    .cell {
        font-size: 40px; /* Adjust font size for mobile */
    }

    #message {
        font-size: 20px; /* Adjust message font size for mobile */
        padding: 6px;
    }

    button {
        padding: 8px 16px; /* Adjust button size for mobile */
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 90%; /* Further reduce width on very small screens */
        padding: 15px;
    }

    .game-board {
        grid-template-columns: repeat(3, 60px); /* Smaller grid for very small screens */
        grid-template-rows: repeat(3, 60px);
    }

    .cell {
        font-size: 30px; /* Further reduce font size */
    }

    #message {
        font-size: 18px; /* Adjust message font size */
        padding: 4px;
    }

    button {
        padding: 6px 12px; /* Further reduce button size */
        font-size: 12px;
    }
}

* {
    font-family: 'Press Start 2P', cursive;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 5px;
}

.cell {
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid #ccc;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    transition: background-color 0.3s ease;
    border-radius: 10px;
}

.cell:hover {
    background-color: rgba(240, 240, 240, 0.8);
}

.cell img {
    max-width: 100px;
    max-height: 100px;
    opacity: 1;
    image-rendering: pixelated;
}

#message {
    margin-top: 10px;
    font-size: 25px;
    font-weight: bold;
    text-align: center;
    background-color: rgba(240, 240, 240, 0.8);
    background-blend-mode: lighten;
    padding: 8px;
    padding-left: 14px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

.highlight {
    background-color: #c0f0c0;
}

h1 {
    color: rgb(255, 255, 255);
    border: 1px solid;
    background-color: rgb(82, 146, 148);
    opacity: 70%;
    padding: 10px;
}
