/* Freddie Sanchez
   INFOST 320-201
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  background: radial-gradient(circle at center, #111 0%, #000 100%);
  overflow: hidden;
  font-family: "Press Start 2P", cursive, sans-serif;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background-image: linear-gradient(to right, rgba(0, 247, 255, 0.3) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 247, 255, 0.3) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(500px) rotateX(60deg);
  animation: gridMove 10s linear infinite;
}

/* Animation for grid on the bottom */
@keyframes gridMove {
  from {
    transform: perspective(600px) rotateX(60deg) translateY(0);
  }

  to {
    transform: perspective(600px) rotateX(60deg) translateY(50px);
  }
}

h1 {
  margin-top: 5%;
  position: relative;
  font-size: 4rem;
  font-weight: bold;
  color: #00f7ff;
  text-shadow: 0 0 5px #00f7ff, 0 0 15px #00f7ff, 0 0 30px #ff00de, 0 0 50px #ff00de;
  border: 4px solid #ff00de;
  padding: 20px 50px;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 20px rgba(255, 0, 222, 0.8), inset 0 0 20px rgba(0, 247, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0;

  animation: h1_welcome 1.5s ease-out forwards, h1_float 3s ease-in-out infinite;
  animation-delay: 0s, 1.5s;
}

/* Animation for BUY NOW*/
@keyframes h1_welcome {
  0% {
    transform: translate(-460%, -100%) rotate(-720deg) scale(0.1);
    opacity: 0;
  }

  40% {
    opacity: 1;
    transform: translate(0, -20%) rotate(-10deg) scale(1.6);
  }

  70% {
    transform: translate(0, 0) rotate(5deg) scale(0.95);
  }

  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes h1_float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(0, -12px) scale(1.05);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* LIMITED TIME OFFER CSS */
.tagline {
  margin-top: 50px;
  font-size: 1.2rem;
  color: #ff00de;
  text-shadow: 0 0 5px #ff00de, 0 0 15px #00f7ff;
  animation: taglineFloat 4s ease-in-out infinite;
}

@keyframes taglineFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* CSS for the flashing text */
.flashing {
  margin-top: 30px;
  font-size: 1rem;
  color: #00f7ff;
  text-shadow: 0 0 5px #00f7ff, 0 0 15px #ff00de;
  animation: flashingText 1s steps(2, jump-none) infinite; /* steps(N,...): instead of animating smoothly, it does "jumps" like flashing */
}

@keyframes flashingText {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* CSS for only 9.99 */
.subtext {
  margin-top: 40px;
  font-size: 0.9rem;
  color: #fef4d1;
  text-shadow: 2px 2px 0 #9b2226;
}

.tagline:hover {
  animation: pulseText 1s infinite;
}

@keyframes pulseText {
  0%,
  100% {
    transform: scale(1);
    color: #ff00de;
  }
  50% {
    transform: scale(1.3);
    color: #00f7ff;
  }
}

/* Neon button with cool transition */
.order-btn {
  display: inline-block;
  margin-top: 40px;
  padding: 15px 30px;
  font-size: 1rem;
  color: #00f7ff;
  border: 3px solid #ff00de;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 10px #ff00de, inset 0 0 10px #00f7ff;
  transition: all 0.4s ease-in-out;
}

.order-btn:hover {
  color: #000;
  background: #00f7ff;
  border-color: #ffea00;
  transform: scale(1.15);
  box-shadow: 0 0 20px #ffea00, 0 0 40px #ff00de;
}

/* Go Back button with retro neon style */
.back-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 30px;
  font-size: 1rem;
  color: #ffea00;
  border: 3px solid #00f7ff;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 10px #00f7ff, inset 0 0 10px #ffea00;
  transition: all 0.4s ease-in-out;
}

.back-btn:hover {
  color: #000;
  background: #ffea00;
  border-color: #ff00de;
  transform: scale(1.15);
  box-shadow: 0 0 20px #ff00de, 0 0 40px #00f7ff;
}
