html {
  overflow-y: scroll;
  margin: 0;
  padding: 0;
}

:root {
  --col1: #222;
  --col2: black;
  --swiper-image-ratio: 34%;
  /* ratio 16:9 = 56.25% */
  --swiper-width: 50%;
  --swiper-inactive-scale: .85;
  /* makes the other slide smaller */
  /* responsive settings */
  --swiper-mobile-width: 90%;
  --swiper-mobile-inactive-scale: 1;
}

body.dark-mode {
  background-color: #333;
  color: #fff;
}

header.dark-mode {
  background-color: #444;
}

button.dark-mode {
  background-color: #444;
  color: #fff;
}

#btn {
  background-color: #ccc;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

#btn:hover {
  background-color: #aaa;
}

#All.dark-mode {
  color: white;
}

h2.card-title {
  color: var(--col2);
}

.to-top {
  color: #fff;
  position: fixed;
  bottom: 16px;
  right: 32px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: #1f1f1f;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s;
  z-index: 999;
}

.bottom {
  color: #fff;
  position: fixed;
  top: 16px;
  right: 32px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: #1f1f1f;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s;
  z-index: 10;
}

.to-top.active,
.bottom.active {
  bottom: 32px;
  pointer-events: auto;
  opacity: 1;
}

.to-top:hover,
.bottom:hover {
  color: #fff;
  text-decoration: none;
}

body {
  font-family: "Ninja Naruto", arial;
}

/* Custom Scroll Bar */
/* ::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #ffb732;
    border-radius: 1rem;
} */

/*Gradient scroll bar */
body::-webkit-scrollbar {
  width: 7px;
}

.card:hover {
  background-color: rgb(132, 94, 144);
  transform: scale(1.1);
}

body::-webkit-scrollbar-track {
  background: linear-gradient(0deg, rgba(255, 0, 0, 1) 0%, rgb(0, 35, 211) 70%);
}

body::-webkit-scrollbar-thumb {
  background: transparent;
  box-shadow: 0px 0px 0px 100000vh rgb(45, 42, 42);
  border-radius: 8px;
}

.box {
  box-shadow: 0px 0px 4px black;
}

/* Dark Mode Switch CSS */

.switch-container {
  position: absolute;
  top: 10%;
}

.switch-container #switch {
  display: none;
}

.switch-container .switch-label {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.switch-container .switch-label .switch-rail {
  transition: all 0.2s ease-in-out;
  position: absolute;
  width: 70px;
  height: 30px;
  background: #ff9a47;
  border-radius: 50px;
  overflow: hidden;
  bottom: -14px;
  right: -6rem;
}

.switch-container .switch-label .switch-rail .switch-slider {
  transition: all 0.2s ease-in-out;
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
}

.switch-container #switch:checked+.switch-label .switch-rail {
  transition: all 0.2s ease-in-out;
  background: #2e4a6b;
}

.switch-container #switch:checked+.switch-label .switch-rail .switch-slider {
  transition: all 0.2s ease-in-out;
  transform: translateX(40px);
}

.search {
  position: relative;
  left: 200px;
  border-radius: 2px;
  height: 60px;
  width: 60px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  height: 30px;
  width: 30px;
  filter: invert(50%);
  /* border: 1px solid black; */
}

/*.loader {
    filter:hue-rotate(0deg);
    background:linear-gradient(45deg,#0f8,#08f);
    animation:hue 10000ms infinite linear;
    background-color: #dc3545;
  }*/

.fixed-top {
  position: sticky;
}

.theme-btn {
  padding-top: 5px;
}

.search {
  /* position: fixed; */
  left: 30px;
  height: 48px;
  width: 48px;
  background: #fff;
  border-radius: 60px;
  transition: 0.5s;
  /* box-shadow: 0 0 0 5px black; */
  /* overflow: hidden; */
  border: 1px solid #999;

  /* Changed the position of search box */
  /* changes */
  margin-bottom: 100px;
  margin-top: 40px;
}

.search:hover {
  box-shadow: 0 5px 50px 0 #15f4ee inset, 0 5px 50px 0 #15f4ee,
    0 5px 50px 0 #15f4ee inset, 0 5px 50px 0 #15f4ee;
}

