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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.quiz-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.quiz-screen {
    display: none;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 40px;
    animation: fadeIn 0.3s ease-in;
}

.quiz-screen.active {
    display: block;
}

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

h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    font-size: 2.5em;
}

h2 {
    color: #34495e;
    margin-bottom: 30px;
    font-size: 1.5em;
    line-height: 1.4;
}

h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.quiz-intro {
    text-align: center;
    font-size: 1.1em;
    color: #5a6c7d;
    margin-bottom: 30px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

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

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #27ae60;
    color: white;
}

.btn-secondary:hover {
    background-color: #229954;
}

.btn-share {
    background-color: #7f8c8d;
    color: white;
    margin: 5px;
    padding: 10px 20px;
    font-size: 1em;
}

.btn-share:hover {
    background-color: #5a6c7d;
}

.quiz-header {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background-color: #3498db;
    transition: width 0.3s ease;
    width: 0%;
}

.question-counter {
    text-align: right;
    color: #7f8c8d;
    font-size: 0.9em;
}

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

.answer-option {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.05em;
}

.answer-option:hover {
    background-color: #e9ecef;
    border-color: #3498db;
}

.answer-option.selected {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.answer-option.correct {
    background-color: #27ae60;
    color: white;
    border-color: #27ae60;
}

.answer-option.incorrect {
    background-color: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.answer-option.disabled {
    cursor: not-allowed;
    pointer-events: none;
}

.feedback-container {
    display: none;
    margin-top: 30px;
    padding: 20px;
    background-color: #f0f8ff;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.feedback-container.show {
    display: block;
}

.feedback-content p {
    margin-bottom: 15px;
    color: #2c3e50;
    line-height: 1.6;
}

.score-container {
    text-align: center;
    margin-bottom: 40px;
}

.score-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
}

.score-circle span {
    font-size: 3em;
    color: white;
    font-weight: bold;
}

.score-text {
    font-size: 1.2em;
    color: #5a6c7d;
}

.score-analysis {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.iq-level {
    font-size: 1.8em;
    color: #3498db;
    margin-bottom: 10px;
    font-weight: bold;
}

.iq-description {
    color: #5a6c7d;
    line-height: 1.6;
}

.recommendations {
    background-color: #e8f5e9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.recommendations ul {
    list-style-type: none;
    padding-left: 0;
}

.recommendations li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.recommendations li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.share-section {
    text-align: center;
    margin-bottom: 30px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .quiz-container {
        margin: 20px auto;
        padding: 10px;
    }
    
    .quiz-screen {
        padding: 25px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .score-circle {
        width: 150px;
        height: 150px;
    }
    
    .score-circle span {
        font-size: 2.5em;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .btn-share {
        width: 100%;
    }
}