@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
@font-face {
  font-family: "LINESeedJP";
  src: url("font/LINESeedJP_OTF_Eb.woff2") format("woff2");
  font-weight: 800; /* Assuming 'Eb' stands for Extra Bold */
  font-style: normal;
}

body {
  font-family: "LINESeedJP", sans-serif; /* Fallback to sans-serif if the custom font doesn't load */
}
#preloader svg path {
  fill: #fff; /* White color for the SVG paths */
}
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #333; /* Dark background color */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: visibility 0s linear 300ms, opacity 300ms;
}

#preloader.fade-out {
  animation: fadeOut 300ms linear forwards;
}
#preloader svg {
  filter: invert(1); /* 1 is 100%, inverts all colors */
}
body,
html {
  margin: 0;
  overflow-x: hidden;
  background-color: whitesmoke;
}

.parallax-container {
  position: relative;
  width: 100%;
  height: 100vh; /* Adjust the height as needed */
  display: flex; /* Enables flexbox */
  justify-content: center; /* Centers horizontally */
  align-items: center; /* Centers vertically */
  text-align: center; /* Ensures text is centered if it wraps onto multiple lines */
  overflow: hidden;
  z-index: 2; /* Ensures it's above the background but below overlaying content */
}

.hero-title {
  color: #ffffff; /* White color, adjust as needed */
  font-size: 6rem; /* Adjust the size as needed */
  font-family: "LINESeedJP", sans-serif; /* Use the custom font */
  font-weight: 800; /* Extra bold weight for the title */
  z-index: 3; /* Ensure the title is above the background layers */
  position: relative; /* Required for z-index to work */
}
.parallax-background,
.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh; /* Height to match the container */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform-origin: top center;
}

.parallax-background {
  z-index: 1;
  /* background-attachment: fixed; Might want to avoid 'fixed' on iOS */
}

.parallax-layer[data-speed="0.02"] {
  z-index: 2;
  transform: scale(1.05); /* Subtle scaling for farthest layer */
}

.parallax-layer[data-speed="0.5"] {
  z-index: 3;
  transform: scale(1.1); /* More pronounced scaling for middle layer */
}

.parallax-layer[data-speed="0.10"] {
  z-index: 4;
  transform: scale(1.15); /* Most scaling for closest layer */
}
.batLogo {
  transform: scale(0.8);
  
}
.invert{
  filter: invert(1);
}
.organizer-text {
  width: 100%;
  text-align: center;
  font-size: 2rem;
  color: black;
  font-family: "Inter", sans-serif;
  font-family: "Noto Sans TC", sans-serif;
}
.sponsor-text{
  width: 100%;
  text-align: center;
  font-size: 2rem;
  color: black;
  font-family: "Inter", sans-serif;
  font-family: "Noto Sans TC", sans-serif;
}
.organizer-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allow items to wrap on smaller screens */
  gap: 10px; /* Adjust the gap between images as necessary */
}

.organizer-container img,
.organizer-container .batLogo {
  height: 200px; /* Set a fixed height for larger screens */
  width: auto; /* Maintain the aspect ratio of the images */
  object-fit: contain; /* Ensure images are scaled correctly within the height */
}
@media (max-width: 768px) {
  .parallax-layer {
    display: none; /* Hide all layers by default */
  }
  .organizer-container img,
  .organizer-container .batLogo {
    height: 150px; /* Adjust the height for tablet screens */
  }
  .layer2 {
    display: block; /* Show only Layer 2 */
    position: absolute;
    z-index: 1; /* Behind the text */
    /* ... */
  }

  .hero-title {
    position: relative; /* Required for z-index to work */
    z-index: 999; /* Ensures the title is above the layer */
    /* ... */
  }
}
/* This styles the scrollbar track */
::-webkit-scrollbar {
  width: 12px; /* Width of the scrollbar */
  background-color: #f5f5f5; /* Color of the scrollbar track */
}

/* This styles the scrollbar handle */
::-webkit-scrollbar-thumb {
  background-color: #d6dee1; /* Color of the scrollbar handle */
  border-radius: 6px; /* Rounded corners on the scrollbar handle */
  border: 3px solid #f5f5f5; /* Creates a padding effect within the scrollbar track */
}

/* This styles the scrollbar handle on hover */
::-webkit-scrollbar-thumb:hover {
  background-color: #a8bbbf; /* Darker color on hover */
}

/* Optional: This styles the scrollbar corner */
::-webkit-scrollbar-corner {
  background-color: #f5f5f5;
}
.sponsor-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px; /* Adjust the gap as needed */
}

.sponsor-logo {
  flex: 1 1 20%; /* Take up 20% of the container width */
  display: flex;
  justify-content: center;
  align-items: center; /* Center the image within the logo container */
  max-width: calc(20% - 10px); /* Adjusts for gap, five logos per row */
  aspect-ratio: 16 / 9; /* Set the desired aspect ratio */
  height: auto; /* Height will be determined by aspect ratio */
}

.sponsor-logo img {
  max-height: 100%; /* The image will fill the height of its container */
  width: auto; /* Width will adjust to maintain the image's aspect ratio */
  object-fit: contain; /* Prevents distortion of the image */
}

/* For tablets and small desktops */
@media (max-width: 1024px) {
  .sponsor-logo {
    max-width: calc(25% - 10px); /* 4 logos per row */
  }
}

/* For landscape phones and small tablets */
@media (max-width: 768px) {
  .sponsor-logo {
    max-width: calc(33.333% - 10px); /* 3 logos per row */
  }
}

/* For portrait phones */
@media (max-width: 480px) {
  .sponsor-logo {
    max-width: calc(50% - 10px); /* 2 logos per row */
  }
  .organizer-container img,
  .organizer-container .batLogo {
    height: 100px; /* Adjust the height for mobile screens */
  }
}

/* For very small screens */
@media (max-width: 320px) {
  .sponsor-logo {
    max-width: 100%; /* 1 logo per row */
  }
}
.card-container {
  display:flex;
  max-width: 800px;
  margin: 0 auto;
  justify-content: space-evenly;
  gap: 1.5rem;
  margin-bottom: 4rem;
  margin-top: 4rem;
}

.card {
  width: 300px;
  background-color: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  padding: 10px;
  border-radius: 1rem;
}
.card:hover{
  transform: scale(1.05);
  transition: 0.5s;
}
.c1{
  /* gradient background */
  background: #121212;
  display: flex;
  justify-content: center;
  text-align: center;
}
.c1 h1{
  font-family: "Noto Sans TC", sans-serif;
  font-size: 2rem;
  /* gradient text */
  background: linear-gradient(160deg, #4da9ef 0%, #bbd559 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

}
@media screen and (max-width: 768px) {
  .card-container {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 80%;
  }
  
}