/* Mobile First & Responsive */

.ag-quiz-wrapper {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
}

.ag-quiz-section {
    display: none;
    padding: 30px;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.ag-quiz-section.active {
    display: block;
}

/* Start Screen */
.ag-quiz-logo img {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.ag-quiz-heading {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.ag-quiz-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Play Screen */
.ag-quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

#ag-quiz-timer {
    font-weight: bold;
    font-size: 1.2rem;
    color: #27ae60;
}

#ag-quiz-timer.urgent {
    color: #c0392b;
    animation: pulse 1s infinite;
}

.ag-question-text {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #2c3e50;
}

.ag-input-field {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

.ag-options-list {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ag-option-item {
    display: block;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.ag-option-item:hover {
    background: #f0f0f0;
    border-color: #ddd;
}

.ag-option-item input {
    margin-right: 10px;
}

.ag-option-text {
    font-size: 1.1rem;
}

/* Buttons */
.ag-btn {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.ag-btn:hover {
    background: #2980b9;
}

.ag-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* Success Messages */
.ag-success-msg {
    margin-top: 20px;
    padding: 15px;
    background: #d4edda;
    color: #155724;
    border-radius: 6px;
}

.ag-error-msg {
    margin-top: 20px;
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 6px;
}

/* Countdown */
.ag-countdown {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e67e22;
    margin: 20px 0;
    padding: 15px;
    background: #fff3e0;
    border-radius: 8px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .ag-quiz-wrapper {
        margin: 10px;
    }

    .ag-quiz-heading {
        font-size: 1.5rem;
    }

    .ag-quiz-header {
        flex-direction: column;
        gap: 10px;
    }

    .ag-quiz-heading {
        font-size: 1.3rem;
    }

    .ag-question-text {
        font-size: 1.2rem;
    }
}