* { 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #050427;
    min-height: 100vh;
    overflow: auto;
}
.quiz-container{
    background-color: azure;
    padding: 30px;
    border-radius: 20px;
    box-shadow: rgba(211, 8, 136, 0.4) 5px 5px, rgba(150, 140, 146, 0.3) 10px 10px, rgba(202, 13, 133, 0.726) 15px 15px, rgba(175, 45, 128, 0.1) 20px 20px, rgba(119, 34, 88, 0.05) 25px 25px;
    width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 95%;
    /* text-align: center; */
    min-height: 400px;
    height: auto;
    position: relative;
}

.title{
    color: #050427;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;

}

.question-counter {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

#question-area {
    font-size: 20px;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 12px;
    margin-bottom: 30px;
    text-align: left;
    width: 100%;
}

#question-code {
    font-family: monospace; /* Or any desired monospace font */
    background-color: #ddf4fa; /* Light gray background */
    border: 1px solid #9fe6f8;
    padding: 10px; /* Add some spacing */
    border-radius: 8px; /* Rounded corners */
    color: #333; /* Dark text color */
    font-size: 0.95em;
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-top: 15px;
    text-align: left;
}

.btn {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
    width: 100%;
    margin: 20px;
    flex-grow: 1;
    justify-content: center;
}

.btn-choice {
    width: 100%;
    text-align: left;
    font-size: 20px;
    padding: 12px 15px;
    color: #000;
    border-radius: 10px;
    font-weight: 500;
    background-color: #dceee4;
    border: 1px solid #7ba8b9;
    box-shadow: 2px 3px 2px rgb(67, 69, 70);
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-choice:hover {
    background-color: #74c9e7;
    border: 1px solid #74c9e7;
    box-shadow: 4px 6px 5px rgba(175, 185, 185, 0.6);
    transform: translate(-2px);

}
.btn-choice.selected {
    border: 2px solid #6637b3; /* Highlight selected answer */
    box-shadow: 0 0 10px rgba(102, 55, 179, 0.5);
}

.btn-choice.correct{
    background-color: #a8e6cf;
    font-weight: 600;
    color: #007a0e;
    border: 1px solid #007a0e ;
    box-shadow: 2px 3px 2px rgba(7, 53, 1, 0.6);
    pointer-events: none;
}


.btn-choice.incorrect{
     background-color: #ffb3b3;
    font-weight: 600;
    color: #990000;
    border: 1px solid #990000;
    box-shadow: 2px 3px 2px rgba(128, 0, 0, 0.4);
}

#submit-btn {
    width: 40%;
    max-width: 200px;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    background-color: #6637b3;
    color: #dceee4;
    border: 1px solid #6f128b;
    box-shadow: 2px 3px 2px rgba(49, 51, 49, 0.5);
    transition: all 0.5s ease-in;
    margin-top: auto;
    margin-bottom: 10px;
    cursor: pointer;
}

#submit-btn:hover {
    background-color: #3f1d75;
    box-shadow:  4px 6px 2px rgba(49, 51, 49, 0.6);
    transform: translateY(-2px);
}

#submit-btn:disabled {
    background-color: #a0a0a0;
    border-color: #808080;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.score-area {
    background-color: #e0f7fa;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
    text-align: center;
    color: #050427;
    width: 80%;
}

.score-area h2{
    font-size: 2.2em;
    color: #007bff;
    margin-bottom: 20px;
}
.score-area p {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: 600;
}

#feedback-message {
    font-size: 1.2em;
    font-style: italic;
    color: #555;
    margin-bottom: 30px;
}

.restart-btn {
    background-color: #28a745;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition:  background-color 0.3s ease, tranform 0.2 ease;
    box-shadow: 2px 3px 2px rgba(40, 167, 69, 0.4);
}

.restart-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 4px 6px 4px rgba(40, 167, 69, 0.6);
}

#error {
    display: none;
    border: 1px solid #fc0505;
    text-align: center;
    padding: 15px;
    background-color:#ddf4fa;
    background-image: linear-gradient(#fa1b1b, #ddf4fa, #ddf4fa, #fa1b1b); ;
    color: #fd5f5f;
    font-size: 18px;
    font-weight: 600;
     box-shadow: 2px 3px 2px rgba(49, 51, 49, 0.5);
    transition: all 0.5s ease-in;
    margin: 10px;
}

@media (max-width: 768px) {
    .quiz-container {
        padding: 20px;
    }

    .title {
        font-size: 24px;
    }
    #question-area {
        font-size: 18px;
    }

    #question-code {
        font-size: 0.85em;
        padding: 10px;
    }

    .btn-choice {

        font-size: 16px;
        padding: 10px 12px;
    }

    #submit-btn {
        width: 60%;
        font-size: 1em;
        padding: 10px 15px;
    }

    .score-area h2 {
        font-size: 1.8em;
    }

    .score-area p {
        font-size: 1.3em;
    }
    #feedback-message {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .quiz-container {
        padding: 15px;
        border-radius: 15px;
    }

    .title {
        font-size: 22px;
    }

    #question-area {
        font-size: 16px;
    }

    #question-code {
        font-size: 0.8em;
    }

    .btn-choice {
        font-size: 15px;
        padding: 8px 10px;
    }

    #submit-btn {
        width: 80%;
    }
}

