@font-face {
  font-family: "Jorvik";
  src: url("../fonts/JorvikTaelmoor.woff");
}

@font-face {
  font-family: "Rooters";
  src: url("../fonts/Rooters.woff");
}

body {
  margin: 0;
  color: #eff1f2;
  background-color: #1e1e20;
  font-family: "Open Sans", sans-serif;
}

a {
  color: #eff1f2;
}

a:hover {
  color: #bbbcbe;
}

a:active {
  color: #878889;
}

a:visited {
  color: #bbbcbe;
}

a:active:visited {
  color: #878889;
}

li {
  margin-top: 8px;
  margin-bottom: 8px;
}

.footer {
  width: 100%;
  padding-top: 80px;
  padding-bottom: 40px;
  display: flex;
  justify-content: center;
}

.button {
  width: 240px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("../images/button.jpg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  color: #fed6a0;
  font-family: Jorvik, sans-serif;
  font-size: 16pt;
  text-shadow: 0px 0px 6px black;
  text-decoration: none;
  box-shadow: 0px 0px 6px 2px black;
}

.button:hover {
  opacity: 0.85;
  color: #fed6a0;
}

.button:active {
  opacity: 0.6;
  color: #fed6a0;
}

.button:visited {
  color: #fed6a0;
}

.button:active:visited {
  color: #fed6a0;
}

.button.decorated {
  width: 187px;
  height: 42px;
  font-size: 13pt;
  background-image: url("../images/button-decorated.png");
  box-shadow: 0px 0px 6px 2px rgba(0, 0, 0, 0.5);
  background-color: rgba(0, 0, 0, 0.5);
}

.centered {
  margin: 0 auto;
}

.spaced {
  margin-top: 36px;
}

.spacer {
  display: block;
}

/** CONTENT **/

.content-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding-left: 40px;
  padding-right: 40px;
}

.content-wrapper.full-width {
  padding-left: 0;
  padding-right: 0;
}

.content {
  width: 100%;
  max-width: 960px;
}

.content.narrow {
  max-width: 640px;
}

h1 {
  font-family: Rooters, serif;
  font-size:  24pt;
  margin-top: 12px;
  margin-bottom: 6px;
}

h2 {
  font-size: 16pt;
  font-weight: bold;
  margin-top: 24px;
}

.sub-header {
  margin-bottom: -12px;
}

section {
  margin-top: 64px;
  margin-bottom: 64px;
}

.section-content {
  gap: 24px;
}

.reverse-order {
  flex-direction: row-reverse;
}

.content-group {
  flex: 1;
}

.content-group.wide {
  flex: 2;
}

.section-hero-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-hero {
  max-width: 100%;
}

.video-wrapper {
  max-width: 560px;
  max-height: 315px;
  width: calc(100vw - 80px);
  height: calc((100vw - 80px) * 0.5625);
  margin: 24px auto;
}

