/* Reset & Global Overrides */
header, footer {
    display: none !important;
}

#ast-scroll-top {
    display: none !important;
}

body {
    background: #77c9f8 !important; /* Warna home */
    margin: 0 !important;
    padding: 0 !important;
    font-family: "Arial Black", Gadget, sans-serif !important;
}

/* Force Reset for Astra's default spacing on ALL screen sizes */
#primary,
#main,
.site-main,
.site-content,
.ast-container,
#content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.ast-article-single,
.entry-content {
    margin: 0 !important;
    padding: 0 !important;
}

.quiz-main-wrapper {
    max-width: 400px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Stats (Progress Bar style flashcard) */
.quiz-header-container {
    padding-top: 10px;
    margin-bottom: 20px;
}

.quiz-header-top-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.back-button-header {
    color: white; /* In header, white stands out better against the blue background */
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.back-button-header svg {
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.2));
}

.quiz-progress-bar {
    flex-grow: 1;
    height: 12px;
    background-color: #334155;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background-color: #91BD35; /* Warna hijau permintaan */
    transition: width 0.3s ease;
}

.quiz-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    -webkit-text-stroke: 1px #1175ad;
}

.timer-value {
    font-family: monospace;
    font-size: 18px;
}

.timer-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pause-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: 50%;
    transition: background 0.2s;
    -webkit-text-stroke: 0;
}

.pause-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Pause Modal Styles */
.quiz-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.quiz-modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 90%;
    max-width: 300px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.quiz-modal-content h2 {
    color: #2a2a2a;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
}

.quiz-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quiz-modal-buttons button {
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.1s;
}

.btn-resume {
    background-color: #91BD35;
    color: white;
}

.btn-giveup {
    background-color: #DE8945;
    color: white;
}

.quiz-modal-buttons button:active {
    transform: scale(0.95);
}

/* Main Container (Flashcard style) */
.quiz-flashcard-container {
    position: relative;
    background-color: white; /* Kotak utama putih */
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 20px;
}

#quiz-question-container {
    text-align: center;
    margin-bottom: 30px;
    min-height: 110px; /* Tinggi setara kurang lebih 2x button */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

#quiz-question {
    font-size: 24px;
    color: #2a2a2a;
    margin: 0;
    line-height: 1.3;
}

/* Options Grid */
.quiz-options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-options-grid button {
    background-color: #f0f0f0;
    border: 2px solid #e0e0e0;
    color: #2a2a2a;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-family: inherit;
}

.quiz-options-grid button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Feedback Colors */
.quiz-options-grid button.correct {
    background-color: #91BD35 !important;
    color: white !important;
    border-color: #91BD35 !important;
}

.quiz-options-grid button.wrong {
    background-color: #DE8945 !important;
    color: white !important;
    border-color: #DE8945 !important;
}

/* Result Card */
.result-card {
    text-align: center;
}

.result-card h3 {
    font-size: 28px;
    color: #91BD35;
    margin-bottom: 20px;
}

.final-score-display {
    font-size: 60px;
    font-weight: 900;
    color: #2a2a2a;
    margin: 20px 0;
}

.score-sep {
    color: #aaa;
    margin: 0 5px;
}

#quiz-status {
    color: #666;
    margin-bottom: 30px;
}

.btn-quiz-retry {
    width: 100%;
    padding: 15px;
    background-color: #91BD35;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

/* Footer Nav */
.quiz-footer-nav {
    text-align: center;
    padding: 20px 0;
}

.quiz-footer-nav label {
    display: block;
    color: white;
    font-size: 12px;
    margin-bottom: 8px;
    -webkit-text-stroke: 0.5px #1175ad;
}

.quiz-select-input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: white;
    font-family: inherit;
    font-size: 14px;
    color: #2a2a2a;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .quiz-flashcard-container {
        padding: 20px 15px;
    }
    #quiz-question {
        font-size: 20px;
    }
    .quiz-options-grid button {
        padding: 12px;
        font-size: 15px;
    }
}
