:root {
  --text-color: #343434;
  --primary-color: #678277;
  --primary-color-darker: #3e4f48;
  --section-background-color: #def2e9;
  --background-darker: #bfe0d2;
  --brand-color: #614159;
}

/* firefox scroll bars */
* {
  /* stylelint-disable declaration-property-value-no-unknown */
  scrollbar-width: normal;
  /* stylelint-enable declaration-property-value-no-unknown */
  scrollbar-color: var(--primary-color) transparent;

  &::selection {
    background: var(--primary-color);
    color: var(--section-background-color);
  }
}

/* webkit scrollbars */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  box-shadow: inset 0 0 0 6px var(--primary-color);
  border: 2px solid transparent;
  border-radius: 1rem !important;
}

::-webkit-scrollbar-thumb:window-inactive {
  box-shadow: inset 0 0 0 6px var(--primary-color);
}

::-webkit-scrollbar-thumb:hover {
  box-shadow: inset 0 0 0 6px var(--primary-color);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

html {
  background-color: var(--brand-color);
}

body {
  background: url('/static/background.webp') no-repeat fixed top center;
  padding: 5vh 0;
  margin: 0;
  color: var(--text-color);
  font-family: Exo, sans-serif;
  display: flex;
  flex-flow: column;
  min-height: 100vh;
  box-sizing: border-box;
  align-items: center;
  gap: 2rem;

  @media screen and (width <= 480px) {
    padding: 1vh 1vw;
  }
}

.page,
.breadcrumb-container,
.footer,
.menu {
  width: min(96rem, 98vw);
  grid-column: content;
  box-sizing: border-box;
}

.page {
  overflow-y: auto;
  box-sizing: border-box;
  display: flex;
  flex-flow: column nowrap;
  background: var(--background-darker);
  border-radius: 1rem;
  padding: 2rem;

  @media screen and (width <= 480px) {
    height: unset;
    gap: 2rem;
    padding: 1rem;
  }
}

.menu {
  background: var(--background-darker);
  border-radius: 1rem;
  display: flex;
  justify-content: start;
  align-items: center;
  padding: 0.5rem 1.5rem 0.5rem 0.5rem;
  gap: 1.5rem;

  @media screen and (width <= 480px) {
    flex-flow: column;
    align-items: start;
    gap: 0.5rem;
  }
}

.menu__logo {
  height: 4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;

  @media screen and (width <= 480px) {
    height: 2rem;
  }
}

.menu__img {
  height: 4rem;
  width: 4rem;

  @media screen and (width <= 480px) {
    height: 2rem;
    width: 2rem;
  }
}

.menu__text {
  font-size: 1.5rem;
  font-family: Bodedo, serif;
  color: var(--text-color);
}

.menu__items {
  display: flex;
  align-items: center;
  gap: 1.5rem;

  &:last-of-type {
    margin-left: auto;
  }

  @media screen and (width <= 480px) {
    padding-left: 3rem;
    flex-flow: row wrap;
    row-gap: 0.5rem;

    &:last-of-type {
      display: none;
    }
  }
}

.menu__item {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.25rem;
}

.footer {
  background: var(--background-darker);
  display: flex;
  justify-content: space-between;
  padding: 1.5rem;
  border-radius: 1rem;
  margin-top: auto;

  @media screen and (width <= 480px) {
    flex-direction: column;
    gap: 1rem;
    margin-top: unset;
    padding: 1rem;
  }
}

.footer__links {
  display: flex;
  gap: 3rem;

  @media screen and (width <= 480px) {
    gap: 1rem;
  }
}

.footer__link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
}

.breadcrumb-container {
  display: flex;
  gap: 1rem;
  justify-content: start;
  font-size: 1.25rem;
  margin-top: 1rem;
  border-radius: 1rem;
  min-height: 3rem;

  @media screen and (width <= 480px) {
    flex-flow: column;
    align-items: start;
  }
}

@media screen and (width <= 480px) {
  .breadcrumb-container {
    min-height: unset;
    margin-top: 0;

    &:not(:empty) {
      margin-top: -2rem;
    }
  }
}
