@import url("https://fonts.googleapis.com/css2?family=Signika+Negative:wght@300&display=swap");

/* overall management */

:root {
  --background-color: white;
  --main-color: rgb(234, 155, 75);
  --sub-color: rgb(255, 226, 192);
}

body {
  background-color: var(--main-color);
  font-family: "Signika Negative", sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: rgb(3, 94, 130);
}

li {
  list-style: none;
}

html {
  padding: 0;
  margin: 0;
  width: 100%;
}

/* navigation bar part */

.nav {
  display: flex;
  background-color: var(--background-color);
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: 15px;
  padding-bottom: 15px;
}

.nav_left {
  display: flex;
  font-size: 40px;
  margin-left: 20px;
  width: 250px;
}

.nav_middle {
  display: flex;
  padding: 0;
}

.nav_middle li {
  padding: 8px 16px;
}

.nav_middle li a {
  padding: 8px 16px;
  border-radius: 5px;
}

.nav_middle li a:hover {
  background-color: var(--main-color);
  color: white;
}

.nav_right {
  font-size: 30px;
  padding-right: 20px;
  display: flex;
  width: 300px;
  justify-content: right;
}

.nav_right li {
  padding-left: 15px;
}

.nav_right a {
  color: black;
}

.button {
  position: absolute;
  font-size: 30px;
  top: 21px;
  right: 3%;
  display: none;
  background-color: transparent;
  border-color: transparent;
}

@media only screen and (max-width: 1000px) {
  .nav {
    flex-direction: column;
  }

  .nav_left {
    justify-content: left;
    width: 100%;
  }

  .nav_middle {
    flex-direction: column;
    display: none;
  }

  .nav_right {
    padding-top: 10px;
    justify-content: center;
    display: none;
  }

  .button {
    display: block;
  }

  .nav_middle.active,
  .nav_right.active {
    display: flex;
  }
}

/* middle */

.Middle {
  display: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 200px;
  width: 100%;
}

.slide {
  height: 170px;
}

/* one */
.one {
  display: none;
  justify-content: center;
  text-align: center;
  align-items: center;
}

.one h1 {
  font-size: 80px;
  color: rgb(232, 180, 128);
  -webkit-text-stroke: transparent;
  font-weight: 600;
  position: relative;
  padding: 0;
  margin: 0;
}

.one h1::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: white;
  -webkit-text-stroke: 0px white;
  overflow: hidden;
  animation: loading 5s linear;
}

@keyframes loading {
  0% {
    clip-path: polygon(
      0 100%,
      2% 100%,
      18% 100%,
      36% 100%,
      50% 100%,
      62% 100%,
      75% 100%,
      89% 100%,
      98% 100%,
      100% 100%
    );
  }
  10% {
    clip-path: polygon(
      0 100%,
      0 94%,
      13% 96%,
      26% 96%,
      43% 93%,
      57% 92%,
      70% 89%,
      84% 88%,
      100% 92%,
      100% 100%
    );
  }
  20% {
    clip-path: polygon(
      0 100%,
      0 92%,
      9% 85%,
      24% 81%,
      42% 83%,
      56% 85%,
      68% 88%,
      81% 88%,
      100% 82%,
      100% 100%
    );
  }
  30% {
    clip-path: polygon(
      0 100%,
      0 72%,
      12% 77%,
      26% 81%,
      43% 80%,
      58% 75%,
      73% 71%,
      86% 68%,
      100% 67%,
      100% 100%
    );
  }
  50% {
    clip-path: polygon(
      0 100%,
      0 61%,
      13% 55%,
      27% 52%,
      42% 55%,
      57% 61%,
      74% 65%,
      87% 64%,
      100% 58%,
      100% 100%
    );
  }
  60% {
    clip-path: polygon(
      0 100%,
      0 37%,
      9% 43%,
      23% 47%,
      41% 46%,
      60% 43%,
      72% 35%,
      85% 31%,
      100% 30%,
      100% 100%
    );
  }
  75% {
    clip-path: polygon(
      0 100%,
      0 18%,
      15% 17%,
      29% 18%,
      43% 24%,
      57% 26%,
      73% 23%,
      87% 19%,
      100% 16%,
      100% 100%
    );
  }
  80% {
    clip-path: polygon(
      0 100%,
      0 13%,
      13% 15%,
      27% 13%,
      41% 10%,
      56% 6%,
      72% 7%,
      82% 9%,
      100% 16%,
      100% 100%
    );
  }
  90% {
    clip-path: polygon(
      0 100%,
      0 0,
      13% 5%,
      28% 6%,
      43% 6%,
      54% 7%,
      70% 9%,
      84% 8%,
      100% 5%,
      100% 100%
    );
  }
  100% {
    clip-path: polygon(
      0 100%,
      0 0,
      9% 0,
      26% 0,
      41% 0,
      52% 0,
      67% 0,
      82% 0,
      100% 0,
      100% 100%
    );
  }
}

/* two */
.two {
  display: none;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.two section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
}

.two ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.two ul li {
  color: white;
  font-size: 80px;

  text-shadow: #fff 0.006em 0.006em 0.007em, #9c9c9c 1px 1px 1px,
    #9c9c9c 1px 2px 1px, #9c9c9c 1px 3px 1px, #9c9c9c 1px 4px 1px,
    #9c9c9c 1px 5px 1px, #9c9c9c 1px 6px 1px, #9c9c9c 1px 7px 1px,
    #9c9c9c 1px 8px 1px, #9c9c9c 1px 9px 1px, #9c9c9c 1px 10px 1px,
    #9c9c9c 1px 11px 1px, #9c9c9c 1px 12px 1px,
    rgba(16, 16, 16, 0.4) 1px 18px 6px, rgba(16, 16, 16, 0.4) 1px 22px 10px,
    rgba(16, 16, 16, 0.4) 1px 26px 35px, rgba(16, 16, 16, 0.4) 1px 30px 65px,
    #fff -0.5em -0.1em 100px;

  animation: ani 1s infinite ease-in-out;
  animation-delay: calc(0.1s * var(--i));
}

