/* ========================
Timeline Wrapper
======================== */

.bg-mashup {
  padding: 100px 0;
}

.timeline-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
  position: relative;
  padding: 0 0 28vw 0;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 20vw;
  left: 50%;
  width: 2px;
  height: calc(100% - 20vw);
  background-color: #942C32;
  opacity: 1;
}

.timeline-circle {
  width: 20vw;
  height: 20vw;
  border-radius: 100%;
  border: solid 2px #942C32;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  position: absolute;
  z-index: 1;
  opacity: 1;
  top: 0;
}

.timeline-heart {
  position: absolute;
  width: 7vw;
  height: 6.3vw;
  top: 17vw;
  left: calc(50% + 15vw);
  animation: animateHeart 2s infinite;
  z-index: 99999999;
}

.timeline-heart:hover {
  animation: animateHeartZoom 2s infinite;
}

.timeline-heart::before,
.timeline-heart::after {
  content: "";
  position: absolute;
  top: 0;
  width: 3.64vw;
  height: 5.6vw;
  border-radius: 3.5vw 3.5vw 0 0;
  background: #942C32;
}

.timeline-heart::before {
  left: 3.5vw;
  transform: rotate(-45deg);
  transform-origin: 0 100%;
}

.timeline-heart::after {
  left: 0;
  transform: rotate(45deg);
  transform-origin: 100% 100%;
}

.timeline-text {
  text-align: center;
  z-index: 999;
  position: relative;
  color: #ffffff !important;
}

.timeline-text h2 {
  font-size: 4vw;
  margin: 0;
  padding: 0;
}

.timeline-text p {
  font-size: 2vw;
  line-height: 2.2vw;
}

.timeline-text p small {
  font-size: 1.3vw;
  line-height: 10px;
}

.timeline-wrapper .timeline-text {
  margin-top: 0;
  z-index: 999;
  width: 50vw;
  display: flex;
  align-content: center;
  justify-content: center;
  flex-direction: column;
  z-index: 999;
}

.timeline-wrapper .timeline-text p {
  margin: 0 !important;
}

.timeline-fox {
  width: 10vw;
  height: auto;
  position: absolute;
  top: 22vw;
  left: calc(50% - 8vw);
  object-fit: contain;
  animation: fox 4s infinite;
  -webkit-animation: fox 4s infinite;
  z-index: 9999;
}

.timeline-cat {
  width: 9vw;
  height: auto;
  position: absolute;
  top: 52vw;
  left: calc(50% - 1.5vw);
  object-fit: contain;
  z-index: 9999;
}

.timeline-cat.animate-start {
  animation: frontflip 2s ease forwards;
  -webkit-animation: frontflip 2s ease forwards;
}

.timeline-cat.animate-hover {
  animation: backflip 2s ease forwards;
  -webkit-animation: backflip 2s ease forwards;
}

.timeline-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-top: -15%;
}


@media screen and (max-width: 1200px) {
  .timeline-section {
    margin-top: -20%;
  }
}

@media screen and (max-width: 768px) {
  .timeline-section {
    margin-top: -30%;
  }
}



.timeline-section.timeline-first {
  margin-top: 5vw;
}

@media screen and (max-width: 768px) {

  .timeline-section.timeline-first {
    margin-top: 15vw;
  }
}

.timeline-section-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.timeline-section-wrapper .timeline-text {
  color: #942C32;
  font-size: 2vw;
  width: 17.5vw;
  z-index: 999;
}

.timeline-section-wrapper.timeline-left .timeline-text {
  text-align: right;
}

.timeline-section-wrapper.timeline-right .timeline-text {
  text-align: left;
}

.timeline-right {
  margin-left: 30vw;
  width: 17.5vw;
  height: 17.5vw;
}

.timeline-image {
  position: relative;
}

.timeline-right .timeline-image::before {
  content: '';
  position: absolute;
  top: calc(50% + 2px);
  left: -5vw;
  width: 5.5vw;
  height: 2px;
  background-color: #942C32;
  opacity: 1;
}

.timeline-right .timeline-image::after {
  content: '';
  position: absolute;
  top: calc(50% - 0.225vw);
  left: -6.63vw;
  width: 1.0vw;
  height: 1.0vw;
  border-radius: 100%;
  background-color: #942C32;
  opacity: 1;
}

