* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  font-family: "Open Sans", sans-serif;
}
h1,
h2,
h3 {
  font-family: "PT Sans", sans-serif;
}
.timer-container {
  position: absolute;
  bottom: 50px;
  right: 50px;
  padding: 0.5em 1em;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.timer-cap {
  background: rgb(0, 255, 0);
  height: 10px;
  width: 20px;
  border-radius: 5px;
}
.timer-circle {
  border: 10px solid rgb(0, 255, 0);
  background: none;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
}
.highscore-card {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding: 2em;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  font-size: 1.3em;
  background-color: #fff;
  z-index: 10;
}
.highscore-card h3 {
  margin: 2em 0;
}
.highscore-card ol li {
  margin: 0.5em 0;
}
.highscore-card ol li span {
  font-weight: bold;
  margin: 0 4em;
}
#exit-highscore {
  position: absolute;
  bottom: 100px;
  left: calc(50% - 25px);
  width: 50px;
  height: 50px;
  background-color: hsl(0, 66%, 50%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
#exit-highscore:hover {
  cursor: pointer;
  transform: scale(1.1);
  background-color: hsl(0, 66%, 70%);
}
main {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 80px);
  font-size: 1.3em;
}
main h1,
main p {
  margin-bottom: 1em;
}
button {
  border: none;
  padding: 0.5em 1em;
  font-size: 0.8em;
  background: hsl(219, 100%, 36%);
  color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}
button:hover {
  cursor: pointer;
  transform: scale(1.1);
  background: hsl(219, 100%, 50%);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
}
#highscore-btn {
  position: absolute;
  top: 30px;
  left: 20px;
  font-size: 1.2em;
  background: none;
  color: hsl(219, 100%, 36%);
  text-decoration: underline;
  transform: none;
  box-shadow: none;
}

main .text-container {
  width: 50%;
  text-align: center;
}
.question-container,
.end-container {
  width: 100%;
  height: 100%;
  padding: 0 30%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
}
.question-container h3 {
  font-size: 2em;
  margin-bottom: 0.7em;
}
.question-container form div {
  margin: 1em 0.5em;
}
.question-container form div label {
  margin-left: 0.5em;
}
.question-container form button {
  background: hsl(219, 100%, 36%);
}
#highscore-input {
  padding: 0.5em 1em;
  margin-right: 0.5em;
}

@media screen and (max-width: 768px) {
  .timer-container {
    right: 20px;
  }
  .timer-cap {
    height: 6px;
    width: 12px;
  }
  .timer-circle {
    width: 70px;
    height: 70px;
    font-size: 1.3em;
    border: 5px solid rgb(0, 255, 0);
  }
  main {
    font-size: 0.9em;
  }
  .highscore-card {
    font-size: 1em;
  }
  .question-container,
  .end-container {
    padding: 0 10%;
  }
  .question-container h3 {
    font-size: 1.4em;
  }
  .end-container form {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .end-container form input {
    margin-bottom: 1em;
    width: 100%;
  }
  .end-container form button {
    margin-left: 0;
    margin-right: auto;
  }
  .highscore-card {
    top: 0;
    left: 0;
    border: none;
    height: 100vh;
    width: 100vw;
    padding: 5em 0;
  }
}
