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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

select, button, .link-btn {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

select {
    background: white;
    color: #333;
}

button {
    background: #4CAF50;
    color: white;
    font-weight: bold;
}

.link-btn {
    background: #2196F3;
    color: white;
    font-weight: bold;
}

.link-btn:last-child {
    background: #9C27B0;
}

button:hover, .link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.quiz-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.score-board {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.score-item {
    text-align: center;
}

.label {
    font-weight: bold;
    color: #666;
    margin-right: 5px;
}

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

.image-container {
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.question-text {
    text-align: center;
    color: #333;
    font-size: 1.5rem;
}

.options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.option-btn {
    padding: 20px;
    font-size: 1.1rem;
    background: #f8f9fa;
    color: #333;
    border: 3px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.option-btn:hover:not(.correct):not(.wrong):not(:disabled) {
    background: #e9ecef;
    border-color: #2196F3;
    transform: translateY(-2px);
}

.option-btn.correct {
    background: #4CAF50;
    color: white;
    border-color: #45a049;
}

.option-btn.wrong {
    background: #f44336;
    color: white;
    border-color: #da190b;
}

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

.feedback {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.feedback.correct {
    background: #d4edda;
    color: #155724;
}

.feedback.wrong {
    background: #f8d7da;
    color: #721c24;
}

#feedbackText {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

#nextQuestion {
    background: #FF9800;
    padding: 12px 30px;
    font-size: 1.1rem;
}

.result-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
}

.result-container h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 30px;
}

.result-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    gap: 20px;
}

.stat-card {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.result-actions button {
    padding: 15px 30px;
    font-size: 1.1rem;
}

#retry {
    background: #4CAF50;
}

#changeCategory {
    background: #2196F3;
}

.start-screen {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.start-card h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.start-card p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.start-card ul {
    list-style-position: inside;
    color: #666;
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 20px;
}

.start-hint {
    text-align: center;
    font-weight: bold;
    color: #4CAF50;
    font-size: 1.2rem;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .image-container {
        height: 300px;
    }
    
    .options {
        grid-template-columns: 1fr;
    }
    
    .result-stats {
        flex-direction: column;
    }
    
    .controls {
        flex-direction: column;
    }
}
