.title-text {
  font-size: 25px;
  animation: glitch-1 2s infinite linear;
}

.welcome-text {
  font-family: 'TitleFont';
  font-size: 25px;
  color: white;
}

.welcome-text img {
  max-width: 100%;
  height: auto;
}

/* Define the custom font and its file location */
@font-face {
  font-family: 'TitleFont';
  src: url('Nightcore Demo.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'WelcomeFont';
  src: url('Hit me, punk! 03.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@keyframes colorSpin {
  0% { filter: hue-rotate(0deg) brightness(1) saturate(1.5);; }
  100% { filter: hue-rotate(360deg) brightness(1) saturate(1.5);; }
}

@keyframes glitch-1 {
  0%,
  12%,
  15%,
  52%,
  55%,
  82%,
  85%,
  100% {
    opacity: 1;
    transform: scaleX(1) scaleY(1);
  }
  
  0% {
    opacity: .8;
    transform: scaleY(3);
    color: #ec0a52;
  }
  
  13% {
    opacity: .8;
    transform: scaleY(2);
    color: #ed0cc7;
  }
  
  53% {
    opacity: .8;
    transform: scaleX(.7);
    color: 	#2b84f1;
  }
  
  83% {
    opacity: .8;
    transform: rotate(-10deg);
    color: 	#63f12b;
  }
}

@keyframes starTrail {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
}

body {
  background-color: white;
  color: black;
  font-family: 'WelcomeFont', sans-serif;
  cursor: url('cursor2.png'), auto;
}

.web-border {
  position: fixed;
  inset: 0;
  border: 50px solid transparent;
  border-image: url("studded.jpg") 25% round;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 9999;
}

.web-title {
  padding: 80px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: brightness(1.5);
}

.text-box-title {
  /* Step 1: Add the background image */
  background-image: url('web-title.gif');
  
  /* Step 2: Ensure the image covers the entire box without repeating */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  /* Step 3: Box sizing and spacing */
  width: 400px;
  padding: 40px;
  border: 5px ridge #ED0CC7;
  border-radius: 0px 40px 0px 40px;
  
  /* Step 4: Make text readable (White text with a dark transparent overlay) */
  color: white;
  background-color: rgba(0, 0, 0, 0.4);
  background-blend-mode: overlay; 
}

.textbox {
  width: 490px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  padding: 20px;

  background: rgba(10, 0, 20, 0.75);
  backdrop-filter: blur(3px);
  border: 3px solid #ff00cc;
  box-shadow:
    0 0 10px #ff00cc,
    0 0 25px #ff00cc;
}

.counter-row {
  width: 490px;
  box-sizing: border-box;
  margin: 20px auto;

  display: grid;
  grid-template-columns: 90px 1fr 90px;
  align-items: center;
  justify-items: center;
  gap: 5px;
}

.counter-blinkies {
  width: 90px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.counter-blinkies img {
  max-width: 90px;
  height: auto;
}

.visit-counter {
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 20px;

  color: #00ffff;
  background: #050005;

  border: 2px solid #ff00cc;

  box-shadow:
    0 0 5px #ff00cc,
    0 0 15px #00ffff;

  text-align: center;
  font-size: 16px;
  image-rendering: pixelated;
}

.counter-number {
  margin-top: 5px;

  color: #ffff00;
  background: #000;

  border: 2px inset #777;

  padding: 3px 12px;

  font-family: "Courier New", monospace;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 3px;

  text-shadow:
    0 0 5px #ffff00,
    0 0 10px #ff00cc;
}

.jerry-column {
  width: 490px;
  margin: 20px auto;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.jerry-box {
  position: relative;
  width: 240px;
  height: 250px;
  flex-shrink: 0;
  
  border: 4px ridge #ed0cc7;
  box-sizing: border-box;

  box-shadow:
    0 0 8px #ff00cc,
    0 0 18px #00ffff,
    0 0 30px #ff00cc;
}

.rainbow-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 240px;
  height: 250px;
  animation: colorSpin .5s infinite linear;
}

.overlay-img {
  position: absolute;
}

.jerry {
  bottom: 70px;
  left: 100px;
}

.dance {
  top: 10px;
  left: 10px;
}

.guestbook {
  width: 240px;
  min-height: 250px;
  box-sizing: border-box;

  padding: 10px;

  background: rgba(10, 0, 20, 0.85);
  border: 3px solid #ff00cc;

  box-shadow:
    0 0 10px #ff00cc,
    0 0 20px #00ffff;

  color: white;
  text-align: center;
}

.guestbook h2 {
  margin: 0 0 10px;
  color: #00ffff;

  text-shadow:
    0 0 5px #ff00cc,
    0 0 10px #00ffff;
}

.guestbook iframe {
  width: 100%;
  height: 190px;
  border: 2px solid #00ffff;
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  width: 490px;
  box-sizing: border-box;
  margin: 40px auto 80px;
  padding: 20px;

  background: rgba(10, 0, 20, 0.85);
  border: 3px solid #ff00cc;

  box-shadow:
    0 0 10px #ff00cc,
    0 0 20px #00ffff,
    inset 0 0 15px rgba(255, 0, 204, 0.3);

  color: white;
  text-align: center;
}

.footer-inner {
  font-family: 'WelcomeFont', sans-serif;
}

.footer-glitch {
  font-family: 'TitleFont', sans-serif;
  font-size: 28px;
  color: #00ffff;

  text-shadow:
    2px 0 #ff00cc,
    -2px 0 #ffff00,
    0 0 8px #00ffff;

  animation: glitch-1 2s infinite linear;
}

.site-footer p {
  margin: 15px 0;
  font-size: 16px;
  line-height: 1.5;
}

.site-footer p span {
  color: #ff00cc;
}

.footer-links {
  margin: 15px 0;
  color: #ffff00;
}

.footer-links a {
  color: #00ffff;
  text-decoration: none;
  text-shadow:
    0 0 5px #00ffff,
    0 0 10px #ff00cc;
}

.footer-links a:hover {
  color: #ff00cc;
  text-shadow:
    0 0 5px #ff00cc,
    0 0 15px #ffff00;
}

.footer-links span {
  color: #ff00cc;
  margin: 0 5px;
}

.footer-stamps {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 15px;

  color: #ffff00;
  font-size: 12px;
  text-shadow: 0 0 5px #ffff00;
}


.cursor-star {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  color: #ff00cc;
  font-size: 14px;
  transform: translate(-50%, -50%);
  animation: starTrail 1.5s ease-out forwards;
  text-shadow:
    0 0 5px #ff00cc,
    0 0 10px #00ffff,
    0 0 15px #ffffff;
}
