/***
These styles are specific to the SEER website.
Contains modifications to page template to accomodate the Explorer Application.
***/

/**************************************
Header
**************************************/
#skip, #skip:hover, #skip:visited { position: absolute; top: -20em; right: 44%; padding: .5rem 1rem; font-weight: bold; border: 1px solid #ccc; border-top: none; border-radius: 0 0 3px 3px; transition: all .2s ease-in-out; font-size: 1rem; color: #006db5; }
#skip:active, #skip:focus { position: absolute; top: 0; background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.7); }

/* US government banner */
/* ==================================================
	NCI Govt Header
================================================== */
section#usa-banner {margin-bottom: 0; background: #f0f0f0;}
.usa-banner__header-text {font-size: 12px; line-height: 1.2; margin-bottom: 0; margin-top: 0; font-weight: 400;}
.usa-banner__header-text img {vertical-align: baseline;}

.seerLogo { display: inline-block; line-height: 0; max-width: 641px; padding: 23px 0; max-height: 100px; width: 100%; }
.seerLogo > img { width: 100%; }
	
/* Search Box */
.search { margin-left: auto; }
.search > form { position: relative; width: 100%; margin-top: 40px; }
.search label { display: block; position: absolute; text-indent: -5000px; top: -5000px; }
#searchsite { padding: 0 .2rem; width: 100%; }
.search .greenBtn { padding: 8px; border-radius: 0; }
/* adjust positioning of box as screen gets smaller (add this buttons move) */
@media only screen and (max-width: 1024px) {
	.bannerWrap { display: block; }
	.search > form { margin-top: 0; margin-bottom: 10px; }
}


/**************************************
Nav Bar
**************************************/
nav { background: #142c68; }
.navWrap { display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; position: relative; }
.logo:hover, .logo:focus { opacity: .8; }
.logo img { vertical-align: bottom; padding: 1rem 0; }

.navWrap button { display: none; }

.mobileState { display: flex; }
.navWrap ul { display: flex; padding: 0; margin: 0; list-style: none; }
.navWrap ul a { display: block; color: #fff; text-decoration: none; padding: .2rem 1rem; margin: 0 .25rem; font-size: .9rem; border-radius: 3px; }
.navWrap ul li:last-child a { margin-right: 0; }
.navWrap ul a:hover, .navWrap ul a:focus { background: rgba(255,255,255,.1); }
.navWrap ul li.active a { background: #006db5; }
@media only screen and (max-width: 810px) {
	/*.mobileState { display: none!important; }*/
	.navWrap button { display: block; background: none; border: none; color: #fff; cursor: pointer; padding: .25rem 1rem; font-size: 1rem; border-radius: 3px; }
	.navWrap button:hover, .navWrap button:focus { background: rgba(255,255,255,.1); }
	.navWrap button svg { margin-bottom: -.2rem; }
	.navWrap ul { display: block; width: calc(100% - 1.5rem); position: absolute; top: 100%; left: 0; background: #081b48; padding: .75rem; z-index: 10; justify-content: space-around; box-shadow: 0 3px 12px rgba(0,0,0,.5); }
	.navWrap ul a { font-size: 1rem; }
}


/**************************************
Footer
**************************************/
/* return to top */
.returntop { position: fixed; bottom: 1rem; right: 1rem; display: none; z-index: 99; width: 50px; height: 50px; border-radius: 50%; box-shadow: 0 0 8px rgba(0,0,0,.2); text-align: center; background: #fff; }
.returntop span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.returntop svg { border: 1px solid #006db5; border-radius: 50%; margin-top: 5px; padding: 5px; height: 28px; width: 28px; }
.returntop svg path { fill: #006db5; }
.returntop:hover, .returntop:focus { background: #006db5; }
.returntop:hover svg, .returntop:focus svg { border-color: #fff; }
.returntop:hover svg path, .returntop:focus svg path { fill: #fff; }
@media (max-width: 768px) {
	.returntop { bottom: .5rem; right: .5rem; width: 35px; height: 35px; }
	.returntop svg { height: 15px; width: 15px; }
}


.footer { padding: 2em 0 0; background-color: #f1f1f1; font-size: 1rem; }
footer .container { max-width: 1200px; padding: 0 1.5rem; }
footer h2 { font-size: 1em; color: #fff; margin-bottom: 10px; padding-left: 0 !important;}
footer ul { list-style: none; padding: 0; margin: 0; }
.footer-links { background: #142c68; padding: 20px 0; color: #fff; margin-top: 20px; }
.footer-links a { text-decoration: none; }
.footer-links a, .footer-links a:visited, .footer-links a:hover { color: #fff; }
.footer-links a:hover { text-decoration: underline; }

.footerWrap { display: flex; justify-content: space-around; }
@media only screen and (max-width: 768px) {
	.footerWrap { display: block; }
	footer h2 { margin-bottom: 0; }
}

.social li { display: inline-block; padding: 0 20px 0 0; }
.social li a:hover { opacity: .9; }
.social .icon-exit-notification { display: none; }

.linkList { white-space: inherit; text-align: center; margin: 0 0 1em 0; list-style: none; padding-top: 2em; clear: both; }
.linkList li { display: inline-block; margin: 0 .2em; }
.linkList li::after { content: "|"; padding-left: 0.5em; }
.linkList li.last:after { display: none; }

.tagline { text-align: center; }

footer .seer-logo { display: block; background: transparent url("../../i/seer_logo.png") left center no-repeat; padding-left: 100px; margin: 0 auto 35px auto; width: 65%; }
@media screen and (max-width: 550px) {
	footer .seer-logo { background-position: top center; padding: 80px 0 0 0; text-align: center; width: 96%; }
}

/**************************************
Page link cards
**************************************/
#pageCardsWrapper {background: radial-gradient(circle at top center, #227991, #0e4554) !important;  color: #fff; position: relative; margin-left: calc((100% - 100vw) / 2); padding: 2.5rem 0;}
#pageCards {margin-top: 0;}


/**************************************
Helpers
**************************************/
.sr-only { clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }

.cf:before, .cf:after { content: ""; display: table; }
.cf:after { clear: both; }
.cf { zoom: 1; }

.d-flex { display: flex; }
.m-0 { margin: 0; }

/* hide the BS modal until we replace it */
#share, #imgModal, #printModal { display: none!important; }

/* borrow the SEER CTA button */
.greenBtn { background: #008000; border-bottom: 3px solid #004600; border-radius: 3px; color: #fff!important; text-decoration: none; margin: 0; padding: .5rem 1rem; transition: background .1s linear; }
.greenBtn:hover, .greenBtn:focus { background-color: #036603; color: #fff; transition: background .05s linear; }