html {
 scroll-behavior: smooth; 
}

body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-family: serif;
  background-color: #164272;
  // background: url('/img/banner.jpg');
  background-attachment: fixed;
  background-size: cover;
  display: flex;
  min-height: 100vh;
  flex-flow: column;
  width: 100%;
  max-width: 100%;
}

@keyframes slideInFromBottom {
  0% {
    transform: translateY(50vh);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

header {
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  padding-left: 10vw;
  padding-right: 10vw;
  background: #B7C9E8;
  text-align: center;
  position:relative;
  overflow: hidden;
}

header h1 {
  position: relative;
  float: left;
  font-size: 100%;
  padding: 1.5em;
  padding-left: 0;
  margin: 0;
  color: #1C8537;
  z-index: 1;
}

#logo {
  float: left;
  position: relative;
  display: inline-block;
  float: left;
  font-size: 300%;
  margin: 0.25em;
  width: auto;
  height: 1em;
  //animation: 1s ease-out 0s 1 fadeIn;
  z-index: 1;
}

a {
  text-decoration: underline;
  font-weight: none;
  transition: color 1s;
}

a:hover {
  color: #1C8537;
}

nav {
  //animation: 1s ease-out 0s 1 slideInFromBottom;
  position: relative;
  //background: black;
  color: white;
  text-align: right;
  width: 100%;
  box-sizing: border-box;
  z-index: 0;
}

nav a {
  color: #1C8537;
  text-decoration: none;
}

nav a:hover {
  color: #164272;
}
nav ul {
  list-style: none;
  padding: 0;
}

nav ul li {
  margin-left: 1em;
  margin-right: 1em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  display: inline-block;
  white-space: nowrap;
}

.front-header {
  height: 100vh;
  text-align: center;
  position:relative;
  overflow: hidden;
  background: transparent;
  padding: 0;
  flex: 1;
}

.front-h1 {
  position: relative;
  font-size: 300%;
  padding: unset;
  margin: 0;
  color: white;
  z-index: 1;
  text-shadow: 0 0 0.5em black;
  float: none;
  line-height: 50vh;
  white-space: nowrap;
  visibility: hidden;
}

#front-logo {
  position: absolute;
  background: url('/img/Yankee logo_white.png');
  background-size: 50vh auto;
  background-repeat: no-repeat;
  background-position: center;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  height: 50vh;
  animation: 1s ease-out 0s 1 fadeIn;
  z-index: 0;
}

.front-nav {
  padding: 0.5em;
  animation: 1s ease-out 0s 1 slideInFromBottom;
  position: relative
  height: 25vh;
  background: #B7C9E8;
  color: white;
  text-align: center;
  font-size: 200%;
  width: 100vw;
  box-sizing: border-box;
}


#main-wrap {
  padding-bottom: 1em;
  flex:1;
}

main {
  position: relative;
  width: 42em;
  max-width: 80vw;
  font-size: 100%;
  background: white;
  color: black;
  padding: 1em;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2em;
  margin-bottom: 0;
  box-sizing: border-box;
  box-shadow: 0 0 1em black;
  line-height: 150%;
}

main a {
  color: black;
}

main h2 {
  top: 0;
  text-align: center;
  font-size: 133%;
  padding: 1em;
  white-space: break-spaces;
}

main h2 a {
  display: inline-block;
}

main h3 {
  text-align: center;
  font-size: 100%;
  border-top: 1px solid gray;
  border-bottom: 1px solid gray;
}

main ul {
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  list-style: none;
  padding: 1em;
  margin-top: 0;
}

main  ul li {
  padding: 0.25em;
  font-size: 100%;
  padding-left: 2.25em;
  text-indent: -2em;
}

main  ul li + li {
  border-top: 1px solid gray;
}

main > ul li::before {
  display: inline-block;
  content: "-";
  text-align: center;
  min-width: 2em;
  height: 100%;
  left: 1em;
  position: relative;
  z-index: 0;
}

#subnav {
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  border: 1px solid gray;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  padding-top: 0.5em;
}

main #subnav ul {
  width: auto;
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}

.float-left {
  float: left;
  max-width: 40%;
  max-height: auto;
  margin-right: 1em;
}

.float-right {
  float: right;
  max-width: 40%;
  max-height: auto;
  margin-left: 1em;
}

.big-img {
  width: 100%;
  height: auto;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

figcaption {
  font-size: 80%;
  text-align: center;
}

video {
  width: 100%;
  height: auto;
}

.columnated-container {
  column-count: 3;
  column-gap: 0.5em;
  height: min-content;
  width: 100%;
}
.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto;
  grid-gap: 0.5em;
}
.two-columns {
  column-count: 2;
    grid-template-columns: 1fr 1fr;
}

.columnated-container img, .grid-container img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.two-columns img {
  display: flex;
  margin-bottom: 0.5em;
}

.jump-button {
  display: block;
  text-align: center;
  font-size: 200%;
  box-sizing: border-box;
  width: 1.5em;
  height: 1.5em;
  max-width: 1.5em;
  max-height: 1.5em;
  border-radius: 1em;
  box-shadow: 0 0 1em black;
  color: #797979;
  text-decoration: none;
  background: white;
}

.to-content {
  position: absolute;
  right: 1em;
  bottom: 1em;
  padding-bottom: 0.45em;
  display: none;
}

.to-top {
  padding-top: 0.45em;
  position: fixed;
  right: 1em;
  bottom: 2em;
}

footer {
  text-align: center;
  font-size: 90%;
  background: #B7C9E8;
  color: #0E3A67;
  padding: 1em;
  //box-shadow: 0 100vh 0 100vh black;
}

footer a {
  color: white;
}

footer a:hover {
  color: #336699;
}

@media screen and (max-width: 640px), screen and (max-height: 450px) {
  body {
    font-size: 75%;
  }
  header {
    font-size: 150%;
  }
  
  .front-h1 {
    font-size: 150%;
  }
  .front-nav {
    font-size: 100%;
  }
}

@media screen and (max-width: 1200px) {
  .columnated-container {
    column-count: 2;
  }
  
  .grid-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 768px) {
  .columnated-container {
    column-count: 1;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
  }
}