* {
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    min-width: 320px;
    margin: 10px;
    padding: 0;
    background: url("images/759770.jpg") no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    overflow: hidden;
    color: #FFFACD;
    font-size: 24px;
}

/* Mobile First-Design
** Styling for Mobile size screen */
header {
    font-family: 'Crimson Text', serif;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    justify-content: space-evenly;
    background-color: rgba(84, 72, 89, 0.5);
    text-shadow: 6px 6px 9px #000000;
    font-size: 24px;
    border-radius: 8px;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
}

header > h1 {
    width: 75%;
    margin: 5px;
    font-size: 1.5em;
    letter-spacing: 2px;
}

p {
    margin: 30px 0 !important;
}

.progress {
    width: 25%;
}

main * {
    align-items: center;
    text-align: center;
    justify-content: center;
    margin: 15px auto;
    padding: 0px;
}

main > * {
    display: flex;
    flex-direction: column;
}

#intro {
    text-shadow: 6px 6px 9px #000000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

input[type=radio], button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type=radio] {
    border: none;
    margin: 0;
    padding: 0;
    height: 0;
}

button {
    background-color: #6B4870;
    font-size: 20px;
}

#questionAnswerSet {
    display: flex;
    flex-direction: column;
    border: 0;
    width: 80%;
}

#questionAnswerSet > legend, #questionAnswerSet > label, button {
    border: 0;
    padding: 10px;
    color: #FFFFFF;
    width: 80%;
    height: auto;
    border-radius: 8px;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
}

#questionAnswerSet > legend {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #1d002cb8;
    font-weight: 900;
    min-height: 150px;
}

#answers-error {
    color: #640000 !important;
    background-color: rgba(242, 178, 121, 0.9);
}

.answerLabel {
    background-color: rgba(34, 64, 44, 0.90);
    cursor: pointer;
}

#questionAnswerSet > input[type="radio"]:checked + .answerLabel {
    background-color: rgb(46, 89, 57);
    border: 2px inset #112116, 1px solid #112116;
}

#result {
    padding: 10px;
    width: 80%;
    background-color: rgba(46, 89, 57, 0.9);
    color: #FFFACD;
    border-radius: 8px;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
}

#answerText, #finalScore {
    font-size: larger;
    color: rgb(220,198,224);
}

p#finalScore {
    margin: 30px;
    font-size: 2em;
    font-weight: 900;
}

#bg_popup-container, #bg_popup-container a {
    color: black;
}

a:link, a:visited, a:active {
    color: #FFFACD;
}

#questionAnswerSet {
    width: 100%;
}

#questionAnswerSet > legend, #questionAnswerSet > label, button {
    width: 100%;
    margin-bottom: 0;
    margin-top: 5px;
}

#questionAnswerSet > legend {
    padding: 20px;
    margin-bottom: 30px !important;
}

#result {
    padding: 10px;
    width: 100%;
}

#js-submitAnswer {
    margin-top: 30px;
    cursor: pointer;
}

#js-next {
    margin-top: 30px;
    cursor: pointer;
}

#js-resetQuiz {
    margin-top: 30px;
    cursor: pointer;
}

h4#intro {
    color: #fff;
    margin: 30px 0;
}

/* Styling for Short Viewport */
@media (max-width: 767px) {
    main * {
        margin: 5px auto;
    }

     header > h1 {
        width: 75%;
        margin: 5px;
        font-size: .8em;
    }

    h3 {
        font-size: .8em;
    }

    #questionAnswerSet {
        width: 100% !important;
    }

    #questionAnswerSet > legend, #questionAnswerSet > label, button {
        width: 100% !important;
        margin-bottom: 0;
        margin-top: 5px;
    }

    #result {
        padding: 10px;
        width: 100%;
    }
}

/* Styling for Tablet size screen */
/*@media (min-width: 768px) and (max-width: 1023px) {
    body, button {
        font-size: 24px;
    }
}*/

/* Styling for Computer size screen */
@media (min-width: 1024px) {
    body, header, button {
        font-size: 28px;
    }

    #questionAnswerSet {
        width: 80%;
    }

    #questionAnswerSet > legend, #questionAnswerSet > label, button {
        width: 80%;
        margin-bottom: 0;
        margin-top: 5px;
    }

    #result {
        padding: 10px;
        width: 80%;
    }
}
