@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Roboto:wght@400;700&display=swap');

/* --- Variabel Warna & Font --- */
:root {
    --bg-primary: #121212;
    --bg-secondary: #1E1E1E;
    --text-primary: #E0E0E0;
    --text-secondary: #B0B0B0;
    --accent-color: #B886FF; /* Medium Orchid */
    --border-color: #333333;
    --shadow-color: rgba(184, 134, 255, 0.2);
}

/* --- Reset & Gaya Dasar --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 2rem 1rem;
}

/* --- Kontainer Utama & Header --- */
.container {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

header {
    margin-bottom: 2rem;
}

header h1 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Tombol Utama --- */
#draw-button {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    background-color: var(--accent-color);
    color: var(--bg-primary);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 500px;
}

#draw-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px var(--shadow-color);
}

/* --- Area Tampilan Kartu --- */
.card-display {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.card h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card .keywords {
    font-style: italic;
    font-size: 0.9em;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.card .meaning {
    font-size: 0.9em;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Gaya untuk Kotak Pertanyaan --- */
.question-box {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 1.5rem auto;
    text-align: left;
}

.question-box label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.question-box textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.question-box textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(184, 134, 255, 0.3);
}

/* --- Gaya untuk Tombol Reset --- */
#reset-area {
    margin-top: 2rem; /* Beri jarak dari kartu di atasnya */
}

#reset-button {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    background-color: transparent;
    color: var(--accent-color);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#reset-button:hover {
    background-color: var(--accent-color);
    color: var(--bg-primary);
}

/* Class Utility untuk Menyembunyikan Elemen */
.hidden {
    display: none;
}

