﻿html,
body,
#app {
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  font-size: 13.3333px;
}

#app {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

input,
select,
textarea {
    font-family: "Roboto", sans-serif;
    font-size: 13.3333px;
    accent-color: var(--accent);
}

a {
  text-decoration: none;
  color: var(--accent);
}

.spinnerBackground {
  display: grid;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-items: center;
  backdrop-filter: blur(2px);
  cursor: wait;
}

.spinner {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.spinner div {
  animation: spinner 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 40px 40px;
}

.spinner div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin: -4px 0 0 -4px;
}

.spinner div:nth-child(1) {
  animation-delay: -0.036s;
}

.spinner div:nth-child(1):after {
  top: 63px;
  left: 63px;
}

.spinner div:nth-child(2) {
  animation-delay: -0.072s;
}

.spinner div:nth-child(2):after {
  top: 68px;
  left: 56px;
}

.spinner div:nth-child(3) {
  animation-delay: -0.108s;
}

.spinner div:nth-child(3):after {
  top: 71px;
  left: 48px;
}

.spinner div:nth-child(4) {
  animation-delay: -0.144s;
}

.spinner div:nth-child(4):after {
  top: 72px;
  left: 40px;
}

.spinner div:nth-child(5) {
  animation-delay: -0.18s;
}

.spinner div:nth-child(5):after {
  top: 71px;
  left: 32px;
}

.spinner div:nth-child(6) {
  animation-delay: -0.216s;
}

.spinner div:nth-child(6):after {
  top: 68px;
  left: 24px;
}

.spinner div:nth-child(7) {
  animation-delay: -0.252s;
}

.spinner div:nth-child(7):after {
  top: 63px;
  left: 17px;
}

.spinner div:nth-child(8) {
  animation-delay: -0.288s;
}

.spinner div:nth-child(8):after {
  top: 56px;
  left: 12px;
}

.spinnerBackground > div > p {
  color: var(--accent);
  text-align: center;
  margin: 1em 0 0 0;
}

@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

header {
  background-color: var(--accent);
  color: white;
  padding: 0 1vmin;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5em;
  align-items: center;
  justify-items: center;
  width: calc(100vw - 2vmin);
}

header > h1 {
  margin: 0.25em 0 0.25em 2.5em;
  font-weight: lighter;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  text-align: center;
  font-size: 28px;
}

header > h1 > a {
  text-decoration: none;
  color: white;
}

header > button {
  background: none;
  color: white;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  font-weight: bold;
  outline: none;
  line-height: 1em;
}

main {
  overflow: auto;
}

.blankPage {
  text-align: center;
}

.mainPage {
  display: grid;
  align-items: center;
  justify-items: center;
  text-align: center;
  height: 100%;
  margin: 0;
  padding: 0;
}

.mainPage > div > img {
  max-height: 50vh;
  max-width: 50vw;
}

.toasts {
  position: fixed;
  bottom: 0;
  right: 0;
  margin: 0 1em 1em 0;
  padding: 0;
  z-index: 20;
}

.toast {
  background-color: var(--accent);
  color: white;
  border-radius: 0.5em;
  padding: 1em;
  margin: 1em 0 0 1em;
  box-shadow: 2px 2px 5px #666;
  width: 250px;
  position: relative;
  overflow: hidden;
}

.toast.alert { background-color: var(--alert); color: white; }
.toast.warning { background-color: var(--warning); color: #444; }
.toast.success { background-color: var(--success); color: white; }

.toast > time {
  font-style: italic;
}

.toast > b {
  position: absolute;
  font-size: 2em;
  top: 0.5em;
  right: 0.5em;
  line-height: 0.5em;
  cursor: pointer;
  font-weight: normal;
}

.fade-enter {
  opacity:0;
}

.fade-enter-active{
  animation: fadein 0.4s;
}

.fade-leave {
  opacity:1;
}

.fade-leave-active {
  animation: fadein 0.4s reverse;
}

@keyframes fadein {
  from {opacity: 0;}
  to   {opacity: 1;}
}


.locker {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 5;
}

.locked {
  filter: blur(3px);
}

.modalBackground {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  display: grid;
  align-items: center;
  justify-items: center;
  z-index: 10;
  backdrop-filter: blur(5px) brightness(65%);
}

.modalBackground > * {
  background-color: white;
  border: 1px solid var(--accent);
  padding: 2vmin;
  border-radius: 0.5vmin;
}

.modalBackground button {
  background: white;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.5em 1em;
  outline: none;
}

.modalBackground button.primary {
  background: var(--accent);
  color: white;
}

.generalError {
  grid-area: 1 / 1 / span 3 / span 1;
  display: grid;
  align-items: center;
  justify-items: center;
  background: #3973aa;
  color: #fefeff;
  font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
}

.generalError > div > h1 {
  font-size: 15vh;
  font-weight: normal;
  margin: 0;
}

.generalError > div > h2 {
  font-size: 3vh;
  font-weight: normal;
  margin: 0;
}

.userMenu {
  position: relative;
}

.userMenu > span {
  display: block;
  cursor: pointer;
  padding: 0.5em;
  margin: 1px 0 -1px;
}

.userMenu > span > * {
    vertical-align: middle
}

.userMenu > span > img {
    border-radius: 50%;
    height: 32px;
    width: 32px;
}

.userMenu > span > .initials {
  display: block;
  border-radius: 50%;
  height: 32px;
  width: 32px;
  background-color: var(--background);
  color: var(--accent);
  font-weight: bold;
  font-size: 18px;
  line-height: 32px;
  text-align: center;
}

.userMenu > ul {
  position: absolute;
  top: 40px;
  right: -1vmin;
  background-color: var(--accent);
  color: white;
  list-style-type: none;
  padding: 0;
  margin: 0;
  min-width: 100%;
  padding: 0.5em;
  display: none;
  z-index: 3;
  box-shadow: 0 0.5em 0.5em rgba(0,0,0,0.25);
}

.userMenu > ul.expanded {
  display: block;
}

.userMenu > ul > li {
  white-space: nowrap;
  cursor: pointer;
  text-align: right;
  padding: 0 0.5em;
}

.userMenu > ul > li > * {
    vertical-align: middle;
}


    .userMenu > ul > li > img {
        margin-left: 0.5em;
    }

.modal {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  backdrop-filter: blur(3px) brightness(75%);
  z-index: 2;
  display: grid;
  align-content: center;
  justify-content: center;
  cursor: not-allowed;
}

.modal > div {
  background-color: var(--background);
  border: 1px solid var(--accent);
  padding: 2em;
  position: relative;
  box-shadow: 0 0 1em rgba(0,0,0,0.5);
  cursor: initial;
  max-height: 90vh;
  max-width: 90vw;
  overflow: auto;
}
.modal > div > b {
  cursor: pointer;
  position: absolute;
  right: 0.5em;
  top: 0.5em;
  font-size: 2em;
  line-height: 0.75em;
}


@media (max-width: 900px) {
  .hideOnMobile {
    display: none !important;
  }

  body {
    font-size: 16px;
  }

  header > h1 {
    font-size: 1.5em;
  }
}
