:root {
    --blue: #003f5f;
    --blue-hover: #141e30;
    --red: #B5121B;
    --red-hover: #8f151d;
    --red-on-blue-hover: #eb1420;
    --green: #216d22;
    --white: #ffffff;
    --black: #000000;
    --table-odd: #f8f8f8;
    --table-grey-even: #e3e3e3;
    --table-blue-even: #e0f4fd;
    --table-row-hover: #3a3a3a;
    --radio-border-color: var(--blue);
    --radio-checked-color: var(--blue);
    --radio-hover-color: var(--blue);
    --radio-disabled-bg-color: #d9d9d9;
}

/* Basic Site Styling */
html, body {
    /* 'sticky' footer with flexbox */
    height: 100%;
}
body {
    /*font-family: 'Raleway', Arial, sans-serif;*/
    font-family: 'Century Gothic', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;

    /* 'sticky' footer with flexbox */
    display: flex;
    flex-direction: column;
}
main {
    /* 'sticky' footer with flexbox */
    flex: 1 0 auto;
}
nav ul li {
    list-style-type: none;
}
nav ul.bullets li {
    list-style-type: disc;
}
h1 {
	font-size: 2.5rem;
	line-height: 1;
}
h2 {
	font-size: 2rem;
	line-height: 1;
}
h3 {
	font-size: 1.7rem;
}
h4 {
	font-size: 1.5rem;
}
h5 {
	font-size: 1.2rem;
}
p {
	font-family: Arial, Helvetica, sans-serif;
}
.bold {
    font-weight: bold;
}
.italic {
    font-style: italic;
}
.underline {
    text-decoration: underline;
}
.uppercase {
	text-transform: uppercase;
}
.img-caption {
	font-size: smaller;
	font-style: italic;
	text-align: center;
	padding: 1rem;
}
ul.no-bullets li {
    list-style-type: none;
}
.red, a.red {
    background-color: #b5121b;
}
.blue, a.blue {
    background-color: #003f5f;
}
i.blue {
	color: #003f5f;
	background-color: transparent;
}
.light-blue {
	background-color: #cfe0f3;
}
.white, a.white {
    background-color: #ffffff;
}
.button {
    border-radius: 5px;
}
.link-img {
	display: block;
}

/*************************/
/* Accessibility styling */
/*************************/

/* Skip Link Styling */
#skip-link {
	background: var(--blue);
	height: 30px;
	padding: 10px;
	position: absolute;
	transform: translateY(-100%);
	transition: transform 0.3s;
	z-index: 101;
    top: 0;
    left: 0;
    right: 0;
    width: fit-content;
    margin: auto;
    display: grid;
    justify-content: center;
    align-content: center;
    color: #ffffff;
    text-decoration: underline;
    text-transform: initial;
}  
#skip-link:focus {
	transform: translateY(0%);
}

/* Screen Reader Only styling */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Return to Top Button */
#return {
	position: fixed;
	background: #ffffff;
	border: 0px;
	border-radius: 50%;
	padding: 0;
	display: none;
	bottom: 4rem;
	right: 4rem;
	box-shadow: 0 5px 10px #3a3a3a;
}


/* Navbar Styling */
#mainNav {
    height: 65px;
    min-height: 65px;
    max-height: 65px;
    background-color: #003f5f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
	box-shadow: 0 0.5rem 1rem rgb(58 58 58 / 40%);
    position: relative;
    z-index: 10000;
}
#mainNav a.logo {
    /* Extra flex because the logo space isn't even in the png */
    display: flex;
}
#mainNav ul {
    margin: 0;
    display: flex;
    justify-content: space-evenly;
}
#mainNav ul li {
    display: flex;
}
#mainNav ul li a {
    color: #ffffff;
    font-weight: bold;
    padding: 10px 15px;
    text-decoration: none;
    margin: 5px 10px;
    text-transform: uppercase;
}