/* Left */

.timeline-left {
  margin-right: 30vw;
  width: 17.5vw;
  height: 17.5vw;
}

.timeline-left .timeline-image::before {
  content: '';
  position: absolute;
  top: calc(50% + 2px);
  right: -5.2vw;
  width: 5.0vw;
  height: 2px;
  background-color: #942C32;
  opacity: 1;
}

.timeline-left .timeline-image::after {
  content: '';
  position: absolute;
  top: calc(50% - 0.225vw);
  right: -6.86vw;
  width: 1.0vw;
  height: 1.0vw;
  border-radius: 100%;
  background-color: #942C32;
  opacity: 1;
}

/* End left */

.timeline-image {
  width: 17.5vw;
  height: 17.5vw;
  border-radius: 100%;
  border: solid 2px #942C32;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  z-index: 1;
  opacity: 1;
  top: 0;
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 100%;
  z-index: 9999;
  position: relative;
}

.internationally-cultured-individual {
  display: flex;
  margin-top: -24vw;
  opacity: 0;
}

.internationally-cultured-individual.animate-start {
  animation: up-fade-in 2s ease forwards;
}

.internationally-cultured-individual svg {
  width: 33vw;
  height: auto;
  margin: 0 auto;
  z-index: 999;
}

.timeline-section.animate-left {
  opacity: 0;
}

.timeline-section.animate-left.animate-start {
  animation: fadeInLeft 1s ease forwards;
  animation-delay: 0.3s;
}

.timeline-section.animate-right {
  opacity: 0;
}

.timeline-section.animate-right.animate-start {
  opacity: 0;
  animation: fadeInRight 1s ease forwards;
  animation-delay: 0.3s;
}

/* ========================
Responsive Timeline
======================== */

