body {
  margin: 0;
  background-color: black;
  font-family: arial;
}
body.offset {
  margin-top: calc(-60vh + 140px);
}
a {
  text-decoration: none;
}
a,
a img {
  outline-width: 0;
}
/* Alerts */
div.success,
div.error {
  padding: .2em 1em;
  display: inline-block;
  min-width: 10em;
}
div.success {
  background-color: #bfb;
  border-top: 2px solid #0a0;
  border-bottom: 2px solid #0a0;
  color: #004400;
}
div.error {
  background-color: #fff6bf;
  border-top: 2px solid #eb2;
  border-bottom: 2px solid #eb2;
  color: #555500;
}
#spaceScene {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
#container {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  margin-top: 60vh;
  padding: 0 60px;
  z-index: 1;
  min-height: 6400px;
  transform: scaleZ(1);
  transition: padding 0.5s ease-out;
}
#slideContainer {
  overflow-x: hidden;
  position: relative;
  max-width: 100vw;
  min-height: 100vh;
}
#slide {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
}
#navMobile,
#btnMenu {
  display: none;
}
#nav .sf-menu {
  position: absolute;
  top: 0;
  left: 0;
  background: black;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border: 1px solid #222;
  font-size: 90%;
}
#logo {
  position: absolute;
  top: -115px;
  right: -40px;
  z-index: 3;
  transform-origin: 100% 70%;
  transition: all 0.5s ease-out;
  pointer-events: none;
}
#logo img {
  filter: drop-shadow(0 0 3px #000000 f);
}
.content {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  max-width: 950px;
  min-height: 400px;
  margin: 0 auto 600px auto;
  padding: 80px 60px 60px 60px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 30px;
  box-shadow: 0 0 25px #0008;
  transition: all 0.5s ease-out;
  font-size: 18px;
  font-family: Open Sans;
}
#pageText {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
  /* CKEditor styles */
}
#pageText h1 {
  font-size: 38px;
  margin-top: 0;
  margin-bottom: 10px;
  color: #444;
  font-family: Comfortaa;
}
#pageText h1:not(:first-child) {
  margin-top: 50px;
}
#pageText h1:before {
  content: "//";
  color: #aaa;
  padding-right: 0.3em;
  margin-left: -1.3em;
}
#pageText h2 {
  font-size: 28px;
  text-decoration: underline;
  font-weight: 300;
  font-family: lato;
}
#pageText h3 {
  font-size: 22px;
  margin: 5px 0 0 0;
}
#pageText h4 {
  font-size: 18px;
  margin: 5px 0 0 0;
}
#pageText p {
  margin-bottom: 10px;
}
#pageText a {
  color: #f60;
  text-decoration: none;
}
#pageText a:hover,
#pageText a:active {
  text-decoration: underline;
}
#pageText label {
  display: block;
  margin-bottom: 10px;
}
#pageText label span {
  display: inline-block;
  width: 90px;
  vertical-align: top;
}
#pageText table {
  font-size: 100%;
  color: inherit;
  line-height: inherit;
}
#pageText table.styled {
  table-layout: fixed;
  font-size: 90%;
  margin-bottom: 1.5em;
}
#pageText table.styled tr {
  border-bottom: 1px solid #cccccc;
}
#pageText table.styled th {
  text-align: left;
}
#pageText table.styled td {
  padding: 5px 15px 5px 2px;
}
#pageText table.styled td:last-child {
  padding-right: 0;
}
#pageText table.styled td p:last-child {
  margin-bottom: 0;
}
#pageText figure {
  margin: 0;
  clear: both;
}
#pageText figure.image_resized img {
  width: 100%;
}
#pageText .image-left {
  float: left;
  clear: both;
  margin: 0 20px 20px 0;
}
#pageText .image-right {
  float: right;
  clear: both;
  margin: 0 0 20px 20px;
}
#pageText figure.image-center {
  margin: 0 auto;
}
.logout {
  position: absolute;
  top: 95px;
  right: 15px;
  z-index: 4;
  font-size: 80%;
  color: black;
  text-align: right;
  transition: all 0.5s ease-out;
}
.logout a {
  color: #f60;
  text-decoration: none;
}
.logout a:hover,
.logout a:active {
  text-decoration: underline;
}
#homePageContent {
  min-height: 80px;
}
#randomCharacter {
  float: left;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 30px;
  position: relative;
  padding: 50px 0 20px 0;
}
#randomCharacter img {
  margin-left: -125px;
  width: calc(100% + 200px);
}
#randomCharacterBubble {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  min-height: 20px;
  min-width: 100px;
  max-width: calc(100% - 210px);
  margin-top: 30px;
  margin-left: -30px;
  padding: 5px 20px;
  background: white;
  border-radius: 15px;
  border: 2px solid black;
  text-align: left;
}
#randomCharacterBubble img {
  position: absolute;
  top: 100%;
  right: calc(100% - 50px);
}
@media screen and (max-width: 992px) {
  #randomCharacter {
    font-size: 85%;
  }
  #randomCharacter img {
    width: calc(100% + 120px);
    margin-left: -60px;
  }
  #randomCharacterBubble {
    margin-top: 10px;
  }
}
@media screen and (max-width: 480px) {
  #randomCharacter {
    width: 90px;
  }
  #randomCharacterBubble {
    max-width: calc(100% - 100px);
    font-size: 13px;
  }
}
.gallery {
  display: grid;
  grid-gap: 70px;
  grid-template-columns: repeat(auto-fill, 200px);
  font-weight: bold;
  text-align: center;
}
.gallery::before {
  content: none;
}
.gallery div img {
  width: 100%;
}
@media screen and (max-width: 480px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, 100%);
  }
}
@media screen and (max-width: 1020px) {
  .logout {
    top: 45px;
    right: 5px;
  }
  #logo {
    transform: scale(0.55);
    top: -135px;
    right: -25px;
  }
  .content {
    padding: 50px 15px 20px 15px;
    background-color: rgba(255, 255, 255, 0.83);
    transition: all 0.5s ease-out;
  }
}
@media screen and (max-width: 845px) {
  .logout {
    top: 35px;
    right: 5px;
  }
  #logo {
    top: -150px;
  }
}
@media (max-width: 768px) {
  .logout {
    top: 45px;
    right: 5px;
  }
  #nav {
    display: none;
  }
  #navMobile {
    position: fixed;
    display: block;
    min-width: 150px;
    width: 150px;
    z-index: 1000;
    margin-left: -150px;
    line-height: 0.5;
  }
  .sf-menu {
    position: absolute;
    box-sizing: border-box;
    width: inherit;
    height: 100vh;
    margin: 0;
    padding: 5px 0 5px 5px;
    overflow-y: auto;
    background: #000d;
    font: 16px arial;
    border-right: 1px solid #ffffff 2;
  }
  #navMobile #btnMenu {
    display: block;
    position: absolute;
    left: 100%;
    z-index: 1000;
    font-size: 200%;
    padding: 10px 5px 10px 2px;
    text-shadow: 0 0 4px black;
    background: #0008;
    border-bottom-right-radius: 8px;
  }
  #navMobile ul {
    list-style-type: none;
  }
  #navMobile ul ul {
    padding-left: 15px;
  }
  #navMobile a {
    display: block;
    padding: 5px 0;
    color: white;
  }
  #navMobile li li a {
    color: gray;
  }
  #container {
    padding: 0 20px;
  }
  #logo {
    top: -135px;
  }
}
@media screen and (max-width: 600px) {
  .content {
    font-size: 15px;
  }
}
@media screen and (max-width: 480px) {
  .logout {
    top: -5px;
    right: 15px;
  }
  #pageText {
    font-size: 14px;
  }
  #pageText h1 {
    font-size: 25px;
  }
  #pageText h2 {
    font-size: 20px;
    margin: 0;
  }
  #pageText h3 {
    font-size: 18px;
  }
  #pageText h4 {
    font-size: 15px;
  }
  .content {
    padding-top: 20px;
  }
  #logo {
    transform: scale(0.4);
    top: -185px;
  }
}
@media (min-width: 769px) {
  .mobileOnly {
    display: none;
  }
}
@media (max-width: 768px) {
  .desktopOnly {
    display: none;
  }
}
