html,
body {
    margin: 0;
    height: 100%;
    width: 100%;
}

body {
    background: #c9c9c91a;
    font-family: sans-serif;
    margin: 0;
}

/* Header */

header {
    max-width: 100%;
    margin: 0 auto;
}

.headerBorder {
    background: linear-gradient(rgb(200, 200, 200, 255), rgb(200, 200, 200, 0));
    height: 8px;
}

.headerBody {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: space-between;
}

.headerMenuButton {
    height: 45px;
    width: 45px;
    align-items: center;
    justify-content: center;
    display: flex;
    background-color: transparent;
    border-color: transparent;
}

#menuOpenIcon {
    display: block;
}

#menuCloseIcon {
    display: none;
}

#searchOpenIcon {
    display: block;
}

#searchCloseIcon {
    display: none;
}

.headerLogo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    text-align: center;
    align-self: center;
    color: #09203f;
    margin: 0;
    font-family: Arial;
    font-weight: 350;
    font-size: 3em
}

.headerLogoTagline {
    font-size: 15px;
    text-align: right;
    margin-right: 2%;
}

.headerLinks {
    justify-content: space-between;
    display: flex;
    width: 60%;
    padding-left: 5%;
    padding-right: 5%;
    align-items: center;
    align-self: center;
    font-weight: 200;
}

.headerLinks a {
    color: black;
    text-decoration: none;
    padding-left: 10px;
    padding-right: 10px;
}

.headerLargeSearch {
    align-items: center;
    align-self: center;
    display: flex;
    margin-block-end: 0px;
    height: 35px;
    width: 16%;
}

.searchBar {
    width: 90%;
    padding-left: 5%;
    padding-right: 5%;
    display: none;
}

.searchInputField {
    width: 100%;
}

.searchBtn {
    background-color: transparent;
    border-color: transparent;
}

.headerHiddenRegion {
    overflow: hidden;
    position: relative;
}

.headerHiddenLinks {
    display: none;
    background-color: #333;
}

.headerHiddenLinks a {
    display: block;
    color: white;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

/* Add a grey background color on mouse-over */
.headerHiddenLinks a:hover {
    background-color: #ddd;
    color: black;
}

@media only screen and (min-width: 1000px) {
    .headerBody {
        margin-left: 50px;
        margin-right: 50px;
    }

    .headerMenuIcon,
    .headerSmallSearch,
    .headerHiddenRegion {
        display: none;
    }

    .headerLinks,
    .headerLargeSearch {
        display: flex;
    }
}

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

    .headerBody {
        margin-left: 10px;
        margin-right: 10px;
    }

    .headerLinks,
    .headerSmallSearch {
        display: none;
    }

    .headerLargeSearch,
    .headerMenuIcon {
        display: flex;
    }
}

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

    .headerLargeSearch,
    .headerLinks {
        display: none;
    }

    .headerMenuIcon,
    .headerSmallSearch {
        display: flex;
    }
}

/* Footer */

.copyrightTag {
    padding-bottom: 40px;
    text-align: center;
}

/* Cards */

.cardContainer {
    display: flex;
    flex-wrap: wrap;
    margin-left: 5%;
    margin-right: 5%;
    text-align: center;
}

.card {
    background-color: #fff;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 0.75rem;
    position: relative;
    height: 100%;
    width: 90%;
}

.cardCTA {
    background-color: #eb4511;
    background-image: linear-gradient(315deg, #eb4511, #b02e0c 74%);
    padding: 8px;
}

@media only screen and (min-width: 800px) {
    .cardGrid {
        display: grid;
        grid: auto / 1fr 1fr 1fr;
        row-gap: 50px;
        grid-auto-columns: minmax(0, 1fr);
    }
}

@media only screen and (max-width: 800px) {
    .cardGrid {
        display: grid;
        grid: auto / auto;
        row-gap: 15px;
    }
}

.cardDescription {
    color: #fff;
    font-size: 15px;
    width: 100%;
}

.cardImage {
    width: 100%;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    margin-bottom: -5px;
}

.cardText {
    color: #000;
}

/* Quiz Info */

#quiz {
    max-width: 800px;
    margin: auto;
}

@media only screen and (max-width: 800px) {
    .adsbygoogle {
        width: 300px;
        height: 250px;
        display: flex;
        margin: 0 auto;
    }

    #quiz {
        padding: 10px;
    }
}

@media only screen and (min-width: 800px) {
    .adsbygoogle {
        width: 728px;
        height: 90px;
        display: flex;
        margin: 0 auto;
    }
}

.answerOptions {
    display: grid;
    grid-auto-rows: 1fr;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
    margin-top: 10px;
    text-align: center;
}

@media only screen and (max-width: 600px) {
    .answerOptions {
        grid-template-columns: auto;
    }
}

.imageWrapper {
    position: relative;
    text-align: center;
    color: white;
    padding-top: 57%;
    height: 0;
}

.imageCredit {
    color: rgba(0, 0, 0, .7);
    margin: 0;
    font-family: monospace;
}

.questionImage {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    top: 0;
    position: absolute;
}

.option,
.playAgain {
    background-color: transparent;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    color: #212529;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    height: 100%;
    line-height: 1.5;
    padding: 11px;
    text-align: center;
    touch-action: manipulation;
    user-select: none;
    vertical-align: middle;
    white-space: normal;
}

.option.complete {
    background-color: grey;
}

.option.incorrect.selected {
    background-color: red;
}

.option.personality.selected {
    background-color: cyan;
}

.option.correct.complete {
    background-color: green;
}

.answerExplanation {
    display: none;
}

.answerExplanation.complete {
    display: inline;
}

.knowledgeResult {
    font-size: xx-large;
}

.personalityOutcome {
    display: none;
}

.personalityOutcome.selected {
    display: inline;
}

.result {
    display: none;
    margin: auto;
    margin-top: 20px;
    text-align: center;
}

.result.complete {
    display: grid;
}