html, body {
  font-family: monospace;
}

body {
  height: 100vh;
  /* background-image: url("https://cdn.filtergrade.com/wp-content/uploads/2016/01/03033446/Blue-Sky.jpg"); */
  background-size: cover;
  overflow: hidden;
}

.header {
  z-index: 1000;
  position: absolute;
  left: 10px;
  top: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.5lh;
}

.header .form-row {
  display: flex;
  align-items: center;
  gap: 0.5lh;
}

.header .form-row label {
  flex-shrink: 0;
}

.header input,
.header select,
.header select option {
  font-family: monospace;
  font-size: unset;
}

.header .buttons {
  margin-top: 0;
}


.header .all-prompt #all-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5lh 1lh;
}

.header .all-prompt #all-list a {
  color: inherit;
  text-decoration: underline;
  background-color: white;
}

.header .all-prompt #all-list a:hover {
  opacity: 0.8;
}

.header .save-prompt input {
  font: inherit;
  padding: 2px 4px;
}

.header .save-prompt input:invalid {
  border: 1px solid red;
  outline: 1px solid red;
}

.header button,
.header a button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  background-color: white;
}

.header button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.header.all-open #btn-all,
.header.save-open #btn-save,
.header.help-open #btn-help {
  opacity: 0.5;
}

.header .help-prompt {
  max-width: 320px;
  padding: 0.5lh;
  background-color: white;
  font-style: italic;
}

.header .help-prompt p {
  margin: 0 0 0.5lh;
  font-size: inherit;
}

.header .help-prompt p:last-child {
  margin-bottom: 0;
}

.add-image-prompt {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  padding: 0.5lh;
  background-color: white;
  font: inherit;
}

.add-image-prompt input {
  font: inherit;
  padding: 2px 4px;
}

#image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

#image-container img {
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
  transform: translate3d(0, 0, 0) perspective(400px);
  transition: filter 200ms;
}

.container:not(.viewer) #image-container img:hover {
  cursor: grab;
}

#image-container img.active {
  cursor: grabbing !important;
  filter: brightness(1.03);
}

p.error {
  margin: 30px 80px;
  cursor: pointer;
  border: none !important;
  background-color: unset !important;
  color: red;
  animation: growy 1.4s cubic-bezier(0.65, 0.05, 0.36, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  user-select: none;
}

@keyframes rotate {
  0% { transform: scaleX(1.7); }
  50% { transform: scaleX(0.6); }
  100% { transform: scaleX(1.7); }
}

@keyframes back2front {
  from {
    transform: scale(0.5);
    filter: blur(3px);
  }
  to {
    transform: scale(1.5);
    filter: blur(0px);
  }
}

@keyframes growy {
  0% {
    transform: scaleX(1) scaleY(2);
  }
  50% {
    transform: scaleX(1.7) scaleY(0.5);
  }
  100% {
    transform: scaleX(1) scaleY(2);
  }
}

.container {
  cursor: default;
}

.container.loading {
  cursor: wait;
}

.container.viewer .header {
  display: none;
}
