*{
    margin: 0;
    border-radius: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

@font-face {
    font-family: 'Rubik' ;
    src: url(frontend-quiz-app/starter-code/assets/fonts/Rubik-VariableFont_wght.ttf) format('truetype'),
    url(frontend-quiz-app/starter-code/assets/fonts/Rubik-Italic-VariableFont_wght.ttf) format('truetype');
    font-style: normal;
}
:root{
    --white:#FFFFFF;
    --black: #000000;
    --Grey-600:#626C7F;
    --Grey-60: #FAF6FA;
    --Blue-950: #2D3949;
    --Blue-900: #313E51;
    --Blue-850:#3B4D66;
    --Blue-500: #306AFF;
    --Blue-200: #ABC1E1;
    --Blue-100: #EDF1F9;
    --Blue-50: #EBF0FF;
    --Green-500:#2FD887;
    --Green-100: #E0FDEF;
    --Purple-500: #A729F5;
    --Purple-100: #F6E7FF;
    --Orange-400:#FF7E35;
    --Orange-50: #FFF5ED;
    --Red: #EE5454;
}

html,
body {
    font-family: "Rubik", serif;
    display: block;
    height: auto;
    background: url(frontend-quiz-app/starter-code/assets/images/pattern-background-mobile-light.svg) var(--Blue-50) no-repeat ;
    background-size: cover;
}

main{
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    padding: 2rem;
    color: var(--Blue-900);
}




/*--light-mode-toogle--*/

#section-holder{
    display: flex;
    flex-direction: column;
} 

header{
    margin-bottom: 2.3rem;
    display: flex; 
    justify-content: space-between; 
}

#subject-name-and-logo{
    display: flex;
    align-items: center;
}

.section-name{
    margin-left: 1rem;
}

#light-mode-toogle{
    display: flex;
    align-items: center; 
    gap: 0.5rem;  
}


#switch{
    position: relative;
    background-color: var(--Purple-500);
    width: 2.5rem;
    height: 1.5rem;
    border-radius: 1.1rem;
    display: inline-block;
    cursor: pointer;
}

#switch input{
    display: none;
}

.slider{
    position: absolute;
    height: 1.2rem;
    width: 1.2rem;
    border: 0 solid var(--white) ;
    background-color: var(--white);
    border-radius: 50%;
    top: 0.15rem;
    left: 0.15rem;
    transition: transform 0.3s ease;
}

#switch input:checked + .slider{
    transform: translateX(1rem);
}

@media (min-width: 1024px) {
    header {
        margin-bottom: 2.7rem;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
}


/*--Quiz-Menu--*/
/* #quiz-menu{
    display: none;
} */

#welcome-message{
    margin-top: 3rem;
}

#welcome-message h1{
    font-size: 2.5rem;
    font-weight: 200;
    margin-bottom: 1rem;
    line-height: 1.2;
}

#welcome-message p{
    font-style: italic;
    color: var(--Grey-600);
}

#different-subject{
    margin-top: 2rem;
}

#different-subject article{
    display: flex;
    align-items: center;
    background-color: var(--white);
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700 ;
}

article img{
    margin-right: 1rem;
}


.html-svg{
    background-color: var(--Orange-50);
    border: 0 solid var(--Orange-50);
    border-radius: 10px;
    padding: 0.2rem;
}

.css-svg{
    background-color: var(--Green-100);
    border: 0 solid var(--Green-100);
    border-radius: 10px;
    padding: 0.2rem;
}

.js-svg{
    background-color: var(--Blue-50);
    border: 0 solid var(--Blue-50);
    border-radius: 10px;
    padding: 0.2rem;
}

.accessibility-svg{
    background-color: var(--Purple-100);
    border: 0 solid var(--Purple-100);
    border-radius: 10px;
    padding: 0.2rem;  
}

@media (min-width: 600px) {
    html, body {
        background: url(frontend-quiz-app/starter-code/assets/images/pattern-background-tablet-light.svg) var(--Blue-50) no-repeat;
    }

    /* #quiz-menu {
        display: none;
    } */

    #welcome-message h1 {
        font-size: 4rem;
        margin-bottom: 2rem;
    }

    header{
        margin-top: 1.5rem;
    }
    
    #welcome-message p {
        font-size: 1.25rem;
    }
    
    #different-subject{
        margin-top: 5rem;
    }

    #different-subject article{
        font-size: 1.25rem;
    }

    article img {
        margin-right: 1.5rem;
    }
}

@media (min-width: 1024px){
    html,body {
        background: url(frontend-quiz-app/starter-code/assets/images/pattern-background-desktop-light.svg) var(--Blue-50) no-repeat;
        background-size: cover;
    }
    
    header{
        margin-bottom: 4rem;
    }

    main{
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #section-holder{
        justify-content: center;
        align-items: center;
    }

    #quiz-menu{
        display: grid;
        grid-template-columns: 48% 52%;
        width: 72.33rem;
    }
    #different-subject {
        margin-top: 0;
    }

    #welcome-message{
        margin-top: 0;
    }
}


