*,
*::before,
*::after {
  box-sizing: border-box;
}
:root {
  font-family: sans-serif;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  /* Prevent font scaling in landscape while allowing user zoom */
}
.hidden {
  display: none !important;
}
/*
.fullscreen {
  width: 100vw;
  width: calc(var(--vw, 1vw) * 100);
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  //overflow: hidden;
}

 */
form {
  width: 100%;
  margin: 0;
  padding: 0;
}
input,
button,
select,
textarea {
  outline: none;
  font-family: inherit;
}
input[type="text"],
input[type="tel"],
input[type="password"],
select,
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: auto;
  overflow: auto;
  border: 1px solid #333;
  border-radius: 0;
  font-size: 1rem;
}
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: #333;
}
textarea {
  resize: none;
}
button,
.button {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  margin: 0;
  padding: 0.5rem 2rem;
  border: 1px solid #333;
  background-color: #fff;
  color: #333;
  white-space: nowrap;
  text-decoration: none;
  text-align: center;
  font-size: 0.75rem;
  cursor: pointer;
}
button[disabled],
.button[disabled],
button[disabled="disabled"],
.button[disabled="disabled"],
button.disabled,
.button.disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none !important;
}
button.primary,
.button.primary {
  background-color: #333;
  color: #fff;
}
button + button,
.button + button {
  margin-top: 0.5rem;
}
.button {
  display: flex;
  justify-content: center;
  align-items: center;
}
label.block {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
}
label.inline {
  display: inline-block;
}
input + label.block,
textarea + label.block {
  margin-top: 1rem;
}
input + button,
input + .button,
textarea + button {
  margin-top: 1rem;
}
button.notify {
  animation: button-notify 50ms ease-out;
}
@keyframes button-notify {
  0%,
  100% {
    transform: translateY(0);
  }
  5% {
    transform: translateY(-0.5rem);
  }
}
.screen {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: calc(var(--vw, 1vw) * 100);
  height: calc(var(--vh, 1vh) * 100);
  background-color: #fff;
  /*
  &.opened {
  }
  &.closed {
    .hidden;
  }
   */
}
/*
.spinner,
.spinner::before,
.spinner::after {
  border-radius: 50%;
  width: 1rem;
  height: 1rem;
  animation: spinner-spin 2s infinite ease-in-out both;
}

.spinner {

  &::before,
  &::after {

  }
}

@keyframes spinner-spin {
  0%,
  80%,
  100% {
    box-shadow: 0 1rem 0 -1.3em;
  }
  40% {
    box-shadow: 0 1rem 0 0;
  }
}
*/
.spinner,
.spinner::before,
.spinner::after {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  animation: spinner-spin 1000ms infinite ease-in-out both;
}
.spinner {
  position: relative;
  transform: translateY(-0.5rem);
  color: #333;
}
.spinner.inverted {
  color: #fff;
}
.spinner::before,
.spinner::after {
  display: block;
  position: absolute;
  top: 0;
  content: "";
}
.spinner::before {
  left: -0.75rem;
  animation-delay: -200ms;
}
.spinner::after {
  left: 0.75rem;
  animation-delay: 200ms;
}
@keyframes spinner-spin {
  0%,
  80%,
  100% {
    box-shadow: 0 0.5rem 0 -0.25rem;
  }
  40% {
    box-shadow: 0 0.5rem 0 0;
  }
}
.status {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  min-height: 2rem;
  overflow: hidden;
  padding: 0.5rem 0.5rem 0.5rem 2rem;
  background-color: #333;
  font-size: 0.75rem;
  color: #fff;
  transform: translateY(100%);
}
.status::before {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-family: "Font Awesome 5 Free", sans-serif;
  font-weight: 900;
  content: "\f059";
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 1rem;
}
.status.show {
  animation: status-show 3s linear;
}
.status.info::before {
  content: "\f058";
}
.status.error::before {
  content: "\f071";
}
@keyframes status-show {
  0% {
    transform: translateY(100%);
  }
  5%,
  95% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100%);
  }
}
.divider {
  width: 100%;
  height: 1px;
  overflow: visible;
  margin: 2rem 0;
  outline: none;
  border: none;
  border-top: 1px solid #aaa;
  text-align: center;
}
.divider.labeled::after {
  display: inline-block;
  padding: 0 0.5rem;
  background-color: #fff;
  font-size: 0.75rem;
  color: #aaa;
  content: attr(data-label);
  transform: translateY(-1rem);
}
.misc-title + .divider {
  margin-top: 0;
}
.main-content {
  padding-left: 3.5rem;
}
.misc {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  min-height: calc(var(--vh, 1vh) * 100);
  overflow: auto;
  background-color: #fff;
  opacity: 1;
  pointer-events: auto;
  /*
  &.opened {
    opacity: 1;
    //transform: translateX(0);
    pointer-events: auto;
  }
   */
}
.misc.closed {
  opacity: 0;
  pointer-events: none;
}
.misc-content {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: calc(100% - 2rem * 2);
  height: auto;
  min-height: calc(var(--vh, 1vh) * 100);
  overflow: visible;
}
.misc-title {
  margin: 0 0 2rem 0;
  font-family: serif;
  font-weight: bold;
}
/*
.icon {
  display: inline-block;
  &.clickable {
    background-color: #edc;
    display: block;
    width: 3rem;
    height: 3rem;
    overflow: hidden;
    line-height: 3rem;
    text-align: center;
  }
  > i {
    font-size: 2rem;
  }
}
 */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 3.5rem;
  height: 100vh;
  overflow: hidden;
}
.nav-item {
  width: 3.5rem;
  height: 3.5rem;
  overflow: hidden;
}
.nav-item.disabled {
  opacity: 0.25;
  pointer-events: none;
}
.nav-item > a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.5rem;
  color: inherit;
  /*
      display: flex;
      justify-content: center;
      align-items: center;
      width: @nav-width;
      height: @nav-width;
      font-size: 1.5rem;
       */
  text-decoration: none;
}
.menu {
  position: absolute;
  z-index: 1;
}
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--vh, 1vh) * 100);
  background-color: rgba(0, 0, 0, 0.75);
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease-out;
}
.menu-overlay.opened {
  opacity: 1;
  pointer-events: auto;
}
.menu-trigger {
  position: fixed;
  top: 0;
  right: 0;
  width: 3.5rem;
  height: calc(var(--vh, 1vh) * 100);
  transform: translateX(3.5rem);
  transition: transform 200ms ease-out;
  /*
    pointer-events: none;
    opacity: 0;
    transition: opacity 1000ms ease-out;

    &.opened {
      opacity: 1;
    }
     */
}
.menu-trigger.opened {
  transform: translateX(0);
}
.menu-trigger > a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
}
.menu-content {
  background-color: #fff;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100% - 3.5rem);
  height: calc(var(--vh, 1vh) * 100);
  overflow: scroll;
  padding: 0 2rem;
  transform: translateX(-100%);
  transition: transform 200ms ease-out;
}
.menu-content.opened {
  transform: translateX(0);
}
.entry {
  /*
  &-form,
  &-list {
    width: calc(~"100% -" @nav-width);
    height: auto;
    overflow: hidden;
  }

   */
}
.entry-form {
  padding: 1rem 1rem 1rem 0;
}
.entry-list-item {
  display: block;
  padding: 1rem 1rem 0 0;
  text-decoration: none;
  color: inherit;
}
.entry-list-item-index {
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  color: #999;
}
.entry-list-item-summary {
  border-bottom: 1px solid #ccc;
  padding-bottom: 1rem;
  text-align: justify;
  text-justify: inter-ideograph;
}
.entry-hint {
  position: fixed;
  top: 0;
  left: 3.5rem;
  padding: 0 1rem 0 3.5rem;
  font-size: 0.75rem;
  color: #999;
}
.entry-hint::before {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 3.5rem;
  height: 3.5rem;
  overflow: hidden;
  line-height: 3.5rem;
  font-size: 1.5rem;
  text-align: center;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-family: "Font Awesome 5 Free", sans-serif;
  font-weight: 900;
  content: "\f30a";
}
.entry-list-item:last-child > .entry-list-item-summary {
  border-bottom: none;
}
.noteinfo {
  width: 100%;
  height: auto;
  overflow: hidden;
}
.noteinfo-title,
.noteinfo-index,
.noteinfo-url {
  text-align: center;
  line-height: 1;
}
.noteinfo-title {
  font-family: serif;
}
.noteinfo-index {
  font-family: "Roboto Slab", sans-serif;
  font-weight: 500;
}
.noteinfo-index::before {
  content: "#";
}
.noteinfo-title + .noteinfo-index {
  margin-top: 1rem;
}
.noteinfo-index + .noteinfo-url {
  margin-top: 1rem;
}
.noteinfo + form {
  margin-top: 2rem;
}
.tippy-box[data-animation=shift-away][data-state=hidden] {
  opacity: 0;
}
.tippy-box[data-animation=shift-away][data-state=hidden][data-placement^=top] {
  transform: translateY(10px);
}
.tippy-box[data-animation=shift-away][data-state=hidden][data-placement^=bottom] {
  transform: translateY(-10px);
}
.tippy-box[data-animation=shift-away][data-state=hidden][data-placement^=left] {
  transform: translateX(10px);
}
.tippy-box[data-animation=shift-away][data-state=hidden][data-placement^=right] {
  transform: translateX(-10px);
}
.tippy-content {
  text-align: justify;
  text-justify: inter-ideograph;
}
#index label.inline {
  width: 1rem;
}
#index #i-index {
  display: inline-block;
  width: calc(100% - 1rem);
}
body {
  margin: 0;
}
