.info_card {
  --scale: 1;
  --translate: calc(50vw - 200px),20px;

  width: 400px;
  min-width: 400px;
  height: 300px;
  position: fixed;

  top: 0;
  left: 0;
  transform: translate(var(--translate)) scale(var(--scale));

  background: #fffefc;

  display: flex;
  flex-direction: column;

  padding: 10px 30px 5px 50px;
  border-radius: 6px;

  box-shadow: inset 35px 0 0 rgba(255, 0, 0, 0.2),
  inset 0 0 0 1px rgba(0, 0, 0, 0.1),
  0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 999;

  transition:
    transform 0.3s ease;

  cursor: default;
}

.info_card.fixed {
  transform: translate(0, 0) scale(var(--scale));
  margin: 8px 8px;
}

.info_card:hover {
  --scale: 1.05;
  transform-origin: center;
  transition: transform 0.3s;
}

.info_card.no-hover:hover {
  --scale: 1;
}

.info_card::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 20px;

  background-image: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.7) 3px,
    transparent 4px
  );

  background-size: 20px 28px; /* vertical spacing between holes */
  background-repeat: repeat-y;

  opacity: 0.6;
  pointer-events: none;
}

.line {
  position: relative;
  height: 28px;
  min-height: 28px;
  display: flex;
  align-items: center;
  font-size: 20px;
  font-family: 'Patrick Hand', cursive;
  color: rgb(0, 0, 0, 0.7);
}

/* draw the actual ruled line */
.line::after {
  content: "";
  position: absolute;
  left: -50px; /* extends under margin area */
  right: -30px;
  bottom: 0;

  height: 1px;
  background: rgba(0, 0, 0, 0.2);
}

.back-to-timeline-button {
  font-family: 'Patrick Hand', cursive;
  font-size: 20px;
  position: relative;
  width: 100px;
  min-height: 30px;
  align-self: center;
  margin-top: 3px;
  cursor: pointer;
  transition: opacity 1s ease, scale 0.15s;

  background: rgba(255, 0, 0, 0.4);
  border: none;
  rotate: -1.8deg;
}

.back-to-timeline-button::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 0;

  width: 30px;
  height: 30px;

  background: rgba(255, 0, 0, 0.5);
}

.back-to-timeline-button:hover {
  scale: 1.1;
  transition: scale 0.15s;
}

.hidden.back-to-timeline-button {
  transition: opacity 0.4s ease;
}
