body {
  background-color: #0F0A0A;
}

#bg, #lightning {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

#bg {
  filter: brightness(35%);
  z-index: -2;
}

#lightning {
  z-index: -1;
  opacity: 0.2;
  animation: lightning 12s infinite;
}

@keyframes lightning {
  0%, 100% {
    opacity: 0;
  }
  45% {
    opacity: 0;
  }
  45.1% {
    opacity: 0.5;
  }
  45.8% {
    opacity: 0;
  }
  47% {
    opacity: 0;
  }
  47.1% {
    opacity: 0.7;
  }
  54% {
    opacity: 0;
  }
}

#content {
  flex: 5;
  margin: 1rem 4%;
}

/*        */
/* Navbar */
/*        */

nav {
  text-transform: uppercase;
  background-image: linear-gradient(#0F0A0AFF 60%, #0F0A0ADD 80%, #FFF0);
}

nav .container-fluid {
  padding: 0 4%;
}

.nav-link {
  color: #FBFBFF;
  user-select: none;
}

.nav-link:hover {
  color: #FFD36B;
}

.navbar-brand {
  user-select: none;
}

.navbar-brand img {
  transition: filter 0.1s;
}

.navbar-brand:hover img {
  filter: sepia(1) saturate(1000%) hue-rotate(-35deg);
}

.navbar-nav {
  font-size: 1.2rem;
}

.underline {
  background-image: linear-gradient(#FFD36B 0 0);
  background-position: 0 100%;
  background-size: 0% 2px;
  background-repeat: no-repeat;
  transition:
    background-size 0.2s,
    background-position 0s 0.2s,
    color 0.2s;
}

.underline:hover, .underline.active {
  background-position: 100% 100%;
  background-size: 100% 2px;
}

/*                         */
/* Music Play/Pause Button */
/*                         */

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 8rem;
  background-image: linear-gradient(#FFF0, #0F0A0ADD 30%, #0F0A0AFF 50%);
  z-index: 2;
}

#pauseBgm {
  font-size: 2rem;
  position: absolute;
  bottom: 30%;
  right: 5%;
}

/*      */
/* Hero */
/*      */

#hero {
  position: relative;
  z-index: 1;
  text-align: right;
  padding: 0 10%;
  max-width: 1024px;
  margin: 4em auto;
  user-select: none;

  animation: fadeSlideUp 1.0s ease-in-out;
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateX(4px) translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

.tagline {
  display: flex;
  align-items: center;
  justify-content: right;
  gap: 16px;
  margin-bottom: 24px;
  padding-left: 20px;
  animation: fadeIn 1s ease-out 0.2s both;
}

.tagline-line {
  height: 1px;
  width: 64px;
  background: #f4c017;
}

.tagline-text {
  font-family: sans-serif;
  font-size: 16px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f4c017;
}

#soul, #on, #sunday {
  font-family: "Jaro", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  letter-spacing: -0.05em;
}

#soul, #sunday {
  font-size: clamp(64px, 14vw, 144px);
  color: white;

  position: relative;
  margin: 0;
}

#soul {
  line-height: 0.7;
}

#sunday {
  line-height: 0.5;
}

#on {
  font-size: clamp(32px, 7vw, 72px);
  line-height: 1;
  color: white;
  margin: 0;
}

/*         */
/* Archive */
/*         */

#archiveFilter {
  max-width: 60%;
  top: 9rem;
  margin-left: 0.5rem;
  user-select: none;
}

#archiveFilter .btn {
  background-color: #0F0A0AAA;
}

#archiveFilter .btn.active {
  background-color: #F8F9FAFF;
}

#archiveFilter .btn:hover {
  color: #FFD36B;
  background-color: #0F0A0A;
}

#archiveFilter .btn.active:hover {
  color: #000;
  background-color: #F8F9FA;
}

#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-auto-rows: 300px;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 8px;
}

/* This class is added in JavaScript. */

.img-container {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  position: relative;
}

#gallery img, #gallery iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;

  transition: transform 0.3s;
}

#gallery img:hover {
  transform: scale(1.2);
  z-index: 1;
}

#extraScrollSpace {
  height: 6rem;
}
