/*=====ALL*****/
html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

* {
    margin: 0;
    padding: 0;
}

/*---VIEWPORT---*/
@viewport {
	width: device-width;
}


body {
    background-image: url("../assets/images/background.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover; /*makes the img rescale based on container's size*/
    background-color: rgba(70, 70, 70, .8);
    display: flex;
    flex-wrap: wrap;
}

#stationary-movement {
    background-image: url("../assets/images/stationary.jpg");
    background-color: #121B1F;
}

header, main, footer {
    width: 97%;
    max-width: 1200px;
    margin: 0 auto;
    float: none;
    background-color: rgba(80, 80, 80, .8);
}

div img {
    width: 100%;
    max-width: 300px;
}

/* grid system */
.row {
    display: flex;
    flex-flow: row wrap;
    flex: 0 1 auto;
}

[class*="col-"] {
    flex: 0 0 92%;
    margin: 0 4%;
}

/* global alignment options */
.reverse {
    flex-direction: row-reverse;
}

/*---GLOBALS---*/

h1, h2, h3, h4, h5, h6 {
	font-family: 'PT Sans Narrow', sans-serif;
	color: #ffffff;
	padding-bottom: .1em;
}

p, ul, a {
	font-family: 'Open Sans Condensed', sans-serif;
	color: #ffffff;
}

h1, h2, h3, p, ul, a {
	text-shadow: 1px 1px 0px rgba(0,0,0,.75);
}

h1, h2 {
    text-align: center;
}


/*---FONT AWESOME---*/
.fa {
	color: #ffffff;
}

.fa:hover, a:hover {
	color: #012a83;
	transition: color 0.25s ease;
}

header, main, footer {
    border-style: none;
}

/*---NAV---*/
.topnav {
    overflow: hidden;
    background-color: rgba(60, 60, 60, .8);
}

.topnav a {
    float: left;
    display: block;
    text-align: center;
    padding: 14px 65px;
    text-decoration: none;
    font-size: 1.2em;
}

.topnav .fa {
    font-size: 1em;
    padding-left: 6px;
}

.active {
    background-color: rgba(1,42,131,.5);
}

.topnav .icon {
    display: none;
}

.dropdown {
    float:left;
    overflow: hidden;
}

.dropdown .dropbtn {
    font-size: 1em;
    border: none;
    outline: none;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(60, 60, 60, .8);
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    float: none;
    text-decoration: none;
    display: block;
    text-align: left;
}

.topnav a:hover, .dropdown:hover .dropbtn, .dropdown:hover .fa:hover {
    background-color: rgba(1,42,131,.5);
    color: #ffffff;
}

.dropdown-content a:hover {
    background-color: rgba(1,42,131,.5);
}

.dropdown:hover .dropdown-content {
    display: block;
}

#upNext {
    text-align: center;
}

#footer-left {
	width: 60%;
	float: left;
	text-align: left;
}

#footer-right {
	width: 40%;
	float: right;
	text-align: right;
}

#footer a:hover {
	color: #556ac6;
}

ul#social {
	padding-top: 1%;
}

ul#social li {
	display: inline;
	padding-right: 7%;
}

/*=====DESKTOP*****/
@media only screen and (min-width: 1024px) {
    
    main img {
        float: left;
        clear: left;
        margin-right: 1%;
        margin-bottom: 3%;
    }
    
    main article {
        clear: both;
        margin-bottom: 3%;
    }
    
    main p {
        margin: 1%;
    }
    
    main, footer {
        padding: 2%
    }
    
	h1 {
		font-size: 4em;
        margin-top: .25em;
        margin-bottom: 0;
	}
    
    h1 a {
        text-decoration: none;
    }

	h2 {
		font-size: 3em;
	}

	h3 {
		font-size: 1.5em;
	}
    
    main article h3 {
        font-size: 2em;
    }
    
    main article h4 {
        font-size: 1.75em;
    }
    
    main .fa {
        font-size: 6em;
    }
    
    #nextEvent {
        margin-bottom: 2%;
    }
    
    #nextEvent h4 {
        text-align: center;
        font-size: 2em;
    }
    
    #nextEvent h5 {
        text-align: center;
        font-size: 1.75em;
    }
    
    #nextEvent p {
        text-align: center;
        font-size: 1.5em;
    }
    
    article #more {
        font-size: 1.25em;
        text-align: center;
    }

	p {
		font-size: 1.1em;
		line-height: 1.2em;
	}
	
	.fa {
		font-size: 2em;
	}
	
}

