/* All screen sizes */

/****************************************
* Root variables
****************************************/

:root {
  --fni-font: 'Brothers';
  --fni-font2: 'Roboto';
  --fni-font3: 'Roboto Condensed';
  --fni-font4: 'Thirsty';
}

/****************************************
* Typography
****************************************/

h1 {
  font: normal 700 33px/1em var(--fni-font);
  color: #fff;
  text-transform:uppercase;
  letter-spacing: .06em;
}

h2 {
  font: normal 700 24px/1.1em var(--fni-font3);
  color: #007FB0;
  text-transform: uppercase;
}

h3 {
  color: #036;
  border-top: 4px dotted rgba(0,0,0,.2);
  padding-top: 1rem;
  max-width: 1000px;
  margin: auto;
}

hr {
  margin: 1rem 0;
  border-top: 4px dotted rgba(0,0,0,.2);
}

p + h2,
ul + h2,
a.button + h2
{
  margin-top: 3rem;
}

h1 + p,
h2 + .news,
h3 + h3,
img + h2,
h3 + a.button,
p + h3,
p + a.button,
p + .video,
.video + .video,
p + form,
p + img,
ul + img {
  margin-top: 2rem;
}

object + p,
h2 + h3,
h2 + p,
h2 + .directory,
h3 + p,
h3 + .timeline,
h3 + .grid,
h3 + label,
img + p,
p + p,
p + ul,
p + ol,
a.button + a.button {
  margin-top: 1rem;
}

h1 + h2,
p + .disclaimer {
  margin-top: .5rem;
}

p,
li,
label,
legend {
  font: normal normal 16px/1.5em var(--fni-font2);
  color:#000000;
}

.disclaimer {
  font: italic normal 12px/1.5em var(--fni-font2);
  color: #9E9E9E;
  border-top: 1px solid rgba(0,0,0,.2);
  padding-top: .5rem;
}

.callout {
  font: normal normal 24px/1.1em var(--fni-font4);
  color: #036;
}

a {
  color: #007FB0;;
  text-decoration: none;
  font-weight:bold;
}

a:hover {
  color: #036;
}

.bulleted {
  margin: 1rem 0 1rem .5rem;
}

/****************************************
* Header
****************************************/

header {
  position: relative;
  background-color: #ebebeb;
}

header .flex {
  flex-direction: column;
}

.logo img {
  margin: 0 auto;
  width: 100%;
  max-width: 150px;
}

/****************************************
* Navigation
****************************************/

.nav-toggle {
  position: absolute;
  top: 1.5rem;
  right: 1rem;
  height: 35px;
  width: 35px;
  z-index: 400;
}

.nav-toggle svg {
  fill: #7bdaff;
  max-height: 35px;
  max-width: 35px;
}

.nav-toggle div {
  display: none;
}

.nav-toggle div.on {
  display: block;
}

nav {
  width: 100%;
  max-height: 0;
  padding: 0 1rem;
  overflow: hidden;
  transition: max-height .4s ease-in;
}

nav.on {
  max-height: 100vh;
}

nav ul {
  margin: 1rem 0 0 0;
}

nav li {
  display: flex;
  margin: 0 0 .5rem 0;
  width: 100%;
  padding: 0;
  text-align: center;
}

nav li:first-of-type {
  margin-top: 2rem;
}

nav li:last-of-type {
  margin-bottom: 1rem;
}

nav li a {
  width: 100%;
  padding: .75rem 0;
  font: normal 700 20px/1.2em var(--fni-font3);
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #036;
}

nav li a:hover {
  color: #007fb0;
}

/****************************************
* Accents
****************************************/

.accent-1 {
  background-color: #F7F7F7;
}

.accent-2 {
  background-color: #efefef;
}

/****************************************
* Buttons
****************************************/

.button {
  display:inline-block;
  background-color: #007FB0;
  border-radius: 4px;
  padding: 1rem 2rem;
  font: normal bold 16px/1em var(--fni-font2);
  text-transform: uppercase;
  letter-spacing:2px;
  border: 1px solid #007FB0;
}

.button:disabled,
.button:hover,
input[type="submit"].button:hover {
  background-color: #FFF;
  color: #007FB0;
  border: 1px solid #007FB0;
}

button.upload-button {
  background-color: #007FB0;
  color: #ffffff;
  padding-right: 30px;
}

