.card {
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: clamp(18rem, 32vw, 24rem);
  min-height: clamp(35rem, 52vh, 28rem);
  padding: clamp(1rem, 1.8vw, 1.5rem);
  text-align: center;
  transition: transform 0.3s ease;
  border: 4px solid #000000;
  display: flex;
  will-change: transform;
  flex-direction: column;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  cursor: grab;
}

.card:active {
  cursor: grabbing;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2rem;
  justify-items: center;
  align-items: center;
}

.card li {
  padding: 0.7rem;
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  line-height: 1.25;
}

.card li:last-child {
  border-bottom: none;
}

.card .highlighted {
  grid-column: 1 / -1;
  font-weight: bold;
  color: #99115C;
  font-size: clamp(1.2rem, 3.2vw, 2rem);
  margin-bottom: clamp(0.5rem, 1.2vw, 1rem);
}

/* Pády doleva / doprava */
.card.swipe-left {
  animation: fallLeft 0.6s forwards ease-out;
}
.card.swipe-right {
  animation: flyUpRight 0.6s forwards ease-out;
}

/* Změna barvy pozadí */
body.flash-green {
  background-color: rgba(40, 167, 69, 0.25);  
  transition: background-color 0.4s ease;
}

body.flash-red {
  background-color: rgba(220, 53, 69, 0.25); 
  transition: background-color 0.4s ease;
}

@keyframes fallLeft {
  to {
    transform: translate(-300px, 150px) rotate(-40deg);
    opacity: 0;
  }
}

@keyframes flyUpRight {
  to {
    transform: translate(300px, -150px) rotate(15deg);
    opacity: 0;
  }
}

/* Menší desktopy */
@media (max-height: 820px) {
  .card {
    width: clamp(17.5rem, 30vw, 20rem);
    min-height: clamp(19rem, 48vh, 24rem);
  }

  .card ul {
    gap: 2rem 1.5rem;
  }

  .card .highlighted {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .card li {
    font-size: 1.2rem;
  }
}
@media (max-height: 820px) and (max-width: 1366px) {
  .card {
    min-width: 18.5rem;
    max-width: 18.5rem;
    min-height: 21rem;
  }

  .card ul {
    gap: 1.5rem 1.25rem;
  }

  .card .highlighted {
    font-size: 1.8rem;
  }

  .card li {
    font-size: 1.1rem;
  }
}

/* Telefony */
@media (max-width: 600px) {
  .card {
    min-width: 270px;
    max-width: 270px;
    min-height: 360px;
    padding: 10px;
    margin-bottom: 0px;
    font-size: 0.9rem;
  }

  .card .highlighted {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .card li {
    font-size: 1rem;
  }
}
