/*
SPACING SYSTEM (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

FONT SIZE SYSTEM (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
*/

/* COLOR THEME */
:root {
  --primary-color: #cb6f3d;
  --secondary-color: #6d4bc2;
  --purple2: #6a5588;
  --purple3: #413355;
  --background-color: #1a0615;
  --text-color: #eee;
  --btn-text: #eee;
  --btn-color: #cb6f3d;
  --btn-color2: #df7f4b;
  --btn-color3: #924b24;
  --btn-shadow: #462411;
}

@font-face {
  font-family: "pump";
  src: url(/media/fonts/pumpfont.ttf);
}

/* UNIVERSALS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Impact", sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
}

h1 {
  color: var(--primary-color);
  font-family: "pump";
  font-size: 12rem;
  font-weight: 300;
}
h2 {
  color: var(--primary-color);
  font-family: "pump";
  font-size: 4rem;
  font-weight: 300;
}

.menu {
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  margin: 2rem;
}
.btn-icon {
  width: 25px;
  height: auto;
  stroke: var(--btn-text);
  fill: var(--btn-text);
}

.page {
  width: 100%;
  height: 100dvh;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#page1 {
  width: 100%;

  background: radial-gradient(
    ellipse farthest-corner at top left,
    var(--background-color),
    var(--background-color) 45%,
    var(--secondary-color)
  );
}
#page2 {
  width: 100%;
  background: linear-gradient(
    180deg,
    var(--purple2),
    var(--background-color) 75%
  );
}
#page3 {
  height: 130dvh;
  background: linear-gradient(
    0deg,
    var(--purple3),
    var(--background-color) 40%
  );
  overflow-y: hidden;
}

.ghost {
  position: absolute;
  width: 350px;
  z-index: 1;
}
#ghost1 {
  left: 12%;
  bottom: 25%;
  translate: 0 300px;
  scale: -0.8 0.8;
}
#ghost2 {
  right: 11%;
  top: 39%;
  transition: transform 600ms ease-out;
  translate: 400px 0;
}

#ghost3 {
  left: 15%;
  top: 42%;
  width: 350px;
  transition: transform 600ms ease-out;
  translate: -400px 0;
}

.ghost.in-view {
  animation: slideIn 1s ease-out forwards, float 2s ease-in-out infinite;
}

@keyframes slideIn {
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.in-view {
  transform: translateX(0);
}

#bat-container {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.bat {
  position: absolute;
  pointer-events: none;
}

.card {
  width: 500px;
  height: 500px;
  margin-top: 250px;
  position: relative;
}
.card-content {
  position: absolute;
  z-index: 1;
  width: 110%;
}

.card-bg {
  position: absolute;
  width: 150%;
  left: -20%;
  top: -35%;
  fill: var(--purple2);
}
.left {
  transform: translateX(-150px) rotate(-5deg);
}
.right {
  transform: translateX(150px) rotate(5deg);
  text-align: right;
}
.reversex {
  scale: -1 1;
}

#hero-text {
  transform: translateY(-50%);
}
#pumpin-hero {
  position: absolute;
  z-index: 5;
  width: clamp(350px, 40%, 1000px);
  bottom: -5%;
}

#hero-bg {
  width: 100%;
  position: absolute;
  bottom: -2px;
  z-index: 4;
}

.separator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-size: 100% auto;
  transform: translateY(50%);
  pointer-events: none;
  z-index: 10;
}

footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 0;
  margin: 0;
  pointer-events: none;
}

#footer-left,
#footer-right {
  position: absolute;
  bottom: 0;
  height: auto;
  width: 600px;
  max-width: 100%;
}
#footer-left {
  left: 0;
}
#footer-right {
  right: 0;
}
/* BUTTONS */

button,
a {
  all: unset;
  display: inline-block;
  cursor: pointer;
  margin: 1rem;
}

.mt {
  margin-top: 8rem;
}

.btn {
  padding: 10px 20px;
  background-color: var(--btn-color);
  color: var(--btn-text);
  border-radius: 20px;
  border: 3px solid var(--btn-color2);
}

.clickable {
  background-color: var(--btn-color);
  box-shadow: 0 8px var(--btn-shadow);
  transform: translateY(-8px);
}

.clickable:hover {
  background-color: var(--btn-color2);
  box-shadow: 0 12px var(--btn-shadow);
  transform: translateY(-12px);
  cursor: pointer;
}

.clickable:active {
  background: var(--btn-color3);
  box-shadow: 0 5px var(--btn-shadow);
  transform: translateY(-5px);
}

/* Media Queries for Mobile */
@media only screen and (max-width: 768px) {
  .ghost {
    display: none;
  }
  body {
    font-size: 1.4rem;
  }
  h1 {
    font-size: 8rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  .card {
    width: 300px;
    height: 300px;
    margin-top: 50px;
    position: relative;
  }
  .card-content {
    position: absolute;
    z-index: 1;
    width: 100%;
  }
  .left {
    transform: translateX(0px) rotate(-5deg);
  }
  .right {
    transform: translateX(0px) translateY(-150px) rotate(5deg);
    text-align: right;
  }
  .page {
    height: 80dvh;
  }
  #page3 {
    height: 80dvh;
  }
  .menu {
    display: none;
    position: fixed;
    right: 0;
    top: 60%;
  }
}
