hmtl,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background-color: #4a697d;
  background-image: url("data:image/svg+xml,%3Csvg width='42' height='44' viewBox='0 0 42 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='Page-1' fill='none' fill-rule='evenodd'%3E%3Cg id='brick-wall' fill='%23000000' fill-opacity='0.11'%3E%3Cpath d='M0 0h42v44H0V0zm1 1h40v20H1V1zM0 23h20v20H0V23zm22 0h20v20H22V23z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: #fff;
}

header,
main,
footer {
  margin: 8px;
}

header {
  display: flex;
  gap: 2em;
  align-items: center;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1em;
}

nav li {
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
}

main {
  display: grid;
  place-items: center;
  overflow: auto;
}

section {
  width: 400px;
  margin: 2em 0;
  display: grid;
  grid-template-columns: 1fr auto;
}

section ul{
  grid-column: span 2;
  list-style: none;
  padding: 0;
}

.code-inputs {
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3.5rem;
  font-family: sans-serif;
}

.code-inputs input {
  width: 30px;
  height: 3rem;
  text-align: center;
  font-size: 1.5rem;
  border: 2px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s;
}

.code-inputs input:focus {
  border-color: #0078d7;
}

.keys{
  display: flex;
  gap: 5px;
  padding: 5px;
}

.keys li {
  width: 249px;
  height: 160px;
}

.keys.correct{
  border: 5px solid #40ff40;
}

.keys.incorrect{
  border: 5px solid rgb(150, 40, 40);
}

footer{
  display: flex;
  align-items: center;
  gap: 1em;
}

button{
  min-width: 5em;
  font-size: 2em;
  font-weight: bold;
  height: 100%;
}

#time{
  font-size: 1.5em;
  font-weight: bold;
  background: black;
  color: red;
  padding: 20px;
  margin: 0;
  border-radius: 2px;
}

.animate {
  animation: 0.5s bounceOutDown;
}

.reveal{
  font-size: 2em;
  margin: 0 auto;
}

@keyframes bounceOutDown {
  0% {
    color: red;
    font-weight: bold;
    transform: translate3d(0, 0, 0) scale(1.2);
  }

  40%,
  45% {
    opacity: 1;
    transform: translate3d(0, -5px, 0) scale(0.9);
  }

  to {
    opacity: 0;
    transform: translate3d(0, 200px, 0) scaleY(0.8);
  }
}
