* {
  margin: 0;
  padding: 0;
  border: 0;
}

body {
  font-size: 62.5%;
  background-color: #e9bc86;
  text-align: center;
}

h1 {
  display: none;
  font-size: 3em;
}

#table {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-left: 30px;
  height: 100vh;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  #table {
    flex-direction: row;
  }
}

.card {
  background-color: white;
  padding: 30px 40px 10px;
  margin: 0;
  height: 430px;
  text-align: center;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 15px 30px rgba(30, 0, 0, 0.2), 0 5px 10px rgba(30, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 80%;
}

@media (min-width: 768px) {
  .card {
    width: 430px;
    min-width: 430px;
    padding: 50px 40px 40px;
  }
}
.symbol {
  display: inline-block;
  padding: 5px 10px;
  margin: 5px 9px;
  cursor: pointer;
  transition: all 0.3s;

  animation: fadeIn 0.3s;
  flex: 1 auto;
}

.symbol:nth-child(2n) {
  transform: rotate(50deg);
}

.symbol:nth-child(3n) {
  transform: rotate(-10deg);
}

.symbol:nth-child(3n) {
  transform: rotate(-40deg);
}

.symbol:nth-child(4n) {
  transform: rotate(30deg);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.symbol:hover {
  scale: 1.1;
}

.symbol.correct {
  text-shadow: 0 0 20px green;
}

.symbol.tiny {
  font-size: 3em;
}

.symbol.small {
  font-size: 4em;
}

.symbol.medium {
  font-size: 5em;
}

.symbol.large {
  font-size: 7em;
}

.symbol.huge {
  font-size: 9em;
}

@media (min-width: 768px) {
  .symbol.tiny {
    font-size: 4em;
  }

  .symbol.small {
    font-size: 6em;
  }

  .symbol.medium {
    font-size: 7em;
  }

  .symbol.large {
    font-size: 9em;
  }

  .symbol.huge {
    font-size: 11em;
  }
}

#players,
#lag {
  position: absolute;
  top: 0;
  left: 0;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.5);
  font-size: 1.5em;
  font-family: monospace;
  text-align: left;
  min-width: 80px;
}

#lag {
  left: auto;
  right: 0;
  text-align: right;
}

.player {
  padding: 3px 10px 3px 20px;
  position: relative;
}

.player.ready {
  color: green;
}

.player.ready:before {
  content: "✅";
  position: absolute;
  top: 2px;
  left: 0;
}

#ready {
  position: fixed;
  z-index: 100;
  top: 30%;
  left: 35%;
  text-align: center;
  padding: 30px 0;
  background-color: #1cd159;
  color: white;
  margin: 30px 0 0;
  width: 30%;
  font-size: 2em;
  display: inline-block;
  cursor: pointer;
  border-radius: 10px;
}

#scorer {
  position: fixed;
  bottom: 30px;
  width: 30%;
  left: 35%;
  padding: 20px;
  font-size: 2em;
  background-color: #1cc5d1;
  color: white;
  opacity: 0;
  z-index: 50;
  border-radius: 10px;
}

#scorer.visible {
  animation: fadeIn 0.3s forwards;
}