/* Main Content */

/* Billboard */
#billboard {
	display: grid;
	grid-template-columns: 1fr;
	margin-bottom: 4rem;
}
#hero {
    height: 400px;
	background-color: #f1f1f1;
	/* background-image: url("/img/banner-payroll-1200px.jpg"); /* Fallback */
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	grid-row: 1 / span 1;
    grid-column: 1 /span 1;
}
#banner {
    grid-column: 1 /span 1;
    grid-row: 1 / span 1;
    background-color: #003f5f;
    margin: 0 0 -2rem;
    padding: 2rem;
    width: fit-content;
	height: fit-content;
	color: #ffffff;
	justify-self: center;
	align-self: end;
}

section {
	padding: 3rem;
}
.article-text {
	display: flex;
	flex-direction: column;
}
.article-text h1 {
	color: #003f5f;
	justify-self: center;
}
.article-text h1:after {
    content: '';
    display: block;
    background-color: #B5121B;
    height: 5px;
    width: 100px;
    margin-top: 10px;
    position: relative;
    left: 50%;
    margin-left: -50px;
}
.article-text h2 {
	color: #003f5f;
}
.article-text h2:after {
    content: '';
    display: block;
    background-color: #B5121B;
    height: 3px;
    width: 100px;
    /* margin-top: 10px; */
    position: relative;
    /* left: 50%;
    margin-left: -50px; */
}
.article-text p {
	margin: auto;
}
article.article-text.social {
    flex-direction: row;
}
.product-list {
	display: flex;
	justify-content: space-evenly;
	flex-flow: row wrap;
}
.product-list h2 {
	margin: auto;
    width: 100%;
    text-align: center;
	margin-bottom: 20px;
}
.product-list div.bubble {
	border-radius: 10px;
    padding: 4rem 1rem;
    display: flex;
    flex-flow: column wrap;
    margin-top: 35px;
    background-color: var(--blue);
    box-shadow: 0 1px 12px rgba(0,0,0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.product-list div.bubble .icon-bubble {
	display: flex;
    height: 100px;
    width: 100px;
	margin: calc(-50px - 4rem) auto 20px auto;
	background-color: #bfbfbf;
	padding: 1rem;
	border: 8px solid #ffffff;
	border-radius: 50%;
	backdrop-filter: blur(5px);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
	justify-content: center;
	align-items: center;
}
.product-list div.bubble img.icon {
	max-width: 100px;
	height: auto;
}
.product-list div.bubble p {
	width: 80%;
    margin: 0 auto 20px;
	color: var(--white);
}
.product-list div.bubble h3 {
    margin: 10px auto 20px;
	font-size: 1.7rem;
	max-height: 30px;
	text-transform: uppercase;
	color: var(--white);
}
.info-background {
	padding: 0;
}
.info-background article {
	background-image: url("../img/background-parchment-100px.jpg");
	margin-top: 150px;
	display: grid;
	grid-template-columns: 17.5% 30% 5% 30% 17.5%;
	padding-bottom: 5rem;
}
.info-background hr.blue-bar {
	height: 60px;
	width: 100%;
	background-color: #003f5f;
	margin-bottom: 60px;
    margin-top: 0;
	box-shadow: 0 0.5rem 1rem rgb(58 58 58 / 80%);
	border: none;
	grid-column: 1 / span 5;
	grid-row: 1;
}

/* Hide unless header and footer are out of view */
aside.ribbon {
	position: fixed;
	background-color: #003f5f;
	padding: 1rem;
	width: fit-content;
	top: 15%;
	right: 0;
    display: flex;
    flex-direction: column;
}
aside.ribbon a {
	padding: 0.3rem 0;
}


/* Footer styling */
footer {
	display: flex;
	background-color: #003f5f;
    flex-direction: column;

    /* 'sticky' footer with flexbox */
    flex-shrink: 0;
	color: #ffffff;
}
footer a {
	color: #ffffff;
}
footer section {
	padding: 0;
}
#upper-footer {
	display: flex;
    flex-direction: column;
}
footer .logo {
    max-width: 200px;
    height: fit-content;
}
footer nav ul {
	display: block;
}
footer nav a {
	color: #ffffff;
	font-weight: bold;
}
footer nav a:hover {
	color: #c4c4c4;
	text-decoration: none;
}
footer hr {
	border: none;
	background-color: #ffffff;
	height: 1px;
	width: 100%;
	margin: 2rem auto;
}
#lower-footer {
	display: flex;
    flex-direction: column;
}
footer address {
	display: grid;
	grid-template-columns: 40px auto;
	color: #ffffff;
}
footer address h2 {
	margin: 0;
	font-size: 1.2rem;
}
footer address p {
	margin: 0;
	grid-column: 2 / span 1;
}
#social-links {
	display: flex;
	justify-content: space-between;
	flex-direction: column;
}
.social-icons a {
	text-decoration: none;
}
.suplimental-links {
	display: flex;
	flex-direction: column;
	font-size: 0.8rem;
}
.suplimental-links p {
	margin: 0 0 0 30px;
}


