/* Global Variables*/
:root {
  --black: #000000;
  --white: #ffffff;
  --light-gray: #f4f4f4;
  --red: rgba(255, 60, 0, 1);

  /* Indicator math */
  --slot-size: 20%;
  --indicator-size: 18%;
  --indicator-offset: calc((var(--slot-size) - var(--indicator-size)) / 2);
}

/* 
   Navigation Container
 */
.navigation {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 9.2vh;
  min-height: 56px;
  background: var(--black);
  display: none;
  justify-content: center;
  align-items: center;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  z-index: 999;
}

/* 
   Navigation List
 */
.navigation ul {
  width: 90vw;
  max-width: 420px;
  height: 100%;
  display: flex;
  position: relative;
}

/* 
   Nav Items
 */
.navigation ul li {
  flex: 1;
  list-style: none;
  position: relative;
  z-index: 1;
}

/* 
   Links
 */
.navigation ul li a {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-decoration: none;
}

/* 
   Icons
 */
.navigation ul li a .icon {
  font-size: 1rem;
  color: var(--red);
  transition: 0.4s;
}

.navigation ul li.active a .icon {
  transform: translateY(-35%);
}

/* 
   Text Labels
 */
.navigation ul li a .text {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--red);
  opacity: 0;
  transform: translateY(1rem);
  transition: 0.4s;
}

.navigation ul li.active a .text {
  opacity: 1;
  transform: translateY(0.4rem);
}

/* 
   Indicator
 */
.indicator {
  position: absolute;
  bottom: 30%;
  width: var(--indicator-size);
  aspect-ratio: 1 / 1;
  background: #252423;
  border-radius: 50%;
  border: 0.35rem solid var(--black);
  transition: 0.4s;
}

/* 
   Indicator Movement
 */
.navigation ul li:nth-child(1).active ~ .indicator {
  left: calc(0% + var(--indicator-offset));
}

.navigation ul li:nth-child(2).active ~ .indicator {
  left: calc(20% + var(--indicator-offset));
}

.navigation ul li:nth-child(3).active ~ .indicator {
  left: calc(40% + var(--indicator-offset));
}

.navigation ul li:nth-child(4).active ~ .indicator {
  left: calc(60% + var(--indicator-offset));
}

.navigation ul li:nth-child(5).active ~ .indicator {
  left: calc(80% + var(--indicator-offset));
}

/* 
   Mobile Only
 */
@media (max-width: 500px) {
  .navigation {
    display: flex;
  }
}