/* ================= GLOBAL ================= */

*{
box-sizing:border-box;
margin:0;
padding:0;
}

body{
font-family:Arial, sans-serif;
background:#f4f6f9;
padding:20px;
}

/* ================= TITLES ================= */

h1{
text-align:center;
margin-bottom:20px;
}

/* ================= GRID (DESKTOP) ================= */

.grid,
.sets-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
gap:20px;
}

/* ================= CARD ================= */

.card,
.set-card{
display:block;
background:#fff;
padding:20px;
border-radius:10px;
text-decoration:none;
color:#333;
font-weight:600;
box-shadow:0 2px 8px rgba(0,0,0,0.08);
transition:0.2s;
border:1px solid #eee;
}

.card:hover,
.set-card:hover{
background:#007bff;
color:#fff;
transform:translateY(-3px);
}

/* ================= CHAPTER ================= */

.chapter-block{
background:#fff;
padding:20px;
border-radius:10px;
margin-bottom:30px;
box-shadow:0 2px 8px rgba(0,0,0,0.08);
}

.chapter-title{
margin-bottom:15px;
border-left:5px solid #007bff;
padding-left:10px;
font-size:18px;
}

/* ================= BUTTON ================= */

button{
padding:10px 15px;
background:#007bff;
color:white;
border:none;
border-radius:5px;
cursor:pointer;
}

button:hover{
background:#0056b3;
}

/* ================= EXPORT BUTTON ================= */

.export-btn{
display:inline-block;
margin-bottom:15px;
padding:10px 15px;
background:#28a745;
color:white;
text-decoration:none;
border-radius:6px;
}

.export-btn:hover{
background:#218838;
}

/* ================= QUIZ ================= */

.quiz-container{
max-width:800px;
margin:auto;
background:#fff;
padding:25px;
border-radius:10px;
box-shadow:0 2px 8px rgba(0,0,0,.1);
}

.question{
margin-bottom:25px;
}

.options{
list-style:none;
margin-top:10px;
}

.options li{
margin-bottom:10px;
}

.options label{
display:block;
background:#f2f2f2;
padding:10px;
border-radius:6px;
cursor:pointer;
}

.options label:hover{
background:#e6e6e6;
}

/* ================= TIMER ================= */

.timer{
font-size:18px;
font-weight:bold;
color:red;
text-align:right;
margin-bottom:10px;
}

/* ================= RESULT ================= */

.result{
font-size:20px;
font-weight:bold;
text-align:center;
margin-top:20px;
}

/* ================= MOBILE ================= */

@media (max-width:768px){

body{
padding:10px;
}

/* 🔥 SINGLE COLUMN */
.grid,
.sets-grid{
grid-template-columns:1fr !important;
gap:12px;
}

/* cards */
.card,
.set-card{
padding:15px;
font-size:15px;
text-align:left;

/* mobile list style */
display:flex;
justify-content:space-between;
align-items:center;
}

/* arrow */
.card::after,
.set-card::after{
content:"›";
font-size:18px;
color:#888;
}

/* buttons */
button{
width:100%;
font-size:16px;
padding:12px;
}

/* export */
.export-btn{
display:block;
width:100%;
text-align:center;
}

/* chapter */
.chapter-block{
padding:15px;
}

.chapter-title{
font-size:16px;
}

/* quiz */
.quiz-container{
padding:15px;
}

.timer{
text-align:center;
font-size:16px;
}

}

/* ================= SMALL DEVICES ================= */

@media (max-width:480px){

h1{
font-size:18px;
}

.chapter-title{
font-size:15px;
}

}