* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Quicksand", sans-serif;
}
body {
  background-color: #0a3b2f;
}
.wrapper {
  box-sizing: content-box;
  width: 24em;
  padding: 1.5em 3em;
  background-color: #D0E7D2;
  position: absolute;
  transform: translate(-50%, -50%);
  left: 68%;
  top: 50%;
  border-radius: 0.8em;
  box-shadow: 0 0.9em 2.8em rgba(86, 66, 0, 0.2);
}
.game-container {
  position: relative;
  width: 100%;
  display: grid;
  gap: 0.6em;
}
.stats-container {
  text-align: left;
  margin-bottom: 1.2em;
  font-size: 1.2em;
}
.stats-container span {
  font-weight: 600;
}
.card-container {
  position: relative;
  width: 5.5em;
  height: 5.5em;
  cursor: pointer;
}
.card-before,
.card-after {
  position: absolute;
  border-radius: 5px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #000000;
  transition: transform 0.7s ease-out;
  backface-visibility: hidden;
}
.card-before {
  background-color: #00ffd9;
  font-size: 2.8em;
  font-weight: 600;
}
.card-after {
  background-color: #ffffff;
  transform: rotateY(180deg);
}
.card-container.flipped .card-before {
  transform: rotateY(180deg);
}
.card-container.flipped .card-after {
  transform: rotateY(0deg);
}
.logo {
  margin-bottom: 9em;
  width: 25em;
}
.controls-container {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-color: #0a3b2f;
  top: 0;
}
.controls-container button {
  font-size: 1.5em;
  box-shadow: 0 0.6em 2em rgba(86, 66, 0, 0.2);
}
button {
  border: none;
  border-radius: 0.5em;
  padding: 1em 1.5em;
  cursor: pointer;
}
#start {
  background-color: #9EBF8A;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
}
#stop {
  font-size: 1.1em;
  font-weight: bold;
  display: block;
  margin: 1.1em auto 0 auto;
  background-color: #9EBF8A;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
}
.hide {
  display: none;
}
#result {
  text-align: center;
}
#result h2 {
  color: #D0E7D2;
  font-size: 2.5em;
}
#result h4 {
  color: #D0E7D2;
  font-size: 1.5em;
  margin: 0.6em 0 1em 0;
}
.card-names-wrapper {
  box-sizing: content-box;
  width: 19em;
  padding: 1.5em;
  background-color: #D0E7D2;
  position: absolute;
  transform: translate(-50%, -50%);
  left: 28%;
  top: 50%;
  border-radius: 0.8em;
  box-shadow: 0 0.9em 2.8em rgba(86, 66, 0, 0.2);
}
.card-names-wrapper h3 {
  font-weight: bold;
}
.card-names {
  list-style: none;
  margin-top: 1em;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.card-names li {
  margin: 5px 0;
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
}
.card {
  display: flex;
  align-items: center;
  gap: 15px;
}
.card img {
  width: 50px;
  height: auto;
}
.card p {
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  font-size: 1.1em;
}
.collapsed {
  display: none;
}
.arrow-down::before,
.arrow-up::before {
  font-family: "Font Awesome 5 Free";
  font-size: 1.2em;
  display: inline-block;
  float: right;
  cursor: pointer;
}
.arrow-down::before {
  content: '\f078';
}
.arrow-up::before {
  content: '\f077';
}