.activated {
  width: 360px;
}

.search .icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  /* height change for proper UI */
  height: 46px;
  border-radius: 48px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: pointer;
}

.search .icon::before {
  content: " ";
  position: absolute;
  width: 15px;
  height: 15px;
  border: 3px solid #000;
  border-radius: 50%;
  transform: translate(-4px, -4px);
}

.search .icon::after {
  content: " ";
  position: absolute;
  width: 3px;
  height: 12px;
  background: #000;
  transform: translate(6px, 6px) rotate(315deg);
  position: relative;
  text-align: center;
  width: 250px;
  padding: 40px;
  font-size: 35px;
  color: #15f4ee;
  font-family: poppins;
  font-weight: 400;
  border: 5px solid #15f4ee;
  text-transform: uppercase;
  letter-spacing: 15px;
  cursor: pointer;
  border-radius: 100px;
  transition: 1.5s;
}

.search .input {
  position: relative;
  width: 300px;
  height: 48px;
  left: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.search .input input {
  position: absolute;
  top: 0;
  width: 93%;
  /* changing the height for proper UI */
  height: 92%;
  border: none;
  outline: none;
  font-size: 18px;
  display: none;
}

.search.activated .input input {
  display: block;
}

.clear {
  position: absolute;
  top: 38%;
  transform: translate(-50%);
  /* border: 2px solid red; */
  width: 15px;
  height: 15px;
  right: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.clear::before {
  position: absolute;
  content: " ";
  width: 1px;
  height: 15px;
  background: #999;
  transform: rotate(45deg);
}

.clear::after {
  position: absolute;
  content: " ";
  width: 1px;
  height: 15px;
  background: #999;
  transform: rotate(315deg);
}

.brand1 {
  font-size: 40px;
  font-weight: bolder;
  text-shadow: 1px blue;
}

.brand1:hover {
  color: yellow;
  text-shadow: 10px red;
}

/* Search Result CSS */

.search-results {
  height: 90px;
  overflow-y: scroll;
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  background: #f5f5f5;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 10px;
  padding: 1rem;

  display: none;
  z-index: 2;
}

.search-results p {
  border-bottom: 1px solid #c2c1c1;
  margin: 0;
  padding-bottom: 6px;
  font-weight: 400;
  cursor: pointer;
  color: #636363;
  letter-spacing: 1px;
  transition: 0.2s ease;
  font-size: 12px;
}

.search-results p:hover {
  color: #2e2e2e;
  transform: translateX(4px);
}

/* .nav1 {

    background-color: black;
  } */

.topic {
  text-align: center;
  font-weight: 900;
  font-size: 60px;
  color: red;
  text-shadow: 2px 4px 4px yellow;
  text-decoration: underline;
}

img {
  object-fit: contain;
  width: 100%;
}

.col-md-4 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.card-bg {
  background-color: rgb(174, 184, 86);
}

h2 {
  color: black;
}

/*about*/
#para {
  text-align: center;
  font-size: 20px;
  color: black;
}

body {
  background-color: white;
  font-weight: bold;
  text-align: justify;
}

h1 {
  color: black;
  text-align: center;
  margin-top: 90px;
  margin-bottom: 40px;
  line-height: 14pt;
}

#one {
  background-color: rgb(40, 103, 178);
}

#two {
  background-color: rgb(33, 31, 31);
}

#three {
  background-color: rgb(225, 48, 108);
}

#buttons {
  margin-bottom: 10px;
}

.navTitle {
  color: #ffffff;
  padding-left: 50px;
  size: 50px;
}

.row1 {
  margin-top: 6%;
}

.itemNav {
  padding: 15px;
}

.about-title {
  padding-top: 2%;
  color: white;
  font-weight: normal;
}

.card {
  overflow: clip;
}

.card img:hover {
  transform: scale(1.1);
  transition: all 0.3s ease-out;
}

@media only screen and (max-width: 600px) {
  .display-3 {
    font-size: 4rem;
  }

  .lead {
    font-size: 1.6rem;
  }

  .gallery-head {
    font-size: 2rem;
  }

  .navTitle {
    padding-left: 3px;
  }
}

.card h2 {
  color: #dc3545;
}

