/* General layout and font */
body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    margin: auto;
    background-color: #f9f9f9;
    font-family: 'Poppins', sans-serif;
    max-width: 1000px;
    max-height: fit-content;
}

#instruction{
    padding: 10px;
}

/* Styling for the game container */
#game-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Flexible grid columns */
    gap: 8px;
    max-width: 400px; /* Max width to ensure the grid is responsive */
    padding: 10px;
    position: relative;
    width: fit-content;
}

/* Styling for each tile */
#game-container div {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 80px;
    max-width: 80px;
    width: 20cqw; /* Tile size */
    height: 20cqw;
    font-size: clamp(8px, 7cqw, 30px);
    font-weight: bold;
    border: 2px solid #ccc;
    border-radius: 12px; /* Rounded corners */
    background-color: #f0f0f0;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
    transition: background-color 0.2s ease, transform 0.3s ease; /* Smooth transitions */
}

/* Add hover effect */
#game-container div:hover {
    background-color: #e0e0e0;
}

/* Add active effect */
#game-container div:active {
    transform: scale(0.95); /* Add subtle scale effect on click */
}

/* Button styles */
button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px; /* Round button corners */
}

/* Hover effect for buttons */
button:hover {
    background-color: #45a049;
}

/* Solution area styles */
#solution {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #007BFF;
}
