
/* For WebKit browsers like Chrome, Safari, and Edge */
::-webkit-scrollbar {
  width: 8px; /* Reduced width */
}

::-webkit-scrollbar {
  height: 8px; /* Reduced height for horizontal scrollbar */
}

::-webkit-scrollbar-track {
  background: #1a1a1a; /* Dark background for track */
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #2991b0, #e7e7e4); /* Gradient color for thumb */
  border-radius: 5px; /* Rounded edges for a cool look */
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #f6f6f6, #bc1818); /* Hover effect */
}



body {
  width: 100%;
  height: 100%;
  --s: 40px; /* size control */
  
  /* Soft gradient colors */
  --c: #000000, #111, #181818, #1a1a1a 90deg, #222 120deg;
  --g1: radial-gradient(circle at 50% 50%, #0d0d0d, #111111, #151515);
  --g2: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(30, 30, 30, 0.9));
  
  /* Enhanced background */
  background: var(--g1), var(--g2) var(--s) calc(1.5 * var(--s));
  background-size: cover; /* Ensures the gradient covers the entire viewport */
  background-attachment: fixed; /* Fixed background on scroll */
  
  margin: 0;
  padding: 0;
  color: #e0e0e0; /* Light text for better readability */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  outline: 3px solid rgba(255, 255, 255, 0.203); /* Thinner line with lighter color */
  outline-offset: -1px;
}



h1 {
    margin-top: 0%;
  font-size: 2.5em;
  color: white;
    text-align: center;
    display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Adds depth with a shadow */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(20, 20, 20, 0.8)); 
}

#search {
    text-align: center;
    margin: 40px;
    background-color: #e0e0e000;

}

#search input {
    width: 200px;
    background-color: #ffffff;
    height: 40px;
}

#search button {
    margin-left: 10px;
    cursor: pointer;
    background-color: #0d89c8; /* Vibrant button color */
    border: none;
    color: #fff;
    border-radius: 5px;
    height: 40px;
    width: 90px;

}

#search button:hover {
    background-color: #148fc4; /* Darker shade on hover */
}

#animeContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px;
  
  /* Soft gradient colors */
  --c: #000000, #111, #181818, #1a1a1a 90deg, #222 120deg;
  --g1: radial-gradient(circle at 50% 50%, #0d0d0d, #111111, #151515);
  --g2: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(30, 30, 30, 0.9));
  
  /* Enhanced background */
  background: var(--g1), var(--g2) var(--s) calc(1.5 * var(--s));
  background-size: cover; /* Ensures the gradient covers the entire viewport */
  background-attachment: fixed; /* Fixed background on scroll */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Add a subtle shadow effect */

}



.anime-card {
background-color: #1a538100;
  color: #fff;
  border-radius: 10px;
  transition: transform 0.2s;
  margin: 10px;
  box-shadow: 0 4px 10px rgb(0, 0, 0); /* Adds depth with a shadow */
  overflow: hidden;
  position: relative;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: 12px;
  flex: 0 0 auto; /* Prevent shrinking or growing */
  width: 200px; /* Set a width for each card */
  margin-top: 20px;
  height: 300px;
  text-overflow: ellipsis;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.671); /* Adds a subtle shadow effect */


}

.anime-card:hover {
  transform: scale(1.009);
  cursor: pointer;
  box-shadow: 0px 0px 30px 1px rgba(0, 255, 117, 0.30); /* Glowing effect on the edges */
  border-radius: 20px;
  border: 3px solid transparent; /* Transparent border */
  background-origin: border-box; 
  background-clip: padding-box, border-box;
  background-image: linear-gradient(#2a2f33aa, #2a2f33aa), linear-gradient(163deg, #00ff778d 0%, #3700ff 100%);
  transition: transform 0.2s, all 0.3s;
}


.anime-card h3{
    position: absolute; /* Position title absolutely */
    top: 10px; /* Distance from the top */
    left: 1px; /* Align with the left */
    margin: 0; /* Remove margin */
    color: white; /* Text color */
    overflow: hidden; /* Hide overflow for title */
    text-overflow: ellipsis; /* Ellipsis for overflow text */
    z-index: 2; /* Ensure text is above the image */
    background-color: rgba(3, 53, 77, 0.799);
    font-size: 0.8rem;
    border-radius: 5px;
    text-align: left;
    width: auto; 
    
}

.anime-card img {
  width: 100%;
  height: 100%; /* Ensures the image takes the full container height */
  border-radius: 10px;
  transition: transform 0.3s ease;
  object-fit: cover; /* Ensures the image fits without distortion */
}











#animeInfoPopup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 30, 30, 0.9); /* Semi-transparent dark background */
    border: 1px solid #ccc;
    padding: 20px;
    z-index: 1000;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgb(0, 0, 0);
    overflow-y: auto; /* Allow scrolling for overflow content */
    max-height: 100vh; /* Limit height of the popup */
    border-radius: 10%;
}

