* {
  margin: 0;
  padding: 0;
}
html,
body {
  scroll-behavior: smooth;
  color: black;
  font-size: 18px;
  width: 100%;
}
.main,
.cp {
  margin-left: 10%;
  margin-right: 10%;
  overflow: hidden;
  scroll-snap-align: center;
  transition: 1s;
}
#preloader {
  position: fixed;
  background: white url("../images/loding.gif") no-repeat center;
  background-size: 8%;
  z-index: 100;
  height: 100vh;
  width: 100%;
}
.content {
  background-attachment: fixed;
  backdrop-filter: blur(8px);
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url("../images/bg2.webp");
}
@keyframes scrool {
  0%,
  100% {
    margin-left: 1%;
  }
  50% {
    margin-left: 83%;
  }
}
.slide {
  color: rgb(246, 243, 243);
  font-size: 30px;
  font-weight: bold;
  height: 40px;
  padding: 5px;
  background-color: crimson;
  overflow: hidden;
  text-align: center;
}
.slide div {
  margin: 0%;
}
h1 {
  border: 4px solid rgba(58, 254, 4, 0.795);
  background: rgba(20, 4, 247, 0.481);
  backdrop-filter: blur(6px);
  text-align: center;
  position: sticky;
  overflow: hidden;
}
p {
  backdrop-filter: blur(8px);
  padding: 15px;
  text-align: justify;
  background-color: rgba(204, 201, 201, 0.5);
  color: rgb(0, 0, 0);
}
.even {
  border-right: 8px solid rgb(211, 211, 255);
}
.odd {
  border-left: 8px solid rgb(2, 2, 147);
}
.scon {
  position: absolute;
  height: 90%;
  z-index: 1;
}
.side-nav {
  position: sticky;
  border: 6px solid rgb(179, 243, 172);
  border-radius: 8px;
  width: fit-content;
  height: fit-content;
  padding: 10px;
  background-color: rgb(222, 254, 213);
  color: black;
  font-size: 19px;
  top: 200px;
  float: left;
}
ul {
  list-style: none;
}
.side-nav a {
  text-decoration: none;
  color: rgb(114, 114, 114);
}
.side-nav a:hover {
  color: rgb(0, 99, 16);
}

#characters {
  background: url("./images/bg1.webp");
  background-size: 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  scroll-snap-align: bottom;
}

.cp p {
  background-color: rgba(185, 240, 249, 0.5);
  margin-top: 10px;
}
.cp h1 {
  margin-top: 20px;
}
.info {
  background-color: rgb(28, 55, 175);
  box-shadow: 10px 10px 8px rgba(0, 0, 0, 0.8);
  transition: 0.25s;
  height: fit-content;
  border-radius: 20px;
  padding: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  border: 5px solid rgb(181, 186, 230);
  color: white;
}
.info:hover {
  transform: scale(1.08);
  border: 5px solid rgb(18, 60, 244);
  background-color: rgb(181, 186, 230);
  box-shadow: 25px 25px 16px rgba(0, 0, 0, 1);
}
.info p {
  border-bottom: 5px solid rgb(0, 0, 0);
  border-top: 5px solid rgb(0, 0, 0);
  pointer-events: none;
  width: 90%;
  border-radius: 0 0 14px 14px;
  /* padding-left: 10px; */
  text-align: left;
}
.cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.info img {
  width: max-content;
  display: block;
  margin: 15px;
  height: fit-content;
}
.fotter {
  align-items: center;

  width: 100%;
  text-align: center;
  background-color: rgb(134, 134, 250);
  padding: 10px 0;
  height: 30px;
}
.fotter a {
  text-decoration: none;
  color: black;
  font-weight: bold;
}
#top,
#joly {
  z-index: 1;
  border-radius: 40px;
  border-color: greenyellow;
  border-width: 10px;
  position: sticky;
  bottom: 0;
  background-color: #99d6fa;
  color: white;
  font-size: 10px;
  padding: 5px;
  margin-left: 1%;
}
#joly {
  height: 30px;
  padding: 0;
  border: 2px solid red;
  float: left;
  bottom: 20px;
}

/* Mobile Styles */
@media only screen and (max-width: 800px) {
  .side-nav {
    width: 40px;
    padding: 5px;
    animation: none;
    transform: translateX(-50px);
    transition: 0.6s;
  }
  .side-nav:hover {
    width: fit-content;
    transform: translateX(2px);
  }
  .side-nav a {
    visibility: hidden;
  }
  .side-nav:hover a {
    visibility: visible;
  }
  .main,
  .cp {
    margin-left: 5%;
    margin-right: 5%;
  }
  .slide {
    font-size: 24px;
  }
  h1 {
    font-size: 24px;
  }
  p {
    font-size: 16px;
  }
  .cards {
    gap: 40px;
    margin-bottom: 20px;
  }
  .info {
    padding: 10px;
  }
  .info img {
    width: 200px;
  }
  .info p {
    font-size: 14px;
    padding: 5px;
  }
}
