/* Quiz-specific styles */

.quiz-section {
    display: none;
    text-align: center;
    padding: 20px;
}

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

.quiz-description {
    font-size: 18px;
    line-height: 1.6;
    margin: 20px auto;
    max-width: 600px;
    color: #00ffff;
}

.quiz-btn {
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00, #ff00ff);
    background-size: 300% 300%;
    animation: rainbow-animation 3s ease infinite;
    border: 3px solid #ffff00;
    color: #000080;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-size: 24px;
    font-weight: bold;
    padding: 15px 40px;
    cursor: pointer;
    border-radius: 10px;
    margin: 20px auto;
    display: block;
    text-transform: uppercase;
    box-shadow: 0 0 20px #00ffff;
    transition: transform 0.2s;
}

.quiz-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px #ffff00;
}

.quiz-btn:active {
    transform: scale(0.95);
}

.quiz-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.question-container {
    background: rgba(0, 0, 128, 0.5);
    border: 3px solid #00ffff;
    border-radius: 15px;
    padding: 30px;
    margin: 20px auto;
    max-width: 700px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.question-number {
    color: #ffff00;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.question-text {
    color: #00ffff;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 25px;
    line-height: 1.4;
}

.answers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px 0;
}

.answer-btn {
    background: linear-gradient(135deg, #1a1a5e 0%, #2d2d8f 100%);
    border: 2px solid #00ffff;
    color: #00ffff;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-size: 16px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 8px;
    text-align: left;
    transition: all 0.3s;
    position: relative;
}

.answer-btn:hover {
    background: linear-gradient(135deg, #2d2d8f 0%, #4a4ab8 100%);
    border-color: #ffff00;
    color: #ffff00;
    transform: translateX(10px);
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.5);
}

.answer-btn.selected {
    background: linear-gradient(135deg, #ff00ff 0%, #ff66ff 100%);
    border-color: #ffff00;
    color: #ffffff;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #1a1a5e;
    border: 2px solid #00ffff;
    border-radius: 15px;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #ff00ff, #ffff00);
    background-size: 200% 100%;
    animation: rainbow-animation 2s ease infinite;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000080;
    font-weight: bold;
    font-size: 14px;
}

.result-container {
    background: rgba(0, 0, 128, 0.6);
    border: 4px solid #ffff00;
    border-radius: 20px;
    padding: 40px;
    margin: 30px auto;
    max-width: 800px;
    box-shadow: 0 0 40px rgba(255, 255, 0, 0.5);
}

.result-title {
    color: #ffff00;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.result-subtitle {
    color: #ff00ff;
    font-size: 24px;
    margin-bottom: 20px;
}

.result-description {
    color: #00ffff;
    font-size: 18px;
    line-height: 1.8;
    margin: 20px auto;
    max-width: 600px;
}

.result-emoji {
    font-size: 100px;
    margin: 20px 0;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.result-traits {
    background: rgba(255, 255, 0, 0.1);
    border: 2px solid #00ffff;
    border-radius: 10px;
    padding: 20px;
    margin: 30px auto;
    max-width: 500px;
}

.result-traits h3 {
    color: #ffff00;
    margin-bottom: 15px;
}

.result-traits ul {
    list-style: none;
    padding: 0;
}

.result-traits li {
    color: #00ffff;
    font-size: 16px;
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
}

.result-traits li:before {
    content: "⚡";
    position: absolute;
    left: 0;
}

.share-buttons {
    margin: 30px 0;
}

.share-btn {
    background: #1a1a5e;
    border: 2px solid #00ffff;
    color: #00ffff;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-size: 16px;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 8px;
    margin: 10px;
    transition: all 0.3s;
}

.share-btn:hover {
    background: #2d2d8f;
    border-color: #ffff00;
    color: #ffff00;
    transform: scale(1.05);
}

.center-gif {
    display: block;
    margin: 20px auto;
    max-width: 150px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .question-text {
        font-size: 18px;
    }

    .answer-btn {
        font-size: 14px;
        padding: 12px 15px;
    }

    .result-title {
        font-size: 28px;
    }

    .result-subtitle {
        font-size: 20px;
    }

    .quiz-btn {
        font-size: 20px;
        padding: 12px 30px;
    }
}
