/* 
    Code by kitbur @ GitHub
*/

body {
  font-family: "Poppins", sans-serif;
  background-color: #ede9f2;
  color: #3d3d3d;
  overflow-x: hidden;
}

.font-quicksand {
  font-family: "Quicksand", sans-serif;
}

.section {
  scroll-margin-top: 80px;
  position: relative;
}

/* Buttons */

.primary-button {
  background: linear-gradient(145deg, #ff7e5f, #feb47b);
  color: white;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  border-radius: 9999px;
  padding: 1rem 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(255, 126, 95, 0.4);
  border: none;
}

.primary-button:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 25px rgba(255, 126, 95, 0.5);
}

.store-button {
  background-color: #2c2c2c;
  color: white;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #444;
}

.store-button:hover {
  background-color: #111;
}

/* Hero */

#hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: -1;
  background-color: #555;
}

#hero-background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 30s infinite;
}

/* Wavy Divider */

.wavy-top-divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transform: translateY(-100%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' style='fill:%23F8F7FC;'%3E%3C/path%3E%3C/svg%3E");
}

.wavy-bottom-divider::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 20;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transform: translateY(100%) rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' style='fill:%23F8F7FC;'%3E%3C/path%3E%3C/svg%3E");
}

#characters.wavy-bottom-divider::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' style='fill:%23FFFFFF;'%3E%3C/path%3E%3C/svg%3E");
}

/* Characters */

#characters {
  scroll-margin-top: -50px;
}

#characters-section-bg {
  background-size: cover;
  background-position: center;
  transition: background-image 0.5s ease-in-out;
}

.character-section-overlay {
  background: rgba(237, 233, 242, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#character-nav-sidebar {
  display: flex;
  overflow-x: auto;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
  scrollbar-width: none;
}

#character-nav-sidebar::-webkit-scrollbar {
  display: none;
}

.character-nav-item {
  flex: 0 0 70px;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 0.75rem;
  padding: 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.character-nav-item span {
  display: none;
}

.character-nav-item img {
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  object-fit: cover;
}

.character-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

.character-nav-item.active {
  background-color: white;
  border-color: #feb47b;
  transform: scale(1.1);
}

/* Character (Desktop) */

@media (min-width: 1024px) {
  #character-nav-sidebar {
    display: flex;
    flex-direction: column;
    overflow-x: visible;
    -webkit-mask-image: none;
    mask-image: none;
    gap: 0.75rem;
    padding: 0;
  }

  .character-nav-item {
    flex: 1 1 auto;
    height: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
  }

  .character-nav-item span {
    display: block;
  }

  .character-nav-item img {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
  }
}
