/*Color palettes*/
/*Light theme*/

:root {
  --main-font: 'Manrope', sans-serif;
  --light-blue-main: rgb(0, 162, 255);
  --warning-color: rgba(0, 162, 255, 0.5);
  --secondary-bg-color: rgba(48, 140, 193, 0.05);
  --error-color: rgba(255, 64, 61, 1);
  --transparent-gray: rgba(102, 123, 136, 0.05);
  --transparent-gray-border: rgba(102, 123, 136, 0.2);
}

.auto-mode {
  --font-color: rgb(28, 30, 31);
  --background-color: rgb(255, 255, 255);
  --button-color: rgb(53, 169, 236);
  --monochrome-filter: invert(100%);
  --dark-background-color: rgb(49, 49, 49);
  --dark-border-color: rgb(0, 0, 0);
  --light-gray: rgb(237, 242, 246);
  --light-gray-border: rgb(210, 218, 224);
}

@media (prefers-color-scheme: light) {
  .dark-img {
    display: none;
  }

  .dark-mode .dark-img {
    display: block;
  }
}

/*Dark theme*/
@media (prefers-color-scheme: dark) {
  .auto-mode {
    --font-color: rgb(222, 228, 231);
    --background-color: rgb(35, 40, 43);
    --button-color: rgb(48, 140, 193);
    --monochrome-filter: none;
    --dark-background-color: rgb(28, 28, 28);
    --dark-border-color: rgb(37, 37, 37);
    --light-gray: rgb(38, 49, 55);
    --light-gray-border: rgb(50, 63, 71);
  }

  .dark-mode {
    --font-color: rgb(222, 228, 231);
    --background-color: rgb(35, 40, 43);
    --button-color: rgb(48, 140, 193);
    --monochrome-filter: invert(100%);
    --dark-background-color: rgb(28, 28, 28);
    --dark-border-color: rgb(37, 37, 37);
    --light-gray: rgb(38, 49, 55);
    --light-gray-border: rgb(50, 63, 71);
  }

  .light-mode {
    --font-color: rgb(28, 30, 31);
    --background-color: rgb(255, 255, 255);
    --button-color: rgb(25, 161, 240);
    --monochrome-filter: none;
    --dark-background-color: rgb(49, 49, 49);
    --dark-border-color: rgb(0, 0, 0);
    --light-gray: rgb(237, 242, 246);
    --light-gray-border: rgb(210, 218, 224);
  }

  .light-img {
    display: none;
  }

  .light-mode .light-img {
    display: block;
  }
}

/* custom color schemes */

.dark-mode {
  --font-color: rgb(222, 228, 231);
  --background-color: rgb(35, 40, 43);
  --button-color: rgb(48, 140, 193);
  --monochrome-filter: none;
  --dark-background-color: rgb(28, 28, 28);
  --dark-border-color: rgb(37, 37, 37);
  --light-gray: rgb(38, 49, 55);
  --light-gray-border: rgb(50, 63, 71);
}

.light-mode {
  --font-color: rgb(28, 30, 31);
  --background-color: rgb(255, 255, 255);
  --button-color: rgb(25, 161, 240);
  --monochrome-filter: invert(100%);
  --dark-background-color: rgb(49, 49, 49);
  --dark-border-color: rgb(0, 0, 0);
  --light-gray: rgb(237, 242, 246);
  --light-gray-border: rgb(210, 218, 224);
}

.dark-mode .light-img {
  display: none;
}

.light-mode .dark-img {
  display: none;
}

/* end of custom color schemes */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0px;
  margin-top: 85px;
  padding: 0px;
  font-family: var(--main-font);
  background-color: var(--background-color);
  color: var(--font-color);
}

header {
  height: 100%;
}

h1 {
  margin: 0;
}

code {
  display: block;
  background-color: var(--transparent-gray);
  padding: 5px;
  border-radius: 5px;
  color: var(--font-color);
}

.section-transition {
  width: 100%;
  user-select: none;
  pointer-events: none;
  display: flex;
}

.colored-section {
  background-color: var(--secondary-bg-color);
  width: 100%;
  display: flexbox;
}