#animeInfoPopup img {
    width: 100px;
    border-radius: 5px;
}

#animeInfoPopup h2 {
    margin: 0;
    color: #1092b0; /* Title color */
}

#animeInfoPopup button {
    margin-top: 10px;
    margin-bottom: 30px;
    background-color: #1694ba;
    border: none;
    color: #fff;
    border-radius: 5px;
    width: 100px;
    height: 40px;
}


#animeInfoPopup button:hover {
    margin-top: 10px;
    margin-bottom: 30px;
    background-color: #9dae2c;
    border: none;
    color: #fff;
    border-radius: 5px;
    width: 100px;
    height: 40px; 
    cursor: pointer;
}


#episodeDropdown {
    margin: 10px 0;
    background-color: #1e1e1e;
    color: #fff;
    border: 1px solid #444;
    border-radius: 5px;
    width: 100px;
    height: 40px;
}


@media (max-width: 768px) {

    .anime-card {
  width: 39%; /* Set a width for each card */
  margin: 0 10px;
  margin-top: 20px;
  height: 150px;
}

.anime-card:hover {
  transform: scale(0.9);
  cursor: pointer;
  box-shadow: 0px 0px 30px 1px rgba(0, 255, 117, 0.30); /* Glowing effect on the edges */
  border-radius: 20px;
  border: 3px solid transparent; /* Transparent border */
  background-origin: border-box; 
  background-clip: padding-box, border-box;
  background-image: linear-gradient(#2a2f33aa, #2a2f33aa), linear-gradient(163deg, #00ff778d 0%, #3700ff 100%);
  transition: transform 0.2s, all 0.3s;
}

#search {
    display: flex;
    justify-content: space-between;
    text-align: center;
    margin: 40px;

}


}

button{
    margin-top: 10px;
}



.buttons{
  display: flex;
  justify-content:center;
border: transparent;
margin-top: 10px;
width: 100%;
}





#Download, #com {
  display: flex;
  align-items: center;
  font-family: inherit;
  font-weight: 500;
  font-size: 15px;
  padding: 6px 20px;
  color: white;
  background-color: rgba(26, 163, 194, 0.63);
  border: none;
  box-shadow: 0 0.7em 1.5em -0.5em rgba(59, 48, 78, 0.527);
  letter-spacing: 0.05em;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  margin: 10px;
}


#Download:hover, #com:hover{
  box-shadow: 0 0.5em 1.5em -0.5em rgba(88, 71, 116, 0.627);
}

#Download:active, #com:active {
  box-shadow: 0 0.3em 1em -0.5em rgba(88, 71, 116, 0.627);
}

#Download::before, #com::before {
  content: "";
  width: 4px;
  height: 40%;
  background-color: white;
  position: absolute;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  left: 0;
  transition: all 0.2s;
}

#Download::after, #com::after  {
  content: "";
  width: 4px;
  height: 40%;
  background-color: white;
  position: absolute;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  right: 0;
  transition: all 0.2s;
}

#Download:hover::before,
#Download:hover::after, #com:hover::before,
#com:hover::after {
  height: 60%;
}



#loader.show {
  opacity: 1!important;
  visibility: visible!important;
  display: block !important;
}


/* From Uiverse.io by lukepadiachy */ 
#loader {
  display: none!important; /* Start with the loader hidden */
  width: 200px!important;
  height: 200px!important;
  perspective: 1000px!important;
  margin: 100px auto!important;
  position: fixed!important;
  top: 50%!important;
  left: 50%!important;
  transform: translate(-50%, -50%)!important;
  z-index: 1000!important;
  background-color: rgba(0, 0, 0, 0.7)!important; /* Dim background */
  border-radius: 50%!important;
  align-items: center!important;
  justify-content: center!important;
}

.rubiks-cube {
  width: 100%!important;
  height: 100%!important;
  position: relative!important;
  transform-style: preserve-3d!important;
  animation: my-rotateCube 5s infinite linear!important;
}

#loader .face {
  position: absolute!important;
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  height: 100% !important;
}

#loader .face.front {
  transform: translateZ(100px)!important;
}
#loader .face.back {
  transform: rotateY(180deg) translateZ(100px)!important;
}
#loader .face.left {
  transform: rotateY(-90deg) translateZ(100px)!important;
}
#loader .face.right {
  transform: rotateY(90deg) translateZ(100px)!important;
}
#loader .face.top {
  transform: rotateX(90deg) translateZ(100px)!important;
}
#loader .face.bottom {
  transform: rotateX(-90deg) translateZ(100px)!important;
}

#loader .cube {
  width: calc(100% / 3)!important;
  height: calc(100% / 3)!important;
  box-sizing: border-box!important;
  border: 1px solid #000!important;
}

@keyframes my-rotateCube {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

