html {
  overflow: auto;
}

html,
body {
  overscroll-behavior-x: none;
  user-select: none;
}

figure.image {
  position: relative;
}

figure.image img {
  max-height: 90vh;
  width: auto;
  object-fit: contain;
}

figure.image img.is-fullheight {
  max-height: 100vh;
}

.navbar-dropdown {
  max-height: 90vh;
  overflow: auto;
}

@media only screen and (max-width: 960px) {
  .navbar-item.has-dropdown .navbar-dropdown {
    display: none;
  }

  .navbar-item.has-dropdown.is-active .navbar-dropdown {
    display: block;
  }
}

input.input.current-page {
  min-width: initial;
  max-width: initial;
}

.reading-pane {
  margin-bottom: 0 !important;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  appearance: textfield;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked+.slider {
  background-color: #000000;
}

input:focus+.slider {
  box-shadow: 0 0 1px #000000;
}

input:checked+.slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.notifications {
  width: 100%;
  z-index: 99999;
  position: fixed;
  display: flex;
  flex-direction: column;
  padding: 15px;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  align-items: center;
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

progress.progress {
  height: 5px !important;
  margin-bottom: 0 !important;
  direction: rtl;
}

progress.progress::-webkit-progress-value {
  transition: width 600ms;
}

#navbar-toggle {
  top: 5px;
  position: absolute;
  right: 0;
}

#mistake-mode-button {
  top: 5px;
  position: absolute;
  left: 0;
}

.loader {
  border: 9px solid #f3f3f3;
  border-radius: 50%;
  border-top: 9px solid #000000;
  width: 34px;
  height: 34px;
  -webkit-animation: spin 2s linear infinite;
  /* Safari */
  animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.ribbon {
  width: 0px;
  height: 35px;
  background-color: transparent;
  border: solid 15px #4A4A4A;
  border-bottom: solid 15px transparent;
  transition: all 0.2s;
  cursor: pointer;
}

.ribbon:hover {
  height: 65px;
}

.ribbon.is-active {
  height: 65px;
  border-color: #0A0A0A;
  border-bottom-color: transparent;
}

.ribbon.is-active:hover {
  border-color: #4A4A4A;
  border-bottom-color: transparent;
}

.select.select-borderless select {
  border: none;
}

.mistake {
  position: absolute;
}

.mistake-circle {
  border-radius: 50%;
}

.mistake-green {
  background-color: rgba(0, 255, 0, 0.5);
}

.mistake-blue {
  background-color: rgba(0, 0, 255, 0.5);
}

.mistake-red {
  background-color: rgba(255, 0, 0, 0.5);
}

.mistake-orange {
  background-color: rgba(255, 165, 0, 0.5);
}

.mistake-yellow {
  background-color: rgba(255, 255, 0, 0.5);
}

.mistake-purple {
  background-color: rgba(128, 0, 128, 0.5);
}

.mistake-pink {
  background-color: rgba(255, 192, 203, 0.5);
}

.mistake-grey {
  background-color: rgba(128, 128, 128, 0.5);
}

.mistake-text-green {
  color: rgb(0, 255, 0);
}

.mistake-text-blue {
  color: rgb(0, 0, 255);
}

.mistake-text-red {
  color: rgb(255, 0, 0);
}

.mistake-text-orange {
  color: rgb(255, 165, 0);
}

.mistake-text-yellow {
  color: rgb(255, 255, 0);
}

.mistake-text-purple {
  color: rgb(128, 0, 128);
}

.mistake-text-pink {
  color: rgb(255, 192, 203);
}

.mistake-text-grey {
  color: rgb(128, 128, 128);
}

.mistake.is-removable {
  cursor: pointer;
}

.mistake.is-removable.mistake-green:hover {
  background-color: rgba(0, 255, 0, 0.8);
}

.mistake.is-removable.mistake-blue:hover {
  background-color: rgba(0, 0, 255, 0.8);
}

.mistake.is-removable.mistake-red:hover {
  background-color: rgba(255, 0, 0, 0.8);
}

.mistake.is-removable.mistake-orange:hover {
  background-color: rgba(255, 165, 0, 0.8);
}

.mistake.is-removable.mistake-yellow:hover {
  background-color: rgba(255, 255, 0, 0.8);
}

.mistake.is-removable.mistake-purple:hover {
  background-color: rgba(128, 0, 128, 0.8);
}

.mistake.is-removable.mistake-pink:hover {
  background-color: rgba(255, 192, 203, 0.8);
}

.mistake.is-removable.mistake-grey:hover {
  background-color: rgba(128, 128, 128, 0.8);
}

.has-text-green {
  color: #008000;
}

.has-text-blue {
  color: #0000FF;
}

.has-text-red {
  color: #FF0000;
}

.has-text-orange {
  color: #FFA500;
}

.has-text-yellow {
  color: #FFFF00;
}

.has-text-purple {
  color: #800080;
}

.has-text-pink {
  color: #FFC0CB;
}

.has-text-grey {
  color: #808080;
}