.nav-bar {
  position: fixed;
  display: flex;
  align-items: center;
  gap: 0.2em;
  justify-content: center;
  z-index: 99999;
  right: calc(0.5rem + env(safe-area-inset-right));
  top: calc(0.5rem + env(safe-area-inset-top));
  bottom: auto;
  font-size: 1.25em;
  animation: riseDown 1s ease-in-out;
}

@media (hover: none) {
  /* and (pointer: coarse) -> android doesnt specify mobiles as coarse... */
  .nav-bar {
    display: block !important;
    right: 50%;
    transform: translateX(50%);
    bottom: calc(0.5rem + env(safe-area-inset-bottom));
    top: auto;
    animation: riseUp 1s ease-in-out;
  }
}

@keyframes riseUp {
  from {
    transform: translate(50%, calc(100% + env(safe-area-inset-bottom)));
    opacity: 0;
  }
}
@keyframes riseDown {
  from {
    transform: translateY(calc(-100% - env(safe-area-inset-bottom)));
    opacity: 0;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
}
.only-logged-in {
  display: none !important;
}
.logged-in .only-logged-in {
  display: flex !important;
}

.wide-screen-only {
  display: none;
}
@media (min-width: 900px) {
  .wide-screen-only {
    display: inline;
  }
}

.nav-bar ul {
  display: flex;
  height: 2.5em;
  align-items: center;
  margin: 0.25em;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.nav-bar ul,
.nav-bar button {
  list-style: none;
  padding: 0 1rem;
  /*background: var(--text-color);*/
  background: rgba(25, 23, 20, 0.8);
  color: white;
  border-radius: var(--border-radius-perfect-pill);
  line-height: 1;
}
.nav-bar ul li {
  display: flex;
}
.nav-bar ul li:first-of-type {
  margin-left: -0.5em;
}
/*.nav-bar ul li:last-of-type {
  margin-right: -0.5em;
}*/
.nav-bar a /*,
.nav-bar button*/ {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  /*width: 2.5em;*/
  padding: 0.54em 0.6em 0.46em;
  height: 2.5em;
  /*position: relative;*/
}
.nav-bar a i {
  position: relative;
}
.nav-bar a span {
  font-size: 0.9em;
  position: relative;
  top: -0.1em;
  margin-left: 0.35em;
  white-space: nowrap;
}

/*.nav-bar button {
  margin: 0;
  display: flex;
  align-items: center;
  height: 2.4em;
  width: 2.4em;
}*/

.nav-bar svg {
  color: var(--background-color);
}
.nav-bar svg path {
  fill: var(--background-color);
}
.nav-bar svg:nth-of-type(2) {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.25s;
}
.nav-bar a:hover svg:nth-of-type(2),
.nav-bar .active svg:nth-of-type(2) {
  opacity: 1;
}

@media (hover: hover) {
}
.touch-only,
.touch-only-flex {
  display: none !important;
}
@media (hover: none) and (pointer: coarse) {
  .touch-only {
    display: block !important;
  }
  .touch-only-flex {
    display: flex !important;
  }
  .touch-only-grid {
    display: grid;
  }
}

/*
button.back-button {
  display: flex;
  justify-content: center;
  padding: 0;
  position: fixed;
  bottom: calc(0rem + env(safe-area-inset-bottom));
  left: calc(0rem + env(safe-area-inset-left));
  margin: 0 0 1.23em 1em;
  z-index: 99;
}
*/

.has-new-content {
  position: relative;
}
.has-new-content::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0.75em;
  right: 0.25em;
  width: 0.5em;
  height: 0.5em;
  background: lightblue;
  border-radius: 50%;
}