/*=====TABLET*****/
@media only screen and (min-width: 768px) and (max-width: 1023px) {
    /*.topnav a:not(:first-child), .dropdown .dropbtn {
        display: none;
    }
    .topnav a.icon {
        float: right;
        display: block;
    }
    .topnav.responsive {
        position: relative;
    }
    
    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    
    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
    
    .topnav.responsive .dropdown {
        float: none;
    }
    
    .topnav.responsive .dropdown-content {
        position: relative;
    }
    
    .topnav.responsive .dropdown .dropbtn {
        display: block;
        width: 100%;
        text-align: left;
    }*/
    
    body {
        background-image: url("../assets/images/background-tablet.jpg");
    }
    
     main img {
        float: left;
        clear: left;
        margin-right: 1%;
        margin-bottom: 3%;
    }
    
    main article {
        clear: both;
        margin-bottom: 3%;
    }
    
    main p {
        margin: 1%;
        font-size: 1.2em;
		line-height: 1.2em;
        margin-bottom: 3%;
    }
    
    main, footer {
        padding: 2%
    }
    
    h1 {
		font-size: 4em;
		padding-bottom: .1em;
        margin-bottom: 0;
	}

	h2 {
		font-size: 3em;
	}

	h3 {
		font-size: 1.5em;
	}
    
    main article h3 {
        font-size: 2em;
    }
    
    main article h4 {
        font-size: 1.75em;
    }
    
    main .fa {
        font-size: 4em;
    }
    
    #nextEvent {
        margin-bottom: 2%;
    }
    
    #nextEvent h4 {
        text-align: center;
        font-size: 2em;
    }
    
    #nextEvent h5 {
        text-align: center;
        font-size: 1.75em;
    }
    
    #nextEvent p {
        text-align: center;
        font-size: 1.5em;
    }
    
    article #more {
        font-size: 1.25em;
        text-align: center;
    }
	
	.fa {
		font-size: 4em;
	}
}

/*=====MOBILE****/
@media only screen and (max-width: 767px) {
    
    .topnav a:not(:first-child), .dropdown .dropbtn {
        display: none;
    }
    .topnav a.icon {
        float: right;
        display: block;
    }
    .topnav.responsive {
        position: relative;
    }
    
    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    
    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
    
    .topnav.responsive .dropdown {
        float: none;
    }
    
    .topnav.responsive .dropdown-content {
        position: relative;
    }
    
    .topnav.responsive .dropdown .dropbtn {
        display: block;
        width: 100%;
        text-align: left;
    }
    
    body {
        background-image: url("../assets/images/background-mobile.jpg");
    }
    
    main img {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    main article {
        clear: both;
        margin-bottom: 3%;
    }
    
    main p {
        margin: 2%;
    }
    
    main, footer {
        padding: 2%
    }
    
    h1 {
		font-size: 3em;
		padding-bottom: .1em;
        margin-bottom: 0;
	}

	h2 {
		font-size: 2em;
	}

	h3 {
		font-size: 1.5em;
	}
    
    main article h3 {
        font-size: 2em;
    }
    
    main article h4 {
        font-size: 1.75em;
    }
    
    main .fa {
        font-size: 2em;
    }
    
    #nextEvent {
        margin-bottom: 2%;
    }
    
    #nextEvent h4 {
        text-align: center;
        font-size: 2em;
    }
    
    #nextEvent h5 {
        text-align: center;
        font-size: 1.75em;
    }
    
    #nextEvent p {
        text-align: center;
        font-size: 1.5em;
    }
    
    article #more {
        font-size: 1.25em;
        text-align: center;
    }

	p {
		font-size: 1em;
		line-height: 1em;
	}
	
	.fa {
		font-size: 2em;
	}
    
    footer {
        font-size: .9em;
    }
	
}