.hyperlink {
  padding: 1px;
  border-radius: 5px;
  color: var(--light-blue-main);
  transition: all 0.15s ease;
}

.hyperlink:hover {
  background-color: var(--transparent-gray);
  color: var(--light-blue-main);
  transition: all 0.15s ease;
}

.hyperlink:active {
  opacity: 80%;
  color: var(--light-blue-main);
  transition: all 0.15s ease;
}

.hyperlink:visited {
  color: var(--light-blue-main);
}

.pixel-rounded {
  clip-path: polygon(5px 0px, calc(100% - 5px) 0px, calc(100% - 5px) 5px, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 5px calc(100% - 5px), 0px calc(100% - 5px), 0px 5px, 5px 5px);
}

.error-text {
  font-weight: normal;
}

.bottom-divider {
  border-bottom: 1px rgba(169, 207, 228, 0.45) solid;
}

#top {
  position: absolute;
  top: 0;
}

.banner-container {
  display: flex;
  position: relative;
  width: 100%;
  height: 40dvh;
  overflow: hidden;
}

.title {
  /* Position */
  position: absolute;
  display: flex;
  align-items: center;
  margin-top: 0px;
  z-index: 1;
  bottom: 10%;
  /* Size */
  width: min-content;
  /* Style */
  font-family: var(--main-font);
  font-size: 20px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.6);
  mask-image: linear-gradient(90deg, rgb(0 0 0) 0%, rgb(0 0 0) calc(100% - 40px), transparent 100%);
  padding-right: 50px;
  border-left: 8px var(--light-blue-main) solid;
  height: min-content;
  backdrop-filter: blur(5px);
  color: rgb(28, 30, 31);
  pointer-events: none;
}

.title>h1 {
  margin: 3%;
}

.subtitle {
  font-weight: normal;
}

