@import "https://fonts.googleapis.com/css?family=Nunito";

body,
html {
  height: 100vh;
  line-height: 1.25;
}

body {
  font-family: var(--font);
  font-size: 17px;
  background: var(--bg-color) var(--bg-img);
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  color: var(--text-color);
  overflow-x: hidden;
  object-fit: cover;
  object-position: 50% 50%;
  animation: fadeInAnimation ease 1s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* Text formatting. */
h1 {
  margin: 10px 0 10px 0;
  font-size: 30px;
}

a {
  color: var(--a-color);
  text-decoration: none;
  font-size: 17px;
}

h2 {
  margin: 10px 0 10px 0;
  font-size: 24px;
  text-decoration: none;
}

ul {
  margin: 0;
  display: inline-block;
}

p {
  margin-bottom: 0;
}

/* Section formatting. */
.splash {
  margin-left: 1125px;
  width: 725px;
  z-index: 1;
  position: absolute;
}

.main {
  border-radius: 5px;
  background-color: var(--bg-color);
  border: 1px solid;
  border-color: var(--border-color);
  width: 750px;
  padding: 15px;
  margin: 20px 25px 25px 400px;
  position: relative;
  z-index: 4;
  box-shadow: 5px 5px;
}

.main img,
.sidebar-left img {
  max-width: 100%;
  object-fit: cover;
}

.sidebar-left {
  border: 1px solid;
  border-color: var(--border-color);
  width: 310px;
  margin-left: 25px;
  padding: 15px;
  margin-top: -25px;
  height: 100vh;
  position: fixed;
  overflow: auto;
  text-align: center;
  z-index: 4;
  background-color: var(--bg-color);
  background-image: var(--bg-url);
  box-shadow: 5px 0;
}

#prof {
  border: 1px solid #262b5f;
  padding: 10px;
  margin: 5px;
  margin-top: 10px;
  margin-bottom: 10px;
  border-color: var(--border-color);
  border-radius: 5px;
}

.buttons {
  list-style-type: none;
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(2, 50%);
  margin-block-end: 10px;
  margin-block-start: 0;
  line-height: 1;
  align-items: center;
}

.button {
  text-align: center;
  border-radius: 5px;
  border: 1px solid #262b5f;
  padding-left: 1px;
  padding-right: 1px;
  padding-top: 10px;
  padding-bottom: 10px;
  margin: 5px;
  margin-top: 10px;
  margin-bottom: 0;
  line-height: 1;
  border-color: var(--border-color);
  display: grid;
  align-items: center;
}

#nav2 > .buttons {
  display: grid;
  grid-template-columns: repeat(6, 16.7%);
  padding: 0;
  margin-block-end: 0;
  margin-bottom: 0;
  margin-block-start: 0;
}

.sidebar-left img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.sideimage {
  max-width: 1px;
  right: 30px;
  bottom: -20px;
  position: fixed;
}

.nav {
  overflow: scroll;
}

#nav {
  padding-left: 5px;
  padding-right: 5px;
}

.gallery {
  position: relative;
  width: 95%;
  margin: 0 auto;
  text-align: center;
}

.right {
  text-align: right;
}

.center {
  text-align: center;
}

#blurb {
  font-style: italic;
}

#future ul {
  margin-bottom: 10px;
}

#current ul {
  margin-bottom: 10px;
}

#past ul {
  margin-bottom: 10px;
}

/* Viewport size fixes. */
@media (max-width: 780px) {
  #nav2 > .buttons {
    grid-template-columns: repeat(3, 33%);
  }
}

.col {
  columns: 200px 2;
}

.col > ul {
  break-inside: avoid-column;
  -webkit-column-break-inside: avoid;
}

.col ul:before {
  content: attr(label);
  margin-left: -40px;
}

@media (max-width: 1215px) {
  .sidebar-left {
    min-height: 0;
    width: 100%;
    margin: 0 auto;
    top: 0;
    left: 0;
    padding: 0;
    padding-bottom: 15px;
    font-size: 0.9em;
    position: relative;
    border-radius: 5px;
  }

  .sidebar-left img {
    max-width: 350px;
  }

  #nav {
    height: auto;
  }

  .splash {
    display: none;
  }

  .main {
    width: 90%;
    margin: 0 auto;
    margin-top: 1em;
    position: relative;
    z-index: 4;
  }

  #fan {
    width: 90%;
    margin: 0 auto;
    margin-top: 1em;
    position: relative;
    z-index: 5;
  }

  #comm {
    width: 90%;
    margin: 0 auto;
    margin-top: 1em;
    position: relative;
    z-index: 6;
  }

  .buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }

  #title {
    padding-top: 13px;
  }

  .gallery {
    width: 100%;
  }
}

@media (max-width: 1840px) {
  .splash {
    display: none;
  }
}

/* Flex. */
.centerFlex {
  display: flex;
  justify-content: center;
}

