/* ================================================
   vocabQuiz.css  —  shared styles for all vocab quizzes
   Override --bg-color in a <style> tag per quiz file
   ================================================ */

:root {
    --bg-color: #1A3A4A;
}

body {
    font-family: Arial, sans-serif;
    max-width: 40rem;
    margin: 10px auto;
    padding: 10px;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Header */
.header {
    background-color: #00274D;
    color: white;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}
#subtitle { font-size: 120%; }

/* Question sections */
.section {
    background-color: white;
    padding: 10px;
    margin-bottom: 10px;
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.section h3 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    font-size: 1.1rem;
}
.sentence {
    margin: 10px 0;
    font-size: .9rem;
    line-height: 1.6;
}

/* Select dropdowns */
select {
    font-size: .8rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    min-width: 4rem;
}
select.correct {
    background-color: #CFFFE2;
    color: #0404D0;
    border-color: #27ae60;
}
select.incorrect {
    background-color: #FEE2E5;
    color: #940D0D;
    border-color: #C70000;
}

/* Buttons — base */
button {
    padding: .33rem;
    font-size: 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
button:hover { background-color: #2980b9; }
button:disabled { background-color: #95a5a6; cursor: not-allowed; }

/* Study Mode button — fixed top-right */
#toggleAnswersBtn {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Word list toggle button */
.show-hide-button {
    margin: 0 0 1rem 0;
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background-color: #28a745;
    color: white;
    transition: background-color 0.3s;
}
.show-hide-button:hover { background-color: #218838; }

/* Word list panel */
#theWordList { display: none; }

.toggle-button {
    padding: 5px 10px;
    font-size: .8rem;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    transition: background-color 0.3s;
}
.toggle-button:hover { background-color: #0056b3; }

.output {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 16px;
    word-wrap: break-word;
    text-align: left;
}
.output.column {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.output.column span {
    padding: 5px;
    border-bottom: 1px solid #eee;
}

/* Student info / PDF section */
.student-info-container {
    max-width: 30rem;
    margin: 2rem auto;
    background: #E6F2EE;
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 0 2px 5px gray;
}
.inputZ { padding: .3rem; border-radius: 6px; }
#pdfButton { padding: .7rem; border-radius: 6px; font-weight: bold; }
.note { font-size: .85rem; color: #555; }

/* Print */
@media print {
    .no-print { display: none; }
    body { background-color: white; }
}

footer { margin-top: 15rem; }
