@import url('https://fonts.googleapis.com/css2?family=Hind+Vadodara:wght@700&display=swap');
#game-screen, #end-screen {
    display: none;
}


header {
    position: relative;
    padding: 10px 0;
}
    #game-content {
        margin-top: 20px;
}
    #results {
        display: flex;
        justify-content: space-around;
        margin-top: 20px;
}
  

/* General Styling */
#username {
    width: 250px; /* Adjust width as needed */
    height: 40px; /* Adjust height as needed */
    font-size: 16px; /* Adjust font size for better visibility */
}


body {
    font-family: Arial, sans-serif;
    text-align: center;
}
/* Prime Button Styling */

@media (max-width: 600px) {
    .prime-btn {
        width: 80px;
        height: 80px;
        font-size: 20px;
    }
    #buttons {
        grid-template-columns: repeat(3, 80px);
        gap: 5px;
    }
    
    /* You can adjust other elements like the username input or score display as needed */
    #username {
        width: 200px;
        height: 35px;
        font-size: 14px;
    }
    
    #score-display {
        font-size: 28px;
    }
}
  

.prime-btn {
    width: 100px;
    height: 100px;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}
.prime-btn:active {
    transform: scale(0.9); /* Button Click Animation */
}
/* Correct Answer Highlight */
.correct {
    background-color: #90EE90 !important;
}
/* Wrong Answer Shake */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}
.wrong {
    animation: shake 0.3s ease-in-out;
    background-color: #FFB6C1 !important;
}
/* Score Pop Animation */
@keyframes scorePop {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}
.score-update {
    animation: scorePop 0.3s ease-in-out;
}
/* Score increment fade out animation */
@keyframes fadeOut {
    0% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.8; transform: translateY(-5px); }
    100% { opacity: 0; transform: translateY(-10px); }
}
.action-popup {
    animation: fadeOut 1.2s ease-in-out forwards;
}
.game-container {
    display: flex;
    justify-content: center;  /* Ensures buttons stay centered */
    align-items: flex-start;
    gap: 40px;  /* Adds spacing between buttons and scoreboard */
    margin-top: 20px;
}
/* Prime Buttons Grid Centered */
#buttons {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    gap: 10px;
    justify-content: center;
    align-items: center;
}

/* Scoreboard Positioned on the Right */
.score-container {
    display: flex;
    flex-direction: column;
    align-items: center;  /* Aligns text properly */
    text-align: center;
    width: 120px;
}

/* Score Label & Number Stacking */
#score-label {
    font-size: 24px;
    font-weight: bold;
}

#score-display {
    font-size: 32px;
    font-weight: bold;
    margin-top: 5px;
}

/* Score increment animation */
#action-text {
    font-size: 20px;
    color: green;
    display: none;
    margin-top: 5px;
}
/* Text Box Styling */
#number-display {
    font-family: 'Hind Vadodara', sans-serif; /* Use Hun-din 1451 or closest */
    font-size: 48px;
    font-weight: bold;
    text-align: center; /* Ensures text is centered */
    width: 100%; /* Takes full width to stay in center */
    margin: 20px 0; /* Adds spacing */
}
