.card-container {
  width: 800px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  box-sizing: border-box;
}

.card {
  position: relative;
  width: 200px;
  height: 300px;
  z-index: 1;
  transition: transform 0.3s, opacity 0.5s;
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.selected-card-details {
  display: none;
  flex-direction: column;
  align-items: center;
}

.card-placeholder {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.text-content {
  margin-left: 20px;
}

@media (max-width: 768px) {
  .card-container, .selected-card-details {
    width: 100% !important;
  }

  .card-placeholder {
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
  }

  .card-placeholder img {
    padding-bottom: 20px !important;
  }

  .card-placeholder h2,
  .card-placeholder p {
    margin-left: 0 !important;
  }

  .text-content h2 {
    line-height: 1.2 !important;
  }

  .text-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }
}

.card-placeholder:nth-child(1),
.card-placeholder:nth-child(2) {
  padding-bottom: 35px;
}

.card-placeholder h2,
.card-placeholder p {
  margin-left: 20px;
}

.selected-card-details img {
  width: 200px;
  height: 300px;
}

.card:first-child {
  margin-left: 0;
}

.card:not(:first-child) {
  margin-left: -150px;
}

.front {
  display: block;
  width: 100%;
  height: 100%;
}

.card img {
  transition: transform 0.3s, opacity 0.5s;
}

.card:not(.unselectable):not(.raised):hover img {
  transform: translateY(-20px);
  cursor: pointer;
  border-radius: 10px;
}

.card:not(:hover) {
  transition-delay: 0.2s;
}

.card:not(:hover) img {
  transition-delay: 0s;
}

body {
  background-color: white;
}

.draw-again-button {
  display: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  border: none;
}

.fade-in {
  opacity: 0;
  transition: opacity 2s ease-in;
  display: none;
}

.fade-in.fade-in-active {
  opacity: 1;
  display: flex;
}

.card, .selected-card-details, .draw-again-button {
  transition: opacity 2s ease;
}

.raised {
  transform: translateY(-20px);
  cursor: not-allowed;
  border-radius: 10px;
}