body {
  font-family: "Ninja Naruto", arial;
}

body.darkmode {
  background: black;
}

p.aboutcolor {
  color: white;
}

body.aboutdarkmode {
  background: black;
  color: #ffffff;
}

body.lightmode {
  background: radial-gradient(blue, violet);
}

.brand1 {
  font-size: 40px;
  font-weight: bolder;
  text-shadow: 1px blue;
}

.brand1:hover {
  color: yellow;
  text-shadow: 10px red;
}

/* .nav1 {
    background-color: black;
  } */
.topic {
  text-align: center;
  font-weight: 900;
  font-size: 60px;
  color: red;
  text-shadow: 2px 4px 4px yellow;
  text-decoration: underline;
}

img {
  object-fit: contain;
}

.card-bg {
  background-color: rgb(174, 184, 86);
}

h2 {
  color: black;
}

/*about*/
#para {
  text-align: center;
  font-size: 20px;
  color: black;
}

body {
  background-color: white;
  font-family: "Ninja Naruto", arial;
  font-weight: bold;
}

h1 {
  color: black;
  text-align: center;
  margin-top: 90px;
  margin-bottom: 40px;
  line-height: 14pt;
}

#one {
  background-color: rgb(40, 103, 178);
}

#two {
  background-color: rgb(33, 31, 31);
}

#three {
  background-color: rgb(225, 48, 108);
}

#buttons {
  margin-bottom: 10px;
}

.navTitle {
  color: #ffffff;
  padding-left: 50px;
  size: 50px;
}

.row1 {
  margin-top: 6%;
}

.itemNav {
  padding: 15px;
}

.about-title {
  padding-top: 2%;
}

.card {
  overflow: clip;
}

.card img:hover {
  transform: scale(1.1);
  transition: all 0.3s ease-out;
}

@media only screen and (max-width: 600px) {
  .display-3 {
    font-size: 4rem;
  }

  .lead {
    font-size: 1.6rem;
  }

  .gallery-head {
    font-size: 2rem;
  }

  .navTitle {
    padding-left: 3px;
  }
}

.card-bg {
  transition: all 0.5s;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.card-bg:hover {
  background: rgba(255, 255, 255, 0.4);
  /* box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 40px 40px 40px 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  /* box-shadow: #200e14 4px 3px; */
}

h2.card-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: black;
}

.topic {
  color: white;
  text-shadow: 2px 4px 4px black;
}

.card:nth-of-type(2n + 1) {
  transform: translateX(-10%);
}

.card:nth-of-type(2n) {
  transform: translateX(10%);
}

.card {
  transition: all 550ms ease-in;
  opacity: 0;
}

.appear {
  transform: translateX(0) !important;
  opacity: 1;
}

/* Made Changes for dark background navbar now toggle button appears in dark mode also */
/* Earlier toggle button was not visible in dark mode but now appears in Dark mode also */

#navbarNavAltMarkup {
  padding-right: 80px;
}

.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,255)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

.custom-toggler.navbar-toggler {
  border-color: rgb(255, 255, 255);
}

/* Mobile devices */
@media (min-width: 320px) and (max-width: 480px) {
  #carouselExampleIndicators {
    margin-top: 80px;
  }

  .topic {
    color: white;
    text-shadow: 2px 4px 4px black;
    font-weight: 500;
    font-size: 40px;
    margin-top: 30px !important;
  }

  h2.card-title {
    text-align: center;
  }

  .navbar-nav button {
    margin-left: auto;
    margin-right: auto;
  }

  .search {
    left: 1rem;
  }

  .about-title b {
    line-height: 2.5rem;
  }

  .heading {
    font-size: 2.5rem;
    margin-left: 0;
  }

  #navbarNavAltMarkup {
    padding-right: 0;
  }
}

/* Adjusted the font size of All Anime Characters for small screen size */
@media (max-width: 400px) {
  .text_heading {
    font-size: 2rem;
  }
}

ul.navbar-nav.mr-auto {
  position: absolute;
  right: 10rem;
}

.custom-toggler.navbar-toggler {
  border-color: rgb(255, 255, 255);
}

