@import url('https://fonts.googleapis.com/css2?family=Hind+Vadodara:wght@700&display=swap');
/* 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 */
.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 */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}
nav {
    background: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
}
nav a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    font-size: 16px;
}
header {
    text-align: center;
    margin: 20px 0;
}
    /* Start Screen */
#start-screen {
    padding: 20px;
    text-align: center;
}
#start-screen label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}
#start-screen input[type="text"] {
    width: 80%;
    max-width: 300px;
    padding: 8px;
    font-size: 16px;
    margin-bottom: 5px;
}
#char-count {
    font-size: 12px;
    color: #555;
    margin-bottom: 15px;
}
#start-game-button {
    padding: 15px 30px;
    font-size: 20px;
    cursor: pointer;
}
    /* End Screen */
#end-screen {
    padding: 20px;
    text-align: center;
}
#end-screen .final-score {
    font-size: 36px;
    font-weight: bold;
    margin: 20px 0;
    text-align: center;
}
    /* Toggleable lists for factorization details */
.toggle-list {
    margin: 10px auto;
    max-width: 90%;
    text-align: left;
}
.toggle-list summary {
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    background: #eee;
    border: 1px solid #ccc;
}
.toggle-list ul {
    margin: 0;
    padding: 10px;
    list-style: none;
    border: 1px solid #ccc;
    border-top: none;
}
#play-again-button {
    margin: 20px 0;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
}
    /* Responsive adjustments */
@media (max-width: 768px) {
    #start-screen input[type="text"],
    #start-game-button {
        width: 90%;
    }
}