v/* Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS.  */
html {-webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%;}

/*----------- apply a natural box layout model to all elements --------------*/
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }

/* Small/Phone View ***************/
header {
	margin-top: 10px;
    display: block;
    text-align: center;
    font-family: 'Slabo 27px', 'Open Sans', sans-serif;
}

.headings h1 {
	margin: 0;
}

img {
	width: 80px;
	height: auto;
}

body {
    width: auto;
	min-width: 360px;
    background-color: #ffffff;
}

main {
	max-width: 100%;
}

.page-title {
	text-align: center;
	text-shadow: 1px 1px 1px gray;
}

p,
ul {
    font-size: 1rem;
    font-family: 'Imprima', serif;
}

.body-sections {
	border: 1px solid black;
	margin: 0 auto;
	margin-bottom: 10px;
	background-color: lightgray;
	padding: 10px 20px 0 10px;
	text-align: center;
	max-width: 1000px;
}

footer {
	display: block;
	position: relative;
    margin-top: 5px;
	margin: 0 auto;
	max-width: 760px;
    background-color: darkslategray;
    font-family: 'Nunito', 'Open Sans', sans-serif;
    padding-top: 5px;
    padding-bottom: 5px;
    text-align: center;
    color: white;
}

footer a{
    color: gold;
}

nav {
	margin: 0 auto;
	max-width: 760px;
	background-color: darkslategray;
    font-family: 'Nunito', 'Open Sans', sans-serif;
}
.navigation {
	list-style: none; 
	padding: 0;
}
.navigation li:first-child {
	display: block;
}
.navigation li {
	display: none;
}
.navigation a {
	display: block;
	padding: 0.75rem;
	text-align: left;
	text-decoration: none;
	color: white;
	font-weight: 700;
	transition: 0.5s;
}
.navigation a:hover {
	color: gold;
}

.responsive li {
	display: block;
}

#active {
    text-decoration: overline;
	color: gold;
}

#heads-up {
	display: none;
	font-size: 1.2em;
	font-weight: bold;
    margin: 0 auto;
	text-align: center;
    padding: 3px;
	background-color: orange;
}

#forecast {
    display: none;
}

.row {display: table-row;}

.cell {display: table-cell;}

