/*
    This is the CSS stylesheet for the template

    The CSS must include...
=> tags for the font-family in the body
=> Alterations to the section
=> A media tag for mobile device alterations
=> For the form and the inputs of the form
=> flex-container as well
*/

body{

    margin:0;
    font-family: 'Nunito', sans-serif;
    background-image: url(images/background.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}

@font-face {
    font-family: 'Nunito';
    src: url('Nunito/Nunito-Regular.ttf') format(truetype);
}

#Section {
    width: 70%;
    background-color: #fff;
    
    /*This is will center it*/
    margin: 0 auto;
    max-width: 900px; /*Prevents elements from becoming too big*/


    line-height: 170%;
    text-align: justify;
    text-justify: inter-word;
    max-width: 1100px;
}

#Section img{
    width: 100% /*This ensures the image is inside the section box*/
    
}

#Section p {
    font-size: larger;
    
    /*This is for positioning the text*/
    padding-left: 5%;
    padding-right: 5%;
    line-height: 170%;

    text-align: justify;
    text-justify: inter-word;
    
}

#Section h1 {
    font-size: 30px;

    padding: 5%
}

#top {
    width: 70%;
    background-color: #00a8f3;
    
    /*This is will center it*/
    margin: 0 auto;
    max-width: 900px; /*Prevents elements from becoming too big*/


    line-height: 170%;
    text-align: justify;
    text-justify: inter-word;
    max-width: 1100px;
}


h1.title{
    
    background-color: #00a8f3;
    color: #fff;
    text-align: center;
    padding: 1%;
    font-size: 200%;
    
}


#top img {
    width: 60%;
    height: 60%;
    padding-bottom: 3%;
}


#top nav a:hover{
    background-color: #0094d8
}


#top nav{
    text-align:center;
    background-color:#00a8f3;
    background-image: url(images/logo1.png);
    background-size: 21%;
    background-repeat: no-repeat;
    background-position: 1% center;
    padding: 5%;


}

#top nav a{
    color: white;
    padding: 5%;


    text-decoration: none;
    font-size: large;

    display: inline-block;

}

nav a:hover{
    color:black;
}

.active{
    background-color:#0078b0;
    color:aliceblue;
    border-radius: 4px;

    
}

@media (max-width: 1285px){
    #top nav {
        background-image: url(images/logo3.png);
        background-size: 10%;
        background-position: 5% center;
    }
}
@media (max-width: 886px){
    
    #top nav {
        background-image: url(images/logo3.png);
        background-size: 7%;
        background-position: 2.5% center;
    }

}

@media (max-width: 886px){
    h1.title {
        font-size: 155%;
    }
}



footer {
    color: #fff;
    background-color: #00a8f3;
    padding: 5%;
    margin: 2px auto;
    text-align: center;
    background-image: url("images/logo3.png");
    background-repeat: no-repeat;
    background-position: 90% center;
    background-size: 10%;
}

form{
    padding-left: 10%;
    padding-right: 10%;
}

input{
    width: 100%;
    margin-bottom: 20px;
    padding-top: 2%;
    padding-bottom: 2%;
}

input[type = "submit"]{
    background-color: #0078b0;
    border: none;
    color: #fff;
    padding: 16px 32px;
    margin: 5px 5px;
}

/*This is code I transfered from online*/
.radioInputs{
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;

}

.radioInputs label {
    display: flex;
    align-items: center;
    gap: 5px;
}

input[type="radio"]{
    width: auto;
    margin: 0;
}

.flex-container{
    width: 100%;
    margin: 30px auto;
    display: flex;
    flex-wrap: wrap;
}


@media screen and (min-width: 1100px){

    .flex-container > div {
        flex: 31%;
        margin: 1%;
        
        justify-content: center;
        display: flex;
    }

    .flex-container img{
        width: 90%;
        
    }
}

/*I transfered this command from online*/
.flex-container img:hover{
    box-shadow: 0 0 50px #00a8f3;
    transition: all 0.3s ease-in-out;
}

