@font-face {
  font-family: 'Cormorant Garamond';
  font-weight: normal;
  src: url('/fonts/CormorantGaramond/CormorantGaramond-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-weight: bold;
  src: url('/fonts/CormorantGaramond/CormorantGaramond-Bold.ttf') format('truetype');
}

body, html {
  position: relative;
  width: 100%;
  min-height: 100%;
}

body {
  background-color: #fff;
  margin: 0px;
  font-family: 'Cormorant Garamond';
}

header {
  width: calc(100% - 16px);
  height: 72px;
  background-color: #000;
  background-image: url("/img/header_border_funky.png");
  background-repeat: repeat-x;
  background-position: bottom;
  padding: 8px;
  margin: 0px;
  color: #f8f8ff;
  display: flex;
  flex-direction: row;
  line-height: 64px;
}

footer {
  width: 100%;
  background-color: #000;
  background-image: url("/img/header_border_funky.png");
  background-repeat: repeat-x;
  background-position: top;
  padding-top: 8px;
  margin-top: 128px;
  padding-bottom: 32px;
  color: #f8f8ff;
  flex-direction: row;
}

.footer-row {
  width: 100%;
}

.footer-row>img {
  margin: 32px;
  margin-bottom: 16px;
  width: 64px;
  height: 64px;
}

#footer-columns {
  display: flex;
  width: 100%;
}

.footer-column {
  padding-left: 32px;
  padding-right: 32px;
}

.footer-column>img {
  width: 64px;
}

.footer-column>h3 {
  margin-top: 8px;
  margin-bottom: 8px;
  line-height: 32px;
}

.footer-column ul li {
  height: 27px;
  padding: 0px;
  margin: 0px;
  list-style: none;
  display: block;
}

.footer-column ul {
  margin: 0px;
  padding: 0px;
}

.footer-column p {
  height: 27px;
  padding: 0px;
  margin: 0px;
}

footer a {
  color: #fff !important;
}

.footer-column ul li a {
  color: #fff !important;
}

header>a>img {
  height: 64px;
}

header>span {
  font-size: 20pt;
  padding-left: 32px;
  padding-right: 32px;
}

a, a:visited, a:hover {
  color: #00719c;
}

header a {
  text-decoration: none;
  color: #f8f8ff !important;
}

#main-container {
  max-width: 90ch;
  margin: auto;
  background-color: #e9e2cd;
  color: #282f32;
  border: 4px solid #edb7ab;
  border-radius: 12px;
  font-family: sans-serif, 'Noto Color Emoji';
  font-size: 14px;
  text-transform: lowercase;
}

nav, main {
  font-size: 18px;
}

#display {
  width: 100%;
  height: 640px;
  position: relative;
  background-color: #000;
}

#display-bg>img {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  object-fit: cover;
}

#display-bg>img.show {
  opacity: 1;
}

#display-shapes {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
}

#display-shapes:hover {
  display: none;
}

#display-overlay {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
}

#display>img {
  width: 640px;
}

#content {
  color: #252525;
  margin: auto;
  width: 640px;
  max-width: 100%;
  font-size: 16pt;
}

#content>p {
  text-align: justify;
}

.icon {
  width: 32px;
  height: 32px;
  position: relative;
  top: 5px;
}

#main-bg {
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: -1;
  width: 100%;
  height: 100%;
}

#main-bg .teal-shape {
  position: absolute;
  top: 0px;
  left: 0px;
  height: 100%;
  width: calc((100% - 640px - 8px) / 2);
}

#moat-embed-big {
  text-align: center;
}

#moat-embed-small {
  text-align: center;
  display: none;
}

@media(max-width:850px) {
  .nav-label {
    display: none;
  }

  #moat-embed-big {
    display: none;
  }

  #moat-embed-small {
    display: block;
  }

  #footer-columns {
    flex-direction: column;
  }

  header>img {
    margin-right: 16px;
  }

  header>span {
    padding-left: 16px;
    padding-right: 16px;
  }

  #content {
    width: calc(100% - 32px);
    padding: 16px;
  }

  #display-overlay>img {
    width: 80%;
    vertical-align: middle;
  }

  #display {
    max-height: calc(100vh - 64px);
  }

  .teal-shape {
    display: none;
  }
}
