@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
:root {
    --bgc: hsl(40, 15%, 90%);
    --card: linear-gradient(0deg, hsl(40, 15%, 95%) 95%, hsl(40, 15%, 98%));
    --card-hover: linear-gradient(0deg, hsl(40, 15%, 95%), hsl(40, 15%, 98%));
    --nestedCard01: hsl(40, 15%, 90%);
    --nestedCard02: hsl(40, 15%, 75%);

    --normal-textColor: hsl(30, 20%, 20%);
    --muted-textColor: hsl(30, 15%, 40%);
    --extraMuted-textColor: hsl(30, 15%, 65%);

    --border: hsl(0, 0%, 30%);
    --highlight-border: hsl(0, 0%, 60%);
    --shadow: 0px 2px 2px hsla(0, 0%, 0%, 0.07), 0px 4px 4px hsla(0, 0%, 0%, 0.15);

    --correct: hsl(146 17% 59%);
    --wrong: hsl(0 66% 75%);
}


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "DM Sans", sans-serif;
    color: var(--normal-textColor);
}

#modal{
    position: absolute;
    z-index: 1;
    padding: 1rem;
    background-color: var(--bgc);
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
#modal h2{
    font-size: 2rem;
}
#modal p{
    text-align: center;
    font-size: 1.5rem;
}
#modal button{
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 1rem;
    height: fit-content;
    width: fit-content;
    background-color: transparent;
    color: var(--normal-textColor);
    font-size: 2rem;
    font-weight: 650;
    cursor: pointer;
}
#modal button:hover{
    background-color: var(--correct);
}

#modal.hidden{
    display: none;
}

body{
    background-color: var(--bgc);
    transition: background-color 0.5s ease, color 0.5s ease;
}

header, main{
    border: 1px solid var(--border);
    border-radius: 2rem;
    background: var(--card);
    margin: 2rem;
    padding: 1rem;
    padding-right: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}
header:hover, main:hover{
    background: var(--card-hover);
}
header p{
    font-weight: bold;
}
header img{
    height: 5rem;
}



main{
    min-height: 35vh;
    border-radius: 1.5rem;
    margin-top: 3rem;
    flex-direction: column;
    align-items: start;
    gap: 1rem;
}
#quizHeader{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#quizName{
    font-size: 3rem;
}
main #quizzes{
    min-height: inherit;
    border: 1px solid var(--border);
    border-radius: 1rem;
    width: 100%;
    margin: auto;
    padding: 1rem;
    background-color: var(--nestedCard01);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}
main #quizzes li{
    border: 1px solid black;
    border-radius: 1rem;
    width: 100%;
    background-color: var(--nestedCard02);
    list-style: none;
}
main #quizzes li:hover{
    background: transparent;
}
main #quizzes li a{
    text-decoration: none;
    text-align: center;
}
main #quizzes li a h3{
    padding: 1rem;
    color: var(--normal-textColor);
    cursor: pointer;
}


/* Quiz starts from here: */
#question{
    font-size: 2rem;
}
#options{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
#options li{
    list-style: none;
    width: 100%;
    text-align: center;
}
#options li button{
    background-color: transparent;
    border: 1px solid var(--border);
    border: none;
    padding: 1rem;
    width: 100%;
    border-radius: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
}
.correctAnswer {
    background-color: var(--correct) !important;
}
.wrongAnswer {
    background-color: var(--wrong) !important;
}

controls{
    /* border: 1px solid white; */
    border-radius: 0.5rem;
    margin: 1rem 5rem;
    margin-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
controls button{
    border: none;
    border-radius: 1rem;
    padding: 0.1rem 2.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--normal-textColor);
    cursor: pointer;
}
#previousButton{
    background-color: var(--wrong);
}
#nextButton{
    background-color: var(--correct);
}
controls a{
    /* border: 1px solid red; */
    border-radius: 2rem;
    background-color: var(--correct);
    padding: 0.5rem;
    width: 100%;
    text-align: center;
    text-decoration: none;
    font-size: 2rem;
}

tips{
    /* border: 1px solid red; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 5rem;
    margin-bottom: 1rem;
}
tips p{
    color: var(--muted-textColor);
    text-align: center;
}
tips p.computerUsersOnly{
    color: var(--extraMuted-textColor);
}

hr{
    border: 0.5px solid var(--border);
}
footer{
    /* border: 1px solid black; */
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 3rem;
}
footer a{
    color: var(--primary-light);
    font-weight: bold;
}