button.upload-button:hover {
  background-color: #ffffff;
  color: #007FB0;
}

button.upload-button:hover svg {
  fill: #007FB0;
}

.remove-file-browser-button {
  z-index: 1;
  position: absolute;
  top: 0;
  right: 0;
  width: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0;
  border-radius: 0 3px 3px 0;
  background-color: #ff584f;
  color: #ffffff;
}

.remove-file-browser-button:hover {
  z-index: 1;
  position: absolute;
  top: 0;
  right: 0;
  width: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0;
  border-radius: 0 3px 3px 0;
  background-color: #ff584f;
  color: #ffffff;
}

.remove-file-browser-button.hidden {
  display: none;
}

/* Shutter Out Vertical */
.hvr-shutter-out-vertical {
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  position: relative;
  -webkit-transition-property: color;
  transition-property: color;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
}
.hvr-shutter-out-vertical:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2098D1;
  -webkit-transform: scaleY(0);
  transform: scaleY(0);
  -webkit-transform-origin: 50%;
  transform-origin: 50%;
  -webkit-transition-property: transform;
  transition-property: transform;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}
.hvr-shutter-out-vertical:hover, .hvr-shutter-out-vertical:focus, .hvr-shutter-out-vertical:active {
  color: white;
}
.hvr-shutter-out-vertical:hover:before, .hvr-shutter-out-vertical:focus:before, .hvr-shutter-out-vertical:active:before {
  -webkit-transform: scaleY(1);
  transform: scaleY(1);
}

/****************************************
* Billboard
****************************************/

.billboard-inside {
  background-color: #036;
  text-align: center;
}

.billboard-inside > div {
  max-width: 1000px;
}

.billboard,
.billboard .slip-n-slide {
  height: calc(120px + (400 - 120) * (100vw - 320px) / (768 - 320));
}

#billboard-slider {
  height: 100%;
}

.billboard {
  background-size: cover;
  background-position: top right;
  background-repeat: no-repeat;
}

.billboard .slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.billboard .content {
  margin: 0 auto;
  width:90%;
  max-width: 39rem;
  text-align: center;
}

.billboard .content .body {
  background-color: rgba(49, 49, 49, .8);
  border-radius: 5px;
  padding: 1rem 2rem;
}

.billboard-inside h2 {
  color: #7bdaff;
  font-family: var(--fni-font4);
  text-transform: none;
}

.billboard a {
  display: inline-block;
}

/****************************************
* Featured News
****************************************/

.featured-news .article-card:nth-child(3),
.featured-news .article-card:nth-child(4) {
  display: none;
}

/****************************************
* Divided (Vertical Separators)
****************************************/

.divided {
  max-width: 400px;
}

.divided > div {
  position: relative;
}

.divided > div + div::before {
  content: '';
  position: absolute;
  top: -1.5rem;
  left: 0;
  right: 0;
  background-color: #dfdfdf;
  height: 1px;
}

.divided object,
.divided .button {
  display: block;
  margin: auto;
}

.divided object {
  max-width: 190px;
}

/****************************************
* Staff directory
****************************************/

.directory {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem .5rem;
}

.staff {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc(100% - 1rem);
  margin: 0;
  background-color: #ffffff;
  border: 1px solid #efefef;
  border-radius: 5px;
  overflow: hidden;
  visibility: hidden;
}

.staff img {
  width: 100%;
}

.staff hr {
  margin: .5rem 0;
}

.staff h2 {
  font-size: 20px;
}

.staff .image-wrapper {
  position: relative;
  background-color: #378ab4;
}

.staff .image-wrapper .shift {
  height: 100%;
  object-position: 0 -12px;
}

.staff .image-wrapper p {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  width: 100%;
  font-size: 30px;
  font-weight: bold;
  color: rgba(255, 255, 255, .9);
  text-align: center;
  text-transform: uppercase;
  line-height: 1em;
}

.staff .details {
  padding: 1rem;
  text-align: center;
}

.staff .social {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: .5rem;
}

.staff svg {
  width: 25px;
  height: 25px;
  fill: #036;
}

.staff svg:hover {
  fill: #7bdaff;
}

.staff a + a {
  margin-left: .5rem;
}

.leaflet-popup-content .staff {
  visibility: visible !important;
}