@media screen and (max-width: 767px) {

  /* ========================
Timeline Wrapper
======================== */

  .bg-mashup {
    padding: 60px 0;
  }

  .timeline-wrapper::before {
    top: 30vw;
    height: calc(100% - 30vw);
  }

  .timeline-circle {
    width: 30vw;
    height: 30vw;
  }

  .timeline-text h2 {
    font-size: 2rem;
  }

  .timeline-text p {
    font-size: 1.3rem;
    line-height: 1.3rem;
  }

  .timeline-text p small {
    font-size: 1.2rem;
    line-height: 10px;
  }

  .timeline-wrapper .timeline-text {
    margin-top: 0;
    z-index: 999;
    width: 100%;
    display: flex;
    align-content: center;
    justify-content: center;
    flex-direction: column;
  }

  .timeline-wrapper .timeline-text p {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .timeline-fox {
    width: 15vw;
    top: 33vw;
    left: calc(50% - 12vw);
  }

  .timeline-cat {
    width: 14vw;
    top: 80vw;
  }


  .timeline-section.timeline-first {
    margin-top: 15vw;
  }

  .timeline-section-wrapper .timeline-text {
    color: #942C32;
    font-size: 1.4rem;
    width: 30.0vw;
    z-index: 999;
  }

  .timeline-right {
    margin-left: 42.5vw;
    width: 30.0vw;
    height: 30.0vw;
  }

  /* Left */

  .timeline-left {
    margin-right: 42.5vw;
    width: 30.0vw;
    height: 30.0vw;
  }

  .timeline-left::before {
    content: '';
    position: absolute;
    top: calc(50% + 2px);
    right: -5.2vw;
    width: 5.0vw;
  }

  .timeline-left::after {
    content: '';
    position: absolute;
    top: calc(50% - 0.225vw);
    right: -6.86vw;
    width: 1.0vw;
    height: 1.0vw;
  }

  /* End left */

  .timeline-image {
    width: 30.0vw;
    height: 30.0vw;
  }

  .internationally-cultured-individual svg {
    width: 66vw;
  }

  .timeline-heart {
    position: absolute;
    width: 14vw;
    height: 12.6vw;
    top: 25vw;
    left: calc(50% + 15vw);
    animation: animateHeart 2s infinite;
    z-index: 99999999;
  }

  .timeline-heart::before,
  .timeline-heart::after {

    width: 7.28vw;
    height: 11.2vw;
    border-radius: 7vw 7vw 0 0;
  }

  .timeline-heart::before {
    left: 7vw;
  }

}

@media screen and (max-width: 500px) {
  .timeline-wrapper {
    padding: 0 0 34vw 0;
  }

  .timeline-wrapper::before {
    top: 50vw;
    height: calc(100% - 50vw);
  }

  .timeline-circle {
    width: 50vw;
    height: 50vw;
  }

  .timeline-text h2 {
    font-size: 1.5rem;
  }

  .timeline-text p {
    font-size: 1rem;
    line-height: 1rem;
  }

  .timeline-text p small {
    font-size: 0.9rem;
    line-height: 10px;
  }

  .timeline-fox {
    width: 18vw;
    top: 53vw;
    left: calc(50% - 15vw);
  }

  .timeline-cat {
    width: 18vw;
    top: 100vw;
  }

  .timeline-heart {
    top: 48vw;
  }

}

/* ========================
Animation Keyframes
======================== */

@keyframes flip-up {
  0% {
    transform: rotateX(0deg);
    background-color: #942C32;
  }

  75% {
    transform: rotateX(0deg);
    background-color: #942C32;
  }

  87.4% {
    background-color: #942C32;
  }

  87.5% {
    background-color: #942C32;
  }

  100% {
    transform: rotateX(-180deg);
    background-color: #942C32;
  }
}

@keyframes flip-up-text {
  0% {
    visibility: hidden;
    transform: rotateX(0deg);
  }

  75% {
    visibility: hidden;
    transform: rotateX(0deg);
  }

  87.4% {
    visibility: hidden;
  }

  87.5% {
    visibility: visible;
  }

  100% {
    visibility: visible;
    transform: rotateX(180deg);

  }
}

@keyframes flip-up-top-color {
  0% {
    border-top-color: #942C32;
  }

  87.4% {
    border-top-color: #942C32;
  }

  87.5% {
    border-top-color: #942C32;
  }

  100% {
    border-top-color: #942C32;
  }
}

@keyframes flip-up-bottom-color {
  0% {
    border-bottom-color: #942C32;
  }

  87.4% {
    border-bottom-color: #942C32;
  }

  87.5% {
    border-bottom-color: #942C32;
  }

  100% {
    border-bottom-color: #942C32;
  }
}


/* ========================
Timeline Speech Bubbles
======================== */

.timeline-speech-bubble {
  background-color: #942C32;
  border: solid 1px #942C32;
  border-radius: 15px;
  padding: 10px;
  font-size: 0.8rem;
  position: relative;
  transform: rotateX(90deg);
}

.timeline-speech-bubble span {
  color: #ffffff !important;
  display: block;
}

.timeline-speech-bubble.animate-start {
  animation: flip-up 2.5s ease;
  transform: rotateX(180deg);
  background-color: #942C32;
}

.timeline-speech-bubble.animate-start span {
  color: #000000;
  animation: flip-up-text 2.5s ease;
  transform: rotateX(180deg);
}

.timeline-left .timeline-speech-bubble::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-bottom-color: #942C32;
  border-top: 0;
  margin-left: -8px;
  margin-top: -8px;
}

.timeline-left .timeline-speech-bubble.animate-start::after {
  animation: flip-up-bottom-color 2.5s ease;
  border-bottom-color: #942C32;
}

.timeline-right .timeline-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-top-color: #942C32;
  border-bottom: 0;
  margin-left: -8px;
  margin-bottom: -8px;
}

.timeline-right .timeline-speech-bubble.animate-start::after {
  animation: flip-up-top-color 2.5s ease;
  border-top-color: #942C32;
}

.timeline-speech-bubble span {
  color: #ffffff !important;
}

.timeline-left .timeline-speech-bubble {
  margin-bottom: 20px;
}

.timeline-right .timeline-speech-bubble {
  margin-top: 16px;
}

.timeline-image {
  margin-bottom: 10px;
}

/* ========================
Debugging 
======================== */

.timeline-left {
  height: auto;
}

.timeline-right {
  height: auto;
}

/* ========================
Text Square
======================== */

.timeline-wrapper .timeline-text.text-square {
  height: 20vw;
}


@media screen and (max-width: 767px) {

  .timeline-wrapper .timeline-text.text-square {
    height: 30vw;
  }

}

@media screen and (max-width: 500px) {
  .timeline-wrapper .timeline-text.text-square {
    height: 50vw;
  }
}