@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;1,300;1,400&family=Nunito:ital,wght@0,300;1,300;1,400&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    background-color: #4d0000;
    font-family: "Nunito", sans-serif;
    width: 100%;
    margin: 0 auto;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
}

/* TITLE */
h1 {
    margin: 30px 0 30px 0;
    font-family: 'Lato', sans-serif;
    text-align: center;
    font-size: 4em;
    color: wheat;
}

/* Instructions style */
header button {
    display: flex;
    width: fit-content;
    font-size: 1.3em;
    padding: 0 3%;
    background-color: rgba(0, 17, 255, 0.521);
    border-radius: 30px;
    border-style: solid;
    border-width: 2px;
    border-color: rgba(255, 0, 0, 0.685);
    text-align: center;
    margin: 10px auto;
    cursor: pointer;
    color: honeydew;
}

header button:hover {
    outline: 2px solid rgb(255, 0, 0);
    background-color: rgb(0, 17, 255);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

/* Modal Content */
.hidden-instructions {
    background-color: #8eaeffcf;
    ;
    margin: auto;
    padding: 20px;
    border: 3px solid #8effa1cf;
    ;
    width: 80%;
    font-size: 1.5em;
    text-align: center;
}

/* The Close Button */
.close {
    color: #000000;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: rgb(9, 255, 0);
    text-decoration: none;
    cursor: pointer;
}

/* MAIN BODY GAME AREA */
.game-area {
    width: 80%;
    height: fit-content;
    margin: auto;
    text-align: center;
    background-image: radial-gradient(white, blue);
    border-radius: 35px;
    border-style: double;
    border-width: 10px;
    border-color: darkblue;
    align-items: center;
    justify-content: center;
}

#question {
    margin: 70px 5px 70px 5px;
    font-size: 2.0em;
    font-weight: 900;
    color: honeydew;
}

.btn {
    width: 45%;
    height: fit-content;
    font-family: inherit;
    text-transform: capitalize;
    letter-spacing: 1.2px;
    margin: 5px 10px;
    font-size: 1.4em;
    background-color: #006487;
    border-radius: 35px;
    border-style: solid;
    border-width: 2px;
    border-color: #990303;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 10px 20px;
    font-weight: bold;
    color: honeydew;
}

.btn:hover {
    outline: 3px solid #4d0000;
    background-color: #00bbff;
}

.btn:disabled {
    color: #000000;
}

/* Submit Answer Button */
.submit-btn {
    display: grid;
    padding: 10px 20px;
    text-align: center;
    margin: auto;
    margin-top: 70px;
    font-size: 1.3em;
    background-color: #006487;
    border-radius: 35px;
    border-style: solid;
    border-width: 2px;
    border-color: #990303;
    cursor: pointer;
    font-weight: 900;
    color: honeydew;
}

.submit-btn:hover {
    outline: 3px solid #4d0000;
    background-color: #00bbff;
}

/* Next Question Button */
.next-btn {
    display: grid;
    padding: 10px 20px;
    text-align: center;
    margin: auto;
    margin-top: 70px;
    font-size: 1.3em;
    background-color: #006487;
    border-radius: 35px;
    border-style: solid;
    border-width: 2px;
    border-color: #990303;
    cursor: pointer;
    font-weight: 900;
}

.next-btn:hover {
    outline: 3px solid #4d0000;
    background-color: #00bbff;
}

/* Start Game Button */
.start-game {
    display: flex;
    justify-content: center;
    margin: 250px auto;
    font-size: 3.9em;
    font-weight: 700;
    border-width: 3px;
    border-color: #990303;
    cursor: pointer;
    top: 30px;
    padding: 10px 20px;
    text-align: center;
    background-color: #006487;
    border-radius: 35px;
    border-style: solid;
    color: honeydew;
}

.start-game:hover {
    outline: 3px solid #4d0000;
    background-color: #00bbff;
}

/* Question Counter */
.question-counter {
    margin: 10px 0 35px 0;
    padding-bottom: 10px;
    font-size: 1.4em;
    font-weight: 900;
    color: honeydew;
}

.dead-space {
    height: 400px;
}

/*404 page*/
#error404 {
    color: whitesmoke;
}

.paragraph {
    font-size: 50px;
    font-weight: 700;
    text-align: center;
    padding: 10px;
    color: antiquewhite;
}

#centerbu {
    text-align: center;
}

.homebu {
    background-color: rgb(255, 255, 255);
    color: #000000;
    padding: 14px 28px;
    font-size: 22px;
    cursor: pointer;
    display: inline-block;
    border-radius: 8px;
    text-decoration: none;
    position: absolute;
}

.homebu :hover {
    background-color: rgb(49, 49, 49);
    color: rgb(0, 0, 0);
    border-radius: 8px;
}

