@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #111;
    color: #fff;
    overflow: hidden;
}

.card {
    width: 100%;
    height: 100%;
    position: relative;
}

.bgAnimation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    grid-template-rows: repeat(20, 1fr);
    background: #1d1d1d;
    filter: saturate(2);
    overflow: hidden;
    z-index: -1;
}

.colorBox {
    z-index: 2;
    filter: brightness(1.1);
    transition: 2s ease;
    position: relative;
    margin: 2px;
    background: #1d1d1d;
}

.colorBox:hover {
    background: #00bfff;
    transition-duration: 0s;
}

.backgroundAmim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: #00bfff;
    filter: blur(60px);
    animation: animBack 6s linear infinite;
}

.game-container {
    padding: 20px;
    border: 2px solid #333;
    border-radius: 10px;
    background-color: #fff;
    width: 300px;
    text-align: center;
    color: #333;
    z-index: 1; /* Ensure the game container is above all other elements */
    box-shadow: 0 0 10px #00bfff, 0 0 20px #00bfff, 0 0 30px #00bfff, 0 0 40px #00bfff; /* Adding glow effect */
}

h1 {
    color: #333;
}

.buttons {
    margin: 20px 0;
}

button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

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

.result {
    margin: 20px 0;
}

.scoreboard {
    margin: 20px 0;
}

#points {
    font-weight: bold;
    color: green;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.sparkle {
    animation: sparkle 0.5s ease infinite alternate;
}

@keyframes animBack {
    0% {
        top: -60px;
    }
    100% {
        top: 120%;
    }
}

@keyframes sparkle {
    0% {
        text-shadow: none;
    }
    100% {
        text-shadow: 0 0 5px #ffeb3b, 0 0 10px #ffeb3b, 0 0 15px #ffeb3b, 0 0 20px #ffeb3b, 0 0 25px #ffeb3b, 0 0 30px #ffeb3b, 0 0 35px #ffeb3b;
    }
}