/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
}

/* Custom Card Styling */
.card {
    border: none;
    background-color: #212529; /* Slightly lighter than body for depth */
    border-radius: 1rem;
}

/* Hiragana/Katakana Character Display */
#hiragana-display-container {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#hiragana-char {
    font-size: 6rem;
    font-weight: 600;
    color: #dee2e6;
    line-height: 1;
}

/* Custom Answer Buttons */
#options-container .btn {
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Results Page Score Circle */
.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(#0d6efd 0%, #0d6efd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 5px solid #343a40;
}

.score-circle span {
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

/* --- Feedback Colors & Animations --- */
.btn-correct {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: white !important;
}

.btn-incorrect {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.btn-faded {
    opacity: 0.5;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Tambahkan ini di style.css */
#timer-display {
    color: var(--bs-warning);
}

/* (Tambahkan di akhir file style.css yang ada) */

/* Hero Section */
.hiragana-hero-char {
    font-size: 15rem;
    color: var(--bs-primary);
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.icon-square {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
}

.bi {
    vertical-align: -0.125em;
    fill: currentColor;
}

/* (Tambahkan ini di akhir file style.css Anda) */

/* Gaya untuk Kuis Kalimat */
.sentence-display {
    font-size: 1.75rem; /* Membuat teks kalimat lebih besar */
    font-weight: 500;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
}

.blank-space {
    color: var(--bs-warning);
    font-weight: bold;
}

.correct-answer {
    color: var(--bs-success);
    font-weight: bold;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* (Tambahkan ini di akhir file style.css Anda) */

/* Gaya untuk Arti Kalimat */
.meaning-display {
    font-style: italic;
    color: var(--bs-gray-500);
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    margin-top: 1rem;
}

/* (Tambahkan ini di akhir file style.css Anda) */

/* Gaya untuk Romaji Display */
.romaji-display {
    font-size: 1rem;
    color: var(--bs-gray-500);
    margin-top: -1rem; /* Tarik lebih dekat ke kalimat hiragana */
    margin-bottom: 2rem;
}

.blank-space-romaji, .correct-answer-romaji {
    color: var(--bs-warning);
    font-weight: bold;
}

.correct-answer-romaji {
    color: var(--bs-success);
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

/* (Tambahkan ini di akhir file style.css Anda) */

.blank-space-future, .blank-space-future-romaji {
    color: var(--bs-gray-600);
    font-weight: bold;
}

.correct-answer-missed, .correct-answer-missed-romaji {
    color: var(--bs-danger) !important;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-style: wavy;
}