/*
	IAT 102 with Dr. Andrew Hawryshkewich
	D102 with Elgin Skye-McLaren
	P04: Fighting Extreme Cold
	main.css

	Josh Fernandez
	Aaron Ragas
	Nick Byrne
*/

body {
	background-color: white;
	color: black;
	font-family: 'Raleway', Helvetica, sans-serif;
		/* Source: https://fonts.google.com/?category=Sans+Serif&selection.family=Raleway|Titillium+Web:700 */
	font-size: 1rem;
	/*margin: 0.5rem;*/
}

h1, h2, h3 {
	font-family: 'Titillium Web', Helvetica, sans-serif;
		/* Source: https://fonts.google.com/?category=Sans+Serif&selection.family=Raleway|Titillium+Web:700 */
}

h1 {
	font-size: 3rem;
	margin: 1rem 0;
	text-transform: uppercase;
}

h2 {
	font-size: 2rem;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

h3 {
	font-size: 1.5rem;
	margin-top: 3rem;
	margin-bottom: 0.5rem;
}

h4 {
	font-size: 1.25rem;
	margin-top: 2rem;
	margin-bottom: 0.5rem;
}

p, ol, ul {
	line-height: 1.5rem;
		/* Used HTML & CSS: Design and Build Websites book, page 283 by Jon Duckett 
		to implement leading to the webpage. */
	max-width: 80rem;
	margin-top: 0;
	margin-bottom: 1rem;
}

ul {
	list-style-type: square;
		/* Used HTML & CSS: Design and Build Websites book, page 333 by Jon Duckett 
		to implement square bullets to the unordered list. */
}

a {
	color: rgb(0, 79, 139);
	transition: color 0.5s ease-out;
}

a:hover, a:focus, a:active {
	color: rgb(121, 197, 255);
	text-decoration: none;
	transition: color 0.5s ease-out;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 0.5rem;
}

figcaption {
	font-size: 1rem;
	font-style: italic;
		/* Used HTML & CSS: Design and Build Websites book, page 280 by Jon Duckett 
		to implement the italicized font style. */
}

nav a {
	width: 100%;
}

nav a, nav a:visited {
	display: inline-block;
	padding: 1rem 0;
	text-decoration: none;
}

input {
	width: 100%;
}

footer {
	background-color: rgb(0, 79, 139);
	color: white;
	width: 100%;
	padding: 1rem;
	font-size: 0.75em;
	margin-top: 5rem;
}

footer p {
	line-height: 1.25rem;
	margin-bottom: 0;
}

.bolded_text {
	font-weight: bold;
		/*
        Obtained the help from Elgin to realize that bolded text should not formally be represented by the <strong> tag inside the HTML page, but rather by a <span> class inside the CSS page.
        Apparently, because bolded text is a type of style, it should be accomodated in the CSS file, not the HTML file.
      	*/
}

.subpage_link {
	display: inline-block;
	text-align: center;

	color: white;
	background-color: rgb(0, 79, 139);
	padding: 0.5rem 0.75rem;

	font-size: 1rem;
	text-decoration: none;
	transition: background-color 0.5s ease-out;
}

.subpage_link:hover, .subpage_link:focus, .subpage_link:active {
	color: white;
	background-color: rgb(121, 197, 255);
	text-decoration: none;
	transition: background-color 0.5s ease-out;
}

[class^="nav-main-item-"] {
	display: inline-block;
	text-align: center;

	color: rgb(0, 79, 139);
	background-color: white;
	border-left: 1px solid rgb(0, 79, 139);

	font-size: 1.25rem;
	text-decoration: none;
	transition: background-color 0.5s ease-out;
}

.nav-main-item-4 {
	border-right: 1px solid rgb(0, 79, 139);
}

[class^="nav-main-item-"]:active, [class^="nav-main-item-"]:hover, [class^="nav-main-item-"]:focus {
	color: white;
	background-color: rgb(0, 79, 139);
	text-decoration: none;
	transition: background-color 0.5s ease-out;
}

.title-section {
	display: inline-block;
	width: 100%;
	background-color: white;
	color: rgb(0, 79, 139);
	text-align: center;
}

.h4_with_subsection {
	margin-bottom: 0;
}

.h4_subsection {
	font-style: italic;
	margin-top: 0;
	margin-bottom: 1rem;
}

#previous_and_next_links {
	position: relative;
	height: 5rem;
	max-width: 100%;
}

.previous_page_link, .next_page_link {
	display: inline-block;
	text-align: center;

	color: white;
	background-color: rgb(0, 79, 139);
	padding: 1rem 1.5rem;

	font-size: 1rem;
	text-decoration: none;
	transition: background-color 0.5s ease-out;
}

.previous_page_link {
	position: absolute;
	left: 0;
	bottom: 0;
}

.next_page_link {
	position: absolute;
	right: 0;
	bottom: 0;

}

.previous_page_link:hover, .previous_page_link:focus, .previous_page_link:active,
.next_page_link:hover, .next_page_link:focus, .next_page_link:active {
	color: white;
	background-color: rgb(121, 197, 255);
	text-decoration: none;
	transition: background-color 0.5s ease-out;
}

#previous_and_next_links::before, #previous_and_next_links::after {
	content: "";
	display: block;
	clear: both;
}

.status_update {
	display: inline-block;
	text-align: center;
	margin-top: 1rem;
	width: 100%;

	color: white;
	background-color: rgb(217, 0, 0);
	padding: 1rem 1.5rem;

	font-size: 1rem;
	text-decoration: none;
}

.status_update p {
	line-height: 1.25rem;
	margin-bottom: 0;
}

.status_update a {
	color: rgb(255, 122, 122);
	transition: color 0.5s ease-out;
}

.status_update a:hover, .status_update a:focus, .status_update a:active {
	color: white;
	text-decoration: none;
	transition: color 0.5s ease-out;
}