body {
  margin: 0;
  padding: 0;
  background: #56b4e9;
  color: white;
  font-family: "Courier New", monospace;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.back-button {
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  font-size: 1.125rem;
  color: white;
  text-decoration: none;
  background-color: transparent;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  z-index: 999;
}

.back-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 1rem;
  box-sizing: border-box;
}

.timerDisplay {
  position: relative;
  padding: 1.2rem 3rem;
  font-size: 2rem;
  font-family: "Courier New", monospace;
  font-weight: bold;
  color: white;
  border-radius: 0.875rem;
  background-color: black;
  margin-bottom: 2rem;
  z-index: 1;
  overflow: hidden;
}

.timerDisplay::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 0.125rem;
  border-radius: 1rem;
  background: linear-gradient(90deg, darkblue, darkred, orange, purple);
  background-size: 300% 300%;
  animation: none;
  z-index: -1;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
}

.timerDisplay.animate::before {
  animation: borderGlow 5s linear infinite;
}

@keyframes borderGlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

.digits {
  font-family: inherit;
}

.colon {
  padding: 0 0.2rem;
}

.buttonArea {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
}

.btn {
  border: 0.125rem solid white;
  color: white;
  background: none;
  border-radius: 50%;
  width: 5.625rem;
  height: 5.625rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn:hover {
  background: white;
  color: black;
}

.center-btn {
  grid-column: 3;
  transform: scale(1.1);
  font-weight: bold;
  z-index: 1;
}

.finishArea {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(0.375rem);
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.modalContent {
  background: #111;
  padding: 2rem 3rem;
  border-radius: 1rem;
  text-align: center;
  border: 0.125rem solid white;
  box-shadow: 0 0 1.25rem rgba(255, 255, 255, 0.2);
  color: white;
  max-width: 90%;
}

.modalContent p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.modalActions {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.hidden {
  display: none;
}

#warningMessage {
  text-align: center;
  margin-top: 1rem;
  font-weight: bold;
  font-size: 1rem;
}

.logs {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem;
  width: 100%;
  max-height: 35vh;
  text-align: center;
}

.logList {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 31.25rem;
  margin-inline: auto;
}

.logList li {
  padding: 0.5rem;
  border-bottom: 0g25rem solid #333;
  font-size: 1rem;
}

#runnerInput {
  padding: 0.5rem;
  border-radius: 0.625rem;
  border: none;
  width: 15.625rem;
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 1rem;
}

#feedback {
  margin-top: 1rem;
  font-size: 1rem;
  color: white;
}

@media (max-width: 37.5rem) {
  .buttonArea {
    grid-template-columns: repeat(3, auto);
  }

  .center-btn {
    grid-column: 2;
  }
}
