@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;400&display=swap');

/* Global style */

:root {

    /* ------- COLORS ------ */
    --earthy-green: #cfdbc5;
    --Asparagus: #89a670;
    --khaki: #c3b091; 
    --red-ochre: #913831; 
    --off-white: #f2f2f1;
    --pale-gold: #e6be8a;
    --envy: #8dac9a;

    /* TYPOGRAPHY */
    --content-text: 'Roboto', sans-serif;

    /* Linearly scale font size with CLAMP  */
    --step--2: clamp(0.69rem, calc(0.66rem + 0.19vw), 0.96rem);
    --step--1: clamp(0.83rem, calc(0.79rem + 0.26vw), 1.20rem);
    --step-0: clamp(1.00rem, calc(0.94rem + 0.35vw), 1.50rem);
    --step-1: clamp(1.20rem, calc(1.12rem + 0.47vw), 1.88rem);
    --step-2: clamp(1.44rem, calc(1.33rem + 0.63vw), 2.34rem);
    --step-3: clamp(1.73rem, calc(1.58rem + 0.84vw), 2.93rem);
    --step-4: clamp(2.07rem, calc(1.88rem + 1.11vw), 3.66rem);
    --step-5: clamp(2.49rem, calc(2.23rem + 1.47vw), 4.58rem);
}

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

html {
    height: 100%;
}

body {
    /* aspect-ratio: 12/9; */
    background: var(--earthy-green) url('../images/hero-image-afrobeats1.webp') center center/cover no-repeat;
    display: flex;
    flex-direction: column;
    font-family: 'poppins', sans-serif;
    font-size: 16px;
    height: 100%;
}

/* Heading */

h1 {
    text-align: center;
}

/* Heading  */
.heading {
    font-size: clamp(16px, 5vw, 50px);
    padding: 10px;
}

main {
    height: 100vh;
    width: 100vw;
}

/* Quiz area */

.quiz-container {
    align-items: center;
    background: var(--earthy-green) url('../images/hero-image-afrobeats3.jpg') center center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 10%;
    width: 100%;
}

#quiz-box {
    background-color: var(--earthy-green);
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 10px 5px 15px;
    width: 100%;
}

.question-bar {
    align-items: center;
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    width: 100%;
}

.quiz-header {
    align-items: center;
    display: flex;
    justify-content: space-evenly;
    text-align: center;
    width: 100%;
}

.question-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 5px 5px 5px 50px;
    border: 2px solid var(--Asparagus);
    width: 90%;
}

#question {
    align-items: center;
    background-color: var(--Asparagus);
    display: flex;
    font-size: 1.4rem;
    font-weight: bolder;
    justify-content: center;
    padding: 10px;
    text-align: center;
    width: clamp(200px, 100%, 1300px);
    height: 32%;
}

.question-box h2 {
    border-bottom: 1px solid var(--earthy-green);
    height: 50px;
    text-align: center;
}

#question-counter,
#incorrect-score, 
#scores {
    font-weight: bold;
}

/* Buttons */

#quiz-options {
    padding: 0 0 10px;
    width: 100%;
}

.options {
    background-color: var(--earthy-green);
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-direction: column;
    font-size: 1.3rem;
    justify-content: center;
    margin: 10px 0 10px;
    padding: .75em;
    width: clamp(200px, 100%, 1300px);
    height: 22%;
}

.btn-wrapper {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-bottom: 1.3rem;
    width: 100%;
}

.hide {
    display: none;
}

button {
    background-color: var(--Asparagus);
    border: 1px solid var(--Asparagus);
    border-radius: 1rem;
    color: #000;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bolder;
    padding: 0.4rem;
    margin: auto;
    width: 40%; 
}

.correct {
    background-color: var(--Asparagus);
}

.incorrect {
    background-color: var(--red-ochre);
    color: var(--off-white);
}

.quiz-header .fa-circle-check {
    color: var(--Asparagus);
}

.quiz-header .fa-circle-xmark {
    color: var(--red-ochre);

}

/* footer */
footer {
    align-items: center;
    background-color: var(--off-white);
    display: flex;
    justify-content: center;
    padding: 20px 0;
    text-align: center;
    width: 100%;
}

#copyrights-socials {
    display: flex;
    gap: 1rem;
    justify-content: space-around;
    align-items: center;
    width: 50%;
}

#copyrights-socials a {
    color: #000;
    text-decoration: none;
}

.font-sizing {
    font-size: small;
}

#social-networks {
    margin: 10px;
    text-align: center;
}

#social-networks li {
    display: inline-block;
    text-align: center;
    width: 100px;
}

#social-networks a {
    color: #000;
    display: block;
    text-decoration: none;
}

/* footer ends  */

/* Modal starts */
#overlay {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.700);
}

#modal {
    max-width: 80%;
    height: 50vh;
    margin: auto;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
}

/* Username form  */
#form-control {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem;
}

#quizzer {
    color: var(--red-ochre);
    font-size: 1.2rem;
    font-weight: bold;
}

#user-name {
    background-color: var(--khaki);
    align-items: center;
    border: none;
    border-radius: 10px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 10px auto;
    padding: 10px;
    text-align: center;
}

