@property --header-height-desktop {
  syntax: "<length>";
  inherits: false;
  initial-value: 64px;
}
@property --header-height-mobile {
  syntax: "<length>";
  inherits: false;
  initial-value: 95px;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 26px;
  color: #222222;
}

body {
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  overflow: hidden;
}

@media print {
  header {
    background: #ffffff;
  }
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 8px;
}
@media print, screen and (min-width: 930px) {
  h1 {
    font-size: 24px;
    line-height: 38px;
  }
  h2 {
    font-size: 20px;
    line-height: 32px;
  }
  h3, h4, h5, h6 {
    font-size: 18px;
    line-height: 30px;
  }
}
@media screen and (max-width: 929px) {
  h1 {
    font-size: 22px;
    line-height: 36px;
  }
  h2 {
    font-size: 20px;
    line-height: 32px;
  }
  h3, h4, h5, h6 {
    font-size: 18px;
    line-height: 30px;
  }
}

p, li, ul {
  margin: 0 0 8px;
}

ul ul {
  margin-top: 8px;
}

li:last-child {
  margin-bottom: 0;
}

a, a:hover {
  color: #0028B9;
}
a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

ul {
  padding: 0 0 0 30px;
}

hr {
  border: none;
  border-top: 1px solid #eeeeee;
  margin: 23px 0;
}

p + h1, p + h2, p + h3, p + h4, p + h5, p + h6,
ul + h1, ul + h2, ul + h3, ul + h4, ul + h5, ul + h6 {
  margin-top: 16px;
}

header {
  width: 100%;
  background: #ffffff;
  padding: 22px calc((100% - min(870px, (100% - 60px))) / 2);
  box-shadow: rgb(191 191 191 / 15%) 0px 2px 8px 0px;
  z-index: 1000;
  position: relative;
}

header p {
  margin: 0;
}
header p a {
  display: block;
  color: #222222 !important;
  text-decoration: none;
}
header p a img {
  display: inline-block;
  margin: -2px 10px -2px 0;
  vertical-align: top;
}
header p a:hover {
  text-decoration: underline;
}

header p:nth-child(1) {
  font-weight: 700;
}
header p:nth-child(2) {
  display: flex;
}
header p:nth-child(2) a:last-child {
  margin-right: 0;
}

@media screen and (min-width: 930px) {
  header {
    display: flex;
    height: var(--header-height-desktop);
    justify-content: space-between;
  }
  
  header p {
    line-height: 20px;
  }
  header p:nth-child(1) {
    font-size: 20px;
  }
  header p:nth-child(2) {
    font-size: 18px;
  }
  header p:nth-child(2) a {
    margin-right: 24px;
  }

  header p a img {
    width: 24px;
    height: 24px;
  }
}

@media screen and (max-width: 929px) {
  header {
    height: var(--header-height-mobile);
  }

  header p {
    line-height: 1em;
  }
  header p:nth-child(1) {
    font-size: 18px;
  }
  header p:nth-child(2) {
    margin-top: 16px;
    font-size: 16px;
  }
  header p:nth-child(2) a {
    margin-right: 20px;
  }

  header p a img {
    width: 22px;
    height: 22px;
  }
}

@media print {
  header {
    display: none;
  }
}

#viewport {
  overflow: auto;
}
.viewport-size {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
}
#tilted-container.viewport-size {
  position: fixed !important;
}
@media screen and (min-width: 930px) {
  .viewport-size {
    top: var(--header-height-desktop);
  }
}
@media screen and (max-width: 929px) {
  .viewport-size {
    top: var(--header-height-mobile);
  }
}

#container {
  width: 100%;
  position: relative;
  padding: 30px;
  background: #ffffff;
}
@media screen and (min-width: 930px) {
  #container {
    max-width: 930px;
    margin: 30px 0 30px calc((100vw - min(930px, 100vw)) / 2);
    border-radius: 10px;
    box-shadow: rgb(191 191 191 / 15%) 0px 2px 8px 0px;
  }
}

.island-button {
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
}
.island-button a {
  padding: 14px 20px;
  background: #ffffff;
  display: inline-block;
  border-radius: 27px;
  color: #222222 !important;
  box-shadow: rgb(191 191 191 / 15%) 0px 2px 8px 0px;
}
.island-button a:hover {
  text-decoration: none !important;
  box-shadow: rgb(191 191 191 / 50%) 0px 2px 8px 0px;
}
@media print {
  .island-button {
    display: none;
  }
}
@media screen and (max-width: 929px) {
  .island-button {
    margin-top: 30px;
  }
}

/* 870px x 1321px content */
/* 930px x 1381px with padding */
/* 1088px x 1539px total */
@media print {
  @page {
    size: 1088px 1539px;
    margin: 79px; /* 20 mm */
  }
}

@media print, screen and (min-width: 930px) {
  .a4-page {
    height: 1381px; /* 30px + 1321px + 30px */
  }
}

.arcane-reference {
  margin: 15px 0;
}

.arcane-reference > video {
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 21/9;
  vertical-align: top;
}

#container > .arcane-reference:last-child {
  margin-bottom: 7px;
}

figure {
  margin: 23px 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

#container > h1:first-child {
  margin-top: -10px;
}
@media screen and (max-width: 929px) {
  #container > h1:first-child {
    margin-top: -9px;
  }
}
#container > p:last-child,
#container > ul:last-child {
  margin-bottom: -7px;
}

.youtube-container {
  display: flex;
  justify-content: center;
  margin: 23px 0;
}
    
.youtube-container iframe {
  aspect-ratio: 16 / 9;
  width: 100% !important;
}

@media print, screen and (min-width: 930px) {
  .top-right-corner {
    position: absolute;
    top: 30px;
    right: 30px;
  }

  p.top-right-corner {
    top: 25px;
  }
}

.never-displayed {
  display: none !important;
}

@media screen {
  .print-only {
    display: none !important;
  }
}

@media print {
  .screen-only {
    display: none !important;
  }
}