body {
  overflow: auto !important;
}

main {
  display: flex;
  justify-content: center !important;
  height: fit-content !important;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 94.7vh;
  color: black;
  margin: 0 15px;
}

.container h3 {
  padding: 20px;
  background-color: #fff;
}

#history {
  color: white;
}

.match {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 5px;
  padding: 9px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 60%;
  cursor: pointer;
  color: white !important;
  gap: 10px;
}

.card {
  width: 53px !important;
  height: 94px !important;
}

.win {
  border: 5px solid lime;
  background-color: #2dd310c2;
}

.lose {
  border: 5px solid red;
  background-color: #930e0ecf;
}

.match-details {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  width: 100%;
  padding: 10px;
}

.match-details div {
  width: 40%;
  text-align: center;
}

.match-details--collapsed {
  display: none;
  overflow: hidden;
  transition: max-height 1s ease-out;
  width: 100%;
}

.match-details--collapsed.expanded {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-height: 1000px;
}

.timeline {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.player-one,
.player-two {
  display: flex;
  flex-direction: column;
  width: 45%;
}

.player-one {
  background-color: #2b1eff;
  padding: 10px;
  align-items: flex-end;
}

.player-one .start-cards {
  flex-direction: row-reverse;
}

.player-two {
  background-color: #f5410c;
  padding: 10px;
  align-items: flex-start;
}

.start-cards, .end-cards {
  display: flex;
  align-items: center;
}

.start-cards p {
  text-align: center;
}

.end-cards .card {
  display: flex;
  align-items: center;
  justify-content: center;
}

.match .elo {
  width: 20%;
}

@media screen and (max-width: 1250px) {
  .match {
    width: 70vw;
  }
}

@media screen and (max-width: 1050px) {
  .match {
    width: 80vw;
  }
}


@media screen and (max-width: 900px) {
  .match {
    width: 85vw;
  }

  .card {
    margin: 5px !important;
  }

  .player-one,
  .player-two {
    width: 90%;
    align-items: normal;
  }

  .player-one .start-cards {
    flex-direction: row;
  }
}

@media screen and (max-width: 400px) {
  .match {
    width: 90vw;
  }
}