.username-box {
    margin: 20px;
}

input[type=text] {
    background: var(--off-white);
    border: var(--off-white);
    border-radius: 10px;
    margin: 20px 0 0;
    padding: 0.8em;
}

input[type=text]:focus {
    border: 1px solid var(--pale-gold);
    outline-color: var(--earthy-green);
}

.user-signup-btn { 
    background-color: var(--Asparagus);
    border: 1px solid var(--Asparagus);
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 10px;
    padding: 0.5rem;
}

#start {
    background-color: var(--khaki);
    border: 2px solid var(--Asparagus);
    border-radius: 1rem;
    margin: auto;
    width: 170px; 
}

/* Modal ends  */

/* Tablets */
/* Screen sizes equal to or larger than 280px wide */
@media screen and (max-width: 280px) 
and (orientation: portrait) {

    .heading {
        background-color: var(--earthy-green);
    }

    #logo {
        font-size: 0.8rem;
    }

    #form-control {
        margin: 0 0 1rem;
    }

    .get-username {
        margin: 5px 5px 0;
    }

    .quiz-container {
        margin-top: 25%;
        border-radius: 0;
    }

    #quiz-box {
        border-radius: 0;
    }

    .question-bar {
        flex-direction: column-reverse;
        gap: 0.5rem;
    }

    #question {
        font-size: 1.2rem;
    }

    .options {
        padding: 0.75rem;
        font-size: 1rem;
    }

    button {
        width: 50%;
    }

    #copyrights-socials {
        width: 60%;
    }

    footer {
        padding: 0;
    }
}

/* Screen sizes equal to or larger than 560px wide */
@media screen and (max-width: 560px) 
and (orientation: portrait) {

    body {
        background: none;
    }

    .heading {
        background-color: var(--earthy-green);
    }

    /* Username form  */
    #form-control {
        flex-direction: column;
    }

    #user-name {
        margin: 10px;
    }

    .quiz-container {
        margin-top: 5%;
    }

    .question-box {
        width: 90%;
    }
    
    #question {
        align-items: center;
        background-color: var(--Asparagus);
        display: flex;
        font-size: 1.4rem;
        font-weight: bolder;
        justify-content: flex-start;
        margin: 20px 0;
        padding: 1rem;
        text-align: center;
    }

    #copyrights-socials {
        width: 60%;
    }
    
}

/* Screen sizes equal to or larger than 768px wide */
@media screen and (min-width: 768px) 
and (orientation: portrait) {

    body {
        background: none;
    }

    .heading {
        background-color: var(--earthy-green);
    }

    #quiz-box {
        width: 100%;
    }

    .quiz-container {
        margin-top: 0;
    }
    
    #question {
        margin-top: 20px;
    }

    .question-box {
        height: 60vh;
        margin: 1rem
    }

    button {
        width: 20%;
        margin: 2rem;
    }

    #copyrights-socials {
        width: 30%;
    }
}

/* Landscape */

/* Screen sizes equal to or larger than 560px wide */
@media screen and (min-width: 540px) 
and (orientation: landscape) {
    
    #quiz-box {
        width: 100%;
    }

    #copyrights-socials {
        width: 100%;
    }
}

/* Screen sizes equal to or larger than 636px wide */
@media screen and (min-width: 636px) 
and (orientation: landscape) {

    .heading {
        background-color: var(--off-white);
    }
    
    .quiz-container {
        margin-top: 0;
    }

    button {
        padding: 0.4rem;
    }

    #copyrights-socials {
        width: 30%;
    }
}

/* Screen sizes equal to or larger than 1024px wide */
@media screen and (min-width: 1024px) 
and (orientation: landscape) {

    header {
        background-color: var(--off-white);
    }

    .quiz-container {
        background: none;
        margin-bottom: 0;
        margin-top: 10%;
    }

    #quiz-box {
        border-radius: 10px 50px 0 0;
        width: 100%;
        margin-top: 0;
    }   

    .question-box {
        border-radius: 10px 50px;
        margin-top: 5%;
        width: 65%;
    }
    
    #question {
        font-size: 1.8rem;
    }

    button {
        padding: 0.6rem;
        width: 20%;
    }

    button {
        background-color: var(--Asparagus);
        border: 1px solid var(--Asparagus);
        border-radius: 1rem;
        color: #000;
        cursor: pointer;
        font-size: 1.5rem;
        font-weight: bolder;
        padding: 0.4rem;
        margin: auto;
    }

    #copyrights-socials {
        width: 20%;
    }
}

/* Extra large Screen sizes equal to or larger than 1280px wide */
@media screen and (min-width: 1280px) 
and (orientation: landscape) {
    
    #user-name {
        width: 40vw;
    }
    
}

/* Extra large Screen sizes equal to or larger than 2560px wide */
@media screen and (min-width: 2560px) 
and (orientation: landscape) {
    
    #quiz-box {
        margin: 25% 0 10% 15%;
        width: 30%;
    }

    .quiz-header {
        font-size: 1.8rem;
    }

    .question-box {
        font-size: 2rem;
        width: 100%;
    }

    button {
        font-size: 2.5rem;
        width: 35%; 
    }
    
}