/*---Quiz-Menu-End---*/



/*--Quiz--Score-Section--*/
#quiz-completed-sec{
    display: none;
}
#quiz-completed-sec h1{
    font-size: 2.5rem;
    font-weight: 200;
    margin: 2rem 0;
    line-height: 1.2;
}

#score-details{
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.you-scored #score{
    font-weight: 700;
    font-size: 5.5rem;
    margin: 1rem 0;
}

.you-scored #total-Q{
    font-size: 1.1rem;
    font-weight: 500;
}

#play-again{
    width: 100%;
    margin-top: 1.2rem;
    background-color: var(--Purple-500);
    border: 0 solid;
    border-radius: 0.7rem;
    color: var(--white);
    padding: 1.1rem;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
}

@media (min-width:600px) {
    #quiz-completed-sec h1{
        font-size: 4rem;
    }

    main{
        padding: 2rem 4rem;
    }

    #play-again{
        padding: 1.3rem;
        font-size: 1.7rem;
    }
}

@media (min-width:1024px) {
    #quiz-completed-sec{
        display: none; /*grid*/
        grid-template-columns: 48% 52%;
        width: 72.33rem;
    }

    #quiz-completed-sec h1 {
        font-size: 4rem;
        margin: 0 0;
        
    }

    .you-scored #score{
        font-size: 9rem;
    }
}
/*--Quiz-Score-Section-End--*/







/*--Quiz-Question-Start--*/


#quiz-question{
    display: none;
}

.the-question > p{
    font-size: 0.75rem;
    color: var(--Grey-600);
    font-style: italic;
    
}

#question{
    color: var(--Blue-900);
    font-weight: bold;
    margin-top: 0.5rem;
    font-size: 1.25rem;
}

.progress-bar{
    height: 0.65rem;
    width: 100%;
    background-color: var(--white);
    position: relative;
    border-radius: 0.625rem;
    margin-top: 1.3rem;
    
}

#progress{
    height: 0.65rem;
    position: absolute;
    width: 50%;
    background-color: var(--Purple-500);
    border-radius: 0.625rem;
}

.answers{
    margin-top: 2rem;
}

.answers ul{
    list-style-type: none;
    padding: 0;
}

.list-items{
    background-color: var(--white);
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    margin-bottom: 1rem;
    padding: 1.2rem 1rem;
    border-radius: 0.825rem;
    color: var(--Blue-900);
    box-shadow: 0 0.2rem 1rem -0.7rem var(--Grey-600); 
    cursor: pointer;
}

li span:last-child {
    margin-left: auto;
}

.list-items.selected {
    border: 1.8px solid var(--Purple-500);
}

.list-items.correct {
    border: 1.8px solid var(--Green-500);
}

.list-items.incorrect {
    border: 1.8px solid var(--Red);
}

.no-answer-selected {
    display: none;
    color: var(--Red);
}

.option-update{
    width: 75%;
}
.answer-tag{
    color: var(--Grey-600);
    background-color: var(--Grey-60);
    padding: 0.45rem 0.8rem;
    border-radius: 0.5rem;
    margin-right: 0.6rem;
}

.answer-tag.when-active{
    background-color: var(--Purple-500);
    color: var(--white);
}

/* .answer-tag:active{
    background-color: var(--Purple-500);
} */

#submit{
    width: 100%;
    border-radius: 0.825rem;
    color: var(--white);
    background-color: var(--Purple-500);
    border: 0 solid;
    padding: 1.3rem 1rem;
    cursor: pointer;
}

#submit:active{
    background-color: #d4a8ee ;
}

.no-answer-selected{
    margin-top: 1rem;
    display: none;
}
.no-answer-selected p{
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--Red);
}


/* ul li:hover{
    border: 0.2rem solid var(--Purple-500);
}

.answer-tag:hover{
    background-color: var(--Purple-500);
    color: var(--white);
} */

@media (min-width:600px){
    #quiz-question-items>p{
        font-size: 1.55rem;
    }
    #question{
        font-size: 2.25rem;
    }

    ul li{
        font-size: 1.5rem;
    }
    
    #submit{
        padding: 1.3rem 1rem;
        font-size: 1.5rem;
    }
}


@media (min-width:1024px){
    #quiz-question{
        width: 100%;
    }
    #quiz-question-items {
        display: grid;
        grid-template-columns: 48% 52%;
        width: 100%;
        gap: 3rem;
    }
    #section-holder{
        width: 72.33rem ;
    }
    ul li{
        width: 34.55rem;      
    }
    #submit{
        width: 34.55rem;
    }
    .the-question>p{
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    .progress-bar{
        margin-top: 4rem;
    }
}

/*--Quiz-Question-Start--*/