.toolbar {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  background-color: var(--color-mass-1);
  box-shadow: 0px 0px 20px 0px var(--shadow-55);
  height: auto;
  min-height: var(--ui-height);
  width: 100vw;
}

.toolbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1024px;
}

.footer {
  box-sizing: border-box;
  display: block;
  margin: 0;
  padding: 0;
  background-color: var(--color-mass-1);
  box-shadow: 0px 0px 20px 0px var(--shadow-55);
  height: auto;
  min-height: var(--ui-height);
  width: 100vw;
}

.toolbar * {
  user-select: none;
}

.toolbar img {
  height: calc(0.7 * var(--ui-height));
  cursor: pointer;
}

.toolbar__menu {
  float: right;
}

.footer__menu {
  box-sizing: border-box;
  text-align: center;
  padding: 1rem;
  height: auto;
  min-height: var(--ui-height);
  display: flex;
  justify-content: center;
  align-items: center;
}

.toolbar__menu button, .footer__menu button, .toolbar__menu a, .footer__menu a {
  display: inline-block;
  width: auto;
  height: 100%;
  margin: 0 0.5rem 0 0.5rem;
  padding: 0;
  background: transparent;
  color: var(--color-details-1);
  border: none !important;
  font-size: 0.9rem;
  font-weight: bold;
  user-select: none;
  cursor: pointer;
}

.toolbar__menu button:hover, .footer__menu button:hover, .toolbar__menu a:hover, .footer__menu a:hover,
button.toolbar__menu--opened {
  color: var(--color-details-2);
  transition: color 0.5s ease;
  background: transparent;
  box-shadow: none;
}

.flash__container--margin-top {
  margin-top: calc(1.5 * var(--ui-height));
}

.flash__container--margin-bottom {
  margin-bottom: calc(1.5 * var(--ui-height));
}

.flash__item {
  color: var(--color-details-1);
  background-color: var(--color-mass-1);
}

@media only screen and (max-width: 768px) {
  .toolbar__inner,
  .toolbar__menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }

  .toolbar {
    padding: 1rem;
  }

  .toolbar img {
    padding-left: 0;
    margin-bottom: 1rem;
  }
  
  .toolbar__menu {
    padding-right: 0;
  }

  .toolbar__menu button,
  .toolbar__menu a,
  .footer__menu button,
  .footer__menu a {
    width: 100%;
    text-align: center;
  }

  .footer__menu > *:not(:first-child),
  .toolbar__menu > *:not(:first-child) {
    margin-top: 8px;
  }

  .footer__menu {
    flex-wrap: wrap;
  }
}
