:root {
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --correct-bg: #28a745;
    --wrong-bg: #dc3545;
    --text-main: #1c1e21;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
}

.quiz-container {
    width: 100%;
    max-width: 600px;
    height: auto;           /* Změněno z 100vh na auto */
    min-height: 100px;      /* Odstraňte nebo snižte */
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    margin: 0 auto;         /* Aby byl uprostřed */
}

.question-row {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.3;
}

.answer-row {
    background: var(--card-bg);
    padding: 18px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    font-size: 1rem;
    line-height: 1.4;
}

/* Stav po kliknutí */
.answer-row.selected-correct {
    background-color: #d4edda;
    border-color: var(--correct-bg);
    color: #155724;
    font-weight: 600;
}

.answer-row.selected-wrong {
    background-color: #f8d7da;
    border-color: var(--wrong-bg);
    color: #721c24;
}

/* Automatické označení správné odpovědi při chybě */
.answer-row.reveal-correct {
    border-color: var(--correct-bg);
    background-color: #d4edda;
}

/*
.nav-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #ddd;
}
*/

.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;       /* Přidá pevnou mezeru nad tlačítka */
    padding-top: 20px;
    border-top: 1px solid #eee; /* Volitelné: oddělující linka */
}

.icon-btn {
    text-decoration: none;
    font-size: 28px;
}

.status {
    font-weight: 600;
    color: #65676b;
}

.next-btn {
    background-color: #0084ff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.next-btn:active {
    background-color: #0073e6;
}
