/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Playwrite+DE+Grund:wght@100..400&display=swap');

/* Override default browser styles */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

/* General styles */
body {
    font-family: "Lato", sans-serif;
    background: whitesmoke;
}

/* Styles for Font Awesome Icons */
.fa-solid,
.fa-regular {
    font-size: 1.5rem;
    font-weight: 400;
}

/* Styles for quiz rules and quiz box area */
#quiz-rules {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10%;
    font-size: 1.25rem;
    padding: 0.5rem;
    line-height: 2rem;
}

#quiz-box {
    width: 65%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5%;
    font-size: 1.25rem;
    padding: 0.5rem;
    line-height: 2rem;
    margin-bottom: 10%;
}

#results-box {
    margin: auto;
    margin-top: 15%;
    font-size: 1.25rem;
    padding: 0.5rem;
    line-height: 2rem;
}

#quiz-rules h1,
#results-box h1,
#quiz-box h1 {
    text-align: center;
    font-weight: bold;
    margin-bottom: 1rem;
}

#quiz-rules h3 {
    margin-bottom: 1rem;
}

#quiz-box .question-text {
    font-weight: bold;
    line-height: normal;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.answer-div {
    border-radius: 10px;
    border-style: groove;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.answer-div:hover {
    cursor: pointer;
    transform: scale(1.03);
    transition: all 0.4s ease-in-out;
}

/* Styles to be applied using JavaScript depending on user selection */
/* User selection turns green if correct and red if incorrect */
.choice-text.correct {
    background-color: green;
}    

.choice-text.incorrect {
    background-color: red;
}

/* Classes to be called using JavaScript during Game play */
.hidden {
    display: none;
}

.btn[disabled]:hover {
    cursor: not-allowed;
    transform: none;
    transition: none;
}

#questions-counter .questions-tracker-text {
    font-style: italic;
    font-weight: bold;
}

/*Answer Modal Display - concept inspired by Mentor, Alan Bushell */
.modal-content {
    display: none;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.answer-modal-div {
    margin: auto;
    padding: 1rem;
    border: 3px ridge;
    display: none;
    justify-content: start;
    flex-direction: column;
    text-align: center;
    background-color: rgb(227, 227, 230);
}

.modal-text {
    font-size: 1.25rem;
    padding: 0.3rem;
    font-weight: bold;
    font-family: "Lato", sans-serif;
}

/* The Close Modal Button */
#closeModal {
    color: black;
    /*float: center;*/
    font-weight: bold;
    border-radius: 1px;
    border-style: groove;
    text-transform: uppercase;
}
  
#closeModal:hover,
#closeModal:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
    background-color: blue;
}

#hidden-verse {
    font-style: oblique;
    text-decoration: wavy;
    font-weight: bold;
}

/* Style count down timer and question tracker*/
.countdown-tracker-div {
    display: flex;
    justify-content: space-between;
}

.countdown-div {
    flex-direction: row-reverse;
}

/* Style Start, Restartand Exit Buttons */
.start-btn-div,
.exit-btn-div {
    display: flex;
    justify-content: space-evenly;
}

.start-btn,
.exit-btn {
   font-size: 1.25rem;
   letter-spacing: 1px;
   border-style: ridge;
   font-weight: bold;
   padding: 1.25rem;
   margin-top: 1rem;
}

.start-btn:hover,
.exit-btn:hover {
    transform: scale(1.15);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    opacity: 0.5;
}

/* Hide quiz and results boxes until user clicks start or exit */
#quiz-box {
    display: none;
}

#results-box {
    display: none;
}

/* Style form area and elements */
.form-box {
    width: 85%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
    font-size: 1.25rem;
    padding: 0.5rem;
    line-height: 2rem;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    margin-top: 1rem;
}

input {
    width: 70%;
    font-size: 1.25rem;
}

.replay-btn {
    font-size: 1.25rem;
    padding: 1.25rem;
    border-style: ridge;
    margin-top: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    width: 70%;
}

.replay-btn:hover {
    transform: scale(1.15);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    opacity: 0.5;
}

/* Final Score on results page */
p#final-score.final-score-text {
    text-align: center;
    font-size: 20px;
    font-weight: bolder;
    font-style: oblique;
}