/*
Author: Brian Halvonik
Date: 9/25/2026
File name: styles.css
*/

/* CSS Reset */
body, header, nav, main, footer, h1, div, img, ul, figure, figcaption, section, article, aside {
	margin: 0;
	padding: 0;
	border: 0;
}

/* Style rules for body and images */
body {
	background-color: #00cc00;
}

img {
  width: 150px;
  height: 150px;
  object-fit: cover;
}

/* Style rule for box sizing applies to all elements */

* {
	box-sizing: border-box;
}

/* Style rules for mobile viewport */

/* Style rules for header */
header {
	top: 0;
	background-color: #447700;
	height: 170px;
}

#header-img {
	width: 60px;
	height:60px;
	object-fit: contain;
}

/* Style rules for navigation area */
nav {
	padding: 1%;
	margin-bottom: 1%;
	width: 100%;
	box-sizing:border-box;
}

nav ul {
	list-style-type: none;
	text-align: center;
	padding:0;
	margin: 0;
}

nav li {
	font-size: 1.5em;
	font-family: 'Francois One', sans-serif;
	border-top: 1px solid #ffe400;
}

nav li:first-child {
	border-top: none;
}

nav li a {
	display: block;
	color: #fff;
	padding: 0.5em 1em;
	text-decoration: none;
}

/* Show mobile class,hide tablet-desktop class */

.mobile {
	display: block;
}

.tablet-desktop {
	display: none;
}

/* Style rules for main content */
main {
	background-color: #37ddcd;
	padding: 2%;
	font-size: 1.25em;
	font-family: 'Roboto Slab', seif;
}

.mobile h3 {
	text-shadow: 5px 5px 8px #ccc;
}

article {
	padding: 2%;
}

article h3 {
	text-align: center;
}

article img {
	margin: 0 auto;
}

article ul {
	margin-left: 10%;
}

article:nth-of-type(2) {
	background-color: rgba(204, 204, 204, 0.3);
}

.tel-link {
	background-color: #FFC107;
	padding: 2%;
	margin: auto;
	width: 80%;
	text-align: center;
	border-radius: 5px;
}

.tel-link a {
	color: #fff;
	text-decoration: none;
	font-size: 1.5em;
	display: block;
}

.action {
	font-size: 1.35em;
	color: #666600;
	font-weight: bold;
	text-shadow: 5px 5px 8px #ccc;
}

.frame {
	position: relative;
	max-width: 450px;
	margin: 2% auto;
}

.pic-text {
	position: absolute;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	width: 100%;
	padding: 20px;
	text-align: center;
	font-family: Verdana, Arial, sans-serif;
	font-size: 1.5em;
	font-weight: bold;
}

#introduction, #calculation, #results {
	margin: 0 1.5%;
}

.round {
	border-radius: 8px;
}

.external-link {
	color: #666600;
	font-weight: bold;
	text-decoration: none;
}

#contact {
	text-align: center;
}

#contact a {
	color: #666600;
	text-decoration: none;
}

.map {
	border: 8px solid #000;
}

/* Style rules for footer content */
footer {
	font-size: 0.75em;
	text-align: center;
	color: #fff;
	padding: 0 1em;
}

footer p a {
	color: #fff;
	text-decoration: none;
}

/* Media Query for Tablet Viewport */
@media screen and (min-width: 630px), print {
	
	/* Tablet Viewport: Show tablet-desktop class, hide mobile class */

	.tablet-desktop {
		display: block;
	}

	.mobile {
		display: none;
	}
	
	/* Tablet Viewport: Style rule for header */
	
	header {
	padding-bottom: 2%;
	}
	
	/* Tablet Viewport: Style rules for nav area */
	
	nav li {
		border-top: none;
		display: inline-block;
		border-right: 1px solid #fff;
	}
	
	nav li:last-child {
		border-right: none;
	}
	
	nav li a {
		padding: 0.1em  0.75em;
	}
	
	nav li a:hover {
		color: #000;
		background-color: #fff;
	}
	
	/* Tablet Viewport: Style rules for main content area */
	
	main ul {
		margin: 0 0 4% 10%;
	}

	.grid {
		display: grid;
		grid-template-columns: auto auto auto;
		grid-gap: 20px;
	}
	
	.pic-text {
		font-size: 1em;
		padding: 10px;
	}

aside {
	text-align: center;
	font-size: 1.25em;
	font-style: italic;
	font-weight: bold;
	padding: 2%;
	background-color: rgba(204, 204, 204, 0.5);
	box-shadow: 5px 5px 8px #000;
	text-shadow: 5px 5px 5px #b3b3b3;
	border-radius: 0 15px;
	
}

.grid-item4 {
	grid-column: 1/span 3;
}

	#definitions {
		border-top: 1px solid #000;
		border-bottom: 1px solid #000;
		background: linear-gradient(to right, #ccc, #fff0);
		background-color: #6bb260;
		padding: 1% 2%;
	}

	#definitions dt {
		font-weight: bold;
	}

	#definitions dd {
		padding: 0.5% 1% 2% 0;
	}
	
	.tel-num {
		font-size: 1.25em;
	}
	
	.map {
		width: 600px;
		height: 450px;
	}
	
}

/* Media Query for Desktop Viewport */
@media screen and (min-width: 1015px), print {

	/* Desktop Viewport: Style rule for header */
	header {
		width: 25%;
		float: left;
		padding-bottom: 0;
	} 

	nav {
		float: right;
		width: 70%;
		margin: 4em 1em 0 0;
	} 
	
	nav ul {
		text-align: right;
	} 
	
	nav li {
		border: none;
	}
	
	nav li a {
		padding: 0.5em 1em;
	} 
	
	/* Desktop Viewport: Style Rules for main content */
	
	main {
		clear: left;
	} 
	
	main h1 {
		font-size: 1.8em;
	} 
	
	article h3 {
		font-size: 1.75em;
	}
	
	.pic-text {
		font-size: 1.5em;
		padding: 20px;
	}
	
	.frame {
		opacity: 0.9;
	}
	
	.frame:hover {
		opacity: 1;
		box-shadow: 8px 8px 10px #808080;
	}
	
	#introduction, #calculation, #results { 
		width: 100%;
		margin: 0 2%;
		box-sizing: border-box;
	}
	
	#definitions {
		clear: both;
	}
	
}

/* Media Query for Print */
@media print {
	body {
		background-color: #fff;
		color: #000
	}
	
}