@font-face {
  font-family: "Montserrat";
  font-weight: 400;
  font-style: normal;
  src: url("/font/Montserrat-Medium.ttf") format("truetype");
}
@font-face {
  font-family: "Montserrat";
  font-weight: 700;
  font-style: normal;
  src: url("/font/Montserrat-Bold.ttf") format("truetype");
}

/* General */
html {
  background: linear-gradient(175deg, hsl(190 21% 28%), hsl(190 21% 18%));
  color: hsl(190 21% 90%);
  font-family: "Montserrat", sans-serif;
  font-style: normal;
}
a {
  color: #90b0b6;
}

button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

#copyright {
  font-size: 1.5vh;
  font-weight: 400;
  color: hsl(190 21% 90%);
}

/* For title */
#title-page {
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#title-header {
  font-size: 5vh;
  font-weight: 700;
  margin: 0vh;
  padding: 8vh;
}
#title-score {
  font-size: 4vh;
  font-weight: 400;
  margin: 0vh;
  padding: 3vh;
}
#title-message {
  font-size: 3vh;
  font-weight: 400;
  margin: 0vh;
  padding: 3vh;
}
#title-image {
  width: 30vw;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  padding: 3vh;
}

/* For running */
:root {
  --image-cols: 1;
}
@media (max-aspect-ratio: 18 / 4) {
  /* (6 * 3) / (2 * 2) */
  :root {
    --image-cols: 6;
  }
}
@media (max-aspect-ratio: 12 / 6) {
  /* (4 * 3) / (3 * 2) */
  :root {
    --image-cols: 4;
  }
}
@media (max-aspect-ratio: 9 / 8) {
  /* (3 * 3) / (4 * 2) */
  :root {
    --image-cols: 3;
  }
}
@media (max-aspect-ratio: 6 / 12) {
  /* (2 * 3) / (6 * 2) */
  :root {
    --image-cols: 2;
  }
}
#running-game-page {
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#progress-title {
  border-style: solid;
  box-sizing: border-box; /* include margin in width */
  border-color: hsl(190 21% 45%);
  border-radius: 1vmin;
  width: 80vw;
  text-align: center;
  font-size: 3.5vh;
  font-weight: 400;
  margin: 1vh;
  padding: 1vh;
}
#progress-box {
  box-sizing: border-box; /* include margin in width */
  width: 80vw;
  padding: 1vmin;
  display: flex;
  flex-direction: column;
  background-color: hsl(190 21% 45%);
  border-radius: 1vmin;
}
#progress-text {
  padding: 0.2vmin;
}
#progress-bar {
  background-color: hsl(190 21% 80%);
  width: 100%;
  height: 1vmin;
  border-radius: 0.5vmin;
}
#images {
  height: 80vh;
  width: 80vw;
  margin-top: 1vmin;
  display: grid;
  grid-template-columns: repeat(var(--image-cols), 1fr);
  grid-gap: 1vmin;
  justify-content: center;
  align-items: center;
}
#images img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

/* For licenses */
#license-page {
  text-align: center;
}
#licenses-container {
  padding: 5%;
}
