@import url('https://fonts.googleapis.com/css2?family=Fira+Code&display=swap');

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
  }

  to {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

@keyframes fadeInDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
  }

  to {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

@keyframes fadeInRight {
  from {
    transform: translateX(30px);
    opacity: 0;
    visibility: hidden;
  }

  to {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
}

* {
  margin: 0%;
  padding: 0%;
  box-sizing: border-box;
}

*:focus {
  outline: none;
}

body {
  font-family: 'Fira Code', monospace;
  background: #111;
}

::-webkit-scrollbar {
  display: none;
}

button,
label {
  font-family: 'Fira Code', monospace;
}

.container {
  margin: auto;
  padding: 20px;
  max-width: 500px;
  min-height: 100vh;
  color: #fff;
}

.logo {
  margin: 0 0 20px;
  color: #e79f0d;
  text-align: center;
  letter-spacing: 0.2rem;
}

summary {
  padding: 10px;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.instructions,
.remainder {
  margin: 20px auto;
  border-radius: 5px;
  overflow: hidden;
}

.content {
  padding: 10px;
  color: #8aa29e;
  background: rgba(0, 0, 0, 0.5);
}

.instructions .content {
  line-height: 1.4rem;
  animation: fadeInRight 0.2s linear;
}

.remainder .content .rem {
  margin: 10px auto;
  animation: fadeInUp 0.2s ease-in;
}

.remainder .content hr {
  margin: 20px auto;
  border: none;
  border-top: solid 1px rgba(255, 255, 255, 0.2);
  animation: fadeInRight 0.2s ease-in;
}

.remainder .content .rem:last-child > hr {
  display: none;
}

.remainder .content .rem:nth-child(odd) > hr {
  display: none;
}

.game-space {
  padding: 20px 0;
}

.scores {
  margin: 0 auto 20px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scores span {
  margin: 0 5px;
  padding: 5px 10px;
  font-weight: bold;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.8);
}

.start-number span {
  padding: 3px 6px;
  color: #000;
  background: #e79f0d;
  border-radius: 5px;
}

.timeout,
.result {
  text-align: center;
  animation: fadeInUp 0.3s ease-in;
}

.result {
  color: #e79f0d;
}

.controls {
  display: none;
}

.controls.active {
  display: block;
}

.prompt {
  text-align: center;
}

.form {
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form label {
  margin: 0 10px;
  padding: 10px 20px;
  display: block;
  border-radius: 5px;
  font-weight: bold;
  color: #000;
  background: #e79f0d;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.form input {
  display: none;
}

.form input:disabled ~ label {
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  cursor: default;
}

.btn {
  margin: 20px auto 0;
  padding: 15px 30px;
  display: none;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  background: #e79f0d;
  cursor: pointer;
  animation: fadeInDown 0.3s ease-in;
}

.btn.active {
  display: block;
}
