@import url('style.css');

body {
  background: url('img/bg.webp');
  background-size: cover;
  font-family: 'Choowee', sans-serif;
  padding: 20px;
}

.timeline-container {
  max-width: 1100px;
  margin: auto;
  padding: 2rem;
  border-radius: 24px;
}

.timeline-container h1 {
  color: #5b005b;
  text-align: center;
  font-size: 48px;
  margin-bottom: 10px;
}

.description {
  text-align: center;
  font-size: 18px;
  margin-bottom: 3rem;
}

.timeline {
  position: relative;
  padding: 10px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: #ddd;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.event {
  padding: 15px;
  position: relative;
  width: 50%;
}

.event img {
  width: 100%;
  max-width: 250px;
  border-radius: 10px;
}

.event h3 {
  color: #240046;
  font-size: 20px;
}

.date {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  color: #777;
}

.event.left {
  left: -10%;
  text-align: right;
}

.event.right {
  left: 60%;
  text-align: left;
}

.event::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(90deg, #240046 0%, #E73D89 100%);
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  border: 3px solid #fff;
  z-index: 1;
}

footer {
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .timeline::after {
    left: 20px;
  }

  .event {
    width: 100%;
    text-align: left;
    padding-left: 40px;
    padding-right: 10px;
  }

  .event.right, .event.left {
    left: 0;
  }

  .event::before {
    left: 20px;
  }

  .event.left {
  left: 0%;
  text-align: left;
}

.event.right {
  left: 0%;
  text-align: left;
}
}
