* {
    box-sizing: border-box;
}

body {
    background-image: url(https://user-images.githubusercontent.com/54642928/70887119-fdcfc000-1fd4-11ea-823d-eac1678df835.jpg);
}

header {
    text-align: center;
}

main {
    margin-top: 50px;
    margin-bottom: 50px;
    margin-left: 20px;
    margin-right: 20px;
}

h1 {
    font-family: "Ubuntu", sans-serif;
    font-weight: bolder;
    color: #9C39BC;
}

h2 {
    font-family: 'Lora', serif;
    font-weight: normal;
    font-style: italic;
    color: #0F2636;
}

h3 {
    font-family: "Ubuntu", sans-serif;
}

input[type="button"] {
    font-family: "Ubuntu", sans-serif;
}

fieldset {
    border: 0;
}

#question-text {
    font-family: "Ubuntu", sans-serif;
    font-weight: bold; 
    font-style: italic;
    color: #9C39BC;
}

#quiz-form {
    font-family: 'Lora', serif;
    font-weight: normal;
    color: #0F2636;
}

#question-tracker, #score-tracker {
    font-family: "Ubuntu", sans-serif;
    font-weight: lighter;
    font-style: normal;
    color: #E4EFED;
    margin: 0;
}

#unanswered {
    border-width: 5px;
    border-style: inset;
    border-color: transparent;
    background-color: rgba(0, 0, 0, 0.4);
    font-weight: normal;
    font-style: italic;
    color: #EAAE12;
}

#correct {
    border-width: 5px;
    border-style: inset;
    border-color: transparent;
    background-color: rgba(0,0,0,0.4);
    font-weight: normal;
    color: #BADE37;
}

#incorrect {
    border-width: 5px;
    border-style: inset;
    border-color: transparent;
    background-color: rgba(0,0,0,0.4);
    font-weight: normal;
    color: #ff9494;
}

.above-5, .below-5 {
    font-weight: normal;
    color:#9C39BC;
}

ul {
    list-style-type: none;
}

input[type="radio"] {
    display: inline-flex;  
}

label {
    position: relative;
    margin: 0px 10px 0px 10px;
    bottom: 1px;
}

#next-question, #submit-button, #show-results {
    display: flex;
    justify-content: center;
}

#start-page, #results-page {
    text-align: center;
}

#unanswered, #correct, #incorrect {
    text-align: center;
}

@media only screen and (min-width: 320px) {
    body {
        background-attachment: fixed;
        background-repeat: no-repeat;
        background-position-x: center;
        background-size: cover;
    }
    
    header, .main-quiz {
        background-color:rgb(20, 205, 240, 0.8);
        box-shadow: 5px 5px 5px #0F2636;
    }

    header {
        margin-top: 215px;
        margin-left: 30px;
        margin-right: 30px;
        border-radius: 25px;
    }

    .main-quiz {
        margin-top: 100px;
        border-radius: 25px;
    }

    h1 {
        font-size: 12pt;
        padding-top: 10px;
    }

    h2 {
        font-size: 10pt;
        padding-bottom: 10px;
    }

    input[type="radio"] {
        margin: -1px;
    }

    #start-quiz, #restart-quiz {
        font-size: 12pt;
    }

    #quiz-form {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        font-size: 12pt;
    }

    #question-text {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        text-align: left;
        padding-top: 20px;
        margin-bottom: 10px;
        font-size: 14pt;
    } 

    #next-question, #submit-button, #show-results {
        margin: auto;
        margin-top: 15px;
        margin-bottom: 15px;
        font-size: 12pt;
    }
    
    #question-tracker, #score-tracker {
        display: flex;
        flex-direction: row;
        font-size: 12pt; 
    }

    #unanswered, #correct, #incorrect {
        margin: auto;
        margin-top: 15px;
        font-size: 12pt;
    }

    .above-5, .below-5 {
        font-size: 12pt;
        padding-bottom: 10px;
    }
}

