/* ==========================================================================
   MODERN & VIBRANT SCHOOL STYLES (Duolingo / Kahoot Inspired)
   ========================================================================== */

/* Global Body Styling */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f0f4ff 0%, #e6eefa 100%); /* Soft gradient background */
    color: #2d3748;
    margin: 0;
    padding: 40px 20px;
    text-align: center;
    min-height: 100vh;
}

/* Main Container - The Quiz Box */
.container {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 35px;
    border-radius: 24px; /* More rounded, modern corners */
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.15); /* Soft, playful blue shadow */
    border: 3px solid #e1e8f5;
}

/* Header & Typography */
h1 {
    color: #4a90e2; /* Bright friendly blue */
    font-size: 28px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.instructions {
    color: #64748b;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 30px;
}

/* The Text Passage Box */
.text-passage {
    font-size: 18px;
    line-height: 2.0; /* Lots of space between lines for easy reading */
    text-align: left;
    margin-bottom: 15px;
    background: #f8fafc;
    padding: 15px 30px;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   DROP ZONES (BLANK BOXES TO FILL)
   ========================================================================== */
.drop-zone {
    display: inline-block;
    width: 200px;
    height: 36px;
    line-height: 36px;
    margin: 0 8px;
    vertical-align: middle;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    background-color: #edf2f7; /* Gray inner space */
    border: 2px dashed #cbd5e1; /* Playful dashed frame */
    border-radius: 10px;
    color: #4a90e2;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When a student hovers a word right over the slot */
.drop-zone.hovered {
    background-color: #e0f2fe;
    border-color: #3b82f6;
    transform: scale(1.05); /* Slight pop out effect */
}

/* ==========================================================================
   WORD BANK & BADGES
   ========================================================================== */
/* The box that holds all the options */
.words-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    min-height: 60px;
    margin-bottom: 35px;
    padding: 15px;
    background: #f1f5f9;
    border-radius: 20px;
    border: 2px dashed #cbd5e1;
}

/* Individual word badges */
.word {
    background: #ffffff;
    color: #334155;
    padding: 10px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    cursor: grab;
    user-select: none;
    /* Beautiful modern 3D border effect similar to Duolingo buttons */
    border: 2px solid #e2e8f0;
    border-bottom: 5px solid #cbd5e1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.15s ease;
}

/* Dynamic effects for interaction */
.word:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-2px); /* Moves up smoothly */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}

.word:active {
    cursor: grabbing;
    transform: translateY(2px); /* Presses down when clicked */
    border-bottom-width: 2px;
}

/* ==========================================================================
   ACTION BUTTON & RESULT MESSAGE
   ========================================================================== */
/* "Verifică" Button */
.btn {
    background: #22c55e; /* Vibrant success green */
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 40px;
    border: none;
    border-radius: 16px;
    border-bottom: 5px solid #16a34a; /* 3D effect button */
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
    transition: all 0.1s ease;
}

.btn:hover {
    background: #16a34a;
    border-bottom: 5px solid #15803d;
}

.btn:active {
    transform: translateY(3px);
    border-bottom-width: 2px;
}

/* Message block below the button */
#result-message {
    font-size: 22px;
    font-weight: 800;
    margin-top: 25px;
    height: 35px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   VALIDATION STATES (CORRECT / INCORRECT)
   ========================================================================== */
/* Styled box for a correct answer */
.correct {
    background-color: #dcfce7 !important; /* Pastel soft green */
    color: #15803d !important;
    border: 2px solid #22c55e !important;
    border-radius: 10px;
}

/* Styled box for a wrong answer */
.incorrect {
    background-color: #fee2e2 !important; /* Pastel soft red */
    color: #b91c1c !important;
    border: 2px solid #ef4444 !important;
    border-radius: 10px;
    cursor: pointer;
}
