/* ///////////////////////////////////////////////////////////////////// */
/* Imports */

@import url(../../../src/utilities/colors.css);

/* ///////////////////////////////////////////////////////////////////// */
/* Overlay */

.timelineModal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  pointer-events: none;
  opacity: 0;
  background-color: var(--dark-blue);
  z-index: 2995;
  transition: all 0.3s ease-in-out;
}

.timelineModal-overlay.active {
  opacity: 1;
}

@media (min-width: 1201px) {
  .timelineModal-overlay {
    background-image: linear-gradient(to right, var(--purple), var(--orange));
  }
}

/* ///////////////////////////////////////////////////////////////////// */
/* Section */

#timelineModal-section {
  margin-bottom: 4.8rem;
}

@media (min-width: 1201px) {
  #timelineModal-section {
    border-radius: 2.4rem;
    background-color: var(--dark-blue);
    box-shadow: 0 0 2.4rem 0 var(--blue-black-04);
    padding: 4.8rem 1.2rem 0 1.2rem;
    margin: 15.2rem auto 10.4rem auto;
  }
}

/* ///////////////////////////////////////////////////////////////////// */
/* Modal */

.timelineModal {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translate(-10%, -50%);
  height: 100%;
  width: 100%;
  overflow-y: scroll;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  pointer-events: none;
  opacity: 0;
  z-index: 2996;
  transition: all 0.6s ease-in-out;
}

.timelineModal::-webkit-scrollbar {
  display: none;
}

.timelineModal.active {
  transform: translate(0, -50%);
  pointer-events: all;
  opacity: 1;
}

@media (min-width: 768px) {
  .timelineModal {
    transform: translate(-5%, -50%);
  }
}

@media (min-width: 768px) and (min-height: 900px) {
  .timelineModal {
    height: auto;
  }
}

/* ///////////////////////////////////////////////////////////////////// */
/* Container */

.timelineModal-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
  transition: all 0.6s ease-in-out;
}

@media (min-width: 768px) {
  .timelineModal-container {
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-template-rows: repeat(6, auto);
    justify-content: center;
    justify-items: center;
    align-content: center;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
  }
}

@media (min-width: 1200px) {
  .timelineModal-container {
    display: grid;
    grid-template-columns: repeat(5, auto);
    grid-template-rows: repeat(3, auto);
    justify-content: center;
    justify-items: center;
    align-content: center;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
  }
}

/* ///////////////////////////////////////////////////////////////////// */
/* Phase */

.phase {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 13.6rem;
  width: 33.6rem;
  overflow: hidden;
  border-radius: 2.4rem;
  background-image: linear-gradient(
    to right,
    var(--purple),
    var(--purple),
    var(--orange)
  );
  background-size: 300%;
  transition: all 0.6s ease-in-out;
}

.phase:hover {
  background-position: 100%, 0;
}

@media (min-width: 768px) {
  #phase-1 {
    grid-column: 1;
    grid-row: 1;
  }

  #phase-2 {
    grid-column: 3;
    grid-row: 1;
  }

  #phase-3 {
    grid-column: 3;
    grid-row: 3;
  }

  #phase-4 {
    grid-column: 1;
    grid-row: 3;
  }

  #phase-5 {
    grid-column: 1;
    grid-row: 6;
  }

  #phase-6 {
    grid-column: 3;
    grid-row: 6;
  }
}

@media (min-width: 1200px) {
  #phase-1 {
    grid-column: 1;
    grid-row: 1;
  }

  #phase-2 {
    grid-column: 3;
    grid-row: 1;
  }

  #phase-3 {
    grid-column: 5;
    grid-row: 1;
  }

  #phase-4 {
    grid-column: 5;
    grid-row: 3;
  }

  #phase-5 {
    grid-column: 3;
    grid-row: 3;
  }

  #phase-6 {
    grid-column: 1;
    grid-row: 3;
  }
}

/* ///////////////////////////////////////////////////////////////////// */
/* Arrows */

.direction-icon-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.arrow {
  height: 2.4rem;
  width: 2.4rem;
  border-radius: 100%;
  color: var(--white);
  background-image: linear-gradient(
    to right,
    var(--purple),
    var(--orange),
    var(--purple)
  );
  background-size: 300%;
  animation: flow 10s ease-in-out infinite;
  padding: 1.2rem;
}

.arrow-left {
  display: none;
}

.arrow-right {
  display: none;
}

.arrow-down {
  display: block;
}

@media (min-width: 768px) {
  #arrow-1 {
    grid-column: 2;
    grid-row: 1;
  }

  #arrow-1 .arrow-right {
    display: block;
  }

  #arrow-1 .arrow-down {
    display: none;
  }

  #arrow-2 {
    grid-column: 3;
    grid-row: 2;
  }

  #arrow-3 {
    grid-column: 2;
    grid-row: 3;
  }

  #arrow-3 .arrow-left {
    display: block;
  }

  #arrow-3 .arrow-down {
    display: none;
  }

  #arrow-4 {
    grid-column: 1;
    grid-row: 5;
  }

  #arrow-5 {
    grid-column: 2;
    grid-row: 6;
  }

  #arrow-5 .arrow-right {
    display: block;
  }

  #arrow-5 .arrow-down {
    display: none;
  }
}

@media (min-width: 1200px) {
  #arrow-1 {
    grid-column: 2;
    grid-row: 1;
  }

  #arrow-1 .arrow-right {
    display: block;
  }

  #arrow-1 .arrow-down {
    display: none;
  }

  #arrow-2 {
    grid-column: 4;
    grid-row: 1;
  }

  #arrow-2 .arrow-right {
    display: block;
  }

  #arrow-2 .arrow-down {
    display: none;
  }

  #arrow-3 {
    grid-column: 5;
    grid-row: 2;
  }

  #arrow-3 .arrow-left {
    display: none;
  }

  #arrow-3 .arrow-down {
    display: block;
  }

  #arrow-4 {
    grid-column: 4;
    grid-row: 3;
  }

  #arrow-4 .arrow-left {
    display: block;
  }

  #arrow-4 .arrow-down {
    display: none;
  }

  #arrow-5 {
    grid-column: 2;
    grid-row: 3;
  }

  #arrow-5 .arrow-left {
    display: block;
  }

  #arrow-5 .arrow-right {
    display: none;
  }

  #arrow-5 .arrow-down {
    display: none;
  }
}

/* ///////////////////////////////////////////////////////////////////// */
/* Header */

.phase-header {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: max-content;
  opacity: 1;
  border-radius: 12.4rem;
  background-color: var(--white);
  padding: 1.2rem;
  transition: all 0.6s ease-in-out;
}

.phase:hover .phase-header {
  transform: translate(-200%, -50%);
  opacity: 0;
}

/* ///////////////////////////////////////////////////////////////////// */
/* Title */

.phase-title {
  font-family: jura, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
}

/* ///////////////////////////////////////////////////////////////////// */
/* Body */

.phase-body {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(100%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: all 0.6s ease-in-out;
}

.phase:hover .phase-body {
  transform: translate(-50%, -50%);
  opacity: 1;
}

/* ///////////////////////////////////////////////////////////////////// */
/* Subtext */

.phase-subtext {
  padding: 0 2.4rem;
}
