/* 
  Navigation component
  This component is used to navigate between the different sections of the website
*/

navigation-component {
  display: flex;
  position: fixed;
  top: 0;
  left: 50%;
  translate: -50%;
  z-index: 11;
  background: var(--main-gradient);
  margin-top: var(--small-margin);
  padding: var(--small-margin);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  align-items: center;
  justify-content: center;
  animation: enter-top var(--animation-time) ease-in-out;
}

navigation-component .nav-item {
  color: var(--light-orange);
  display: inline-flex;
  align-items: center;
  justify-content: left;
  gap: var(--small-margin);
  text-transform: uppercase;
  margin: 0 var(--small-margin);
  cursor: pointer;
  user-select: none;
  transition: color var(--animation-time) ease-in-out;
  text-decoration: none;
}

navigation-component .nav-item:hover {
  color: var(--orange);
}

navigation-component .nav-item.home {
  color: var(--orange);
  font-weight: bold;
  margin-right: auto;
  margin-left: 0;
  font-family: 'Romana BT', serif;
}

navigation-component.hiding {
  animation: leave-top var(--animation-time) ease-in-out;
}

navigation-component.hidden {
  display: none;
}

navigation-component .icon {
  height: 1.5rem;
  width: auto;
}

/* Responsive design */
/* Desktop */
@media (min-width: 1101px) {
  navigation-component {
    width: 100%;
  }
}

/* Tablet */
@media (min-width: 651px) and (max-width: 1100px) {
  navigation-component {
    width: 80%;
  }
}

/* Phone */
@media (max-width: 650px) {
  navigation-component {
    width: 50%;
  }

  navigation-component .nav-item {
    max-width: 1.5rem;
  }

  navigation-component .nav-item .text {
    display: none;
  }
}

/* Printing styles */
@media print {
  navigation-component {
    display: none;
  }
}