@keyframes ani {
  0%,
  100% {
    margin-top: 0;
    text-shadow: #fff 0.006em 0.006em 0.007em, #9c9c9c 1px 1px 1px,
      #9c9c9c 1px 2px 1px, #9c9c9c 1px 3px 1px, #9c9c9c 1px 4px 1px,
      #9c9c9c 1px 5px 1px, #9c9c9c 1px 6px 1px, #9c9c9c 1px 7px 1px,
      #9c9c9c 1px 8px 1px, #9c9c9c 1px 9px 1px, #9c9c9c 1px 10px 1px,
      #9c9c9c 1px 11px 1px, #9c9c9c 1px 12px 1px,
      rgba(16, 16, 16, 0.4) 1px 18px 6px, rgba(16, 16, 16, 0.4) 1px 22px 10px,
      rgba(16, 16, 16, 0.4) 1px 26px 35px, rgba(16, 16, 16, 0.4) 1px 30px 65px,
      #fff -0.5em -0.1em 100px;
  }

  50% {
    margin-top: -20px;
    text-shadow: #fff 0.006em 0.006em 0.007em, #9c9c9c 1px 1px 1px,
      #9c9c9c 1px 2px 1px, #9c9c9c 1px 3px 1px, #9c9c9c 1px 4px 1px,
      #9c9c9c 1px 5px 1px, #9c9c9c 1px 6px 1px, #9c9c9c 1px 7px 1px,
      #9c9c9c 1px 8px 1px, #9c9c9c 1px 9px 1px, #9c9c9c 1px 10px 1px,
      #9c9c9c 1px 11px 1px, #9c9c9c 1px 12px 1px,
      rgba(16, 16, 16, 0.4) 1px 38px 26px, rgba(16, 16, 16, 0.4) 1px 42px 30px,
      rgba(16, 16, 16, 0.4) 1px 46px 65px, rgba(16, 16, 16, 0.4) 1px 50px 95px,
      #fff -0.5em -0.1em 100px;
  }
}

/* three */

.three {
  display: flex;
  justify-content: center;
}

.three section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.three h1 {
  color: var(--main-color);
  font-size: 80px;
  position: relative;
}

.three h1::before {
  color: var(--background-color);
  content: attr(data-text);
  top: 0;
  left: 0;
  overflow: hidden;
  position: absolute;
  animation: threeloading 5s ease-out forwards;
}

@keyframes threeloading {
  0% {
    width: 0;
  }
  20% {
    width: 50%;
  }
  40% {
    width: 25%;
  }
  60% {
    width: 75%;
  }
  80% {
    width: 50%;
  }
  100% {
    width: 100%;
  }
}

/* four */
.four {
  display: flex;
  justify-content: center;
  align-items: center;
}

.wrap {
  color: var(--background-color);
  font-size: 60px;
}

/* switch */

.switch {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.dots {
  padding: 0;
  margin: 0;
}

.dot {
  list-style: none;
  display: inline;
  background-color: var(--background-color);
  color: var(--background-color);
  border-radius: 50%;
  width: 0;
  padding: 5px;
  margin: 5px;
}

.dot:hover {
  width: 17px;
  border-radius: 5px;
  background-color: #e3e3e3;
}

/* highlight */
.event {
  display: block;
  margin: 10px 15%;
}

.highlight {
  background-image: url("./highlight.png");
  border-radius: 10px;
  padding: 5px 0;
  height: 105px;
  opacity: 0.5;
  border: 3px solid var(--main-color);
}

.highlight h1 {
  text-align: center;
  color: var(--background-color);
  opacity: 1;
  padding: 0px 0;
  margin-top: 30px;

  position: relative;
  text-decoration: none;
}

.highlight h1:hover {
  font-size: 40px;
  margin-bottom: 5px;
}

.highlight h1::before {
  content: "";
  position: absolute;
  width: 60%;
  height: 4px;
  border-radius: 4px;
  background-color: white;
  bottom: 0;
  left: 20%;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
}

.highlight h1:hover::before {
  transform-origin: left;
  transform: scaleX(1);
}
/* bottom part */

.Bottom {
  background-color: var(--background-color);
  border-top: 1px solid black;
  width: 100%;
  height: 100%;
  display: column;
  justify-content: center;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.tools {
  display: block;
  margin-top: 15px;
  margin-left: 15%;
  margin-right: 15%;
  margin-bottom: 30px;
  width: 70%;

  font-size: 25px;
  font-weight: 100;
}

.link {
  text-align: center;
  border: 2px solid var(--main-color);
  font-size: 20px;
  width: 100%;
}

.chapter {
  width: 100%;
  background-color: var(--sub-color);
}

/* Ad */
.Ad-Bottom,
.Ad-Top {
  display: block;
}

.ad {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Sub-Bottom */
.Sub-Bottom {
  background-color: var(--background-color);
  width: 100%;
  height: 20px;

  margin-top: 30px;
  padding-top: 10px;

  font-size: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* for mobile */
@media only screen and (max-width: 915px) {
  .Middle {
    width: 80%;
  }
  .one h1 {
    font-size: 70px;
    font-weight: 600;
  }

  html,
  body {
    overflow-x: hidden;
  }
}

/* for Galaxy Fold */
@media only screen and (max-width: 653px) {
  .one h1 {
    font-size: 50px;
    font-weight: 600;
  }
}
