/* For WebKit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px; /* Width of the scrollbar */
  height: 8px; /* Height of the scrollbar (for horizontal scrollbar) */
}

::-webkit-scrollbar-track {
  background: #2b2b2b; /* Background of the scrollbar track */
}

::-webkit-scrollbar-thumb {
  background-color: #555; /* Thumb color */
  border-radius: 10px; /* Roundness of the thumb */
  border: 2px solid #2b2b2b; /* Creates some padding around the thumb */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #888; /* Thumb color when hovered */
}

/* Universal styles using CSS custom properties */
:root {
  --scrollbar-bg: #2b2b2b; /* Dark background */
  --scrollbar-thumb: #555; /* Dark grey thumb */
  --scrollbar-thumb-hover: #888; /* Lighter grey on hover */
  --gold: #f7931a;
  --navy: #001f3f;
  --gold-filter: invert(61%) sepia(30%) saturate(2263%) hue-rotate(350deg)
    brightness(104%) contrast(94%);
}

body {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-bg);
  box-sizing: border-box;
  /* For Firefox */
  scrollbar-width: thin; /* Makes the scrollbar thinner */
  scrollbar-color: #555 #2b2b2b; /* Thumb color and track color */
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 10px;
  border: 2px solid var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}

body {
  margin: 0;
  font-family: "Schoolbell", cursive; /* Set the font to Schoolbell */
  background: #fff;
  color: white;
  overflow-y: scroll;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  /* border: solid 8px var(--gold); */
  border-top: none;
  border-bottom: none;
}

.red {
  color: #f7931a;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 10px yellow, 0 0 20px yellow, 0 0 30px yellow,
      0 0 40px yellow;
  }
  50% {
    box-shadow: 0 0 20px yellow, 0 0 30px yellow, 0 0 40px yellow,
      0 0 50px yellow;
  }
  100% {
    box-shadow: 0 0 10px yellow, 0 0 20px yellow, 0 0 30px yellow,
      0 0 40px yellow;
  }
}

@keyframes redGlow {
  0% {
    box-shadow: 0 0 3px red, 0 0 6px red, 0 0 9px red, 0 0 12px red;
  }
  50% {
    box-shadow: 0 0 6px red, 0 0 9px red, 0 0 12px red, 0 0 15px red;
  }
  100% {
    box-shadow: 0 0 3px red, 0 0 6px red, 0 0 9px red, 0 0 12px red;
  }
}

a {
  margin: 0px 20px;
  text-decoration: none;
  font-size: 16px;
  padding: 6px;
  border-radius: 90px;
}

.more-links {
  position: relative;
  box-sizing: border-box;
  position: absolute;
  top: 90%;
  width: 100vw;
  display: flex;
  /* flex-direction: column; */
  align-items: center;
  justify-content: center;
  width: fit-content;
  z-index: 999;
}

.more-links img {
  width: 25px;
  height: 25px;
  filter: var(--gold-filter);
  margin-bottom: 0px;
}

.more-links button {
  font-size: 15px;
  box-sizing: border-box;
  margin: 0 10px;
  background: var(--navy);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  font-family: "Schoolbell", cursive;
  padding: 5px 10px;
  color: #fff;
  cursor: pointer;
  transform-origin: center;
  transform: perspective(300px) rotateX(10deg); /* Tilt with perspective upwards */
  letter-spacing: 0.05em;
}

@keyframes beckoning {
  0%,
  100% {
    transform: perspective(300px) rotateX(0deg);
  }
  50% {
    transform: perspective(300px) rotateX(-45deg);
  }
  75% {
    transform: perspective(300px) rotateX(-8deg);
  }
}

#to-memes:hover {
  cursor: pointer;
  animation: none;
}

.links-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

#dex-tools-url {
  text-align: center;
  width: fit-content;
  margin: 10px 10px 0 10px;
  font-size: 11px;
}

.links1 {
  box-sizing: border-box;
  z-index: 1000;
  bottom: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  max-width: 100%;
}

.links-wrap a {
  background-color: var(--navy);
  color: white;
  border: solid 1px black;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 1), 0 2px 2px rgba(0, 0, 0, 1),
    0 4px 4px rgba(0, 0, 0, 1), 0 8px 8px rgba(0, 0, 0, 1),
    0 16px 16px rgba(0, 0, 0, 1);
  transform: perspective(1000px) rotateX(10deg);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  margin: 10px 10px;
  border-radius: 60px;
  padding: 5px 15px;
}

