body {
  background: radial-gradient(circle, rgba(60, 60, 70, 1) 0%, rgba(30, 30, 40, 1) 100%);
  font-family: Arial, sans-serif;
  color: white;
  display: grid;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.container {
    width: 100%;
    height: 100%;
    --s: 200px; /* control the size */
    --c1: #1d1d1d;
    --c2: #4e4f51;
    --c3: #3c3c3c;
  
    background: repeating-conic-gradient(
          from 30deg,
          #0000 0 120deg,
          var(--c3) 0 180deg
        )
        calc(0.5 * var(--s)) calc(0.5 * var(--s) * 0.577),
      repeating-conic-gradient(
        from 30deg,
        var(--c1) 0 60deg,
        var(--c2) 0 120deg,
        var(--c3) 0 180deg
      );
    background-size: var(--s) calc(var(--s) * 0.577);
}
 
@keyframes typing {
  from {
      transform: scaleX(0); /* Start scaled to 0 width */
      transform-origin: center; /* Set the origin to the center */
      width: 0; /* Important: Keep width at 0 for the scaling to work */
  }
  to {
      transform: scaleX(1); /* Scale to full width */
      transform-origin: center;
      width: 60%; /* Although not strictly necessary, good practice */
  }
}

  
  .input-container {
    position: relative;
    width : 90vw;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: row; /* Stack cards vertically */
    flex-wrap: wrap;
  }
  
  .input {
    width: 60vw;
    height: 30px;
    padding: 17px 40px;
    border-radius: 50px;
    padding: 12px;
    font-size: 18px;
    font-family: "Courier New", monospace;
    flex: 1 1;
    color: #000;
    background-color: #fff;
    border: 4px solid #000;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 8px 8px 0 #000;
    gap: 12px;
    display: inline-block;
  }
  
  .input::placeholder {
    color: #888;
  }
  
  .input:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 #000;
  }
  
  .input:focus {
    background-color: #010101;
    color: #fff;
    border-color: #d6d9dd;
  }
  
  .input:focus::placeholder {
    color: #fff;
  }
  
  @keyframes shake {
    0% {
      transform: translateX(0);
    }
    25% {
      transform: translateX(-5px) rotate(-5deg);
    }
    50% {
      transform: translateX(5px) rotate(5deg);
    }
    75% {
      transform: translateX(-5px) rotate(-5deg);
    }
    100% {
      transform: translateX(0);
    }
  }
  
  .input:focus {
    animation: shake 0.5s ease-in-out;
  }
  
  @keyframes glitch1 {
    0% {
      transform: none;
      opacity: 1;
    }
    7% {
      transform: skew(-0.5deg, -0.9deg);
      opacity: 0.75;
    }
    10% {
      transform: none;
      opacity: 1;
    }
    27% {
      transform: none;
      opacity: 1;
    }
    30% {
      transform: skew(0.8deg, -0.1deg);
      opacity: 0.75;
    }
    35% {
      transform: none;
      opacity: 1;
    }
    52% {
      transform: none;
      opacity: 1;
    }
    55% {
      transform: skew(-1deg, 0.2deg);
      opacity: 0.75;
    }
    50% {
      transform: none;
      opacity: 1;
    }
    72% {
      transform: none;
      opacity: 1;
    }
    75% {
      transform: skew(0.4deg, 1deg);
      opacity: 0.75;
    }
    80% {
      transform: none;
      opacity: 1;
    }
    100% {
      transform: none;
      opacity: 1;
    }
  }
  
  .input:not(:placeholder-shown) {
    animation: glitch 1s linear infinite;
  }
  
  @keyframes blink {
    50% {
      opacity: 0;
    }
  }
  
  .input:focus + .input-container::after {
    color: #fff;
  }
  
  .input:not(:placeholder-shown) {
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0px 0px 0 #000;
  }

  /* Image Display */ 

  .img {
    /*width: 255px;
    height: 100px;*/
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    display: flex;
    align-items: top;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    height: 100%; /* Adjust this height to match the image aspect ratio */
    overflow: hidden; /* Hide any overflowing parts */
  }

  .card .img img {
    width: 200px;
    height: 300px;
    object-fit: contain;
  }
  .card {
    width: 350px;
    height: 250px;
    background: white;
    border-radius: 30px;
    
    transition: 0.2s ease-in-out;
  }
  
  
  .text {
    margin: 20px;
    display: flex;
    flex-direction: column;
    align-items: space-around;
  }
  
  .icon-box {
    margin-top: 15px;
    width: 70%;
    padding: 10px;
    background-color: #e3fff9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: left;
  }
  
  .icon-box svg {
    width: 17px;
  }
  
  .text .h3 {
    font-family: sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: black;
  }
  
  .text .p {
    font-family: sans-serif;
    color: #999999;
    font-size: 13px;
  }
  
  .icon-box .span {
    margin-left: 10px;
    font-family: sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #9198e5;
  }
  
  .card:hover {
    cursor: pointer;
    box-shadow: 15px 15px 30px #bebebe,
               -15px -15px 30px #ffffff;
  }
  
  .save:hover {
    transform: scale(1.1) rotate(10deg);
  }
  
  .save:hover .svg {
    fill: #ced8de;
  }