/* RESULT BOX */
#result-box {
    font-size: 1.4em;
    font-weight: 900;
    margin: 70px 40px 70px 40px;
    background-color: rgba(0, 17, 255, 0.7);
    padding: 30px;
    border-radius: 35px;
    border-style: solid;
    border-color: rgb(0, 87, 87);
    border-width: 3px;
}

#person-message {
    margin-top: 30px;
}

#start-new-game-btn {
    display: grid;
    top: 30px;
    padding: 10px 20px;
    text-align: center;
    margin: auto;
    margin-top: 60px;
    font-size: 1.3em;
    background-color: rgb(0, 214, 0);
    border-radius: 35px;
    border-style: solid;
    border-width: 2px;
    border-color: darkgreen;
    cursor: pointer;
}

/* up the screen dead space for devices from 780px of full height to larger devices and monitors */
@media screen and (min-height: 780px) {
    .dead-space {
        height: 650px;
    }
}

.hide {
    display: none;
}

/* Change screen size from larger to Medium size devices from 580px down" */
@media screen and (max-width: 580px) {
    header button {
        font-size: 1.1em;
    }

    #question {
        margin: 20px 5px 20px 5px;
        font-size: 1.3em;
    }

    .btn {
        height: fit-content;
        letter-spacing: 1.2px;
        width: 65%;
        font-size: 1.2em;
    }

    #start-new-game-btn {
        top: 30px;
        padding: 10px 20px;
        margin-top: 30px;
        font-size: 1.1em;
    }

    .next-btn {
        margin: 30px auto;
        padding: 10px 20px;
        font-size: 1.2em;
    }

    .submit-btn {
        margin: 30px auto;
        padding: 10px 20px;
        font-size: 1.2em;
    }

    .start-game {
        margin: 200px auto;
        font-size: 2.0em;
        font-weight: 700;
        padding: 10px;
    }

    .question-counter {
        font-size: 1.2em;
        margin-bottom: 20px;
    }

    #result-box {
        font-size: 1.2em;
    }

    #person-message {
        margin-top: 30px;
    }

    #start-new-game-btn {
        font-size: 1.2em;
    }

    /*404 page*/
    #error404 {
        font-size: 50px;
    }

    .paragraph {
        font-size: 40px;
    }
}

/* Change screen size from larger to Medium size devices from 460px down" */
@media screen and (max-width: 460px) {
    header button {
        font-size: 1.1em;
    }

    .hidden-instructions {
        background-color: #fefefe;
        margin: auto;
        padding: 20px;
        border: 1px solid #888;
        width: 80%;
        font-size: 1.3em;
    }

    h1 {
        margin: 10px 5px 5px 5px;
        font-size: 3em;
    }

    #question {
        margin: 20px 5px 20px 5px;
        font-size: 1.2em;
    }

    .btn {
        margin: 3px;
        padding: 3px;
        width: 80%;
        letter-spacing: 1.2px;
        font-size: 1.0em;
        height: fit-content;
    }

    #start-new-game-btn {
        top: 30px;
        padding: 10px 20px;
        margin-top: 30px;
        font-size: 1.1em;
    }

    .next-btn {
        margin: 30px auto;
        padding: 10px 20px;
        font-size: 1.1em;
    }

    .submit-btn {
        margin: 30px auto;
        padding: 10px 20px;
        font-size: 1.1em;
    }

    .question-counter {
        font-size: 1.0em;
        margin-bottom: 20px;
    }

    #result-box {
        font-size: 1.1em;
    }

    #person-message {
        margin-top: 30px;
    }

    #start-new-game-btn {
        font-size: 1.0em;
    }

    .dead-space {
        height: 200px;
    }
}


/* Change screen size from larger to Medium size devices from 300px down" */
@media screen and (max-width: 300px) {
    header button {
        font-size: 1.1em;
    }

    h1 {
        margin: 10px 5px 5px 5px;
        font-size: 2.6em;
    }

    #question {
        font-size: 1.1em;
    }

    .btn {
        font-size: 0.9em;
    }

    #start-new-game-btn {
        font-size: 1.0em;
    }

    .next-btn {
        font-size: 1.0em;
    }

    .submit-btn {
        font-size: 1.0em;
    }

    .start-game {
        margin: 200px auto;
        padding: 10px 10px;
        font-size: 1.6em;
        font-weight: 700;
        width: 85%;
    }

    .question-counter {
        font-size: 1.0em;
        margin-bottom: 20px;
    }

    #result-box {
        font-size: 1.0em;
        width: unset;
        margin: auto;
        margin-left: 10px;
        margin-right: 10px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    #start-new-game-btn {
        font-size: 1.0em;
    }
}