@import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap");

* {
  font-family: "Source Code Pro", Courier, monospace !important;
}

html,
body {
  background: black;
  color: white;
  text-align: center;
  line-height: 1;
}

header {
  margin: 5vh 0;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.instructions,
.version {
  font-size: 0.8em;
  color: grey;
}

.instructions {
  padding-top: 1em;
}

#game {
  font-size: calc(1rem + 0.2vw);
  margin: 10vh auto 40vh;

  background: black;
  color: white;
}

#info-display {
  display: flex;
  flex-direction: column;
  gap: 15vh;
  padding: 5vh 0 10vh;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: black;
}

#timer-display {
  color: rgba(240, 128, 128, 1); /* lightcoral */
  width: 100%;
  font-size: 1.2em;
}

.floor-number {
  color: rgba(135, 206, 250, 1); /* lightskyblue */
  font-weight: 600;
}

.laser {
  color: rgb(211, 114, 226);
}

.death-message {
  color: rgba(240, 128, 128, 1); /* lightcoral */
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-5px);
  }
  40%,
  80% {
    transform: translateX(5px);
  }
}

.shake {
  animation: shake 0.3s ease-in-out 1;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 1em;
  color: grey;
  font-size: 0.8em;
}

#credits,
#updatelog {
  padding: 10vw;
}

a {
  text-decoration: underline;
  display: block;
}

h2 {
  margin-bottom: 1em;
}

section p,
section ul {
  color: lightgrey;
  margin-bottom: 2em;
  line-height: 1.2;
}

section li {
  line-height: 1.5;
}