/*Title */
  .loader {
    color: rgb(124, 124, 124);
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 7vw;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    height: 100px;
    padding: 10px 10px;
    display: flex;
    border-radius: 8px;
    width: 90vw;
  }
  .static-text {
    color: rgb(124, 124, 124);
    font-family: "Poppins", sans-serif;
    font-size: 100%;
    white-space: nowrap; /* Prevent "Recommend" from wrapping */
    }
  
  .words {
    overflow: hidden;
    position: relative;
    font-size: 100%;
  }
  .words::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      var(--bg-color) 10%,
      transparent 30%,
      transparent 30%,
      var(--bg-color) 10%
    );
    z-index: 0;
  }
  
  .word {
    display: block;
    height: 100%;
    padding-left: 6px;
    color: #956afa;
    animation: spin_4991 4s linear infinite;
    will-change: transform;
  }
  
  @keyframes spin_4991 {
    10% {
        -webkit-transform: translateY(-102%);
        transform: translateY(-102%);
      }
    
      25% {
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);
      }
    
      35% {
        -webkit-transform: translateY(-202%);
        transform: translateY(-202%);
      }
    
      50% {
        -webkit-transform: translateY(-200%);
        transform: translateY(-200%);
      }
    
      60% {
        -webkit-transform: translateY(-302%);
        transform: translateY(-302%);
      }
    
      75% {
        -webkit-transform: translateY(-300%);
        transform: translateY(-300%);
      }
    
      85% {
        -webkit-transform: translateY(-402%);
        transform: translateY(-402%);
      }
    
      100% {
        -webkit-transform: translateY(-400%);
        transform: translateY(-400%);
      }
  }
  
  

  
/* Anime Info */
#animeInfo {
    display: flex;
    flex-direction: row; /* Stack cards vertically */
    flex-wrap: wrap;
    gap: 20px; /* Use margin-bottom on .card instead */
  }
/*Button*/
/* From Uiverse.io by mi-series */ 
.btn1 {
  padding: 17px 40px;
  border-radius: 50px;
  cursor: pointer;
  border: 0;
  background-color: hsl(261deg 80% 48%);
  box-shadow: rgb(0 0 0 / 5%) 0 0 8px;
  color: hsl(0, 0%, 100%);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 15px;
  transition: all 0.5s ease;
}

.btn1:hover {
  letter-spacing: 5px;
  background-color: hsl(261deg 80% 48%);
  color: hsl(0, 0%, 100%);
  box-shadow: rgb(93 24 220) 0px 7px 29px 0px;
}

.btn1:active {
  letter-spacing: 5px;
  background-color: hsl(261deg 80% 48%);
  color: hsl(0, 0%, 100%);
  box-shadow: rgb(93 24 220) 0px 0px 0px 0px;
  transform: translateY(10px);
  transition: 100ms;
}

.btn {
  padding: 17px 40px;
  border-radius: 50px;
  cursor: pointer;
  border: 0;
  background-color: hsl(230, 81%, 60%);
  box-shadow: rgb(0 0 0 / 5%) 0 0 8px;
  color: hsl(0, 0%, 100%);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 15px;
  transition: all 0.5s ease;
}

.btn:hover {
  letter-spacing: 3px;
  background-color: hsl(230, 81%, 60%);
  color: hsl(0, 0%, 100%);
  box-shadow: hsl(230, 81%, 60%) 0px 7px 29px 0px;
}

.btn:active {
  letter-spacing: 3px;
  background-color: hsl(230, 81%, 60%);
  color: hsl(0, 0%, 100%);
  box-shadow: rgb(93 24 220) 0px 0px 0px 0px;
  transform: translateY(10px);
  transition: 100ms;
}

.searchbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-direction: row;
  size: 7vw;
}

