@import "https://fonts.googleapis.com/css2?family=Quicksand:wght@400;700&family=Handjet:wght@400;700&display=swap";
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Quicksand, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: radial-gradient(#186a5e, #053339);
  color: #e1eeeb;
  min-height: 100vh;
}
#content {
  max-width: 60rem;
  margin: 2rem auto;
  padding: 2rem;
  background: radial-gradient(#0b201d, #021619);
  border-radius: 16px;
  box-shadow: 0 2px 8px #000c;
}
h1 {
  font-family: Handjet, monospace;
  text-align: center;
  text-transform: uppercase;
  color: #c1e2dd;
  text-shadow: 0 0 4px rgba(35, 34, 34, 0.4);
  font-size: 3.5rem;
  margin: 0;
}
h1 em {
  font-style: normal;
  color: #0ef;
}
header p {
  font-size: 1.2rem;
  margin: 0;
  text-align: center;
  color: #c6f4f2;
}
#player {
  text-align: center;
}
#player h2 {
  color: #54a399;
}
#player p {
  display: flex;
  justify-content: center;
  align-items: center;
}
#player input {
  font: inherit;
  border: 1px solid #54a399;
  background-color: #192f2b;
  border-radius: 4px 0 0 4px;
  padding: 0.25rem;
  color: #d1f0ec;
}
#player button {
  cursor: pointer;
  background-color: #54a399;
  border: 1px solid #54a399;
  padding: 0.4rem 1rem;
  color: #061e1a;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}
#player button:hover {
  background-color: #3c8379;
  border-color: #3c8379;
}
#challenges {
  max-width: 40rem;
  margin: 1rem auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.challenge {
  width: 12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  margin: 1rem auto;
  background: linear-gradient(180deg, #4df8df, rgb(133, 67, 133));
  color: #151014;
  box-shadow: 1px 1px 8px #06feed;
  border-radius: 6px;
}
.challenge.pass {
  background: linear-gradient(180deg, rgb(74, 38, 74), #2e9686);
  color: plum;
}
.challenge button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background: #12352f;
  color: #edfcfa;
  font-size: 1.2rem;
  cursor: pointer;
}
.challenge button:hover {
  background: #051715;
}
.challenge button:disabled {
  cursor: not-allowed;
}
.challenge h2 {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-wrap: nowrap;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  color: #221c18;
}
.challenge.pass h2 {
  color: plum;
}
.challenge-time {
  border: 1px solid #ce46a8;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  margin: 0.5rem;
}
.challenge .active {
  animation: flash 1s infinite;
}
.result-modal {
  border: none;
  border-radius: 8px;
  padding: 2rem;
  background-color: #d7fcf8;
}
.result-modal[open] {
  animation: slide-in-from-top 0.35s ease-out;
}
.result-modal::backdrop {
  background: rgba(0, 0, 0, 0.9);
}
.result-modal h2 {
  font-family: Handjet, monospace;
  margin: 0 0 0.25rem;
  font-size: 3rem;
  text-transform: uppercase;
}
.result-modal progress {
  width: 100%;
  height: 1.5rem;
  margin: 0;
  accent-color: #46cebe;
}
.result-modal p {
  margin: 0.5rem 0;
  font-size: 1.2rem;
}
.result-modal p strong {
  color: #10655b;
}
.result-modal form {
  text-align: right;
}
.result-modal button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background: #12352f;
  color: #edfcfa;
  font-size: 1.2rem;
  cursor: pointer;
}
.result-modal button:hover {
  background: #051715;
}
@keyframes slide-in-from-top {
  0% {
    transform: translateY(-15%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes flash {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  to {
    opacity: 0.5;
  }
}

a.breadcrumb {
  font-size: medium;
  color: white;
}