/* Slideshow container */
.slideshow-container {
  width: 100%;
  height: 100%;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev,
.next {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  cursor: pointer;
  touch-action: manipulation;
  position: absolute;
  width: 50px;
  height: 100%;
  top: 0%;
  color: rgb(255, 255, 255);
  font-size: 18px;
  user-select: none;
}

/* Icons */
.prev>img,
.next>img {
  width: 27px;
  transform: translateX(0%);
  transition: transform 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.pixel-ico {
  image-rendering: crisp-edges !important;
  image-rendering: pixelated !important;
  user-select: none;
}

/* Animated icons */
@keyframes animated-icon-in {
  from {
    background-position: 0% 0%;
  }
  to {
    background-position: 0% 100%;
  }
}

@keyframes animated-icon-out {
  from {
    background-position: 0% 100%;
  }
  to {
    background-position: 0% 0%;
  }
}

/* Position the "next" button to the right and the "previous" button to the left */
.next {
  right: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.prev {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
  left: 0;
}

/* animate prev and next */
.prev:active>img {
  transform: translateX(-30%);
  transition: transform 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.next:active>img {
  transform: translateX(30%);
  transition: transform 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

/*Buttons icon style*/
.chevron-icon {
  font-size: 50%;
  width: 100%;
  height: 100%;
}

.colorful-button-container {
  padding: 1px;
  background-color: rgb(4, 97, 148);
  width: min-content;
  height: min-content;
  box-sizing: border-box;
  display: flex;
}

.colorful-button {
  border: none;
  background-color: var(--colored-button-color);
  color: rgb(240, 250, 255);
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 5px 8px;
  cursor: pointer;
  transition: all 0.1s ease;
}

.colorful-button:hover {
  opacity: 0.8;
  transition: all 0.1s ease;
}

.colorful-button:active {
  opacity: 0.5;
  /* border: 2px rgb(143, 195, 223) solid; */
  transition: all 0.1s ease;
}

/*Animation for the arrows and the progressbar when hovering the slideshow*/
/*before*/
#slideshow-container .prev {
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.3s ease;
}

#slideshow-container .next {
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

/*after*/
#slideshow-container:hover .prev,
#slideshow-container:hover .next,
#slideshow-container:focus .prev,
#slideshow-container:focus .next {
  opacity: 1;
  transform: translateX(0%);
  transition: all 0.3s ease;
}

/*progressbar*/
#slideshow-container:hover .slideprogress,
#slideshow-container:focus .slideprogress {
  height: 10px;
  transition: all 0.3s ease;
}

/* The progressbar for slides */
/* Container */
.slideprogress-container {
  margin: 0%;
  display: flex;
  flex-wrap: wrap;
  position: absolute;
  text-align: center;
  bottom: 0%;
  width: 100%;
}

/* Bar */
.slideprogress {
  flex-grow: 1;
  z-index: 1;
  bottom: 0%;
  cursor: pointer;
  height: 3px;
  margin: 0%;
  opacity: 10%;
  background-color: var(--font-color);
  transition: all 0.3s ease;
  ;
}

.slideprogress:hover:not(.active) {
  opacity: 35%;
}

.active {
  opacity: 80%;
}

/* Fading animation */
.fade {
  animation: ease;
  animation-name: fade;
  animation-duration: 0.5s;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateX(-10%);
  }

  to {
    transform: translateX(0%);
    opacity: 1;
  }
}

.banner {
  height: 100%;
  overflow: hidden;
  left: 0;
  margin: 0px;
  width: 100%;
  position: absolute;
  object-fit: cover;
  z-index: -1;
}

.bannerImg {
  width: 100%;
  top: -4%;
  transition: all 0.2s ease-out;
  object-fit: cover;
  position: static;
}

/* Main Text */
.textMain {
  position: static;
  left: 0px;
  word-wrap: break-word;
  margin: 1% 5% 1% 5%;
  padding: 2%;
}

.no-vertical-margin {
  margin-top: 0;
  margin-bottom: 0;
}

.paragraph {
  width: 100%;
  display: inline-block;
  margin-bottom: 5%;
}

.character-container {
  float: left;
  width: 100%;
}

.character-name {
  margin-top: 0;
  font-size: 110%;
}

.character-BG {
  width: 50%;
  height: 20%;
  float: right;
  background-repeat: no-repeat;
  background-size: contain;
  padding-bottom: 30px;
}

.character-desc {
  position: relative;
  background-color: rgba(88, 88, 88, 0.1);
  top: 10%;
  padding: 1%;
  width: 40%;
  float: left;
  word-wrap: break-word;
}

.character-BG-inverted {
  float: left;
}

.character-desc-inverted {
  float: right;
}

.character-image {
  position: relative;
  width: 40%;
  top: 0%;
}

.DerpyRender {
  left: 0%;
}

.DerpyBG {
  background-image: url(images/players/backgrounds/DerpyBG.png);
}

.tocerdiRender {
  left: 30%;
}

.tocerdiBG {
  background-image: url(images/players/backgrounds/tocerdiBG.png);
}

.DaniloxettoRender {
  left: 20%;
  width: 45%;
}

.DaniloxettoBG {
  background-image: url(images/players/backgrounds/DaniloxettoBG.png);
}

.BreakDanceRender {
  width: 50%;
  left: 10%;
}

.BreakDanceBG {
  background-image: url(images/players/backgrounds/BreakDanceBG.png);
}

.aligned-icon {
  display: flex;
  align-content: center;
  height: min-content;
}

.inTextIco {
  width: 50px;
  float: left;
  margin-right: 20px;
}

.inTextIco:hover {
  animation: inTextIcoHover 0.5s;
  animation-iteration-count: 1;
}

@keyframes inTextIcoHover {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(25deg);
  }

  50% {
    transform: rotate(-30deg);
  }

  75% {
    transform: rotate(15deg);
  }
}

.tip {
  display: none;
  width: 250px;
  height: 150px;
  position: absolute;
  transform: translateY(50%);
  z-index: 1;
  padding: 10px;
  color: white;
  flex-direction: column;
  justify-content: space-between;
  background: no-repeat url("/images/misc/tip_background.svg");
  background-size: contain;
  box-sizing: border-box;
}

.tip::before {
  content: '';
  display: block;
  background-image: url("/images/misc/tip_arrow.svg");
  background-size: cover;
  background-repeat: no-repeat;
  aspect-ratio: 1/1;
  height: 40px;
  position: absolute;
  top: -38px;
}