@media only screen and (min-width: 550px) {
    
    body {
        background-attachment: fixed;
        background-repeat: no-repeat;
        background-size: cover;
    }

    header, .main-quiz {
        background-color:rgb(20, 205, 240, 0.6);
    }

    header {
        margin-top: 300px;
        border-radius: 20px;
    }

    .main-quiz {
        margin-top: 200px;
        border-radius: 20px;
    }

    h1 {
        font-size: 24pt;
    }

    h2 {
        font-size: 20pt;
    }

    ul {
        padding-left: 50px;
    }

    input[type="radio"] {
        margin: 1px;
    }

    #start-quiz, #restart-quiz {
        font-size: 16pt;
    }

    #quiz-form {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        font-size: 18pt;
    }

    #question-text {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        text-align: center;
        margin-bottom: 10px;
        font-size: 20pt;
    } 

    #next-question, #submit-button, #show-results {
        margin: auto;
        margin-top: 15px;
        margin-bottom: 15px;
        font-size: 16pt;
    }
    
    #question-tracker, #score-tracker {
        display: flex;
        flex-direction: row;
        justify-content: center;
        font-size: 14pt; 
    }

    #unanswered, #correct, #incorrect {
        margin: auto;
        margin-top: 15px;
        font-size: 16pt;
    }
    
    .above-5, .below-5 {
        font-size: 24pt;
    }
}

@media only screen and (min-width: 768px) {
    header {
        margin-top: 300px;
        border-radius: 90px;
    }

    .main-quiz {
        margin-top: 200px;
        border-radius: 35px;
    }

    h1 {
        font-size: 30pt;
    }

    h2 {
        font-size: 28pt;
    }

    ul {
        padding-left: 100px;
    }

    #start-quiz, #restart-quiz {
        font-size: 18pt;
    }

    #quiz-form {
        font-size: 22pt;
    }

    #question-text {
        font-size: 24pt; 
    } 

    #next-question, #submit-button, #show-results {
        margin-top: 25px;
        margin-bottom: 25px;
        font-size: 18pt;
    }
    
    #question-tracker, #score-tracker {
        font-size: 18pt; 
    }

    #unanswered, #correct, #incorrect {
        margin-left: 15px;
        margin-right: 15px;
        margin-top: 15px;
        font-size: 20pt;
    }
    
    .above-5, .below-5 {
        font-size: 24pt;
        padding-bottom: 20px;
    }

    input[type="button"]:hover {
        background-color:#E1F1D0;
    }

    input[type="button"]:active {
        background-color: #E1F1D0;
        box-shadow: 0 5px #0F2636;
        transform: translateY(4px);
    } 
} 

@media only screen and (min-width: 1000px) {
    
    main {
        margin: 80px 80px 70px 70px;
    }

    header {
        margin-top: 200px;
        border-radius: 70px;
    }

    .main-quiz {
        margin-top: 200px;
        border-radius: 50px;
    }

    h1 {
        font-size: 42pt;
    }

    h2 {
        font-size: 40pt;
    }

    ul {
        padding-left: 150px;
    }

    input[type="radio"] {
        margin: 5px;
    }

    #start-quiz, #restart-quiz {
        font-size: 20pt;
    }

    #quiz-form {
        font-size: 26pt;
    }

    #question-text {
        display: flex;
        flex-direction: row;
        justify-content: center;
        padding-top: 25px;
        font-size: 30pt;       
    } 

    #next-question, #submit-button, #show-results {
        margin-top: 35px;
        margin-bottom: 35px;
        font-size: 20pt;
    }
    
    #question-tracker, #score-tracker {
        font-size: 20pt; 
    }

    #unanswered, #correct, #incorrect {
        margin-top: 15px;
        font-size: 24pt;
    }
    
    .above-5, .below-5 {
        font-size: 32pt;
        padding-bottom: 25px;
    }
} 

@media only screen and (min-width: 1200px) {
    main {
        margin: 80px 80px 70px 70px;
    }

    header {
        margin-top: 300px;
        margin-left: 50px;
        margin-right: 50px;
    }

    label {
        position: relative;
        margin: 5px 10px 5px 10px;
    }

    ul {
        padding-left: 200px;
    }

    #unanswered, #correct, #incorrect {
        margin-left: 100px;
        margin-right: 100px;
        margin-top: 15px;
        font-size: 24pt;
    }
}

@media only screen and (min-width: 1300px) {
    ul {
        padding-left: 600px;
    }

    #unanswered, #correct, #incorrect {
        margin-left: 200px;
        margin-right: 200px;
    }
}