/* Colour Definitions */
:root {
    --gray: #1e1e22;
    --darkGray: #19191b;
    --darkGrayHover: #29292c;
    --whiteHover: rgb(219, 219, 219);
    --iconHover: rgb(73, 73, 73);
    --linkBlue: rgb(35, 110, 250)
}

/* Global Elements */
body {
    font-family: "Playfair Display";
    height: 100vh;
    margin: 0;
    background-color: var(--darkGray);
    background-image: url(/imgs/background.svg);
    color: white;
    font-size: 1.5em;
    overflow-x: hidden;
}

p {
    margin: 0;
}

a {
    text-decoration: none;
}

/* Nav Bar */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    background-color: var(--darkGray);
}

.navLogo {
    height: 85px;
}

    .navLogo img{
        height: 100%;
    }

.questionNo {
}

.corrQuestionNo {
}

.socialLinks {
    display: flex;
    flex-direction: row;
}

.socialLinks div {
    opacity: 1;
    margin: 0 5px;
    border-radius: 50%;
}

    .socialLinks div:hover {
        border-radius: 50%;
        background-color: var(--iconHover);
    }

.socialLinks div a img {
    height: 35px;
}


/* Home Page */

.homeMain {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.homeGunsDiv {
    width: 100%;
    height: fit-content;
    padding: 15px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    background-color: #272729cf;
}

.homeGunDiv {
    text-align: center;
}

.homeChoicesRow {
    display: flex;
    flex-direction: column;
}

.homeBtn {
    margin: 15px 5px;
    padding: 10px;
    background-color: var(--darkGray);
    border: solid 1px #E1E1E1;
    border-radius: 5px;
    transition: background-color linear 150ms
}

    .homeBtn:hover {
        cursor: pointer;
        background-color: var(--darkGrayHover);
    }

.homeBtn img {
    max-width: 100%;
    height: 100px;
}

.homeBtn p {
    color: white;
}


/* Gun Select Pages (View/Quiz) */

.gunMain {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 10px;
}

.difficultySelect {
    padding: 8px 30px;
    margin-bottom: 30px;
    border-radius: 5px;
    font-size: 0.8em;
    color: white;
    background-color: var(--darkGray);
}

/* Gun Quiz Main Page */

.gunImg {
    max-width: 98%;
    height: 400px;
    margin-bottom: 15px;
    border: 3px white solid;
    border-radius: 8px;
}

.answerText {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.correctAnswer {
    color: green;
}

.incorrectAnswer {
    color: red;
}

.gunName {
    font-size: 1.2em;
}

.submitBtn {
    font-size: 1.2em;
    font-weight:600;
    padding: 15px 45px;
    margin: 15px 0;
    border-radius: 8px;
    color: white;
    background-color: var(--gray)
}

    .submitBtn:hover {
        cursor: pointer;
        background-color: var(--darkGrayHover)
    }

/* Gun Quiz Normal Template */

.normalAnswers {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.normalAnswers div{
    width: 50%;
    display: flex;
    justify-content: space-between;
}

.normalAnswer {
    font-size: 1.4em;
    width: 100%;
    padding: 15px 5px;
    margin: 12px;
    border-radius: 8px;
    color: white;
    background-color: var(--gray);
    transition: background-color ease-in 100ms;
}

    .normalAnswer:hover {
        cursor: pointer;
        background-color: var(--darkGrayHover);
    }

.selected {
    background-color: var(--darkGrayHover);
}

/* Gun Quiz Hard Template*/

.hardInput {
    width: 500px;
    padding: 10px 10px;
    font-size: 1em;
    border-radius: 5px 5px 0px 0px;
    transition: border-radius linear 200ms;
    outline: none;
}

    .hardInput:placeholder-shown {
        border-radius: 5px;
    }

.hardResults ul {
    text-align: center;
    width: 518px;
    padding-left: 0px;
    margin: 0 auto 0;
    background: white;
    border-color: none;
    border-radius: 0 0 6px 6px;
    outline: none;
    max-height: 150px;
    overflow-y: scroll;
}

    .hardResults ul li {
        padding-left: 2px;
        color: black;
        font-size: 18px;
        text-align: left;
        list-style: none;
        cursor: pointer;
        transition: .15s all ease;
    }

        .hardResults ul li:hover {
            background-color: #605A5A;
            border-color: none;
            outline: none;
        }

/* Mobile Queries */

/* Home Column Layout */
@media only screen and (max-width: 800px) {

    /* Home Page */
    .homeGunsDiv {
        flex-direction: column;
    }

    .homeGunDiv {
    }

    .homeChoicesRow {
        flex-direction: row;
        justify-content: center;
    }

    .homeBtn {
    }
}

/* Mobile Quiz Design */
@media only screen and (max-width: 700px) {

    /* Navbar */

    .navLogo {
        height: 65px;
    }

    .questionNo, .corrQuestionNo {
        font-size: .7em;
    }

    /* Quiz */

    .answerText {
        font-size: 1em;
    }

    /* Normal Answers */

    .normalAnswers div {
        width: 100%;
    }

    /* Hard Answers */

    .hardInput {
        width: 250px;
    }

    .hardResults ul {
        width: 270px;
    }

}