button#scrolltopBtn {
  border-radius: 100%;
  height: 40px;
  width: 40px;
  font-size: 25px;
  font-weight: bold;
  /* text-align: center; */
  /* position: sticky; */
  margin-top: 100px;
  position: fixed;
  margin-left: 89rem;
  z-index: 2000;
  border: none;
}

.disable {
  background: #ccc;
}

.hidden {
  display: none;
}

.pagination {
  justify-content: center;
}

/* Siwpper Classes */
.carouselContainer {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 20px;
  padding-right: 20px;
  margin-top: 4px;
  /* margin-left: 20px;
    margin-right: 20px; */
}

.swiper {
  position: relative;
  width: 100%;
  height: calc(var(--swiper-width) * var(--swiper-image-ratio) / 100%);
  overflow: hidden;
}

.swiper-slide {
  position: relative;
  width: var(--swiper-width);
  opacity: 0.5;
  display: flex;
  justify-content: center;
  transform: scale(0.84);
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  border-radius: 0.4285rem;
}

.swiper-backface-hidden .swiper-slide {
  transform: scale(0.84) translateZ(0);
}

.swiper-slide.swiper-slide-active {
  transform: scale(1) !important;
  opacity: 1 !important;
}

.swiper-backface-hidden .swiper-slide.swiper-slide-active {
  transform: scale(1) translateZ(0) !important;
}

.swiper-image {
  position: relative;
  width: 62%;
  padding-top: var(--swiper-image-ratio);
}

.swiper-image .image {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.swiper-button-next,
.swiper-button-prev {
  padding: 15px;
  width: 20px;
  height: 20px;
  margin-top: 0;
  margin-left: 5px;
  margin-right: 5px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  color: #fff;
  font-size: 25px !important;
}

.swiper-button-next {
  transform: translate(50%, -50%);
  right: calc((100% - var(--swiper-width)) / 2);
}

.swiper-button-prev {
  transform: translate(-50%, -50%);
  left: calc((100% - var(--swiper-width)) / 2);
}

@media only screen and (max-width: 768px) {
  .swiper {
    height: calc(var(--swiper-mobile-width) * var(--swiper-image-ratio) / 100%);
  }

  .swiper-slide {
    width: var(--swiper-mobile-width);
    transform: scale(var(--swiper-mobile-inactive-scale));
  }

  .swiper-backface-hidden .swiper-slide.swiper-slide {
    transform: scale(var(--swiper-mobile-inactive-scale)) translateZ(0);
  }

  .swiper-button-next {
    right: calc((100% - var(--swiper-mobile-width)) / 2);
  }

  .swiper-button-prev {
    left: calc((100% - var(--swiper-mobile-width)) / 2);
  }
}

/* Footer and Contact Page Css */

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

section {
  padding: 10px 0;
  /* min-height: 100vh;*/
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-area {
  border-bottom: 1px solid #353c46;
}

.contact-content p {
  font-size: 15px;
  margin: 30px 0 60px;
  position: relative;
}

.contact-content p::after {
  background: #353c46;
  bottom: -30px;
  content: "";
  height: 1px;
  left: 50%;
  position: absolute;
  transform: translate(-50%);
  width: 80%;
}

.contact-content h6 {
  color: #8b9199;
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 10px;
}

.contact-content span {
  color: #353c47;
  margin: 0 10px;
}

.contact-social {
  margin-top: 30px;
}

.contact-social>ul {
  display: inline-flex;
}

.contact-social ul li a {
  border: 1px solid #8b9199;
  color: #8b9199;
  display: inline-block;
  height: 40px;
  margin: 0 10px;
  padding-top: 7px;
  transition: all 0.4s ease 0s;
  width: 40px;
}

.contact-social ul li a:hover {
  border: 1px solid #fab702;
  color: #fab702;
}

.contact-content img {
  max-width: 180px;
}

section,
.animepediaFooter {
  background: #1a1e25;
  color: #868c96;
}

.animepediaFooter p {
  padding: 10px 0;
  text-align: center;
}

.animepediaFooter img {
  width: 100px;
}

.nav-link {
  text-align: center;
  border-radius: 100px;
  min-width: 100px;
}

/* Mobile devices */
@media (min-width: 320px) and (max-width: 480px) {
  #carouselExampleIndicators {
    margin-top: 80px;
  }

  .topic {
    color: white;
    text-shadow: 2px 4px 4px black;
    font-weight: 500;
    font-size: 40px;
    margin-top: 30px !important;
  }

  h2.card-title {
    text-align: center;
  }

  .navbar-nav button {
    margin-left: auto;
    margin-right: auto;
  }

  .nav-link {
    margin-left: 45%;
  }

  .search {
    left: 1rem;
  }

  .about-title b {
    line-height: 2.5rem;
  }

  .heading {
    font-size: 2.5rem;
    margin-left: 0;
  }

  #navbarNavAltMarkup {
    padding-right: 0;
  }

  /* Swiper Classes */
  .swiper-image {
    width: 100%;
  }

  .swiper-slide {
    height: 250px !important;
  }
}