.tip-title {
  margin: 0px;
}

.tip-button {
  width: 100%;
}

.tip-title {
  display: flex;
  align-items: center;
  margin-bottom: 7px;
}

.tip-icon {
  width: 25px;
  margin-right: 10px;
  animation: pulse infinite 3s ease;
  pointer-events: none;
}

@keyframes pulse {
  0% {
    transform: scale(100%);
  }

  50% {
    transform: scale(130%);
  }

  100% {
    transform: scale(100%);
  }
}

.tip.show {
  display: flex;
  animation: tip-appear 0.3s ease;
}

.hide-tip {
  animation: tip-disappear 0.3s ease forwards !important;
}

@keyframes tip-appear {
  from {
    transform: translateY(30%);
    opacity: 0;
  }

  to {
    transform: translateY(50%);
    opacity: 100;
  }
}

@keyframes tip-disappear {
  from {
    transform: translateY(50%);
    opacity: 100;
  }

  to {
    transform: translateY(40%);
    opacity: 0;
  }
}

#slidesTip {
  position: absolute;
  top: 20%;
  right: 10%;
}

#slidesTip::before {
  left: 80%;
}

#mapTip {
  position: absolute;
}

#mapTip::before {
  right: 10%;
}

#mapTipTouch {
  left: 1%;
  top: 10px;
}

#mapTipTouch::before {
  left: 1%;
}

#videosTip {
  right: 30%;
  align-self: flex-start;
  top: auto;
  margin-top: 30px;
}

#videosTip::before {
  right: 8%;
}

/* Nav Style */
.nav-bar {
  display: flex;
  width: 100%;
  border-bottom: 2px rgba(0, 43, 68, 0.384);
  border-bottom-style: solid;
  top: 0;
  position: fixed;
  left: 0%;
  background-image: linear-gradient(rgb(62, 184, 255) 40%, rgb(51, 159, 221));
  z-index: 2;
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-content: center;
  background-color: black;
  color: white;
}

.footer-text {
  margin: 6px;
}

.footer-link {
  color: white;
  font-size: 13px;
  transition: opacity 0.15s ease;
}

.footer-link:active {
  opacity: 80%;
  transition: opacity 0.15s ease;
}

.WIP-animation {
  width: 30%;
}

/* Other controls */
.multi-option-control-container {
  user-select: none;
  display: flex;
  bottom: 0px;
  width: 45%;
  min-width: 65px;
  height: 5vh;
  min-height: 20px;
  margin-bottom: 10%;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--light-gray-border);
  padding: 1px;
}

.multi-option-control {
  display: flex;
  width: 100%;
  height: 100%;
  background-color: var(--light-gray);
  justify-content: space-evenly;
  align-items: center;
}

.multi-option-control-button {
  cursor: pointer;
  border-style: none;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--font-color);
  text-decoration: none;
  flex-grow: 0;
}

.multi-option-labels .multi-option-control-button {
  padding: 10px;
  box-sizing: border-box;
  justify-content: space-evenly;
}

.multi-option-labels .multi-option-control-button img {
  height: 50%;
}

.multi-option-labels .multi-option-control-button div {
  font-family: var(--main-font);
  font-size: 85%;
}

.multi-option-control-button.selected {
  background-color: var(--button-color) !important;
  cursor: auto;
}

.loading-container {
  width: 100%;
  height: 50vh;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 0;
  user-select: none;
  cursor: progress;
}

.loading-container>* {
  margin: 20px;
}

.loading-spinner {
  height: 10vh;
  pointer-events: none;
}

.error-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  width: 80%;
  height: 50vh;
  margin-left: auto;
  margin-right: auto;
}

.error-icon {
  pointer-events: none;
  height: 30%;
  min-height: 40px;
  max-height: 80px;
}

.error-header {
  color: var(--error-color);
  font-weight: 700;
  font-size: 55px;
  margin-bottom: 5%;
}

.error-code {
  margin-top: 1%;
}

.smooth-scrolling {
  scroll-behavior: smooth;
}

.close-button-container {
  height: 80%;
  margin-left: 1%;
  padding: 1px;
  aspect-ratio: 1/1;
  background-color: var(--transparent-gray-border);
}

