html {
  scroll-behavior: smooth;
}
/* My char section */
.char-box {
  transform-style: preserve-3d;
}

.char-box:hover::before {
  opacity: 0.2;
}

.char-box:hover::after {
  opacity: 0.2;
}

.char-name {
  transform: translate3d(0, 0, 50px);
}

.char-box:hover .char-name {
  top: 20px;
  opacity: 1;
}

.char-detail-button {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate3d(-50%, 0, 100px);
  opacity: 0;
  transition: 0.5s;
}

.char-box:hover .char-detail-button {
  opacity: 1;
  bottom: 20px;
}

.char-img {
  transform: translate3d(-50%, -50%, 80px);
}

.char-box:hover .char-img {
  transform: translate3d(-50%, -50%, 100px) scale(0.7) rotate(5deg);
}

@media (min-width: 992px) {
  .nav-link:hover::after {
    content: "";
    display: block;
    border-bottom: 3px solid #ffffff;
    width: 50%;
    margin: auto;
    padding-bottom: 5px;
    margin-bottom: -8px;
  }
}
