@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(150 86% 28%), hsl(150 86% 18%));
  color: hsl(150 86% 90%);
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 0vh;
  margin: 0vh;
}
img {
  border-radius: 1vmin;
}

/* For title */
#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: 15vw;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* For running */
:root {
  --image-cols: 1;
}
@media (max-aspect-ratio: 12/2) {
  :root {
    --image-cols: 12;
  }
}
@media (max-aspect-ratio: 8/3) {
  :root {
    --image-cols: 8;
  }
}
@media (max-aspect-ratio: 6/4) {
  :root {
    --image-cols: 6;
  }
}
/* @media (max-aspect-ratio: 5/5) { */
/*   :root { */
/*     --image-cols: 5; */
/*   } */
/* } */
@media (max-aspect-ratio: 4/6) {
  :root {
    --image-cols: 4;
  }
}
@media (max-aspect-ratio: 3/8) {
  :root {
    --image-cols: 3;
  }
}
@media (max-aspect-ratio: 2/12) {
  :root {
    --image-cols: 2;
  }
}
#progress-box {
  box-sizing: border-box; /* include margin in width */
  width: 90vw;
  padding: 1vmin;
  display: flex;
  flex-direction: column;
  background-color: hsl(150 86% 45%);
  border-radius: 1vmin;
}
#progress-text {
  padding: 0.2vmin;
}
#progress-bar {
  background-color: hsl(150 86% 80%);
  width: 100%;
  height: 1vmin;
  border-radius: 0.5vmin;
}
#images {
  height: 90vh;
  width: 90vw;
  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: 1 / 1;
  object-fit: cover;
}
