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

* {
    margin: 0;
    padding: 0;
    border: none;
}

body {
    font-family: Rajdhani, sans-serif;
    color: black;
    background-color: #FFEE44;
}

/* header & logo */

header {
    width: 100%;
    height: 100px;
    padding: 0 5px;
}

#logo {
    float: left;
    margin-left: 70px;
    height: 75px;
    margin-top: 10px;
}

#logo img {
    width: 70px;
    border-radius: 50%;
    margin: 2px;
    border: 4px solid black;
}

#logo img:hover {
    border: 5px solid black;
    margin: 1px;
}

/* quiz question and answers */

#qanda {
    margin: 15px 0;
}

#question, #counter, .scores, .title{
    text-align: center;
}

.title {
    font-size: 96px;
}

#question {
    font-size: 48px;
}

#counter {
    font-size: 30px;
}

.answers {
    display: grid;
    grid-template-columns: 95%;
    grid-template-rows: auto auto auto auto;
    justify-content: center;
}

.answers button, #final-score, #username, #save-score, .highscore-title {
    margin: 30px 5px;
    padding: 10px 5px;
    background-color: black;
    color: #FFEE44;
    height: auto;
    font-size: 64px;
    font-family: Rajdhani, sans-serif;
    font-weight: 700;
}

.answers button:hover {
    background-color: #FFEE44;
    color: black;
    border: 5px solid black;
}

.level {
    float: left;
    margin: 0 10px;
}

.quiz-title {
    float: right;
    margin: 0 10px;
}

.scores {
    display: flex;
    justify-content: center;
}


.correct-score {
    color: black;
    padding: 10px;
    display: none;
    font-size: 56px;
}

/* final score page */

#quiz-scores-area {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto auto auto;
}

#final-score, #username, #save-score {
    text-align: center;
    width: 100%;
}

#username:-webkit-autofill {
    box-shadow: 0 0 0px 9999px black;
    -webkit-box-shadow: inset 0 0 0px 9999px black;
    -webkit-text-fill-color: #FFEE44;
}

#save-score:disabled {
    color: #3a3a3a;
}

/* high scores page */

#high-scores-area {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

#high-scores-area div {
    margin: 10px;
    width: 100%;
    text-align: center;
}

#high-scores-area ol {
    width: 20%;
    margin: 0 auto;
}

/* Responsive design for screens 600px width and below */

@media screen and (max-width: 600px) {

    .title {
        font-size: 96px;
    }

    #question {
        font-size: 7vw;
    }

    .answers button, #final-score, #username, #save-score, .highscore-title {
        font-size: 6vw;
        margin: 20px 5px;
    }
    
}