/*This file is where all the styling for the webpage will go*/

body {
    background-color: #faf0ca; /*Sets the background color of the page*/
    font-family: Puritan, sans-serif; /*Sets the font to Puritan*/
}

figure {
    max-width: 550px;
    display: block;
    margin: 30px auto;
}

img {
    max-width: 100%;
    border: 2px solid white;
}

figcaption {
    font-size: small;
    text-align: center;
}

#question-container { /*This styles the container that should hold the user's input*/
    padding: 10px;
    background-color: #FFFFFF;
    max-width: 850px;
    display: block;
    margin: 50px auto;
    border: 4px solid #0d3b66;
    font-size: 1.4em;
}

#end-container { /*This styles the container that should hold the user's input*/
    padding: 10px;
    background-color: #FFFFFF;
    max-width: 850px;
    display: block;
    margin: 50px auto;
    border: 4px solid #0d3b66;
    font-size: 1.4em;
}

h1 { /*Styles the headline*/
    text-transform: capitalize;
    text-align: center;
    font-size: 3em;
    margin: 10px 5px 40px 5px;
    background-color: #0d3b66; /*Sets a background color around the headline*/
    color: #FFFFFF; /*Sets the font color to white*/
    padding: 20px;
}

.instructions { /*This styles the container that holds the instructions*/
    background-color: #FFFFFF;
    border: 4px solid #0d3b66;
    text-align: center;
    max-width: 900px;
    display: block;
    margin: 20px auto;
}

.information { /*This styles the text inside the instructions container*/
    max-width: 95%;
    margin: 15px auto;
    padding: 10px;
    font-size: 1.5em;
    text-align: justify;
    line-height: 2rem;
}

#submit { /*This should style the submit button*/
    padding: 10px;
    margin: 15px 0px;
    font-size: 15px;
    background-color: blue;
    color: #FFFFFF;
}

#startButton { /*This styles the start button*/
    margin: 25px auto;
    display: block;
    background-color: green;
    color: #FFFFFF;
    font-size: 40px;
}

#next {
    margin: 15px auto;
    padding: 10px;
    display: block;
    background-color: tomato;
    color: #FFFFFF;
    font-size: 20px;
}

footer {
    background-color: #0d3b66; 
    color: #FFFFFF;
    font-size: 1em;
    display: block;
    text-align: center;
    padding: 3px; 
    margin: 40px 5px 0px 5px;
}

@media (min-width: 801px) and (max-width: 1024px){ /*Desktops and small screens*/

    figure {
        max-width: 500px;
    }

    h1 {
        font-size: 2em;
    }

    .instructions {
        max-width: 850px;
        margin: 15px auto;
    }

    .information {
        max-width: 95%;
        font-size: 1.4em;
        line-height: 1.7rem;
        padding: 10px;
    }

    #startButton { 
        font-size: 35px;
    }

    figcaption {
        font-size: medium;
    }

    #question-container {
        font-size: 1.4em;
        max-width: 850px;
        margin: 15px auto;
    }

    #submit {
        font-size: 13px;
    }

    #next {
        font-size: 15px;
    }

    footer {
        font-size: 0.8em;
        margin: 30px 5px 0px 5px;
    }

}

@media (min-width: 501px) and (max-width:800px){ /*Tablet size*/
    
    figure {
        max-width: 400px;
    }

    h1 {
        font-size: 1.6em;
    }

    .instructions {
        max-width: 700px;
        margin: 15px 10x;
    }

    .information {
        max-width: 95%;
        font-size: 1.2em;
        line-height: 1.4rem;
        padding: 5px;
        margin: 10px auto;
    }

    #startButton { 
        font-size: 30px;
    }

    figcaption {
        font-size: small;
    }

    #question-container {
        font-size: 1.2em;
        max-width: 700px;
        margin: 15px auto;
    }

    #submit {
        font-size: 10px;
    }

    #next {
        font-size: 12px;
    }

    footer {
        font-size: 0.5em;
        margin: 25px 5px 0px 5px;
    }
    
}

@media (min-width: 320px) and (max-width: 500px){ /*Mobile devices*/

    figure {
        max-width: 300px;
    }

    h1 {
        font-size: 1.5em;
        margin-bottom: 25px;
    }

    .instructions {
        max-width: 450px;
        margin: 5px auto;
    }

    .information {
        max-width: 95%;
        font-size: 1em;
        line-height: 1.2rem;
        padding: 5px;
    }

    #startButton { 
        font-size: 20px;
    }

    figcaption {
        font-size: x-small;
    }

    #question-container {
        font-size: 1em;
    }

    #submit {
        font-size: 10px;
    }

    #next {
        font-size: 12px;
    }

    footer {
        font-size: 0.1em;
        margin: 15px 5px 0px 5px;
    }

}