/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {

	.desktop {
		display: none;
	}
	.mobile {
		display: flex;
	}
	h1 {
		margin: 0.67em 0 1.67em;
	}
	h2 {
		margin: 0.37em auto 1.37em;
	}
	a.button {
		width: 100%;
	}
	#mainNav {
		padding: 0.5rem 1rem;
	}
	#mainNav a.logo img {
		margin-left: 0.2rem;
	}
	#mainNav ul li.desktop {
		display: none;
	}
	#mainNav ul li.mobile {
		display: flex;
	}
	#mainNav ul li a {
		padding: 0.2rem 0.3rem;
	}
	#billboard .text-area {
		margin-bottom: 4rem;
	}
	section {
		padding: 1rem;
	}
	.article-text h2 {
		color: #003f5f;
		width: 90%;
	}
	.article-text h2:after {
		margin-top: 20px
	}
	.article-text p {
		margin-top: 1rem;
		width: 85%;
	}
	.article-text p:last-of-type {
		margin-bottom: 1rem;
	}
	.product-list {
		flex-direction: column;
		margin-bottom: 2rem;
	}
	.product-list h2 {
		margin: 0.67em 0 1.37em;
	}
	.info-background article {
		grid-template-columns: 5% 90% 5%;
	}
	footer {
		padding: 2rem 1rem;
	}
	footer address {
		border-bottom: 1px solid #ffffff;
		margin-bottom: 20px;
		padding-bottom: 20px;
	}
	footer address:first-of-type {
		margin-top: 2rem;
	}
	footer address:last-of-type {
		border-bottom: none;
		margin-bottom: 20px;
		padding-bottom: 20px;
	}
	.suplimental-links p {
		margin: 2rem auto 0 auto;
	}
	
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {

	.desktop {
		display: none;
	}
	.mobile {
		display: flex;
	}
	h1 {
		margin: 0.67em 0 1.67em;
	}
	h2 {
		margin: 0.37em auto 1.37em;
	}
	#mainNav a.logo img {
		margin-left: 0.2rem;
	}
	#mainNav ul li.desktop {
		display: none;
	}
	#mainNav ul li.mobile {
		display: flex;
	}
	#mainNav ul li a {
		padding: 0.2rem 0.3rem;
	}
	#billboard .text-area {
		margin-bottom: 4rem;
	}
	section {
		padding: 1rem;
	}
	.article-text h2 {
		color: #003f5f;
		width: 90%;
	}
	.article-text h2:after {
		margin-top: 20px
	}
	.article-text p {
		margin-top: 1rem;
		width: 85%;
	}
	.article-text p:last-of-type {
		margin-bottom: 1rem;
	}
	.product-list {
		flex-direction: column;
		margin-bottom: 2rem;
	}
	.product-list h2 {
		margin: 0.67em 0 1.37em;
	}
	.info-background article {
		grid-template-columns: 5% 90% 5%;
	}
	footer {
		padding: 2rem 1rem;
	}
	footer address {
		border-bottom: 1px solid #ffffff;
		margin-bottom: 20px;
		padding-bottom: 20px;
	}
	footer address:first-of-type {
		margin-top: 1rem;
	}
	footer address:last-of-type {
		border-bottom: none;
	}
	.suplimental-links p {
		margin: 2rem auto 0 auto;
	}
	
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {

	h1 {
		margin: 0.67em 0 1.67em;
	}
	h2 {
		margin: 0.37em auto 1.37em;
	}
	#mainNav a.logo img {
		margin-left: 0.5rem;
	}
	#mainNav ul li a {
		padding: 0.4rem 0.5rem;
	}
	.article-text h2 {
		text-align: center;
		color: #003f5f;
		width: 90%;
	}
	.article-text h2:after {
		margin-top: 10px;
		left: 50%;
		margin-left: -50px;
	}
	.article-text p {
		margin-top: 1rem;
		width: 80%;
	}
	.article-text p:last-of-type {
		margin-bottom: 1rem;
	}
	.product-list h2 {
		margin: 0.67em 0 1.37em;
	}
	.product-list div.bubble {
		width: 58.6%;
		margin: 35px auto 0;
	}
	footer {
		padding: 2rem 1rem;
	}
	footer .desktop {
		display: flex;
	}
	footer .mobile {
		display: none;
	}
	footer hr {
		margin: 1rem auto;
	}
	#upper-footer {
		flex-direction: row;
		justify-content: space-between;
	}
	footer nav {
		text-align: right;
	}
	#lower-footer {
		flex-direction: row;
		flex-flow: wrap;
		justify-content: space-around;
		border-bottom: 1px solid #ffffff;
		margin-bottom: 2rem;
	}
	#lower-footer address {
		border-bottom: none;
		flex-basis: 40%;
	}
	#lower-footer address:first-of-type {
		margin-top: 0;
	}
	#social-links {
		display: flex;
		justify-content: space-between;
		flex-direction: row;
	}
	.social-icons {
		display: flex;
		flex-wrap: nowrap;
	}
	.social-icons a {
		margin: 0.2rem;
	}
	.suplimental-links {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: end;
	}
	.suplimental-links p {
		margin: 0 0 0 30px;
	}

}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {

	.desktop {
		display: flex;
	}
	.mobile {
		display: none;
	}
	h1 {
		margin: 0.67em 0 1.67em;
	}
	#mainNav a.logo img {
		margin-left: 1rem;
	}
	#mainNav ul li.desktop {
		display: flex;
	}
	#mainNav ul li.mobile {
		display: none;
	}
	section {
		padding: 3rem;
	}
	.article-text p {
		margin-top: 1.5rem;
		width: 80%;
	}
	.article-text p:last-of-type {
		margin-bottom: 1.5rem;
	}
	.product-list {
		flex-direction: row;
	}
	.product-list h2 {
		margin: 0.67em 0 1.37em;
	}
	.info-background article {
		grid-template-columns: 7.5% 40% 5% 40% 7.5%;
	}
	footer {
		padding: 2rem 10%;
	}
	
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
	
	.info-background article {
		grid-template-columns: 17.5% 30% 5% 30% 17.5%;
	}
	.article-text p {
		width: 60%;
	}
	.product-list div.bubble {
		width: 28.8%;
		margin: 0 0 0 0;
		margin-top: calc(25px + 2rem); /* add for negative margin */
	}
	footer hr {
		margin: 2rem auto;
	}
	#lower-footer {
		flex-flow: nowrap;
		border-bottom: none;
		justify-content: space-between;
	}
	
}
