@font-face {
  font-family: "VT323";
  src: url(./src/VT323.ttf);
}

* {
  margin: 0;
  padding: 0;
  font-family: "VT323", "monospace", "Roboto", sans-serif;
}

html,
body {
  height: 100%;
  overscroll-behavior: contain;
}

body {
  background: rgba(0, 0, 0, 0.1);
}

#container {
  width: 750px;
  max-width: 90vw;
  height: 100%;
  position: absolute;
  margin: 0 auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #000;
  cursor: cell;
}

.loadingclass {
  height: 100vh;
  width: 100vw;
  background-image: url("./src/loading(1)-min.jpg");
  background-color: #fff;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  position: fixed;
  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;
}

#scores {
  position: absolute;
  font-family: "VT323";
  left: 50%;
  display: grid;
  transform: translate(-50%, 0);
  color: rgba(0, 0, 0, 0.5);
  text-align: center;
  z-index: 9;
  top: 120px;
  grid-template-rows: max-content 190px max-content max-content;
  gap: 5px;
}

#scores a {
  color: #fafafa;
}

#record {
  font-size: 16px;
  font-weight: 400;
  opacity: 0;
  transition: 0.2s;
  color: #fafafa;
  font-family: "VT323";
}

#score {
  font-size: 110px;
  font-weight: 300;
  font-family: "VT323";
}

#donation {
  color: #fafafa;
  z-index: 10;
  position: absolute;
  text-align: center;
  padding-top: 10px;
  opacity: 0;
  top: 0;
  transition: 0.3s;
  width: 100%;
  font-size: 1.3rem;
}

#donation a {
  color: #fafafa;
}

#tweet {
  text-align: center;
  transition: 0.3s;
  padding-top: 10px;
  width: 100%;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.75rem;
}

#instruction {
  margin-top: 20px;
  font-size: 1.2rem;
  transition: 0.2s;
  opacity: 0;
}

#footer {
  position: fixed;
  bottom: 0;
  display: flex;
  width: 100%;
  background-color: #333;
  gap: 10px;
  padding: 5px 15px;
  align-content: center;
}

@media screen and (max-width: 500px) {
  #container {
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border: none;
  }

  #container:after {
    display: none;
  }
}