﻿html,
body,
#app {
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Open Sans';
    font-size: 13.3333px;
}

#app {
  display: grid;
  grid-template-rows: auto 1fr;
}

input,
select,
textarea {
    font-family: 'Open Sans', sans-serif;
    font-size: 13.3333px;
}

:root {
  --accent: #563BD4;
  --background: #FFFFFF;
  --alert: #DC3545;
  --warning: #FFC107;
  --success: #28A745;
  --info: #17A2B8;
}

a {
  text-decoration: none;
  color: var(--accent);
}

header > nav > a {
  text-decoration: none;
  color: white;
  display: inline-block;
  margin: 0 2em;
}

main {
  grid-area: 2 / 1;
  overflow: auto;
  color: #444;
}

.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;
}

.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 2 / span 2;
  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;
}

@media (max-width: 900px) {
  .hideOnMobile {
    display: none !important;
  }

  body {
    font-size: 16px;
  }

  header > h1 {
    font-size: 1.5em;
  }
}

.landing {
  margin: 1em auto;
  max-width: 25%;
}

.landing > .logo {
  text-align: center;
  padding: 1em;
  background-color: #ccc;
}

.landing > .logo > h1 {
  margin: 0;
}

.landing h2 {
  font-weight: normal;
  font-size: 1em;
  margin: 0;
  text-align: center;
}

.landing > .fields {
  display: grid;
  margin: 1em;
  gap: 0.75em;
}

.landing > .fields > p {
  font-size: 0.6em;
  margin: 0;
  text-align: center;
}

.landing > .fields > a {
  border: 1px solid #CCC;
  padding: 0.25em;
  box-shadow: 0 0 5px #CCC;
  color: #444;
  display: flex;
  align-items: center;
}

.landing > .fields > a > img {
  height: 1.5em;
  width: 1.5em;
  vertical-align: middle;
}

.landing > .fields > a > span {
  flex-grow: 1;
  text-align: center;
  color: #999;
  text-transform: uppercase;
  font-size: 0.6em;
  margin: 0 1em;
}

.landing > hr {
  height: 0;
  background: none;
  border: none;
  border-bottom: 1px solid #ccc;
}

.landing > .fields > input {
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 0.5em;
    outline: none;
}

.landing > .fields > button {
    background-color: #3D9BD6;
    padding: 0.5em;
    color: white;
    cursor: pointer;
    outline: none;
    border: none;
    border-radius: 1em;
}

.landing > .fields > p.errorBox {
  color: var(--alert);
}

.loading, .loading *, .landing > .fields.loading > button {
  cursor: wait;
}

@media screen and (max-width: 1200px) and (min-width: 601px) {
    .landing {
        max-width: 50%;
    }
}

@media screen and (max-width: 600px) {
    .landing {
        max-width: 100%;
    }
}