/****************************************
* Timeline
****************************************/

.timeline {
  position: relative;
  padding-top: 26px;
  overflow: hidden;
  grid-gap: 3rem 1rem;
}

.timeline > div {
  padding: 1rem;
  border-radius: 3px;
  background-color: #036;
  border-image: linear-gradient(180deg,rgba(112, 112, 91, .3) 1.5px,#0000 0) fill 0//20px 100vw;
}

.timeline p {
  position: relative;
}

.timeline .year {
  color: #7bdaff
}

.timeline p:before {
  content: '';
  position: absolute;
  top: calc(-26px - 1rem);
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  background-color: #ffffff;
  border: 3px solid #007fb0;
  border-radius: 50%;
  width: 16px;
  height: 16px;
}

.timeline p:after {
  content: '';
  position: absolute;
  top: calc(-24px - 1rem);
  left: 50%;
  transform: translateX(-50%);
  background-color: #007fb0;;
  width: 3px;
  height: 24px;
}

.timeline p {
  color: #e8e7e7;
  font-size: 14px;
}

.timeline strong {
  color: #ffffff;
  font-size: 16px;
}

/****************************************
* Article Card
****************************************/

.article-card {
  position: relative;
  background-color: #000000;
}

.news .article-card {
  visibility: hidden; /* hidden for animations */
}

.article-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card:before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  transition: all .25s ease;
}

.article-card .title {
  z-index: 2;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  margin: 0;
  padding: 1rem;
  text-align: center;
}

.article-card .title h3 {
  color: #fff;
  line-height: 1.2em;
  border-top: none;
}

.article-card .title p {
  color: #CFCFCF;
  font-size: 14px;
  border-top: 1px solid #8f8e8e;
  max-width: 100px;
  margin: .25rem auto 0 auto;
}

.article-card:hover:before {
  background-color: rgba(255, 255, 255, 0.8);
}

.article-card:hover .title h3 {
  color: #007FB0;
}

.article-card:hover .title p {
  color: #777777;
  border-color: #777777;
}

/****************************************
* Jobs
****************************************/

.job-graphic object {
  display: block;
  margin: 2rem auto 0 auto;
}

.job-graphic.visible--desktop object {
  max-width: 1400px;
}

.job-graphic.hidden--desktop object {
  max-width: 300px;
}

/****************************************
* Donation request
****************************************/

.request-form .gap-1 {
  grid-gap: 0 1rem;
}

/****************************************
* Careers form
****************************************/

form.careers {
  margin: 1.5rem auto 0 auto;
  max-width: 410px;
}

/****************************************
* Styled select element
****************************************/

.styled-select {
  position: relative;
  padding: 0;
}

.styled-select.half {
  width: calc(50% - 1rem);
}

.styled-select .arrow-down {
  display: inline-block;
  position: absolute;
  top: 12px;
  right: 9px;
  transform: rotate(45deg);
  border: solid #888888;
  border-width: 0 3px 3px 0;
  padding: 3px;
  pointer-events: none;
}

.styled-select select {
  padding-right: 24px;
}

.styled-select.half select {
  width: 100%;
}

/****************************************
* Checkmark
****************************************/

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #4CAF50;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark {
  display: block;
  margin: 2rem auto;
  border-radius: 50%;
  box-shadow: inset 0px 0px 0px #4CAF50;
  width: 88px;
  height: 88px;
  stroke-width: 2;
  stroke: #ffffff;
  stroke-miterlimit: 10;
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark-check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  transform-origin: 50% 50%;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0
  }
}

@keyframes scale {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 60px #4CAF50;
  }
}

/****************************************
* Footer
****************************************/

footer {
  background-color: #036;
}

footer > .grid {
  grid-template-columns: 1fr;
}

footer h2 {
 font: normal bold 19px/1.2em var(--fni-font);
 letter-spacing: 1px;
}

footer h2,
footer a {
  color: #ffffff;
  text-align: center;
}

footer a:hover {
  color: #7bdaff;
}

/****************************************
* Attribution
****************************************/

.attribution {
  background-color: rgba(0, 0, 0, 0.2);
  padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom));
}

.attribution a {
  color: #ffffff;
  font-weight: normal;
  text-transform: none;
}

.attribution p {
  margin: 0;
  font-size: 12px;
  color: #ffffff;
}