
/* ===== Base Styles ===== */
.mayiid-quiz-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-inner {
    background: #f5f5f5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.quiz-screen {
    min-height: 780px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: white;
    position: relative;
}

/* ===== Welcome Screen ===== */
.welcome-screen {
    text-align: center;
}

.quiz-logo {
    margin-bottom: 120px;
}

.quiz-logo-img {
    max-width: 188px;
    height: auto;
}

.welcome-content {
    margin-bottom: 80px;
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: #191715;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.welcome-intro {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 30px;
}

.welcome-quote {
    font-size: 16px;
    font-style: italic;
    color: #718096;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.start-section {
    margin-top: auto;
}

.start-label {
    font-size: 24px;
    font-weight: 600;
    color: #191715;
    margin-bottom: 20px;
}

.start-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: #588F6A;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 32px;
}

.start-btn:hover {
    background: #588F6A;
    transform: scale(1.1);
}

.arrow-icon {
    color: black;
}

/* ===== Countdown Screen ===== */
.countdown-screen {
    text-align: center;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.countdown-number {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
}

.countdown-number img {
    max-width: 100%;
    height: auto;
}

.countdown-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.countdown-dots img {
    width: 122px;
    height: 18px;
}

/* ===== Restart Button ===== */
.restart-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    padding: 6px 10px;
    background: #F5F2EF;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 200;
    color: #191715;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.restart-btn:hover {
    background: #588F6A;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===== Question Screen ===== */
.question-screen {
    background: #FFFFFF;
}

.question-header {
    text-align: center;
    margin-bottom: -30px;
    position: relative;
    z-index: 2;
}

.question-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #68a57c;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(104, 165, 124, 0.3);
}

.question-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #F4F2EF;
    border-radius: 20px;
    padding: 6px 30px 30px;
    position: relative;
    z-index: 1;
}

.question-title {
    font-size: 26px;
    font-weight: 800;
    color: #191715;
    margin-bottom: 20px;
    text-align: center;
    padding-top: 40px;
}

.question-text {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 30px;
    text-align: center;
}

.answers-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    padding-top: 20px;
}

.answer-btn {
    padding: 20px 30px;
    background: white;
    border: 1px solid #e8e4dc;
    border-radius: 16px;
    font-size: 16px;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    -webkit-tap-highlight-color: transparent;
}

/* Only apply hover on non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .answer-btn:hover {
        border-color: #68a57c;
        background: #f7fafc;
        transform: translateX(5px);
    }
}


/* ===== Feedback Screen ===== */
.feedback-screen {
    text-align: center;
}

.feedback-content.correct {
    background: #68a57c;
}

.feedback-content.incorrect {
    background: #f5d4d4;
}

.feedback-screen.correct .question-number {
    background: white;
    color: #68a57c;
    border-color: #68a57c;
}

.feedback-screen.incorrect .question-number {
    background: white;
    color: #e53e3e;
    border-color: #e53e3e;
}

.feedback-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #F4F2EF;
    border-radius: 20px;
    padding: 6px 30px 30px;
    position: relative;
    z-index: 1;
}

