
/* ==========================================================
   Variables
   ========================================================== */
:root {
  --navy: #000033;
  --gold: #eee8aa;
  --font-heading: 'Cinzel', sans-serif;
  --font-body: 'Balthazar', sans-serif;
}

/* ==========================================================
   Base
   ========================================================== */
body, html {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  font-family: var(--font-heading);
}
* { text-decoration: none; list-style: none; }
a { color: var(--navy); }
a:hover { color: var(--navy); }
button { background-color: var(--gold); }
hr { width: 100%; border: none; }

p {
  color: var(--navy);
  text-align: left;
  font-size: 1.25em;
  font-family: var(--font-body);
  line-height: 1.2em;
}

h1 {
  display: block;
  margin: 1em auto 0;
  text-align: center;
  font-weight: 900;
  font-size: 2em;
  color: var(--navy);
  font-family: var(--font-body);
  text-transform: none;
}
h2 {
  margin: 0 auto;
  padding: .15em;
  position: relative;
  text-align: center;
  font-size: 1.5em;
  color: var(--navy);
  font-family: var(--font-heading);
}
h3, h6 {
  margin: 0 auto;
  padding: .25em;
  text-align: center;
  color: var(--gold);
  background-color: var(--navy);
  font-family: var(--font-heading);
}
h6 { font-size: 1.1em; }
h4 {
  margin: 0 auto .25em;
  padding: .25em 0;
  text-align: center;
  font-size: 1.25em;
  color: var(--navy);
  font-family: var(--font-heading);
}
h5 { margin: 0; text-align: center; }

/* Icons */
.fab, .fas, .fa, .far {
  color: var(--navy);
  padding-right: .25em;
}

/* ==========================================================
   Utilities
   ========================================================== */
