body {
  font-family: monospace;
  background-color: #C1E1C1;
}

/* layout */
.cards {
  display: flex;
  gap: 10px;
}

/* reusable card */
.card {
  width: 200px;
  height: 200px;
  perspective: 600px;
}

.card:hover {
  cursor: pointer;
}

.card.is-flipped .card-inner {
  transform: rotateY(180deg);
}

.card-long {
    width: 200px;
    height: 600px;
    perspective: 600px;
}


.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  box-sizing: border-box;
}

.card-front {
  background-size: cover;
  background-position: center;
}

.card:focus .card-front {
    border: 3px solid goldenrod;
    border-radius: 3px;
}
.card:hover .card-front {
    border: 3px solid goldenrod;
    border-radius: 3px;
}

.card-front h3 {
    position:absolute;
    bottom:10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    margin:0;
    padding: 1px 1px;
    background-color: rgba(61, 126, 72, 0.5);
    border-radius: 1px;
}

.card-back {
  background-color: black;
  color: white;
  transform: rotateY(180deg);
  padding: 10px;
  box-sizing: border-box;
}

.poem{
  font-family: monospace;
  color: white;
  text-align: center;
}