:root {
  --min-panel-height: 200px;
  --nav-height: 200px;
  --main-bg-color: #222222;
}

a:link {
  text-decoration: none;
}

a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

a:active {
  text-decoration: none;
}

body {
  margin: 0 0 0 var(--nav-height);
  font-family: 'Caveat', cursive;
  font-size: 18px;
  background: var(--main-bg-color);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: var(--nav-height);
  background: #E6E6FA;
  box-shadow: 0px 2px 8px 8px #111;
  z-index: 100;
}

#core-container {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100vw;
  height: calc(100vh - var(--nav-height));
}

#core {
  width: 100%;
  height: 100%;
  overflow-y: hidden;
  overflow-x: hidden;
  display: flex;
  align-content: center;
  justify-content: center;
}

.content-center {
  width: 33%;
  height: auto;
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.link-button {
  width: 100%;
  height: 54px;
  margin-top: 24px;
  border-radius: 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  box-shadow: inset 0px 0px 10px 3pt rgb(64, 0, 167), inset 0px 0px 10pt 5pt rgb(64, 0, 167), inset 0px 0px 0pt 100pt rgb(252, 239, 215);
}

.link-text {
  width: 100%;
  text-align: center;
  font-size: 28pt;
  font-weight: 700;
  color: #1F1F1F;
  margin-top: -4px;
}

.site-image {
  width: 320px;
  height: 320px;
  margin-top: 48px;
  background-image: url("/resrc/site_image.png");
  background-size: contain;
  background-repeat: no-repeat;
  align-self: center;
}

#banner {
  background-image: url("/resrc/banner.png");
  background-repeat: repeat-x;
  background-size: contain;
  width: 400%;
  height: 100%;
  animation: slide 60s linear infinite;
}

/* Animations */
@keyframes slide {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-2000px, 0, 0); /* The image width */
  }
}

#gallery {
  color: white;
  height: 100%;
  display: flex;
  justify-content: center;
}

#gallery-wrapper {
  min-width: 80%;
  height: 100%;
  overflow-y: auto;
  overflow-x: clip;
}

#gallery-folder-container {
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: center;
  margin-top: 24px;
  gap: 10px;
}

#gallery-file-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: baseline;
  justify-content: center;
  margin-top: 24px;
  gap: 10px;
  height: auto;
}

#gallery-folder-header {
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: center;
  margin-top: 24px;
  font-size: 32pt;
}

#gallery-file-header {
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: center;
  padding-top: 24px;
  font-size: 32pt;

  position: sticky;
  position: -webkit-sticky;
  top: 0px;
  z-index: 100;
  background-color: var(--main-bg-color);
}

.gallery-folder {
  width: auto;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-content: center;
  text-align: center;
}

.gallery-folder a {
  display: flex;
  flex-direction: column;
  align-content: center;
  text-align: center;
  width: 280px;
  height: 280px;
  color: white;
}

.gallery-folder a:visited {
  color: rgb(214, 188, 255);
}

.gallery-folder a:hover {
  color: #904bff;
}

.gallery-file {
  min-width: 240px;
  width: auto;
  max-width: 320px;
  height: 240px;
  display: flex;
  justify-content: center;
}

.gallery-file:hover {
  cursor: grabbing;
}

.gallery-folder img {
  width: 128px;
  height: 128px;
  overflow: hidden;
  border-radius: 8px;
  object-fit: fill;
}

.gallery-file img {
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 8px;
  object-fit: cover;
}

.folder-title {
  font-size: 24pt;
  margin-bottom: -24px;
}

.folder-icon {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 8px;
  background-image: url("/resrc/folder.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#large-image-display {
  position: absolute;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  left: 0;
  right: 0;
  z-index: 1000;
  overflow: hidden;
}

#large-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#large-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  align-self: center;
}

.hidden {
  visibility: hidden;
}

.exit-button {
  color: white;
  border-color: white;
  border-width: 2px;
  border-radius: 8px;
  border-style: solid;
  padding: 8px;
  margin: 8px;
  width: 36px;
  height: 42px;
  float: right;
  z-index: 10;

  text-align: center;
  align-content: center;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 24pt;
  cursor: pointer;
  user-select: none;

  position: absolute;
  margin-left: calc(100% - 66px);
}

.small-button {
  width: 32px;
  height: 32px;
  align-self: center;
  margin-left: 12px;
}

#qr-section {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#qr-code-link {
  width: 80%;
  height: 80%;
  flex-shrink: 1;
  display: flex;
  justify-content: center;
}

#qr-code {
  border-radius: 90px;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}