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

body {
    min-height: 100vh;
    background-color: #f5f7fb;
    font-family: Arial, sans-serif;
    color: #1e293b;

    display: flex;
    justify-content: center;
    align-items: center;

   
}


.quiz-container {
    max-width: 700px;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.quiz-header {
    text-align: center;
}

.logo {
    width: 55px;
    height: 55px;
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #6366f1;
    color: white;
    border-radius: 14px;
    font-size: 20px;
    font-weight: bold;
}

.quiz-header h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.quiz-header p {
    color: #64748b;
    font-size: 16px;
}




.question-info {
    margin-top: 30px;
    margin-bottom: 12px;

    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}




.progress-container {
    width: 100%;
    height: 8px;

    background-color: #e2e8f0;

    border-radius: 10px;

    overflow: hidden;
}

.progress-bar {
    width: 20%;
    height: 100%;

    background-color: #6366f1;

    border-radius: 10px;

    transition: width 0.3s ease;
}




.quiz-section {
    margin-top: 40px;
}

.quiz-section h2 {
    font-size: 22px;
    line-height: 1.5;

    margin-bottom: 25px;
}




.answers {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.answer {
    width: 100%;

    padding: 16px 18px;

    background-color: #ffffff;

    border: 2px solid #e2e8f0;
    border-radius: 12px;

    text-align: left;

    font-size: 16px;
    color: #1e293b;

    cursor: pointer;

    transition: 0.3s;
    
}

.answer span {
    display: inline-flex;

    justify-content: center;
    align-items: center;

    width: 30px;
    height: 30px;

    margin-right: 12px;

    background-color: #eef2ff;
    color: #6366f1;

    border-radius: 8px;

    font-weight: bold;
}

.answer:hover {
    border-color: #6366f1;
    background-color: #f8f8ff;
}

.answer.selected {
    border-color: #6366f1;
    background-color: #eef2ff;
}

.answer.selected span {
    background-color: #6366f1;
    color: white;
}


.error-message {
    display: none;

    margin-top: 15px;

    color: #ef4444;
    font-size: 14px;
}




.next-btn {
    display: block;

    margin: 30px 0 0 auto;

    padding: 13px 24px;

    border: none;
    border-radius: 10px;

    background-color: #6366f1;
    color: white;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;
}

.next-btn:hover {
    background-color: #4f46e5;
    transform: translateY(-2px);
}




.result-section {
    display: none;

    text-align: center;

    padding-top: 30px;
}

.result-icon {
    font-size: 55px;
    margin-bottom: 15px;
}

.result-section h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.result-section p {
    color: #64748b;
}

.score {
    margin: 20px 0;

    font-size: 50px;
    font-weight: bold;

    color: #6366f1;
}

.retry-btn {
    margin-top: 20px;

    padding: 13px 30px;

    border: none;
    border-radius: 10px;

    background-color: #6366f1;
    color: white;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;
}

.retry-btn:hover {
    background-color: #4f46e5;
}

.answer.correct{
    border-color: #68f163;
    background-color: #eefff1;
}
.answer.wrong{
    border-color: #f17863;
    background-color: #fff0ee;
}


@media (max-width: 600px) {

    body {
        padding: 15px;
    }

    .quiz-container {
        padding: 25px 20px;
    }

    .quiz-header h1 {
        font-size: 26px;
    }

    .quiz-section h2 {
        font-size: 19px;
    }

    .answer {
        font-size: 15px;
    }
}