* {
  box-sizing:border-box;
  user-select: none;
}

a {
  all: unset;
}

img {
  pointer-events: none;
}

@font-face {
  font-family: 'BrushScript';
  src: url('BrushScriptStd.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Akira';
  src: url('Akira.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

.biz-regular {
  font-family: "BIZ UDPMincho", serif;
  font-weight: 600;
  font-style: normal;
}

.akira-regular {
  font-family: "Akira";
}

.brushscript-regular {
  font-family: "BrushScript";
}

.lobster-regular {
  font-family: "Jersey 25", serif;}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
  }

html {
    background-color: #0c0c0c;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.background-image-main {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    background-image: url("background-image-main.webp");
    background-size: cover;
    background-position: center;
    filter: blur(8px);
  }

.gang-drift-festival {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(450%) rotate(-90deg);
  transform-origin: left top;
  color: #FFF;
  font-size: clamp(5.4rem, 5vw, 32px);
  white-space: nowrap;
  pointer-events: none;
}

.copyright {
    z-index: 0;
    position: relative;
    bottom: 0%;
    color: #DDD;
    pointer-events: none;
    margin-bottom: 0.28rem;
    margin-top: auto;
    padding-top: 1rem;
    text-align: center;
    width: 100%;
}

.discord {
  z-index: 2;
    cursor: pointer;
    position: fixed;
    bottom: 0%;
    right: 0%;
    margin: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    background-image: url("discord-white-icon.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(3px 3px 5px #00000050);
}

.main-container {
  position: relative;
  width: 80%;
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.main-logo-container {
  width: max-content;
}

.main-logo {
  max-height: 18rem;
  width: auto;
}

.main-logo-map {
  max-height: 18rem;
  width: auto;
}





/* cards styling */
.finished-stage {
  filter: grayscale(1);
  &&:hover {
    filter: grayscale(0);
  }
}

.cards-container {
  display: flex;
  flex-direction: row;
  gap: 7.2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;

}

.card {
  z-index: 1;
  cursor: pointer;
  position: relative;
  height: 34rem;
  width: 19rem;
  border-radius: 28px;
  overflow: hidden;
  background-color: black;
  box-shadow: 5px 5px 1rem #00000075;
  transition: scale 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease, filter 0.28s ease;
  &&:hover {
    scale: 1.01;
    transform: translateY(-2.8%);
    .card-background-1, .card-background-2, .card-background-3 {
      scale: 1;
      filter: blur(0px);
    }
    .arrow {
      transform: translateX(-50%);
    }
    .card-contents > .card-description {
      opacity: 1;
    }
    .card-title-container {
      transform: translateY(0);
    }
    .card-stage-title {
      transform: translateY(0);
    }
  }
}

.card-outline-1 {
  border: solid 3px #7093c475;
}
.card-outline-2 {
  border: solid 3px #75ba7575;
}
.card-outline-3 {
  border: solid 3px #fec76f75;
}

.card-WIP {
  position: relative;
  height: 34rem;
  width: 19rem;
  border-radius: 28px;
  border: solid 3px white;
  overflow: hidden;
  background-color: black;
  box-shadow: 5px 5px 1rem #00000075;
}

.card-background-1 {
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  background-image: url("stage_1.gif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  scale: 1.28;
  will-change: filter;
  filter: blur(3px);
  transition: scale 0.28s ease, filter 0.28s ease;
}

.card-background-2 {
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  background-image: url("stage_2.gif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  scale: 1.28;
  will-change: filter;
  filter: blur(3px);
  transition: scale 0.28s ease, filter 0.28s ease;
}

.card-background-3 {
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  background-image: url("stage_3.gif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  scale: 1.28;
  will-change: filter;
  filter: blur(3px);
  transition: scale 0.28s ease, filter 0.28s ease;
}

/* to be revealed stage 1 */
.card-background-stage_1-WIP {
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  background-image: url("stage_1-WIP.gif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(6px) grayscale(100%);
  scale: 1.28;
}

/* to be revealed stage 2 */
.card-background-stage_2-WIP {
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  background-image: url("stage_2-WIP.gif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(6px) grayscale(100%);
  scale: 1.28;
}

/* to be revealed stage 3 */
.card-background-stage_3-WIP {
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  background-image: url("stage_3-WIP.gif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(6px) grayscale(100%);
  scale: 1.28;
}

/* to be revealed text imge */
.card-background-to_be_revealed {
  z-index: 1;
  position: absolute;
  top: -15%;
  left: 0%;
  width: 100%;
  height: 100%;
  background-image: url("to_be_revealed.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  mix-blend-mode: overlay;
}

/* to be revealed question marks image */
.card-background-question_marks {
  z-index: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 10.28rem;
  height: 10.28rem;
  background-image: url("question_marks.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  mix-blend-mode: overlay;
}

.arrow {
  z-index: 1;
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translateX(-500%);
  width: 3.5rem;
  height: 3.5rem;
  background-image: url("arrow.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(3px 3px 5px #00000050);
  transition: transform 0.28s ease;
}

.card-contents {
  z-index: 1;
  position: relative;
  padding: 0.5rem;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
}

.card-title-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(200%);
  transition: transform 0.28s ease;
}

.card-title-1 {
  font-size: 2.2rem;
  text-shadow: -2px -2px 0 #7093c4, 2px -2px 0 #7093c4, -2px 2px 0 #7093c4, 2px 2px 0 #7093c4;
  transform: translateX(2.8%);
}

.card-title-2 {
  font-size: 2.2rem;
  text-shadow: -2px -2px 0 #75ba75, 2px -2px 0 #75ba75, -2px 2px 0 #75ba75, 2px 2px 0 #75ba75;
  transform: translateX(2.8%);
}

.card-title-3 {
  font-size: 2.2rem;
  text-shadow: -2px -2px 0 #fec76f, 2px -2px 0 #fec76f, -2px 2px 0 #fec76f, 2px 2px 0 #fec76f;
  transform: translateX(2.8%);
}

.card-layout-1 {
  width: 5rem;
  height: 5rem;
  background-image: url("stage_1-layout.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(3px 3px 5px #00000050);
  transform: rotate(-20deg);
}

.card-layout-2 {
  width: 5rem;
  height: 5rem;
  background-image: url("stage_2-layout.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(3px 3px 5px #00000050);
  transform: rotate(100deg) translateY(-9%);
}

.card-layout-3 {
  width: 5rem;
  height: 5rem;
  background-image: url("torii-gate.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(3px 3px 5px #00000050);
  transform: translateX(5%);
  scale: 0.66;
}

.card-stage-title {
  color: #fff;
  font-size: 1.72rem;
  text-align: center;
  /* transform: translateY(-32.8%); */
  transform: translateY(500%);
  transition: transform 0.28s ease;
}

.card-description {
  height: 50%;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  padding: 0.5rem;
  gap: 0.72rem;
  margin-bottom: 5rem;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.card-description > div {
  font-size: 0.8rem;
  letter-spacing: 0.14rem;
  color: #fff;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  font-family: "Akira";
}




/* stage_1 page styling */
.map-container {
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  display: flex;
}

.map-body-container {
  position: relative;
  width: 70%;
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.map-background-container {
  position: relative;
  width: 30%;
  height: 100%;
  display: flex;
  overflow: hidden;
}

.map-background-1 {
  position: fixed;
  right: 0%;
  top: 50%;
  transform: translateY(-50%) translateX(55%);
  width: 100%;
  min-height: 100vh;

  background-image: url("stage_1_map.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  mask-image: url('paper.webp');
  mask-size: cover;
  mask-position: left center;
  mask-repeat: no-repeat;

  filter: blur(8px);
}

.map-background-2 {
  position: fixed;
  right: 0%;
  top: 50%;
  transform: translateY(-50%) translateX(55%);
  width: 100%;
  min-height: 100vh;

  background-image: url("stage_2_map.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  mask-image: url('paper.webp');
  mask-size: cover;
  mask-position: left center;
  mask-repeat: no-repeat;

  filter: blur(8px);
}

.map-background-3 {
  position: fixed;
  right: 0%;
  top: 50%;
  transform: translateY(-50%) translateX(55%);
  width: 100%;
  min-height: 100vh;

  background-image: url("stage_3_map.gif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  mask-image: url('paper.webp');
  mask-size: cover;
  mask-position: left center;
  mask-repeat: no-repeat;

  filter: blur(8px);
}

.map-background-layout-1 {
  z-index: 1;
  position: fixed;
  right: 0%;
  top: 0%;
  width: 10.28rem;
  height: 10.28rem;
  background-image: url("stage_1-layout.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(3px 3px 5px #00000050);
  transform: rotate(-20deg);
}

.map-background-layout-2 {
  z-index: 1;
  position: fixed;
  right: 0%;
  top: 0%;
  width: 10.28rem;
  height: 10.28rem;
  background-image: url("stage_2-layout.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(3px 3px 5px #00000050);
  transform: rotate(100deg) translateX(7.2%) translateY(-7.2%);
}

.map-background-layout-3 {
  z-index: 1;
  position: fixed;
  right: 0%;
  top: 0%;
  width: 8.28rem;
  height: 8.28rem;
  margin: 1.28rem;
  background-image: url("torii-gate.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(3px 3px 5px #00000050);
}

.map-body {
  width: 100%;
  height: max-content;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
  transform: translateY(-7.2%);
}

.map-stage-title-1 {
  font-size: 4.2rem;
  text-shadow: -3px -3px 0 #7093c4, 3px -3px 0 #7093c4, -3px 3px 0 #7093c4, 3px 3px 0 #7093c4;
}

.map-stage-title-2 {
  font-size: 4.2rem;
  text-shadow: -3px -3px 0 #75ba75, 3px -3px 0 #75ba75, -3px 3px 0 #75ba75, 3px 3px 0 #75ba75;
}

.map-stage-title-3 {
  font-size: 4.2rem;
  text-shadow: -3px -3px 0 #fec76f, 3px -3px 0 #fec76f, -3px 3px 0 #fec76f, 3px 3px 0 #fec76f;
}

.map-stage-name {
  color: #fff;
  font-size: 2.28rem;
  text-align: center;
}

.map-stage-description {
  color: #fff;
  width: 85%;
  font-size: 1rem;
}

.map-download-button {
  cursor: pointer;
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border-radius: 14px;
  border: solid #FFF 4px;
  color: #FFF;
  margin-top: 2rem;
  margin-bottom: 0.72rem;
  text-decoration: none;
  scale: 1;
  transition: scale 0.28s ease;
  background-color: #000;
  box-shadow: 5px 5px 1rem #00000075;
  &&:hover {
    scale: 1.028;
  }
}

.back-button {
  z-index: 1;
  cursor: pointer;
  position: fixed;
  top: 0%;
  left: 0%;
  height: 2.28rem;
  width: 2.28rem;
  background-image: url("arrow.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(3px 3px 5px #00000050);
  transform: rotate(180deg);
  margin: 1rem;
}





/* responsive design */

@media only screen and (max-width: 1444px) {
  .cards-container {
    gap: 4.1rem;
  }
}

/* @media only screen and (max-width: 1300px) {
  .card {
    height: 29rem;
    width: 16rem;
  }

  .card-title-1, .card-title-2, .card-title-3 {
    font-size: 1.9rem;
  }

  .card-layout-1, .card-layout-2, .card-layout-3 {
    width: 4rem;
    height: 4rem;
  }

  .card-WIP {
    height: 29rem;
    width: 16rem;
  }
} */

@media only screen and (max-width: 1111px) {
  .cards-container {
    gap: 2.05rem;
  }
}

@media only screen and (max-width: 1030px) {
  .gang-drift-festival {
    font-size: clamp(4rem, 5vw, 32px);
  }
}

@media only screen and (max-width: 767px) {
  .map-background-1, .map-background-2, .map-background-3 {
    display: none;
  }
  .map-background-layout-1, .map-background-layout-2, .map-background-layout-3 {
    display: none;
  }

  .map-body-container {
    width: 100%;
  }
  .map-background-container {
    width: 0%;
  }
}

@media only screen and (max-width: 767px) {
  .main-logo-map {
    max-height: 15rem;
    margin-top: 2rem;
  }

  .main-logo {
    max-height: 14rem;
  }

  .map-stage-title-1, .map-stage-title-2, .map-stage-title-3 {
    margin-top: 4.5rem;
    font-size: 3rem;
  }
}

@media only screen and (max-width: 580px) {
  .main-logo-map {
    max-height: 12rem;
    margin-top: 2rem;
  }

  .main-logo {
    max-height: 13rem;
  }

  .map-stage-title-1, .map-stage-title-2, .map-stage-title-3 {
    margin-top: 4.5rem;
    font-size: 3rem;
  }
}

@media only screen and (max-width: 470px) {
  .card, .card-WIP {
    height: 29rem;
    width: 16rem;
  }

  .card-title-1, .card-title-2, .card-title-3 {
    font-size: 1.9rem;
  }

  .card-layout-1, .card-layout-2, .card-layout-3 {
    width: 4rem;
    height: 4rem;
  }

  .gang-drift-festival {
    font-size: clamp(3rem, 5vw, 32px);
  }

  .main-logo, .main-logo-map {
    max-height: 11rem;
  }
}

@media only screen and (max-width: 375\px) {
  .card, .card-WIP {
    height: 27rem;
    width: 15rem;
  }

  .card-title-1, .card-title-2, .card-title-3 {
    font-size: 1.7rem;
  }

  .card-layout-1, .card-layout-2, .card-layout-3 {
    width: 3.75rem;
    height: 3.75rem;
  }

  .gang-drift-festival {
    font-size: clamp(2.5rem, 5vw, 32px);
  }

  .main-logo, .main-logo-map {
    max-height: 10rem;
  }

  .copyright {
    font-size: 0.9rem;
  }
}
