:root {
    --primary: #0e0e0e;
    --secondary: #1a1a1a;
    --accent: #a41b1b;
    --accent-light: #c73131;
    --accent-dark: #7a0000;
    --text: #f0f0f0;
    --text-secondary: #b0b0b0;
    --correct: #2e7d32;
    --wrong: #c62828;
    --neutral: #424242;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background-color: var(--secondary);
    width: 100%;
    max-width: 800px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.quiz-header {
    background-color: var(--accent);
    padding: 20px 30px;
    position: relative;
}

.quiz-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
}

.content {
    padding: 30px;
}

h1, h2, h3 {
    color: var(--text);
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.scp-logo {
    width: 100%;
    max-width: 180px;
    margin: 20px auto;
    display: block;
}

.scp-warning {
    background-color: var(--accent-dark);
    color: var(--text);
    padding: 12px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.warning-icon {
    font-size: 1.2rem;
}

button {
    background-color: var(--accent);
    color: var(--text);
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(164, 27, 27, 0.3);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background-color: var(--neutral);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.quiz-option {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quiz-option:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.quiz-option h3 {
    margin-top: 0;
    font-size: 1.25rem;
}

.quiz-option p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.option {
    display: flex;
    align-items: center;
    padding: 16px;
    margin: 12px 0;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.option:hover:not(.correct):not(.wrong):not(.selected) {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.selected {
    background-color: rgba(164, 27, 27, 0.2);
    border-color: var(--accent);
}

.option.correct {
    background-color: rgba(46, 125, 50, 0.2) !important;
    border-color: var(--correct) !important;
}

.option.wrong {
    background-color: rgba(198, 40, 40, 0.2) !important;
    border-color: var(--wrong) !important;
}

.option.correct:hover, .option.wrong:hover {
    background-color: rgba(46, 125, 50, 0.2) !important;
    border-color: var(--correct) !important;
}

.option.wrong:hover {
    background-color: rgba(198, 40, 40, 0.2) !important;
    border-color: var(--wrong) !important;
}

.option::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--text-secondary);
    margin-right: 15px;
    flex-shrink: 0;
    transition: var(--transition);
}

.selected::before {
    border-color: var(--accent);
    background-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(164, 27, 27, 0.3);
}

.correct::before {
    border-color: var(--correct) !important;
    background-color: var(--correct) !important;
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.3) !important;
}

.wrong::before {
    border-color: var(--wrong) !important;
    background-color: var(--wrong) !important;
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.3) !important;
}

.option[style*="cursor: default"] {
    cursor: default;
}

.progress-container {
    background-color: rgba(255, 255, 255, 0.05);
    height: 6px;
    margin: 20px 0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--accent);
    width: 0;
    transition: width 0.5s ease;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.question-number {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.timer {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.summary-item {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 16px;
    margin: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.summary-answer {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.answer-icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

.controls {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.score {
    font-size: 1.5rem;
    text-align: center;
    margin: 30px 0;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.score span {
    font-weight: bold;
    color: var(--accent);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.summary-tabs {
    display: flex;
    gap: 10px;
}

.summary-tab {
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.summary-tab.active {
    background-color: var(--accent);
    border-color: var(--accent);
}

.results-svg {
    max-width: 150px;
    display: block;
    margin: 20px auto;
}

@media (max-width: 600px) {
    .content {
        padding: 20px;
    }

    .quiz-options {
        grid-template-columns: 1fr;
    }

    .controls {
        flex-direction: column;
        gap: 10px;
    }

    .controls button {
        width: 100%;
    }
}
a {
    color: var(--accent-light); 
    text-decoration: none;
    transition: 0.15s ease;
    font-weight: bold; 
}

a:hover {
    color: #ff4b4b; 
    text-decoration: underline;
}

a:active {
    color: #ff6666; 
    transition: color 0s ease;
}
.feedback-toggle {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--neutral);
    transition: .2s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: var(--text);
    transition: .2s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--accent);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.feedback-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.correct-feedback {
    background-color: rgba(46, 125, 50, 0.1);
    border: 1px solid var(--correct);
    color: var(--correct);
}

.incorrect-feedback {
    background-color: rgba(198, 40, 40, 0.1);
    border: 1px solid var(--wrong);
    color: var(--wrong);
}