
/* Global Styles */
*
 {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
#question-count-container {
    text-align: left;
    margin-top: 10px;
    display: flex;
    align-items: center;
}

#question-count-container label {
    font-size: 1.1rem;
    margin-right: 10px;
    color: #333;
}

#question-count-container select {
    padding: 8px 12px;
    border: 2px solid rgb(132, 195, 255);
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
    margin-left: 7px;
}

#question-count-container select:focus {
    outline: none;
    border-color: rgb(57, 155, 247);
    box-shadow: 0 0 5px rgba(74, 110, 224, 0.5);
}
body {
    background-color: #f5f7fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container Styles */
.container {
    width: 90%;
    max-width: 700px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    overflow: hidden;
}

/* Home Screen Styles */
.logo {
font-size: 4rem; /* Increased font size */
font-weight: bold;
margin-bottom: 10px; /* Reduced margin-bottom to move it up */
color: #4a6ee0;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
animation: pulse 2s infinite;
margin-top: 10px; /* Added margin top to fine tune vertical position*/
line-height: 1.1; /* Optional: Adjust line height if needed */
}

.category-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.category-btn {
    background-color: #fff;
    color: #333;
    border: 2px solid #4a6ee0;
    border-radius: 10px;
    padding: 15px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-btn-lookalike {
    background-color: #fff;
    color: #333;
    border: 2px solid rgb(132, 195, 255);
    border-radius: 10px;
    padding: 7px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.category-btn:hover {
    transform: translateY(-5px);
    background-color: #4a6ee0;
    color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Quiz Screen Styles */
.progress-container {
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #4caf50;
    width: 0;
    transition: width 0.5s ease;
}

.question {
    font-size: 1.5rem;
    margin-bottom: 30px;
    line-height: 1.4;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.grade {
    font-size: 3rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: red;
    border: 5px solid red;
    border-radius: 50%;
    width: 125px;
    height: 125px;
    text-align: center;
    background-color: white;
    margin-left: 258px;
    margin-bottom: 10px; /* Reduced margin-bottom */
    margin-top: -36px; /* added margin-top. adjust to your needs*/
    animation: pulseGrow 2s infinite ease-in-out;
}

@keyframes pulseGrow {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05); /* Grow slightly larger */
    }
    100% {
        transform: scale(1);
    }
}


.answers-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.answer-btn {
    background-color: #fff;
    color: #333;
    border: 2px solid #4a6ee0;
    border-radius: 10px;
    padding: 15px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.answer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.correct {
    border-color: #4caf50;
    background-color: rgba(76, 175, 80, 0.1);
    animation: correctPulse 1s;
}

.incorrect {
    border-color: #f44336;
    background-color: rgba(244, 67, 54, 0.1);
    animation: incorrectShake 0.5s;
}

.score {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #4a6ee0;
}

/* ... your existing CSS ... */

.next-btn, .home-btn {
border-radius: 10px;
padding: 12px 25px; /* Use the same padding for both */
font-size: 1.1rem; /* Use the same font size for both */
cursor: pointer;
transition: all 0.3s ease;
text-align: center; /* Center the text inside the button */
min-width: 120px; /* Add a minimum width to ensure they are the same */
}

.next-btn {
background-color: #4a6ee0;
color: #fff;
border: none;
margin-top: 20px;
box-shadow: 0 4px 8px rgba(74, 110, 224, 0.3);
display: none;
}

.next-btn:hover {
background-color: #3a5bd0;
transform: translateY(-2px);
box-shadow: 0 6px 12px rgba(74, 110, 224, 0.4);
}

.home-btn {
background-color: transparent;
color: #4a6ee0;
border: 2px solid #4a6ee0;
margin-top: 30px;
}

.home-btn:hover {
background-color: #4a6ee0;
color: #fff;
}

/* ... your existing CSS ... */

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes correctPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes incorrectShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

/* Screen transitions */
.screen {
    animation: fadeIn 0.5s ease;
}

.hidden {
    display: none;
}
.under-text {
    font-size: 1.2rem; /* Increase font size */
    margin-top: 25px; /* Move text up (negative margin) */
}
/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        width: 95%;
        padding: 20px;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .question {
        font-size: 1.3rem;
    }

    
    .answer-btn, .category-btn {
        padding: 12px;
        font-size: 1rem;
    }
    
    .category-container {
        grid-template-columns: 1fr;
    }

}