body {
  font-family: sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
}

#playing-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  box-sizing: border-box;
  padding: 5px;
  width: 270px;
  height: 405px;
  display: flex;
  justify-content: space-between;
  border: 1px solid black;
  border-radius: 5px;
  background: white;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.left {
  align-self: flex-start;
  font-size: 2rem;
  padding: 2px 0 0 8px;
}

.middle {
  align-self: center;
  display: flex;
  flex-direction: column;
  font-size: 5rem;
}

.right {
  align-self: flex-end;
  font-size: 2rem;
  padding: 0 8px 2px 0;
}

.red {
  color: red;
}

.black {
  color: black;
}

.card:hover {
  padding: 1px;
  border: 5px solid purple;
}

.card:active {
  padding: 1px;
  border: 5px solid yellow;
}

h1, h2 {
  text-align: center;
}

#descriptions {
  margin: 0 auto;
}

.two-column-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.column p {
  margin: 0 0 20px 0;
  padding: 24px;
  border-radius: 8px;       
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.column:first-child p:nth-child(even),
.column:last-child p:nth-child(odd) {
  background-color: #f8fafc;
}

.column p:hover {
  transform: scale(1.03);
  z-index: 10;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12); 
  cursor: pointer;
}
