@import "../global.css";

/* Header */
#header {
    background: url("../../img/timeline-header-background.webp") no-repeat fixed center;
    min-width: 100%;
    min-height: 550px;
    height: 30vh;
    background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    -webkit-background-size: cover;
    z-index: 0;
    display: flex;
    align-items: center;
}

#header .content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 150px;
    width: 100%;
}

#header .content .info {
    display: flex;
    flex-direction: column;
}

#header .content .info p {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 600;
}

#header .content .info .title {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 65px;
    font-weight: 900;
}

#header .content .info .title span {
    color: var(--main-color);
}

#header .content .description {
    color: var(--description-color);
    font-size: 18px;
    font-weight: 400;
    max-width: 700px;
    line-height: 1.6;
}

#header .content .info p,
#header .content .info .title,
#header .content .description {
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Wave */
.wave-top {
    position: relative;
    bottom: 69px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
    transform: rotateY(180deg);
}

.wave-top .shape-fill {
    fill: var(--background-color);
}

/* Timeline */
.timeline {
  position: relative;
  margin: 100px auto;
  padding: 0 20px;
  max-width: 800px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: #444;
}

.timeline::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #444;
  border-radius: 50%;
  box-shadow: 0 10px 0 #444, 0 20px 0 #444;
}

.timeline-item {
  position: relative;
  width: 60%;
  padding: 20px 40px;
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -14px;
  width: 20px;
  height: 20px;
  background: #ffcc00;
  border-radius: 50%;
  border: 4px solid #1e1e1e;
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd) {
  left: -10%;
  text-align: left;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: right;
}

.timeline-item:nth-child(odd) .timeline-content {
  border-left: 4px solid #444;
}

.timeline-item:nth-child(even) .timeline-content {
  border-right: 4px solid #444;
}

.timeline-content {
  background: #1e1e1e;
  color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  position: relative;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.timeline-content:hover {
  transform: scale(1.05);
}

.timeline-date {
  font-weight: bold;
  font-size: 1.1rem;
  color: #ffcc00;
  margin-bottom: 15px;
}

.timeline-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 5px 0 15px 0;
  color: #ffffff;
}

.timeline-content img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.timeline-content p {
  color: #D2D0D0;
}

.timeline-item:nth-child(even)::after {
  left: -14px;
}

/* Responsive */
/* Header */
@media screen and (max-width: 1625px) {
    #header .content {
        padding: 150px 90px;
    }
}

@media screen and (max-width: 1361px) {
    #header .content {
        flex-direction: column;
        padding: 120px 90px;
    }
}

@media screen and (max-width: 819px) {
    #header .content {
        padding: 150px 30px;
    }

    #header .content .info .minecraft-server-ip {
        font-size: 15px;
    }

    #header .content .info .title {
        font-size: 40px;
    }

    #header .content .info .description {
        font-size: 16px;
    }
}

@media screen and (max-width: 530px) {
    #header .content {
        justify-content: start;
        align-items: start;
    }

    #header .content .info .title {
        font-size: 30px;
    }
}

/* Wave */
@media screen and (max-width: 831px) {
    .wave-top {
        bottom: 29px;
    }

    .wave-top svg {
        height: 30px;
    }
}

/* Timeline */
@media screen and (max-width: 900px) {
  .timeline::after {
    left: 17px;
    transform: translateX(0);
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 20px;
    text-align: left;
    left: 0 !important;
  }

  .timeline-item::after {
    left: -14px;
    right: auto;
    transform: translateY(-50%);
  }

  .timeline-item:nth-child(even),
  .timeline-item:nth-child(odd) {
    text-align: left;
  }

  .timeline-item .timeline-content {
    border-left: 4px solid #444;
    border-right: none !important;
  }
}