@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@600;800&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: #0d0d0d;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}
#particle-canvas {
    display: none;
}
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}
.welcome-container {
    text-align: center;
    width: 100%;
}
.welcome-container h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 5em;
    font-weight: 800;
    color: #4CAF50;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
}
.welcome-container .subtitle {
    font-size: 1.8em;
    color: #a0a0a0;
    margin-bottom: 50px;
    font-weight: 400;
}
.start-btn {
    background-color: #4CAF50;
    color: #ffffff;
    padding: 20px 60px;
    border: none;
    border-radius: 8px;
    font-size: 1.6em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
}
.start-btn:hover {
    background-color: #5cb85c;
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(76, 175, 80, 0.5);
}
.quiz-container {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.quiz-container h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4em;
    font-weight: 800;
    color: #4CAF50;
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}
#timer {
    font-family: 'Orbitron', sans-serif;
    font-size: 2em;
    margin-bottom: 40px;
    font-weight: 600;
}
#timer .time-green {
    color: #4CAF50;
}
#timer .time-yellow {
    color: #FFC107;
}
#timer .time-red {
    color: #D32F2F;
}
#question {
    font-size: 2.2em;
    color: #ffffff;
    margin-bottom: 50px;
    font-weight: 500;
    line-height: 1.4;
    max-width: 1000px;
    text-align: center;
}
#options {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin-bottom: 50px;
}
.option {
    background-color: #2c2c2c;
    color: #e0e0e0;
    padding: 20px 30px;
    margin: 15px 0;
    border: 1px solid #444;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-size: 1.3em;
    font-weight: 400;
    text-align: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    word-wrap: break-word;
    white-space: normal;
}
.option:hover:not(.correct):not(.incorrect) {
    background-color: #3a3a3a;
    border-color: #4CAF50;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}
.option.correct {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
    pointer-events: none;
}
.option.incorrect {
    background-color: #D32F2F;
    border-color: #D32F2F;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(211, 47, 47, 0.4);
    pointer-events: none;
}
#feedback {
    font-size: 1.5em;
    margin: 20px 0;
    color: #FFC107;
    font-weight: 500;
}
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    width: 100%;
}
#next-btn, #restart-btn {
    background-color: #4CAF50;
    color: #ffffff;
    padding: 18px 50px;
    border: none;
    border-radius: 8px;
    font-size: 1.4em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}
#next-btn:disabled {
    background-color: #555;
    cursor: not-allowed;
    box-shadow: none;
    color: #b0b0b0;
}
#next-btn:hover:not(:disabled), #restart-btn:hover {
    background-color: #5cb85c;
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(76, 175, 80, 0.5);
}
#result-container {
    margin-top: 50px;
    width: 100%;
    text-align: center;
}
#result-container h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.8em;
    color: #4CAF50;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}
.result-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.result-metric-card {
    background-color: #1a1a1a;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid #4CAF50;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}
.result-metric-card:hover {
    transform: translateY(-5px);
}
.result-metric-card p {
    font-size: 1.3em;
    color: #e0e0e0;
    margin-bottom: 5px;
    font-weight: 400;
}
.result-metric-card p strong {
    font-size: 1.6em;
    color: #4CAF50;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    display: block;
    margin-top: 8px;
}
.result-metric-card.grade strong {
    color: #FFC107;
}
.result-metric-card.accuracy strong {
    color: #03A9F4;
}
.result-metric-card.speed strong {
    color: #8BC34A;
}
.result-metric-card.answered strong {
    color: #9C27B0;
}
.result-metric-card.missed strong {
    color: #D32F2F;
}
.footer {
    background-color: #1a1a1a;
    padding: 30px 0;
    text-align: center;
    color: #a0a0a0;
    width: 100%;
    border-top: 1px solid #333;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
}
.footer p {
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.5;
    max-width: 800px;
}
.heart {
    color: #FFC107;
    animation: pulseHeart 1.5s infinite alternate;
}
.social-links {
    display: flex;
    gap: 20px;
}
.social-link {
    color: #a0a0a0;
    font-size: 1.6em;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}
.social-link:hover {
    color: #4CAF50;
    transform: translateY(-3px) scale(1.1);
}
@keyframes pulseHeart {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
@media (max-width: 900px) {
    .welcome-container h1 {
        font-size: 4em;
    }
    .welcome-container .subtitle {
        font-size: 1.5em;
    }
    .quiz-container h1 {
        font-size: 3.5em;
    }
    #question {
        font-size: 1.8em;
    }
    .option {
        font-size: 1.1em;
        padding: 15px 25px;
    }
    #next-btn, #restart-btn {
        font-size: 1.2em;
        padding: 15px 40px;
    }
    #result-container h2 {
        font-size: 3em;
    }
    .result-metric-card p {
        font-size: 1.3em;
    }
    .result-metric-card p strong {
        font-size: 1.4em;
    }
    .footer p {
        font-size: 0.9em;
    }
    .social-link {
        font-size: 1.4em;
    }
}
@media (max-width: 600px) {
    .main-content {
        padding: 40px 15px;
    }
    .welcome-container h1 {
        font-size: 3em;
    }
    .welcome-container .subtitle {
        font-size: 1.3em;
    }
    .start-btn {
        font-size: 1.3em;
        padding: 15px 40px;
    }
    .quiz-container h1 {
        font-size: 2.8em;
    }
    #timer {
        font-size: 1.7em;
    }
    #question {
        font-size: 1.6em;
        margin-bottom: 40px;
    }
    .option {
        font-size: 1em;
        padding: 12px 20px;
        margin: 10px 0;
    }
    #feedback {
        font-size: 1.2em;
    }
    #next-btn, #restart-btn {
        font-size: 1.1em;
        padding: 12px 30px;
    }
    #result-container h2 {
        font-size: 2.5em;
    }
    .result-metric-card p {
        font-size: 1.1em;
    }
    .result-metric-card p strong {
        font-size: 1.3em;
    }
    .footer p {
        font-size: 0.8em;
    }
    .social-link {
        font-size: 1.2em;
    }
    .result-metrics-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 400px) {
    .welcome-container h1 {
        font-size: 2.5em;
    }
    .welcome-container .subtitle {
        font-size: 1.1em;
    }
    .start-btn {
        font-size: 1.1em;
        padding: 12px 30px;
    }
    .quiz-container h1 {
        font-size: 2.2em;
    }
    #question {
        font-size: 1.4em;
    }
    .option {
        font-size: 0.9em;
        padding: 10px 15px;
    }
    #result-container h2 {
        font-size: 2em;
    }
    .result-metric-card p {
        font-size: 1em;
    }
    .result-metric-card p strong {
        font-size: 1.1em;
    }
}