
@import url("https://fonts.googleapis.com/css2?family=Inter&family=Playfair+Display&display=swap");

@font-face {
  font-family: "Joystix Monospace";
  src: url("fonts/joystixFonts/joystixmMonospace.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Speed Rusher";
  src: url("fonts/speedRusherFonts/SpeedRusher.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Game Paused";
  src: url("fonts/gamePausedFonts/Game\ Paused\ DEMO.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Orbitron Light";
  src: url("fonts/orbitronLightFonts/Orbitron\ Light.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Unique";
  src: url("fonts/unique/Unique.ttf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Shooting Star";
  src: url("fonts/shooting-star-personal-use/Shooting\ Star.ttf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "MoonScape";
  src: url("fonts/Moonscape\ Demo.otf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Glatic";
  src: url("fonts/glatic.otf") format("opentype");
  font-weight: 700;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes ipadLeftPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: rotate(2deg) scale(1);
  }
  50% {
    opacity: 1;
    transform: rotate(2deg) scale(1.05);
  }
}

@keyframes ipadRightPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: rotate(-2deg) scale(1);
  }
  50% {
    opacity: 1;
    transform: rotate(-2deg) scale(1.05);
  }
}

@keyframes ipadBottomPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: rotate(3deg) scale(1);
  }
  50% {
    opacity: 1;
    transform: rotate(3deg) scale(1.05);
  }
}

@keyframes flicker {
  0%,
  18%,
  22%,
  25%,
  53%,
  57%,
  100% {
    opacity: 1;
  }
  20%,
  24%,
  55% {
    opacity: 0.3;
  }
}

@keyframes tvOff {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.9);
    filter: brightness(0);
  }
}

@keyframes tvOn {
  0% {
    opacity: 0;
    transform: scale(1.1);
    filter: brightness(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes glitchyArrow {
  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, 6px);
  }
}
@keyframes flickerDot {
  0%,
  50%,
  90% {
    opacity: 1;
  }

  25%,
  75% {
    opacity: 0;
  }
}

@keyframes flickerDotTwo {
  10%,
  60% {
    opacity: 1;
  }

  35%,
  85% {
    opacity: 0;
  }
}

@keyframes instructions {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

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

  100% {
    opacity: 0.6;
  }
}

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

  100% {
    opacity: 0.8;
  }
}

:root {
  --ghost-white: #f2f5ff;
  --electric-lavender: #dcb8ff;
  --lover-blue: #7de2f5;
  --neon-aqua: #71fcca;
  --soft-glow: rgba(255, 255, 255, 0.15);
  --flipphone-heart: #ff5c8a;
  --truck-green: rgba(0, 255, 153, 1);
  --truck-green-soft: rgba(0, 255, 153, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* home page  */

.home-body {
  padding: 0;
  margin: 0;
  background-image: url(images/borderBackground.jpg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-color: black;
  height: 100%;
  overflow: hidden;
}

.home {
  background-image: url(images/truck.jpg);
  background-size: 250% 100%;
  background-position: center;
  background-repeat: no-repeat;
  height: 85vh;
  width: 100vw;
  overflow: hidden;
  color: var(--ghost-white);
  font-family: "Inter", sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  text-shadow: 0 0 10px var(--soft-glow);
}

.home.tv-off {
  animation: tvOff 0.3s forwards ease-in;
}

.home.tv-on {
  animation: tvOn 0.4s forwards ease-out;
}

.home-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Inter", sans-serif;
  height: 50%;
  margin-left: 7%;
}

.home-header {
  color: var(--ghost-white);
  text-shadow: 0 0 20px var(--electric-lavender);
  font-size: clamp(1.9rem, 7vw, 2rem);
  font-family: "Shooting Star", sans-serif;
  margin-top: 37%;
}

.home-author {
  color: var(--truck-green);
  opacity: 1;
  font-size: clamp(1.2rem, 4vw, 2rem);
  width: 100%;
  font-family: "Orbitron Light", sans-serif;
  margin-top: 1%;
}

.home-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid rgba(0, 255, 153, 0.8);
  border-radius: 8px;
  font-size: clamp(1rem, 2.5vw, 2rem);
  color: var(--electric-lavender);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  text-decoration: none;
  animation: flicker 2s infinite alternate;
  margin-top: 20%;
}

.home-btn:active {
  transform: scale(1.2);
}

.home-links {
  display: flex;
  justify-content: flex-start;
  width: 90%;
  position: fixed;
  top: 1rem;
  opacity: 0.8;
  animation: fadeIn 20s;
}

.home-instagram {
  display: inline-block;
  width: 53px;
  height: 53px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  overflow: hidden;
  background-image: url("images/instagram.png");
  pointer-events: auto;
}

.home-linkedin {
  display: inline-block;
  width: 50px;
  height: 50px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  overflow: hidden;
  background-image: url("images/linkedin.png");
  pointer-events: auto;
}

.home-spotify {
  display: inline-block;
  width: 50px;
  height: 50px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  overflow: hidden;
  background-image: url("images/spotify.png");
  pointer-events: auto;
}

.home-instagram:hover,
.home-spotify:hover,
.home-linkedin:hover {
  cursor: pointer;
  transform: scale(1.2);
  pointer-events: auto;
}

#home-escape,
.home-tuning {
  display: flex;
  opacity: 0;
  transition: opacity 1s ease;
  position: fixed;
  font-size: clamp(1rem, 2.5vw, 2rem);
  font-family: "Game Paused", monospace;
  color: var(--ghost-white);
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--electric-lavender);
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 0 10px var(--neon-aqua), 0 0 20px black;
  z-index: 9999;
  animation: flickerEscape 2.5s infinite;
}

#home-escape {
  bottom: 2rem;
  right: 2rem;
}

#home-escape.show {
  display: block;
  opacity: 1;
  z-index: 9999;
  width: 5rem;
  height: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

#home-escape.show:hover {
  transform: scale(1.1);
}

.home-tuning {
  top: 2rem;
  left: 2rem;
}