.links1 a:hover {
  transform: perspective(1000px) rotateX(20deg);
  box-shadow: 0 2px 2px var(--gold), 0 4px 4px var(--gold),
    0 8px 8px var(--gold), 0 16px 16px var(--gold), 0 32px 32px var(--gold);
  color: var(--gold);
}

.hero-section {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  padding: 70px 0 0 0;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}

.hero-content {
  box-sizing: border-box;
  position: fixed;
  top: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: fit-content;
  width: 40vw;
  max-width: 100%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 8px var(--navy), 0 8px 16px var(--navy),
    0 12px 24px var(--navy);

  border-radius: 5px;
  z-index: 1001;
}

.hero-gif {
  position: relative;
  bottom: 0%;
  width: 50%;
  height: 100%;
  background-image: url("https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExM2Rud3RhMDVpaW14YXR4emlrZHYyd3c4bXIyMWgybzRrNmU5Znl0OSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/3o6YfWDokOwdiZqGT6/giphy.webp");
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border: solid 1px #001f3f;

  border-radius: 20px;
  margin-bottom: 5px;
}

.cat {
  height: 450px; /* Make the cat smaller */
  width: 100%;
  margin: 0 auto; /* Center the cat */
  display: none; /* Ensure the image is treated as a block element */
}

.hero-section h1 {
  letter-spacing: 0.1em;
  margin: 0px;
  font-size: 30px;
  color: #001f3f;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-section {
  overflow: hidden;
  padding: 4px 0;
  background-color: var(--gold);
  white-space: nowrap;
  position: relative;
  margin: 0px;
  box-sizing: border-box;
  z-index: 1000;
}

.carousel-track {
  display: inline-block;
  animation: slide 30s linear infinite;
  /* Ensure the animation doesn't jump */
  will-change: transform;
}

.carousel-track img {
  height: 150px;
  margin: 0 2px;
  vertical-align: middle;
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Move exactly one set of images */
    transform: translateX(-50%);
  }
}

.carousel-section:hover .carousel-track {
  animation-play-state: paused;
}

.video-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url(images/stars.gif);
  padding: 50px 20px;
  text-align: center;
  z-index: 1000;
}

.video-section video {
  width: 70%;
  border-radius: 10px;
}

.video-text {
  font-size: 60px;
  color: #f0f0f0;
}

@keyframes shake {
  0% {
    transform: translate(1px, 1px) rotate(0deg);
  }
  10% {
    transform: translate(-1px, -2px) rotate(-1deg);
  }
  20% {
    transform: translate(-3px, 0px) rotate(1deg);
  }
  30% {
    transform: translate(3px, 2px) rotate(0deg);
  }
  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }
  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }
  60% {
    transform: translate(-3px, 1px) rotate(0deg);
  }
  70% {
    transform: translate(3px, 1px) rotate(-1deg);
  }
  80% {
    transform: translate(-1px, -1px) rotate(1deg);
  }
  90% {
    transform: translate(1px, 2px) rotate(0deg);
  }
  100% {
    transform: translate(1px, -2px) rotate(-1deg);
  }
}

.shake {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  transform-origin: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-gif {
    width: 100%;
    border: none;
    border-bottom: solid 1px #001f3f;
    background-size: 100% 90%;
    border-radius: 0px;
    margin-bottom: 0px;
  }

  .hero-content {
    width: 90vw;
  }

  #to-memes {
    font-size: 14px;
  }

  .header {
    padding: 8px;
  }

  .header-links {
    margin-right: 0px;
  }

  .header a {
    margin: 0px 5px;
    font-size: 16px;
  }

  .links1 {
    margin-bottom: 10px;
  }

  .links1 a {
    margin: 10px 10px;
    font-size: 14px;
    padding: 5px 8px;
  }

  .hero-section {
    height: 100vh;
  }

  .hero-section h1 {
    font-size: 20px;
  }

  .cat {
    width: 50vw;
    height: auto;
  }

  .video-text {
    font-size: 30px;
  }

  .video-section {
    position: relative;
    justify-content: flex-start;
    padding-top: 20px;
    padding: 20px 20px 0 20px;
  }

  .video-section video {
    width: 85vw;
  }
}