.whitefont  { color: #fff; }
.bluefont   { color: var(--navy); }
.yellowfont { color: var(--gold); }
.textmiddle { vertical-align: middle; }
.center-block { margin: 0 auto; align-content: center; text-align: center; }
.clear, .clearfix { clear: both; }
.clearfix::before, .clearfix::after { content: " "; display: table; }
.clearfix::after { clear: both; }
.blueborder { border: .125em solid var(--gold); box-shadow: .4em .4em .2em var(--navy); }
.img-responsive { max-width: 100%; height: auto; margin: 0 auto; }
.image-centered {
  display: block;
  margin: 0 auto;
  padding: 1em 0;
  max-width: 100%;
  height: auto;
  text-align: center;
  align-content: center;
}
.fade { animation: fade 1.5s; }
@keyframes fade { from { opacity: .4; } to { opacity: 1; } }

/* ==========================================================
   Header and navigation
   ========================================================== */
header {
  display: table;
  width: 100%;
  margin: 0 auto;
  background-color: var(--gold);
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 0;
  z-index: 2;
}
#logo { float: left; }

nav { float: right; margin-right: 0; }
nav ul { display: table; float: left; }
nav ul li { float: left; }
nav ul li:last-child { padding-right: 0; }
nav ul li img { margin-top: -5px; margin-bottom: -.4em; }
nav ul li a {
  display: inline-block;
  padding: .5em .75em .5em .5em;
  color: var(--navy);
  transition: all .5s ease 0s;
}
nav ul li a:hover { background-color: var(--navy); color: var(--gold); }
nav ul li a:hover i { color: var(--gold); transition: all .5s ease 0s; }
nav ul li a i { padding-right: .5em; color: var(--navy); transition: all .5s ease 0s; }

/* Hamburger menu */
.toggle-menu ul { display: table; width: 1.5em; padding-right: 2em; }
.toggle-menu ul li { width: 100%; height: .188em; margin-bottom: .25em; background-color: var(--navy); }
.toggle-menu ul li:last-child { margin-bottom: 0; }
input[type=checkbox], label { display: none; }

@media only screen and (max-width: 980px) {
  #logo { padding: 0; }
  input[type=checkbox] { position: absolute; top: -9999px; left: -9999px; background: none; }
  input[type=checkbox]:focus { background: none; }
  input[type=checkbox]:checked ~ nav { display: block; }
  label { float: right; display: inline-block; padding: .5em 0; cursor: pointer; }
  nav {
    display: none;
    position: absolute;
    top: 5.313em;
    right: 0;
    padding: 0;
    background-color: var(--navy);
    z-index: 99;
  }
  nav ul li .fas, .far, .fab { color: var(--gold); }
  nav ul { width: auto; padding-left: 0; }
  nav ul li { display: table; float: none; width: 100%; padding-right: 1em; }
  nav ul li a {
    display: block;
    padding: .75em;
    font-size: 1em;
    color: var(--gold);
    border-bottom: .063em solid rgba(225, 225, 225, .1);
  }
  nav ul li a i { padding-right: .85em; color: var(--gold); }
}

/* ==========================================================
   Layout
   ========================================================== */
.container { width: 100%; height: 100%; margin: 0; }
.missioncontainer { width: 100%; height: 100%; margin: 0; background-color: var(--gold); }
.flex-container { display: flex; }
.flex-child { flex: 1; }
.flex-child:first-child { margin-right: 20px; }
.even { margin-left: 37%; }
.columns { float: left; width: 33%; padding: 1em; }

.pagemenu, .right {
  float: left;
  width: 14%;
  margin-top: 1em;
  background-color: transparent;
  text-align: center;
}
.main {
  float: left;
  width: 69%;
  padding: 0 .625em;
  background-color: transparent;
}
.main ul, li {
  color: var(--navy);
  text-align: left;
  font-size: 1em;
  font-family: var(--font-body);
}
.main a {
  color: var(--navy);
  text-align: left;
  font-size: 1em;
  font-family: var(--font-body);
  line-height: 1.5em;
  text-decoration: underline;
}
.main > h3 .fas, .fa, .fab, .far { color: var(--gold); }
.main .fas, .fa, .fab, .far > h4 { color: #000030; }
.main > .img-responsive { padding-right: 1em; }

.picturediv { margin-bottom: 1em; }

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
}
.f1, .f2, .f3 {
  flex: 1 1 300px;
  max-width: 33%;
  min-width: unset;
  padding: 0 1%;
}

/* ==========================================================
   Components
   ========================================================== */
/* Bulletin box */
.bulletinbox {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 3em auto;
  background: var(--gold);
}
.bulletinbox:hover { background: #fff; }
.bulletinbox h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0 -50% 0 0;
  padding: .2em;
  background: var(--gold);
  border: .125em solid var(--navy);
  box-shadow: .25em .25em .25em var(--navy);
  text-shadow: 0 .1em 0 #fff;
  transform: translate(-50%, -50%);
}

.bulletin {
  display: block;
  width: 35%;
  margin: 1em 0;
  padding: .5em;
  background-color: var(--gold);
  border: .13em solid var(--navy);
  text-align: center;
  color: var(--navy);
  font-size: 1.1em;
  font-family: var(--font-heading);
}
.bulletin:hover { background-color: #fff; color: var(--navy); }
.bulletin .fas { color: var(--navy); }

/* Animated underline link */
.link {
  display: inline-block;
  position: relative;
  z-index: 0;
  overflow: hidden;
  vertical-align: bottom;
  transition: color .3s ease-out;
}
.link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,51,1) 0%, rgba(238,234,138,1) 50%, rgba(0,0,51,1) 100%);
  transform: translateY(calc(100% - 2px));
  transition: transform .25s ease-out;
}
.link:hover .fas, .fab, .fa, .far { color: #fff; }
.link:hover { color: #fff; }
.link:hover::before { transform: translateY(0); }

/* Buttons */
.button {
  background-color: var(--gold);
  border: .125em solid var(--navy);
  color: var(--navy);
  text-align: center;
  font-size: 1.15em;
  box-shadow:
    rgba(50, 50, 93, .25) 0 50px 100px -20px,
    rgba(0, 0, 0, .3) 0 30px 60px -30px,
    rgba(10, 37, 64, .35) 0 -2px 6px 0 inset;
}
.hovers { width: 100%; margin: 0 auto; padding: .75em; }

/* Wrapper and centered text */
.wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}
.wrapper p {
  padding: .3em;
  font-size: 1.25em;
  color: var(--navy);
  font-family: 'Balthazar', serif;
}
.wrapperbox { margin: -2em 0 0; background-color: var(--navy); }
.masstimescontainer { position: relative; max-width: 1920px; margin: 0 auto; }
.centered {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: calc(16px + (100 - 14) * ((80vw - 250px) / (1300 - 200)));
  color: var(--navy);
  font-family: 'Cinzel', serif;
  text-shadow: .125em .125em .125em #fff;
}

/* YouTube embed */
.youtubecontainer {
  position: relative;
  height: 0;
  padding-top: 2em;
  padding-bottom: 56.25%;
  overflow: hidden;
}
.youtubecontainer iframe,
.youtubecontainer object,
.youtubecontainer embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Tabs */
.radio { display: none; }
.tab {
  display: inline-block;
  margin: 0 .125em;
  padding: .4em;
  background: var(--navy);
  color: #fff;
  font-size: 1.25em;
  font-family: 'Cinzel', serif;
  border-radius: .3em .3em 0 0;
}
.tab a:hover { color: #fff; }
.panels {
  min-height: 200px;
  max-width: 1920px;
  border: .125em solid var(--navy);
  overflow: hidden;
}
.panel { display: none; }
#one:checked ~ .panels #one-panel,
#two:checked ~ .panels #two-panel,
#three:checked ~ .panels #three-panel {
  display: block;
  column-count: 1;
}
#one:checked ~ .tabs #one-tab,
#two:checked ~ .tabs #two-tab,
#three:checked ~ .tabs #three-tab {
  background: var(--navy);
  color: var(--gold);
  border-top: .3em solid var(--gold);
}

/* ==========================================================
   Image galleries
   ========================================================== */
.imagecontainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  text-align: center;
}
.imagecontainer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: .7em auto;
  padding: 0;
}
.imagecontainer li { display: block; margin: 0; padding: 0; text-align: center; }
.imagecontainer li a { display: inline-block; color: #fff; }
.imagecontainer .view { float: none; }
.imagecontainer img { display: block; max-width: 100%; height: auto; margin: 0 auto; }

.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
}
.grid img { display: block; width: 250px; height: 167px; object-fit: cover; }

/* Hover-effect thumbnails */
.view {
  float: left;
  position: relative;
  overflow: hidden;
  padding: .25em;
  text-align: center;
}
.view .mask, .view .content {
  position: absolute;
  top: .13em;
  left: 0;
  overflow: hidden;
  border: .125em solid var(--navy);
}
.view img { display: block; position: relative; width: 100%; }
.view p { position: relative; color: #fff; text-align: center; font-size: 1.15em; font-family: inherit; }
.view a.info {
  display: inline-block;
  padding: .125em .25em;
  background: var(--navy);
  color: #fff;
  font-size: 1em;
  box-shadow: 0 0 .125em var(--navy);
}
.view a.info:hover { box-shadow: 0 0 .3125em var(--navy); }

.section-wrapper .view img {
  width: 250px !important;
  height: 167px !important;
  max-width: unset !important;
  max-height: unset !important;
}

.view-first img { height: 99%; transition: all .2s linear; }
.view-first .mask {
  opacity: 0;
  background-color: rgba(0, 51, 102, .75);
  transition: all .4s ease-in-out;
}
.view-first p {
  margin-top: 3.1em;
  opacity: 0;
  transform: translateY(100px);
  transition: all .2s linear;
}
.view-first a.info { opacity: 0; transition: all .2s ease-in-out; }

.view-first:hover img { transform: scale(1.1); }
.view-first:hover .mask { opacity: 1; }
.view-first:hover p,
.view-first:hover a.info { opacity: 1; transform: translateY(0); }
.view-first:hover p { transition-delay: .1s; }
.view-first:hover a.info { transition-delay: .2s; }

/* ==========================================================
   Slideshow
   ========================================================== */
#SlideshowAll {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  overflow: hidden;
  z-index: 1;
}
#Slider { position: relative; width: 100%; height: 500px; overflow: hidden; }
#Slider img {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 1s;
  z-index: 1;
}
#Slider img.active-slide { display: block; z-index: 2; }

#Arrows {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 95%;
  max-width: 1880px;
  height: 30px;
  transform: translate(-50%, -50%);
  z-index: 10;
}
#Arrows i {
  height: 30px;
  padding: 15px;
  background-color: rgba(0, 0, 51, .75);
  color: var(--gold);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color .5s, color .5s;
}
#Arrows i:first-of-type { padding-right: 20px; }
#Arrows i:last-of-type { padding-left: 20px; }
#Arrows i:hover { background-color: rgba(28, 29, 33, .75); color: #EEEFF7; }

/* Old carousel: permanently hidden */
.carousel, .ct, .ct img, .ct li, .active, .leftarrow, .arrow, .pre, .next {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media only screen and (max-width: 768px) {
  #Slider, #Slider img { height: 300px; }
  #Arrows { width: 90%; }
  #Arrows i { font-size: 30px; padding: 10px; }
  .f1, .f2, .f3 { max-width: 90%; text-align: center; }
}

@media only screen and (max-width: 620px) {
  .menu, .main, .right { width: 100%; }
}

@media screen and (max-width: 600px) {
  .missioncontainer { display: none; }
}

@media only screen and (max-width: 480px) {
  #Slider, #Slider img { height: 200px; }
  #Arrows { width: 85%; }
  #Arrows i { font-size: 25px; padding: 8px; }
}

@media only screen and (min-device-width: 769px) and (max-device-width: 1023px) {
  h3 { margin-bottom: 1em; font-size: 1em; }
}

/* Phones */
@media only screen and (min-device-width: 300px) and (max-device-width: 766px) and (-webkit-min-device-pixel-ratio: 3) {
  .even { margin-left: 20%; }
  .footer h4 { text-align: center; }
  label { padding: .33em 0; }
  #logo { font-size: 1.3em; }
  nav { top: 3em; }
  h2, h4, h6 { font-size: 1em; }
  h3 { margin-right: 1em; font-size: 1em; }
  h5 { width: 100%; }
  .bulletinbox h2 { margin-right: 0; font-size: 1em; }
  .picturediv { margin-bottom: 1em; padding-right: 3em; }
  .main p { margin-right: 1em; font-size: 1em; }
  .columns { width: 100%; }
  .bulletin { width: 82%; margin-left: 1.25em; }
  .tabs { margin-top: -.25em; }
  .tab { margin-bottom: .2em; border: .12em solid var(--gold); font-size: .75em; }
  .panels { width: 90%; }
  .hovers { margin-left: 3.5em; }
}
.center-block p {
  text-align: center;
}

.center-block .bulletin {
  margin: 1em auto;   /* auto left/right margins center the 35%-wide box */
}