body {
    background: black;
    color: white;
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

/* Glowing Game Area */
canvas {
    background: black;
    border: 4px solid white;
    display: block;
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.5);
    animation: glowEffect 3s infinite alternate;
}

/* Glowing background animation */
@keyframes glowEffect {
    from { box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5); }
    to { box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.8); }
}

/* Styled buttons with hover animation */
button {
    background: linear-gradient(45deg, #ff5722, #e64a19);
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 8px;
    margin: 10px;
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(45deg, #e64a19, #bf360c);
    transform: scale(1.05);
    box-shadow: 0px 0px 10px rgba(255, 87, 34, 0.8);
}

/* Score Flash Effect */
.flash {
    animation: flashScore 0.3s ease-in-out;
}

@keyframes flashScore {
    0% { color: yellow; }
    50% { color: white; }
    100% { color: yellow; }
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: black;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    text-align: center;
}

.popup-content h2 {
    margin-top: 0;
}

.popup button {
    margin-top: 10px;
    background: #ff5722;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
}

.popup button:hover {
    background: #e64a19;
}