.flex-container {
  display: flex;
  flex-direction: column;
  width: 80%;
}

.flex-container div {
  margin-bottom: 5px;
}

.flexChild {
  display: flex;
  flex-direction: row;
  gap: 1%;
}

.flexChild div {
  background: #0ff;
  padding-left: 10px;
  padding-right: 10px;
  border-width: 1px;
  border-color: #000;
  border-style: solid;
}

.flexChild .flexChildHeader {
  background: none;
  border-style: hidden;
  font-weight: 700;
  margin-bottom: 0;
}

h3 .flexChild .flexChildHeader {
  padding: 0;
  margin: 0 0 3px;
}

.firstChild {
  width: 20%;
}

.secondChild {
  width: 10%;
}

.thirdChild {
  width: 60%;
}

.name {
  width: 26%;
}

.desc {
  width: 73%;
}

/* Simplebar styling. */
.simplebar-content {
  padding: 0 !important;
}

.dropdown {
  margin-bottom: 10px;
  padding-bottom:10px;
}

.dropdown select {
  appearance: none;
  background: transparent;
  text-align: center;
  border-radius: 5px;
  border: 1px solid;
  border-color: var(--border-color);
  padding: 5px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--a-color);
}

option {
  background: var(--bg-color);
}

/* Theme colors. */
.light {
  --bg-color: #fdfdfd;
  --bg-img-color: #020f30;
  --bg-img: url(/assets/mainbg.jpg);
  --text-color: rgb(64, 24, 129);
  --a-color: #13216c;
  --font: Nunito;
}

.dark {
  --bg-color: #121212;
  --bg-img-color: #020f30;
  --bg-img: url(/assets/mainbg.jpg);
  --text-color: #fff;
  --a-color: #82c7e8;
  --font: Nunito;
  --border-color: #fff;
}

.default,
.medium {
  --bg-color: #d7d6d1;
  --bg-img-color: #020f30;
  --bg-img-color: #020f30;
  --bg-img: url(/assets/mainbg.jpg);
  --text-color: #123;
  --a-color: #263264;
  --font: Nunito;
}

.berry {
  --bg-color: #4c3f91;
  --bg-img-color: #020f30;
  --bg-img: url(/assets/mainbg.jpg);
  --text-color: #f9f4ff;
  --a-color: #cdf4e3;
  --font: Nunito;
  --border-color: #9ddfd3;
}

.pink {
  --bg-color: #f9bbe0;
  --bg-img-color: #020f30;
  --bg-img: url(/assets/mainbg.jpg);
  --text-color: #9d2c85;
  --a-color: #13216c;
  --font: Nunito;
  --border-color: #9d2c85;
}

.retro {
  --bg-color: #ccc;
  --bg-img-color: #339;
  --bg-img-color: #020f30;
  --bg-img: url(/assets/seamless2lossy.jpg);
  --text-color: #339;
  --a-color: #336;
  --font: "Comic Sans MS", serif;
}

/* Lightbox gallery. */
/* This section based on h5-lightbox under the MIT license: https://github.com/morganestes/h5-lightbox/blob/master/license.txt */
.wrapper {
  width: 80%;
  background: #ccc;
}

.wrapper figure {
  float: left;
  margin: 2em;
}

#lightbox {
  position: fixed;
  /* keeps the lightbox window in the current viewport */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100;
}

#lightbox p {
  margin-right: 20px;
  font-size: 12px;
  color: #fff;
  text-align: right;
  cursor: pointer;
}

#lightbox img {
  max-width: 100vw;
  max-height: 90vh;
  -webkit-box-shadow: 0 0 25px #111111;
  -moz-box-shadow: 0 0 25px #111111;
  box-shadow: 0 0 25px #111111;
}

figure {
  width: 200px;
  height: 200px;
  display: inline-block;
  vertical-align: top;
  margin: 0;
  padding-right: 2px;
  padding-left: 2px;
  padding-bottom: 50px;
  text-align: center;
}

figure img {
  display: block;
  float: left;
  width: 200px;
  height: 200px;
  margin-bottom: 10px;
  object-fit: cover;
}

figcaption {
  display: block;
  height: 100%;
}

figcaption > P {
  margin: 0;
}

/* Preloader. */
/* This section based on PreLoadMe under the MIT license: https://github.com/niklausgerber/PreLoadMe/blob/master/LICENSE.txt*/

body {
  overflow: hidden;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000;
  /* change if the mask should have another color then white */
  z-index: 99;
  /* makes sure it stays on top */
}

#status {
  width: 200px;
  height: 200px;
  position: absolute;
  left: 50%;
  /* centers the loading animation horizontally one the screen */
  top: 50%;
  /* centers the loading animation vertically one the screen */
  background-image: url(../img/status.gif);
  /* path to your loading animation */
  background-repeat: no-repeat;
  background-position: center;
  margin: -100px 0 0 -100px;
  /* is width and height divided by two */
}