.close-button {
  appearance: none;
  width: 100%;
  height: 100%;
  padding: 7px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--transparent-gray);
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.close-button>img {
  width: 90%;
  pointer-events: none;
}

.close-button:hover {
  border-width: 1px;
  padding: 6px;
  transition: all 0.15s ease;
}

.close-button:active {
  opacity: 0.5;
  padding: 9px;
  border-width: 2px;
  transform: scale(95%);
  transition: all 0.15s ease;
}

.hidden {
  display: none !important;
  opacity: 0;
}

.monochrome-icon {
  filter: var(--monochrome-filter);
}

.no-tap-highlight {
  outline: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Accessible animations */
@media (prefers-reduced-motion) {

  /* Animation when hovering icons in text */
  .inTextIco:hover {
    animation: none;
  }

  .animated-icon {
    animation-duration: 0ms !important;
    animation-timing-function: step-end !important;
  }

  /* Animation when slideshow progresses */
  @keyframes fade {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  /* Animations when hovering slideshow */
  /* arrows */
  #slideshow-container:hover .prev,
  #slideshow-container:hover .next,
  #slideshow-container:focus .prev,
  #slideshow-container:focus .next {
    opacity: 1;
    transition: opacity 0.5s ease;
  }

  #slideshow-container .prev,
  #slideshow-container .next,
  #slideshow-container .prev,
  #slideshow-container .next {
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.5s ease;
  }

  /* progressbar */
  #slideshow-container:hover .slideprogress,
  #slideshow-container:focus .slideprogress {
    height: 10px;
    transition: none;
  }

  #slideshow-container .slideprogress,
  #slideshow-container .slideprogress {
    transition: none;
  }

  .prev:active>img,
  .next:active>img {
    opacity: 0.5;
    transform: translateX(0%);
  }

  /* links & buttons */
  .close-button,
  .nav-link>img {
    transition: none !important;
  }

  .nav-link:hover>img {
    transform: none;
  }

  /* hamburger menu */
  .hamburger-menu {
    animation: none !important;
  }

  .hamburger-menu.hamburger-closed {
    display: none;
  }

  .hamburger-body a>img,
  .hamburger-body a:active>img {
    transition: none;
  }

  /* tip */
  .tip {
    animation: none !important;
  }

  /* Footer link */
  .footer-link {
    transition: none;
  }

  .footer-link:active {
    transition: none;
  }
}

/* Code for big screens */
@media (min-width: 616px) {
  #mapTipTouch {
    display: none;
  }
}

/*Code for small screens*/
@media (max-width: 615px) {
  .title {
    left: 0px;
  }

  .character-desc {
    width: 100%;
  }

  .character-BG {
    width: 100%;
    margin-top: 20px;
  }

  .gallery-container {
    grid-template-columns: 50% 50%;
  }

  .gallery-item {
    width: 40vw;
    height: 30vw;
  }

  .videos-container {
    grid-template-columns: 100%;
  }

  .youtube-video {
    width: 85vw;
  }

  .multi-option-control-container {
    width: 85%;
  }
}

@media (max-width: 585px) {
  .title {
    left: 0px;
  }

  .banner-container {
    max-height: 200px;
  }

  #slidesTip {
    top: 30%;
  }
}

/* Code for touch screens */
@media (hover: none) {
  .touch-hidden {
    display: none;
  }

  .fs-image-container {
    height: 100%;
  }

  #fs-gallery-check:checked~.fs-gallery-top-bar {
    transform: translateY(-100%);
    opacity: 0%;
    transition: all 0.15s ease-out;
  }

  .fs-image-container {
    height: 100%;
  }

  .fs-gallery-top-bar {
    height: 70px;
    position: absolute;
    transform: translateY(0%);
    opacity: 100%;
    transition: all 0.15s ease-out;
  }

  .fs-gallery-filmstrip {
    height: 100px;
    margin-top: 0px;
  }

  :fullscreen #fs-gallery-check:checked~.fs-gallery-filmstrip {
    bottom: -111px;
  }

  :fullscreen .fs-gallery-top-bar.gallery-idle {
    top: 0px;
  }
}