body {
  width: 100dvw;
  height: 100dvh;
  margin: 0;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans", Meiryo, sans-serif;
}

p {
  text-align: center;
}

a {
  display: block;
  padding: 10px;
  margin: 5px;
  color: #ddd;
  background: rgb(103, 58, 183);
  border-radius: 10px;
}

button {
  margin: 5px;
  aspect-ratio: 2;
  border-radius: 10px;
  border: none;
  color: black;
}

@media (orientation:portrait) {
  body {
    font-size: 3rem;
  }

  button,
  .timeinput {
    width: 30%;
    font-size: 100%;
  }
}

@media (orientation:landscape) {
  body {
    font-size: 2rem;
  }

  button {
    width: 100px;
  }

  .timeinput {
    width: 200px;
  }
}

.startbutton {
  background: #00cc33;
}

.nextbutton {
  background: #389bff;
}

.timeinput {
  aspect-ratio: 4;
}

/* center the bar */
.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
}

.progress {
  width: 50%;
  height: 30px;
  position: relative;
  background: #333;
  border: 5px solid #333;
  border-radius: 10px;
}

.bar {
  width: 50%;
  height: 30px;
  position: absolute;
  top: 0;
  left: 0;
  background: #ff3838;
  border-radius: 7px;
}

.modal {
  width: 100vw;
  height: 100vh;
  display: none;
}

.modal:target {
  display: flex;
  justify-content: center;
  align-items: center;
}