.ant-image {
    width: 105px;
    height: 117px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.luck-image {
    width: 114px;
    height: 114px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.feedback-message {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.feedback-screen.correct .feedback-message {
    color: white;
}

.feedback-screen.incorrect .feedback-message {
    color: #191715;
}

.feedback-subtext {
    font-size: 18px;
    font-weight: 400;
    margin-top: 15px;
}

/* ===== Progress Bar ===== */
.progress-section {
    margin-top: 100px;
    background: #F5F5F5;
    border-radius: 20px;
    padding: 30px 30px 20px;
}

.progress-bar-container {
    margin-bottom: 15px;
}

.progress-bar-bg {
    width: 100%;
    height: 12px;
    background: #CED0CE;
    border-radius: 6px;
    overflow: visible;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: #68a57c;
    border-radius: 6px;
    transition: width 1.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
}

.ant-icon {
    position: absolute;
    right: -6px;
    top: -15px;
    font-size: 24px;
    line-height: 1;
}

.ant-walking {
    animation: antWalk 0.4s ease-in-out infinite;
}

.ant-icon img {
    width: 27px;
    height: auto;
    display: block;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.logo-small {
    padding-top: 4px;
}

.logo-small-img {
    height: 16px !important;
    width: auto !important;
}

.level-text {
    font-size: 20px;
    font-weight: 600;
    color: #191715;
}

/* ===== Final Screen ===== */
.final-screen {
    text-align: center;
}

.final-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #F4F2EF;
    border-radius: 20px;
    padding: 6px 30px 30px;
    position: relative;
    z-index: 1;
}

.celebration-icon {
    display: flex;
    justify-content: center;
}

.final-title {
    font-size: 28px;
    font-weight: 700;
    color: #191715;
    margin-bottom: 20px;
}

.final-title-end {
    margin-top: 40px;
}

.final-title span {
    display: block;
}

.final-message {
    font-size: 20px;
    font-style: italic;
    color: #191715;
    max-width: 500px;
    padding-bottom: 20px;
}

.final-score {
    margin-bottom: 40px;
}

.score-label {
    font-size: 20px;
    font-weight: 700;
    font-style: bold;
}

.score-value {
    font-size: 40px;
    font-weight: 700;
    margin: 0;
    font-style: bold;
}

/* ===== Social Section ===== */
.social-section {
    margin-top: 40px;
    padding-top: 30px;
}

.social-title {
    font-size: 28px;
    font-weight: 700;
    color: #191715;
}

.social-subtitle {
    font-size: 16px;
    color: #718096;
    margin-bottom: 20px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #191715;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.social-btn span {
    margin-top: 16px;
}

.final-replay-btn {
    width: 200px; 
    align-self: center; 
}

.social-icon-img {
    width: 120px;
    height: 120px !important;
    object-fit: contain;
    display: block;
}

/* ===== Buttons ===== */
.play-again-btn {
    padding: 15px 40px;
    background: linear-gradient(90deg, #4D5574 39.42%, #E9B64E 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 40px;
}

.play-again-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(77, 85, 116, 0.4);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .quiz-screen {
        padding: 30px 20px;
        min-height: 680px;
    }
    
    .restart-btn {
        top: 15px;
        right: 20px;
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .welcome-title {
        font-size: 22px;
    }
    
    .welcome-intro {
        font-size: 16px;
    }
    
    .welcome-quote {
        font-size: 14px;
    }
    
    .question-title {
        font-size: 18px;
    }
    
    .question-text {
        font-size: 15px;
    }
    
    .answer-btn {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .feedback-message {
        font-size: 24px;
    }
    
    .feedback-subtext {
        font-size: 16px;
    }
    
    .final-title {
        font-size: 24px;
    }
    
    .final-message {
        font-size: 16px;
    }
    
    .score-value {
        font-size: 36px;
    }
    
    .social-title {
        font-size: 20px;
    }
    
    .social-buttons {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .social-btn {
        width: auto;
    }
}

@media (max-width: 480px) {
    
    .quiz-screen {
        padding: 20px 15px;
    }
    
    .restart-btn {
        top: 10px;
        right: 15px;
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .logo-text {
        font-size: 28px;
    }
    
    .welcome-title {
        font-size: 18px;
    }
    
    .question-title {
        font-size: 16px;
    }
    
    .question-text {
        font-size: 14px;
    }

    .level-text {
        font-size: 16px !important;
    }   
    
    .question-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .ant-image {
        width: 100px;
        height: 100px;
        font-size: 70px;
    }
    
    .feedback-subtext {
        font-size: 14px;
    }
    
    .social-title {
        font-size: 20px;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-screen {
    animation: fadeIn 0.4s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.celebration-icon {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes antWalk {
    0% {
        transform: translateY(0) rotate(-1deg) scaleX(1);
    }
    12.5% {
        transform: translateY(-1.5px) rotate(-2deg) scaleX(0.98);
    }
    25% {
        transform: translateY(-2.5px) rotate(-1deg) scaleX(0.96);
    }
    37.5% {
        transform: translateY(-1.5px) rotate(0deg) scaleX(0.98);
    }
    50% {
        transform: translateY(0) rotate(1deg) scaleX(1);
    }
    62.5% {
        transform: translateY(-1.5px) rotate(2deg) scaleX(0.98);
    }
    75% {
        transform: translateY(-2.5px) rotate(1deg) scaleX(0.96);
    }
    87.5% {
        transform: translateY(-1.5px) rotate(0deg) scaleX(0.98);
    }
    100% {
        transform: translateY(0) rotate(-1deg) scaleX(1);
    }
}