@media (max-width: 768px) { 

  /* Styles for smaller screens (like most mobile devices) */

  nav ul { 

      flex-direction: column; /* Stack navigation items vertically */

  }

  .main-content { 

      width: 90%; /* Adjust content width for smaller screens */

  }

}

.switch {
  position: relative;
  display: inline-block;
  align-items: center;
  width: 120px;
  height: 62px;
 }
 
 .switch input {
  display: none;
 }
 
 .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #0062ff;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 62px;
 }
 
 .slider:before {
  position: absolute;
  content: "";
  height: 60px;
  width: 60px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;  
  border-radius: 50%;
 }
 
 input:checked + .slider {
  background-color: #f04848;
 }
 
 input:focus + .slider {
  box-shadow: 0 0 1px #f04848;
 }
 
 input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(85px);
 }
 
 /*------ ADDED CSS ---------*/
 .slider:after {
  content: 'Anime Only';
  color: white;
  display: block;
  position: absolute;
  transform: translate(-50%,-50%);
  top: 50%;
  left: 50%;
  font-size: 10px;
  font-family: Verdana, sans-serif;
 }
 
 input:checked + .slider:after {
  content: 'Movies & TV';
 }
 footer { /* Or #myFooter if you used a div */
  
  padding: 20px; /* Add some padding */
  text-align: center; /* Center the text */
  font-size: 14px; /* Adjust font size */
  color: #ffffff; /* Dark gray text */
}

footer a { /* Style footer links */
  color: #007bff; /* Blue link color */
  text-decoration: none; /* Remove underlines */
  margin: 0 10px; /* Add spacing between links */
}

footer a:hover {
  text-decoration: underline; /* Add underline on hover */
}

.glitch1 {
  position: relative;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: 5px;
  z-index: 1;
  animation: shift 1s ease-in-out infinite alternate;
}

.glitch1:before,
.glitch1:after {
  display: block;
  content: attr(data-glitch1);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.8;
}

.glitch1:before {
  animation: glitch1 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
  color: #d000ff; /* Updated color */
  z-index: -1;
}

.glitch1:after {
  animation: glitch1 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both
    infinite;
  color: #7800e1; /* Updated color */
  z-index: -2;
}

@keyframes glitch1 {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translate(-3px, 3px);
  }

  40% {
    transform: translate(-3px, -3px);
  }

  60% {
    transform: translate(3px, 3px);
  }

  80% {
    transform: translate(3px, -3px);
  }

  to {
    transform: translate(0);
  }
}

@keyframes shift {
  0%,
  40%,
  44%,
  58%,
  61%,
  65%,
  69%,
  73%,
  100% {
    transform: skewX(0deg);
  }

  41% {
    transform: skewX(10deg);
  }

  42% {
    transform: skewX(-10deg);
  }

  59% {
    transform: skewX(40deg) skewY(10deg);
  }

  60% {
    transform: skewX(-40deg) skewY(-10deg);
  }

  63% {
    transform: skewX(10deg) skewY(-5deg);
  }

  70% {
    transform: skewX(-50deg) skewY(-20deg);
  }

  71% {
    transform: skewX(10deg) skewY(-10deg);
  }
}

@media (max-width: 768px) { 

  /* Styles for smaller screens (like most mobile devices) */

  nav ul { 

      flex-direction: column; /* Stack navigation items vertically */

  }

  .main-content { 

      width: 90%; /* Adjust content width for smaller screens */

  }
}

.filter {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.192);
  cursor: pointer;
  box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.021);
  transition: all 0.3s;
}

.filter svg {
  height: 16px;
  fill: rgb(77, 77, 77);
  transition: all 0.3s;
}
.filter:hover {
  box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.11);
  background-color: rgb(59, 59, 59);
}
.filter:hover svg {
  fill: white;
}

.vert{
  display: flex;
  gap: 20px;
  flex-direction: column;
}

.radio {
  flex: 1 1 auto;
  text-align: center;
  position: relative;
}

.radio input {
  display: none;
}