.banner {
	display: block;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.cur-weather p {
	font-size: 1rem;
	font-family: 'Imprima', serif;
	margin: 0 auto;
	margin-left: 10px;
}

.cur-weather h2 {
	font-size: 1.5rem;
	font-family: 'Slabo 27px', 'Open Sans', sans-serif;
	font-weight: bold;
	margin: 0 auto;
	margin-left: 10px;
}

.cur-weather hr {
	margin-left: 10px;
	width: 10rem;
}

.cur-weather {
	padding-bottom: 10px;
}

.social-icons {
	width: 30px;
}

.location {
	display: none;
}

.contact {
	margin-top: -3rem;
	line-height: 1.5rem;
}

.article-image {
	margin: 20px 0 20px 0;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.gallery{
	justify-content: center;
	align-items: center;
	display: grid;
	grid-template-columns: auto;
	grid-gap: 10px;
	margin-top: 10px;
	margin-bottom: 10px;
}

.gallery picture {
	padding: 15px;
	background-color: lightgray;
	border-radius: 10px;
	border: 1px solid black;
}

.gallery img[data-src] {
	filter: blur(.2em);
}

.gallery img {
	width: 100%;
	max-width: 300px;
	border-radius: 10px;
	filter: blur(0em);
	transition: filter 0.5s;
}

#gallery-heading {
	text-align: center;
}

form .information {
    margin: 20px auto;
    border: 2px solid black;
	background-color: lightgray;
    padding: 10px 20px;
	font-family: 'Imprima', serif;
}

form legend {
    padding: 0 .5rem;
	font-weight: bold;
	font-family: 'Nunito', 'Open Sans', sans-serif;
}

form label.top,
form div {
    display: block;
    padding-top: 1rem;
    color: black;
}

form label.top input,
form label.top select {
    display: block;
	font-family: 'Imprima', serif;
    border: 1px solid black;
    border-radius: 4px;
    padding: .75rem;
    color: gray;
    width: 100%;
    max-width: 20rem;
    background-color: white;
}

form label.sbs {
    display: block;
    padding: 0.75rem 0;
    color: black;
}

form input.submitBtn {
    border: none;
    background-color: darkslategray;
    color: white;
    padding: .75rem;
    width: 100%;
	min-width: 360px;
	margin-bottom: 20px;
	cursor: pointer;
}

.page-button {
	text-align: center;
}

select {
	cursor: pointer;
}

form label.top input:required {
    border-left: red solid 5px;
}

form label.top input:required:valid {
    border-left: green solid 5px;
}

form textarea {
	border-radius: 10px;
	border: 1px solid black;
}

.thanks {
	margin: 50px auto;
	padding: 20px;
	width: 100%;
	max-width: 1000px;
	text-align: center;
	background-color: lightgray;
	border-radius: 10px;
	border: 1px solid black;
}

article {
	display: grid;
	grid-template-columns: 1fr;
	border: 1px solid black;
	background: lightgray;
	text-align: center;
	justify-items: center;
	padding: 10px;
	margin-bottom: 20px;
}

article p {
	font-size: 1.25rem;
}

article img {
	width: 100%;
	max-width: 300px;
	border-radius: 10px;
}

article li {
	list-style-type: none;
	padding-top: 10px;
}

.article-text {
	padding: 0 5px 0 5px;
}

.article-text li {
	list-style: none;
}

.article-text ul {
	padding: 0;
}

/* Show return-home-button on all screen sizes */
.return-home-button {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: auto;
    top: auto;
    background-color: #2F3131;
    color: black;
    padding: 10px 15px;
    border-radius: 5px;
	text-decoration: none;
    font-family: 'Nunito', 'Open Sans', sans-serif;
    font-weight: bold;
    font-size: .75rem;
    box-shadow: 1px 1px 5px black;
    opacity: 0.7;
    z-index: 1000;
}

.return-home-button:hover {
    background-color: #7A7D7D;
    opacity: 1.0;
}

/* Medium+ views */
@media only screen and (min-width: 32.5em) {
	header,
    nav,
    main,
    footer {
        border-radius: 5px;
    }

    header {
        display: flex;
        align-items: center;
		justify-content: left;
        padding: 0;
		margin-top: 10px;
    }

	.headings {
		display: flex;
		flex-direction: column;
	}

	.m {
		letter-spacing: 1pt;
		color: darkslategray;
		margin-left: 20px;
	}

    h1 {
        padding-left: 20px;
        font-size: 2.2rem;
        margin-left: 10%;
    }

	.page-title {
		text-align: left;
	}

	body {
		max-width: 100%;
		margin: 0 auto;
		background-color: #ffffff;
	}

    img {
        width: 100px;
        height: auto;
    }

	footer {
        font-size: 1.2rem;
    }

    p,
    ul {
        font-size: 1rem;
    }

    #fonts-image {
        width: 400px;
        height: auto;
    }

	.navigation {
		display: flex;
	}
	.navigation li {
		display: block; /* change state in small view */
		flex: 1 1 auto;
	}
	.navigation a {
		text-align: center;
	}
	.navigation li:first-child {
		display: none;
	}

	#forecast {
        display: table;
        text-align: center;
		margin-bottom: 20px;
		margin-right: auto;
		margin-left: auto;
	}

	#forecast div {
		font-size: 1rem;
    	font-family: 'Imprima', serif;
		border: 2px solid white;
		white-space: nowrap;
		padding: 20px;
		background-color: darkslategray;
		color: white;
	}

	.fiveDay table, th, td {
        border: 1px solid darkslategray;
        border-collapse: collapse;
        padding: 1em;
	}

	table {
		border-spacing: 0;
	}

	.cur-weather p {
		font-size: 1rem;
		margin: 0 auto;
		text-align: justify;
	}

	.cur-weather {
		position: absolute;
		top: 280px;
		left: auto;
		margin-left: 20px;
		background: darkslategray;
		color: white;
		padding: 1.5rem;
		box-shadow: 0 0 10px black;
		opacity: .8;
		border-radius: 10px;
	}

	.banner {
		border-radius: 10px;
		margin-bottom: 10px;
	}

	.contact{
		margin-top: auto;
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto;
	}

	.location {
		display: block;
		width: 100%;
		grid-column: 1;
		grid-row: 1;
	}

	.contact-info {
		margin: auto;
		grid-column: 2;
		grid-row: 1;
	}

	.article-image {
		margin: 20px 0 20px 0;
		width: 100%;
		height: auto;
		border-radius: 10px;
		flex-basis: 70%;
		order: 2;
	}

	.article-body {
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: justify;
	}

	.article-text {
		width: 100%;
		font-weight: 300;
	}

	.gallery {
		grid-template-columns: auto auto;  
	}

	form input.submitBtn {
		width: 90%;
		border-radius: 10px;
	}

	article {
		grid-template-columns: 1fr 1fr;
		max-width: 100%;
	}
	
	article:nth-child(even) img {
		grid-column: 1;
		grid-row: 1;
	}
	
	article:nth-child(even) .data {
		grid-column: 2;
		grid-row: 1;
	}

}

/* Desktop views */
@media only screen and (min-width: 60em) {

    header,
    nav,
    main,
    footer {
        max-width: 1000px;
        margin: 0 auto;
    }

	header {
		margin-top: 10px;
	}

    h1 {
        font-size: 3rem;
		margin: 0;
    }

	h2 {
        font-size: 1.8rem;
		margin: 0;
    }

	.page-title {
		padding-bottom: 20px;
	}



    nav ul li a {
        font-size: 1.2rem;
    }

    footer {
        font-size: 1.2rem;
    }

    p,
    ul {
        font-size: 1.2rem;
    }

    #fonts-image {
        width: 400px;
        height: auto;
    }

	.cur-weather {
		top: 290px;
	}

	.gallery {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

	.gallery picture:hover {
		box-shadow: 1px 1px 20px 1px black;
	}

	.main-container {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		grid-template-rows: 1fr;
		gap: 10px;
	}

	article {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}

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