@media only screen and (max-width: 768px) {
  body {
    height: auto;
  }

  .overlay {
    height: 100vh;
  }

  label[for='name'] {
    text-align: center;
    /* margin-left: 20%; */
    display: block;
    width: 100%;
  }

  .players {
    flex-direction: column;
    align-items: center;
    margin-top: 5rem;
    gap: 20px;
  }

  .player-input-names,
  .players {
    flex-direction: row;
  }

  .player1,
  .player2 {
    padding: 1rem;
  }

  .player1 img,
  .player2 img {
    width: 70px;
    height: 70px;
  }

  .player-input-names {
    font-size: 2rem;
  }

  .player-input-names input {
    padding: 0.8rem;
    width: 80%;
    font-size: 1.4rem;
  }

  .player1-input::placeholder,
  .player2-input::placeholder {
    font-size: 11.8px;
  }

  .active--player {
    padding: 1rem;
    font-size: 1.5rem;
  }
}
