@font-face {
  font-family: "Molot";
  src: url("assets/Molot.otf") format("opentype");
}

* {
  margin: 0;
  padding: 0;
  font-family: "Molot", "Roboto", sans-serif;
}
html,
body {
  background-color: #fff;
  height: 100%;
  overscroll-behavior: contain;
  overflow: hidden;
}

#container {
  max-width: 1000px;
  width: 100%;
  height: 100%;
  position: absolute;
  margin: 0 auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(#f6f6f6, #fff);
  cursor: cell;
}

.loadingclass {
  height: 100%;
  width: 100%;
  /* background-image: url("./src/loading-min.jpg"); */
  background-color: #fff;
  background-size: contain;
  background-position: 50% 0%;
  background-repeat: no-repeat;
  position: fixed;
  display: flex;
  justify-content: center;
  top: 0;
  left: 0;
  z-index: 9;
}

.loadingclass img {
  position: absolute;
  bottom: 50px;
  left: 45%;
  width: 10%;
}

.unselectable {
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -o-user-select: none;
  user-select: none;
}

#record,
#score {
  position: absolute;
  left: 50%;
  display: block;
  transform: translate(-50%, 0);
  color: rgba(0, 0, 0, 0.5);
  text-align: center;
}

#score {
  top: 110px;
  font-size: 50px;
  font-weight: 300;
  z-index: -1;
}

#socials,
#donation,
#units,
#info-banner {
  font-size: 1.2rem;
}

ul {
  list-style: none;
}

.important-link {
  border-radius: 5px;
  background-color: #ffd500;
  padding: 2px;
}

#socials {
  text-align: left;
  transition: 0.3s;
  padding: 20px;
  bottom: 0;
  left: 0;
  z-index: 10;
  position: absolute;
}

#units {
  position: absolute;
  transition: 0.3s;
  z-index: 10;
  left: 0;
  top: 0;
  padding: 20px;
  color: #005bbb;
  height: 1.5rem;
  text-decoration: underline;
}

a {
  color: #005bbb;
}

#donation {
  z-index: 10;
  position: absolute;
  text-align: right;
  padding: 20px;
  bottom: 0;
  right: 0;
  transition: 0.3s;
}

#info-banner {
  top: -50px;
  opacity: 0;
  /* width: 100%; */
  text-align: center;
  color: #fff;
  background-color: #28b9ab;
  z-index: 13;
  padding: 10px;
  position: relative;
  transition-duration: 1s;
}

.banner-content {
  width: auto;
  margin: 0 auto;
  display: inline-block;
  transition: 1s;
}
.exit-button {
  float: right;
}

span.fake-link {
  text-decoration: underline;
}
.banner-drop-in {
  top: 0px !important;
  opacity: 0.95 !important;
  transition: 1s;
}

#file-upload {
  position: absolute;
  right: 0;
  margin: 20px;
  z-index: 9;
}

.uploadIcon {
  width: 2rem;
  height: 2rem;
  background-image: url(./assets/UploadPhoto.png);
  background-size: contain;
  background-repeat: no-repeat;
}
@keyframes scrollIn {
  0% {
    top: -50px;
    opacity: 0;
  }
  100% {
    top: 0px;
    opacity: 0.9;
  }
}

@keyframes scrollOut {
  0% {
    top: 0px;
    opacity: 0.9;
  }
  100% {
    top: -50px;
    opacity: 0;
  }
}

@media screen and (max-width: 500px) {
  #socials,
  #donation {
    /* We keep the font size at 0 to hide it from the start screen */
    font-size: 0rem;
  }
  #units,
  #info-banner {
    font-size: 1.05rem;
  }
  #container {
    width: 100vw;
    height: 100%;
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border: none;
  }

  #container:after {
    display: none;
  }
}

.loadingIcon {
  background-image: url("./assets/hand2.png");
  width: 100px;
  height: 100px;
  background-size: contain;
  bottom: 50%;
  position: absolute;
}

#face-selection {
  z-index: 10;
  background-color: #1e1e1e;
  max-width: 1000px;
  width: 100%;
  height: 100%;
  position: absolute;
  margin: 0 auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 5px;
  box-sizing: border-box;
  padding: 10px;
  color: white;
  overflow: scroll;
  height: 100%;
}

.grid > div {
  aspect-ratio: 1;
  background-color: #292929;
  padding: 5px;
  text-align: center;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  background-position: 50% 30%;
  background-repeat: no-repeat;
  background-size: 50%;
}

@-webkit-keyframes rotating /* Safari and Chrome */ {
  from {
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes rotating {
  from {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
.rotating {
  -webkit-animation: rotating 2s linear infinite;
  -moz-animation: rotating 2s linear infinite;
  -ms-animation: rotating 2s linear infinite;
  -o-animation: rotating 2s linear infinite;
  animation: rotating 2s linear infinite;
}

@media screen and (max-width: 340px) {
  #socials {
    bottom: 23px;
  }
  #donation {
    left: 0;
    right: unset;
  }
}

@media screen and (min-width: 800px) {
  #socials {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
    text-align: center;
  }
  #units {
    left: 0;
    top: unset;
    bottom: 0;
  }
}

#uploadMenu {
  position: absolute;
  z-index: 9999;
  top: 0;
  left: 0;
}
