/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.love-note-container {
  perspective: 1500px;
}

.love-note {
  transform-style: preserve-3d;
  transform-origin: top;
  transition: transform 0.3s ease-in-out;
}

.love-note.folded {
  transform: rotateX(180deg);
}

.love-note .top-face {
  cursor: pointer;
  backface-visibility: hidden;
  background-image: url("/assets/whale_front_face-33ff458f.svg");
  background-size: 30%;
  background-color: #070a28;
}

.love-note .bottom-face {
  backface-visibility: hidden;
  transform: rotateX(180deg);
}

.timeline {
  position: fixed;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10;
  opacity: 0.2;
  transition: opacity 0.3s ease;
}

.tick {
  background-color: #333;
  transition: background-color 0.2s ease;
  position: relative;
}

.small-tick {
  width: 10px;
  height: 1px;
  margin-left: 0px;
}

.year-tick {
  width: 12px;
  height: 2px;
  margin-left: -2px;
}

.year-tick::after {
  content: attr(data-year);
  position: absolute;
  right: 15px;
  top: -7px;
  font-size: 12px;
  color: #666;
  opacity: 1;
  transition:
    opacity 0.3s ease,
    right 0.3s ease;
}

.tick.active {
  background-color: red;
}

.tick.active.year-tick::after {
  color: red;
}

.timeline.years-hidden .year-tick::after {
  opacity: 0;
  right: 8px;
  transition:
    opacity 0.3s ease,
    right 0.3s ease;
}
