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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #4a5568;
}

header p {
    font-size: 1.1rem;
    color: #718096;
    opacity: 0.8;
}

.quiz-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.question-container h2 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.question-container p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #2d3748;
}

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

.option-btn {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: left;
}

.option-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.option-btn.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.option-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f7fafc;
    color: #4a5568;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.option-btn.selected .option-letter {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.option-text {
    flex: 1;
    line-height: 1.5;
}

.result-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

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

.mbti-type {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mbti-description {
    margin-bottom: 30px;
}

.mbti-description h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.mbti-description p {
    color: #718096;
    line-height: 1.6;
    font-size: 1.1rem;
}

.mbti-traits {
    margin-bottom: 30px;
    text-align: left;
}

.mbti-traits h4 {
    color: #4a5568;
    margin-bottom: 15px;
    text-align: center;
}

.traits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.trait-item {
    background: #f7fafc;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.trait-item strong {
    color: #4a5568;
    display: block;
    margin-bottom: 5px;
}

.restart-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.hidden {
    display: none !important;
}

footer {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .quiz-container,
    .result-container {
        padding: 20px;
    }
    
    .option-btn {
        padding: 15px;
    }
    
    .mbti-type {
        font-size: 3rem;
    }
    
    .traits-grid {
        grid-template-columns: 1fr;
    }
}