.content-video {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.final-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.final-image {
  width: 600px;
  max-width: 100%;
}


/** HERO **/

.hero-container {
  width: 100vw;
  height: 66vh;
  min-height: 40vw;
  max-height: 75vw;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 100vw;
}

.call-to-action {
  width: 290px;
  height: 136px;
  max-width: 90vw;
  max-height: 42vw;
  box-sizing: border-box;
  background-image: url("../images/board-graphic.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.call-to-action-content {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.call-to-action-section {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-to-action-text {
  height: 30px;
  font-family: Jorvik, sans-serif;
  text-align: center;
  font-size: 15pt;
  line-height: 15pt;
  color: #f8d274;
}

.call-to-action-button {
  height: 48px;
}

/** MENUBAR **/

.menubar {
  position: fixed;
  top: 0;
  left: 0;
  box-sizing: border-box;
  width: 100vw;
  color: #eff1f2;
  font-family: "Jorvik", "Open Sans", sans-serif;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  z-index: 100;
}

.menubar a {
  text-decoration: none;
}

.menubar a:visited {
  color: #eff1f2;
}

.menubar-left {
  width: 225px;
  height: 96px;
  background-image: url("../images/menubar-left.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right;
  justify-content: center;
  align-items: center;
}

.menubar-center {
  flex: 1;
  max-width: 960px;
  min-height: 48px;
  background-color: rgba(12, 12, 14, 0.85);
  display: flex;
  justify-content: flex-start;
  padding-left: 12px;
  padding-right: 12px;
}

.menubar-right {
  width: 13px;
  height: 48px;
  background-image: url("../images/menubar-right.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left;
}

.menubar-brand-left {
  height: 78px;
  margin-left: 8px;
}

.menubar-brand-center {
  position: absolute;
  width: 146px;
  top: 3px;
  left: calc((100vw - 146px) / 2);
}

.collapse-icon {
  width: 24px;
  height: 24px;
  margin-left: auto;
  background-image: url("../images/icon-menu-light.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-image 0.2s ease-in-out 0.1s;
}

.toggle {
  display: none;
}

.toggle-controls {
  padding: 12px;
  cursor: pointer;
}

.collapse-wrapper {
  width: 100%;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}

.collapse-content {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}

.menubar-item {
  display: flex;
  align-items: center;
}

.toggle:checked + .toggle-controls + .collapse-wrapper {
  max-height: 100vh;
}

.toggle:checked + .toggle-controls > .collapse-icon {
  background-image: url("../images/icon-close-light.png");
}


/** DESKTOP STYLES **/

@media (min-width: 720px) {
  .call-to-action {
    margin-top: -164px;
    margin-left: auto;
    margin-right: 42px;
    margin-bottom: 36px;
    transform: rotate(-8deg);
  }

  .spacer {
    height: 144px;
  }

  .section-content {
    display: flex;
  }

  .shift-right {
    padding-left: calc(50% + 12px);
  }

  .menubar {
    padding-left: 2.5vw;
    padding-right: 2.5vw;
    min-height: 96px;
    font-size: 18pt;
  }

  .menubar-left {
    display: flex;
  }

  .menubar-brand-center {
    display: none;
  }

  .menubar-item {
    gap: 12px;
  }

  .final-menubar-item {
    margin-top: 0;
    margin-left: auto;
  }

  .toggle-controls {
    display: none;
  }

  .collapse-wrapper {
    max-height: 100vh;
  }

  .collapse-content {
    flex-direction: row;
    justify-content: center;
    gap: 18px;
  }

  .social-icon {
    width: 21px;
    height: 21px;
  }
}


/** MOBILE STYLES **/

@media (max-width: 720px) {
  .call-to-action {
    margin-top: 36px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: -24px;
    transform: rotate(0deg);
  }

  .spacer {
    height: 96px;
  }

  .section-content {
    display: block;
  }

  .shift-right {
    padding-left: 0;
  }

  .menubar {
    padding-left: 0;
    padding-right: 0;
    min-height: 48px;
    font-size: 24pt;
  }

  .menubar-left {
    display: none;
  }

  .menubar-center {
    display: block;
  }

  .menubar-right {
    display: none;
  }

  .menubar-item {
    gap: 15px;
  }

  .final-menubar-item {
    margin-top: 6px;
    margin-left: 0;
  }

  .toggle-controls {
    display: block;
  }

  .collapse-wrapper {
    max-height: 0px;
  }

  .collapse-content {
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 18px;
    padding-bottom: 12px;
    gap: 24px;
  }

  .social-icon {
    width: 24px;
    height: 24px;
  }
}


/** RULES PAGE **/

.rulebook-outer-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rulebook-inner-wrapper {
  width: 180px;
}

.rulebook-cover {
  width: 100%;
}

.version-tag {
  position: relative;
  bottom: 48px;
  left: 0;
  width:  120px;
  height: 24px;
  display: flex;
  flex-direction: row;
}

.version-tag-body {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(12, 12, 14, 0.85);
  font-size: 12pt;
  font-style: italic;
}

.version-tag-end {
  width: 7px;
  height: 24px;
  background-image: url("../images/menubar-right.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left;
}
