body {
  font-family: var(--ZFrame-font-family-all);
}

h1,
h2,
h3,
h4,
h5,
h6,
.title {
  font-family: var(--ZFrame-font-family-head);
  font-weight: normal;
}

.fixed-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: var(--ZFrame-bg-light-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

@media (prefers-color-scheme: dark) {
  .fixed-bg {
    background-image: var(--ZFrame-bg-dark-url);
  }
}

[data-theme=dark] .fixed-bg {
  background-image: var(--ZFrame-bg-dark-url);
}

[data-theme=light] .fixed-bg {
  background-image: var(--ZFrame-bg-light-url);
}

:root,
[data-theme=light],
[data-theme=dark] {
  --bulma-shadow-color: rgba(0, 0, 0, 0.25);
  --bulma-shadow: 0 0.5em 1em -0.125em var(--bulma-shadow-color),
    0 0px 0 1px var(--bulma-shadow-color);
  --bulma-modal-background-background-color: rgba(0, 0, 0, 0.5);
}

.navbar-spacer {
  height: 75px;
}

.navbar-item {
  gap: 0.25rem;
  /* smaller than the default 0.75rem */
}

.fa-sun {
  color: gold;
}

.fa-moon {
  color: dodgerblue;
}

.fa-desktop {
  color: gray;
}

/* Modal animations */
@keyframes slideDownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-100vh);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal.is-active .modal-background {
  animation: fadeIn 0.5s ease-out forwards;
}

.modal.is-active .modal-card {
  animation: slideDownFadeIn 0.5s cubic-bezier(0, 0, 0, 1) forwards;
}

.qrcode svg {
  width: 250px;
  height: 250px;
  color: var(--bulma-text);
  background-color: var(--bulma-background);
  border: 3px solid var(--bulma-primary);
  border-radius: 0.5rem;
}

.qrcode path {
  fill: var(--bulma-text);
}

/* Thin drop shadow helper */
.has-thin-shadow {
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.4);
}

.fa-slow {
  animation-duration: 3s;
}