/*search bar style start*/
#search-container{
  position: absolute;
  z-index: 1000;
  display: none;
  cursor: pointer;
  
}


#search-div{
  width: 100%; 
  height: 40px;
  background-color: rgb(235, 235, 235);
  margin-top: 1px; 
  display: flex;
  border: 1px solid black;
  border-radius: 10px;
}
#search-div:hover{
  background-color: rgb(235, 235, 235);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

}

#search-img1{
  width: 11%;
  height: 38px;
  border: 0;
  border-radius: 10px;
  
}
#search-text{
  margin-top: 8px;
  margin-left: 4px;
}
/*search bar style end*/

/* Adjusted the font size of All Anime Characters for small screen size */
@media (max-width: 400px) {
  .text_heading {
    font-size: 2rem;
  }
}

ul.navbar-nav.mr-auto {
  position: absolute;
  right: 10rem;
}

/* Animated text */
.animated-text {
  width: 100%;
  font-weight: 900;
  text-align: left;
}

.animate {
  font-size: 40px;
}

.animate span {
  display: inline-block;
}

.animate span:nth-of-type(2) {
  animation-delay: 0.1s;
}

.animate span:nth-of-type(3) {
  animation-delay: 0.2s;
}

.animate span:nth-of-type(4) {
  animation-delay: 0.3s;
}

.animate span:nth-of-type(5) {
  animation-delay: 0.4s;
}

.animate span:nth-of-type(6) {
  animation-delay: 0.5s;
}

.animate span:nth-of-type(7) {
  animation-delay: 0.6s;
}

.animate span:nth-of-type(8) {
  animation-delay: 0.7s;
}

.animate span:nth-of-type(9) {
  animation-delay: 0.8s;
}

.animate span:nth-of-type(10) {
  animation-delay: 0.9s;
}

.animate span:nth-of-type(11) {
  animation-delay: 1s;
}

.animate span:nth-of-type(12) {
  animation-delay: 1.1s;
}

.animate span:nth-of-type(13) {
  animation-delay: 1.2s;
}

.animate span:nth-of-type(14) {
  animation-delay: 1.3s;
}

.animate span:nth-of-type(15) {
  animation-delay: 1.4s;
}

.animate span:nth-of-type(16) {
  animation-delay: 1.5s;
}

.animate span:nth-of-type(17) {
  animation-delay: 1.6s;
}

.animate span:nth-of-type(18) {
  animation-delay: 1.7s;
}

.one span {
  color: #000000;
  opacity: 0;
  transform: translate(-150px, -50px) rotate(-180deg) scale(3);
  animation: revolveScale 0.4s forwards;
}

.brand-dark {
  color: white;
}

.brand-dark span {
  color: white;
}

@keyframes revolveScale {
  60% {
    transform: translate(20px, 20px) rotate(30deg) scale(0.3);
  }

  100% {
    transform: translate(0) rotate(0) scale(1);
    opacity: 1;
  }
}

.nav-home:hover {
  background-color: rgb(235, 235, 235);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

form.nosubmit {
  margin-left: -50px;
  border: none;
  padding: 0;
}

input.nosubmit {
  border: 1px solid #555;
  width: 100%;
  border-radius: 25px;
  padding: 9px 4px 9px 40px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' class='bi bi-search' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'%3E%3C/path%3E%3C/svg%3E") no-repeat 13px center;
}

