:root {
    --primary: #53f6e5;;
    --secondary: #1e2124;
    --success: #0ba800;
    --error: #ff2c10;
    --text: #000;
}

body { 
    font-family: 'Segoe UI', sans-serif; 
    background-color: var(--secondary); 
    color: var(--text); 
    display: flex; 
    flex-direction: column;
    align-items: center;
    padding: 20px; 
    min-height: 100vh;
    margin: 0;
    max-width: 100%;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    width: 100%; 
    max-width: 700px; 
    padding: 10px 0 20px 0;
    background: transparent;
}

h1, h2, h3 h4 { 
    text-align: center;
    color: var(--primary); 
    margin-bottom: 5px; 
}

.quiz-container { 
    background: #282b30; 
    max-width: 700px; 
    width: 100%; 
    padding: 30px; 
    border-radius: 12px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
}

.progress { 
    font-size: 0.9em; 
    color: grey; 
    margin-bottom: 20px; 
    text-align: center; 
}

.question { 
    font-size: 1.15em; 
    font-weight: 600; 
    margin-bottom: 20px; 
    min-height: 3em; 
    color: var(--primary);
}

.options { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
}

.feedback {
    background: white !important;
    color: black !important;
    border-left: 5px solid var(--primary);
    padding: 15px;
    margin-top: 15px;
    border-radius: 8px;
    display: none; 
    font-size: 0.95em; 
}

.score-final { 
    font-size: 2.5em; 
    font-weight: bold; 
    color: var(--primary); 
    margin: 20px 0; 
}

@media (orientation: portrait) {
    .qr-code {
        display: none;
    }
    header {
        flex-direction: column;
        align-items: center;
    }
}

img {
    border-radius: 12px;
}

.option-btn {
    padding: 15px;
    margin: 5px 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #ffffff;
    color: #333333 !important; 
    font-size: 1em;
    font-weight: 600;
    text-align: left;
    width: 100%;
    display: block;
    cursor: pointer;
    position: relative;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    z-index: 1;
    overflow: hidden;
}

.option-btn:hover:not(:disabled) { 
    border-color: var(--primary); 
    background-color: #ebf5ff; 
}

.option-btn.correct {
    background: var(--success) !important;
    color: white !important;
    border-color: var(--success) !important;
}

.option-btn.wrong { 
    background-color: var(--error) !important; 
    border-color: var(--error) !important; 
    color: white !important; 
}

.option-btn:disabled {
    cursor: default;
    opacity: 1;
}

#next-btn { 
    display: block; 
    width: 100%; 
    padding: 15px; 
    margin-top: 20px; 
    background-color: var(--primary); 
    color: #000000;
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: bold; 
}

#next-btn:disabled { 
    background-color: grey; 
    cursor: not-allowed;
    color: #ffffff;
}

.back-button {
    background-color: var(--primary);
    color: black;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: var(--primary);
}