.radio .name {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  border: none;
  padding: 0.7rem 0;
  color: #2d3748;
  font-weight: 500;
  font-family: inherit;
  background: linear-gradient(145deg, #ffffff, #e6e6e6);
  box-shadow:
    3px 3px 6px rgba(0, 0, 0, 0.1),
    -3px -3px 6px rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
  overflow: hidden;
}

.radio input:checked + .name {
  background: linear-gradient(145deg, #3b82f6, #2563eb);
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow:
    inset 2px 2px 5px rgba(0, 0, 0, 0.2),
    inset -2px -2px 5px rgba(255, 255, 255, 0.1),
    3px 3px 8px rgba(59, 130, 246, 0.3);
  transform: translateY(2px);
}

/* Hover effect */
.radio:hover .name {
  background: linear-gradient(145deg, #f0f0f0, #ffffff);
  transform: translateY(-1px);
  box-shadow:
    4px 4px 8px rgba(0, 0, 0, 0.1),
    -4px -4px 8px rgba(255, 255, 255, 0.8);
}

.radio:hover input:checked + .name {
  transform: translateY(1px);
}

/* Animation */
.radio input:checked + .name {
  animation: select 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.animeInfo{
  align-items: center;
  justify-content: center;
}
.sep{
  gap: 15px;
}

.b{
  padding: 17px 40px;
  border-radius: 50px;
  cursor: pointer;
  border: 0;
  background-color: hsl(261deg 80% 48%);
  box-shadow: rgb(0 0 0 / 5%) 0 0 8px;
  color: hsl(0, 0%, 100%);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 15px;
  transition: all 0.5s ease;
}
 /*--------- END --------*/
 .menu {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 1000;
  width: 15%; /* Adjust width as needed */
  height: 300px; /* Adjust height as needed - fixed height, no scrolling */
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  overflow-y: auto; /* Hide overflowing content */
  overflow-x: hidden;
}

#genreList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* Grid layout */
  gap: 5px;
  padding-top: 5px;
  height: calc(100% - 40px); /* Adjust height to fit within the menu */
  overflow: visible; /* Hide overflowing content */
}

.genre-item {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 10px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  box-sizing: border-box;
  justify-content: center;
}

.genre-item label {
  margin: 0;
  white-space: nowrap;
}

.genre-item input[type="checkbox"] {
  display: none; /* Hide the checkbox */
}

.genre-item.checked {
  border: 5px solid #000000; /* Add a border when checked */
}

.switch {
  --_switch-bg-clr: hsl(230, 81%, 60%);
  --_switch-padding: 4px; /* padding around button*/
  --_slider-bg-clr: hsl(230, 53%, 45%); /* slider color unchecked */
  --_slider-bg-clr-on: hsl(230, 53%, 45%); /* slider color checked */
  --_slider-txt-clr: #ffffff;
  --_label-padding: 1rem 2rem; /* padding around the labels -  this gives the switch it's global width and height */
  --_switch-easing: cubic-bezier(
    0.47,
    1.64,
    0.41,
    0.8
  ); /* easing on toggle switch */
  color: white;
  width: fit-content;
  display: flex;
  justify-content: center;
  position: relative;
  border-radius: 9999px;
  cursor: pointer;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  position: relative;
  isolation: isolate;
}

.switch input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.switch > span {
  display: grid;
  place-content: center;
  transition: opacity 300ms ease-in-out 150ms;
  padding: var(--_label-padding);
}
.switch::before,
.switch::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  transition: inset 150ms ease-in-out;
}
/* switch slider */
.switch::before {
  background-color: var(--_slider-bg-clr);
  inset: var(--_switch-padding) 50% var(--_switch-padding)
    var(--_switch-padding);
  transition:
    inset 500ms var(--_switch-easing),
    background-color 500ms ease-in-out;
  z-index: -1;
  box-shadow:
    inset 0 1px 1px rgba(0, 0, 0, 0.3),
    0 1px rgba(255, 255, 255, 0.3);
}
/* switch bg color */
.switch::after {
  background-color: var(--_switch-bg-clr);
  inset: 0;
  z-index: -2;
}
/* switch hover & focus */
.switch:focus-within::after {
  inset: -0.25rem;
}
.switch:has(input:checked):hover > span:first-of-type,
.switch:has(input:not(:checked)):hover > span:last-of-type {
  opacity: 1;
  transition-delay: 0ms;
  transition-duration: 100ms;
}
/* switch hover */
.switch:has(input:checked):hover::before {
  inset: var(--_switch-padding) var(--_switch-padding) var(--_switch-padding)
    45%;
}
.switch:has(input:not(:checked)):hover::before {
  inset: var(--_switch-padding) 45% var(--_switch-padding)
    var(--_switch-padding);
}
/* checked - move slider to right */
.switch:has(input:checked)::before {
  background-color: var(--_slider-bg-clr-on);
  inset: var(--_switch-padding) var(--_switch-padding) var(--_switch-padding)
    50%;
}
/* checked - set opacity */
.switch > span:last-of-type,
.switch > input:checked + span:first-of-type {
  opacity: 0.75;
}
.switch > input:checked ~ span:last-of-type {
  opacity: 1;
}
