* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #eee;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 800px;
    width: 100%;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Menu główne */
.main-menu {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #00ff88;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

h1 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 30px;
    font-size: 1.1em;
}

/* Audio toggle */
.audio-toggle {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider {
    background: #00ff88;
    border-color: #00ff88;
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-text {
    color: #eee;
    font-size: 1.1em;
}

.mode-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mode-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 20px;
    border-radius: 10px;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.mode-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.mode-btn .mode-name {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.mode-btn .mode-desc {
    font-size: 0.8em;
    opacity: 0.9;
}

/* Ekran quizu */
.quiz-screen {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #00ff88;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
}

.progress {
    color: #00ff88;
    font-size: 1.1em;
}

.score {
    color: #ffaa00;
    font-size: 1.1em;
}

.question-container {
    margin-bottom: 30px;
}

.question-number {
    color: #00ff88;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.question-text {
    font-size: 1.3em;
    margin-bottom: 20px;
    line-height: 1.5;
}

.question-media {
    margin: 20px 0;
    text-align: center;
}

.question-image {
    max-width: 100%;
    max-height: 400px;
    border: 2px solid #00ff88;
    border-radius: 10px;
}

.audio-player {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.play-audio-btn {
    background: #00ff88;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    color: #1a1a2e;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.play-audio-btn:hover {
    background: #00dd77;
    transform: scale(1.05);
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: 'Courier New', monospace;
}

.answer-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    border-color: #00ff88;
    transform: translateX(5px);
}

.answer-btn:disabled {
    cursor: not-allowed;
}

.answer-btn.correct {
    background: rgba(0, 255, 136, 0.3);
    border-color: #00ff88;
}

.answer-btn.incorrect {
    background: rgba(255, 0, 0, 0.3);
    border-color: #ff4444;
}

.answer-label {
    font-weight: bold;
    color: #00ff88;
    margin-right: 10px;
}

.next-btn {
    background: #00ff88;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    color: #1a1a2e;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    float: right;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.next-btn:hover {
    background: #00dd77;
    transform: scale(1.05);
}

/* Ekran wyników */
.results-screen {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #00ff88;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    text-align: center;
}

.results-title {
    font-size: 2.5em;
    color: #00ff88;
    margin-bottom: 20px;
}

.final-score {
    font-size: 3em;
    color: #ffaa00;
    margin: 30px 0;
}

.percentage {
    font-size: 1.5em;
    color: #aaa;
    margin-bottom: 30px;
}

.results-message {
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.6;
}

.restart-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Loader */
#loader {
    text-align: center;
    color: #00ff88;
    font-size: 1.5em;
    padding: 40px;
}

/* Responsywność */
@media (max-width: 600px) {
    h1 {
        font-size: 1.8em;
    }
    
    .mode-btn {
        font-size: 1em;
        padding: 15px;
    }
    
    .question-text {
        font-size: 1.1em;
    }
    
    .answer-btn {
        font-size: 1em;
        padding: 12px 15px;
    }
    
    .quiz-screen {
        padding: 20px;
    }
    
    .results-screen {
        padding: 25px;
    }
    
    .final-score {
        font-size: 2em;
    }
}