body {
  /* Combines the background image and the gradient fallback */
  background: url('background.gif') center/cover no-repeat fixed, 
              linear-gradient(45deg, #000000, #2a0000, #4a0808, #000000);
  background-size: cover, 400% 400%;
  background-attachment: fixed;
  margin: 0;
  min-height: 100vh;
  padding: 15px 40px;
  font-family: sans-serif;
  color: white;
  animation: gradientMove 15s ease infinite;
  overflow-x: hidden;
}

.button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.page-wrapper {
  animation: pageFadeIn 3s ease-out forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

h1 {
  font-family: "Orbitron", sans-serif;
  color: black;
  -webkit-text-stroke: 1px red;
  font-size: 2.5rem;
  margin-bottom: 5px;
  display: flex;
  flex-wrap: wrap;
}

h1 span {
  display: inline-block;
  animation: letterBounce 4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.06s);
}

@keyframes letterBounce {
  0%, 25%, 100% { transform: translateY(0); }
  10% { transform: translateY(-10px); }
}

h2 {
  color: white;
  -webkit-text-stroke: 1px black;
  margin-top: 30px;
}

hr {
  border: none;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 20px 0;
}

hr.fading-hr {
  border: none;
  height: 2px;
  width: 60%;
  margin-left: 0;
  background: linear-gradient(to right, #8B0000, transparent);
  animation: lineExtend 1.2s ease-out forwards;
  transform-origin: left;
}

a {
  background-color: black;
  border: 2px solid #8B0000;
  display: inline-block;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a:link, a:visited {
  color: white;
}

a:hover {
  color: white;
  background-color: #8B0000;
  border-color: #ff4d4d;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 15px rgba(139, 0, 0, 0.4);
}

a:active {
  color: #ffffff;
  background-color: #2a0000;
  border-color: #8B0000;
  transform: translateY(-1px) scale(1.01);
}

.default {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  color: #aaa;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes lineExtend {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes pulseGlow {
  0% { opacity: 0.6; }
  50% { opacity: 1; box-shadow: 0 0 10px rgba(255,255,255,0.05); }
  100% { opacity: 0.6; }
}

.glow-on-hover {
  width: 220px;
  height: 50px;
  border: none;
  outline: none;
  color: #fff;
  background: #111;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
}

.glow-on-hover:before {
  content: '';
  background: linear-gradient(45deg, #000000, #2a0000, #4a0808, #8B0000, #4a0808, #2a0000, #000000);
  position: absolute;
  top: -2px;
  left:-2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing 20s linear infinite;
  opacity: 0;
  transition: opacity .3s ease-in-out;
  border-radius: 10px;
}

.glow-on-hover:hover:after, .glow-on-hover:active:after {
  background: transparent;
}

.glow-on-hover:hover {
  transform: scale(1.03);
}

.glow-on-hover:hover:before {
  opacity: 1;
}

.glow-on-hover:active {
  color: #fff;
  transform: scale(1.01);
}

.glow-on-hover:after {
  z-index: -1;
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #111;
  left: 0;
  top: 0;
  border-radius: 10px;
  transition: background 0.3s ease-in-out;
}

@keyframes glowing {
  0% { background-position: 0 0; }
  50% { background-position: 400% 0; }
  100% { background-position: 0 0; }
}
