@import url(./index.css);

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.center {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}

.container {
  max-width: 50%;
  color: #ffffff;
}

.container h1 {
  text-align: center;
  margin-bottom: 20px;
  font-weight: bolder;
}

.about-me {
  padding: 20px;
  background: #0000001c;
  backdrop-filter: blur(10px);
  border-radius: 8px;
  margin-bottom: 30px;
  color: #ffffff;
  text-align: justify;
}

.scrollable-div {
  height: 235px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #b38c52;
  scrollbar-color: #b38c52;
  scrollbar-width: thin;
}

.timeline-section h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
}

.timeline {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #b38c52;
  border-radius: 8px;
  padding: 10px;
  background: #0000001c;
  backdrop-filter: blur(10px);
}

.timeline-wrapper {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.timeline-item {
  min-width: 225px;
  height: 250px;
  margin: 0 10px;
  padding: 15px;
  background: #0000001c;
  backdrop-filter: blur(10px);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.timeline-item > p{
  height: calc(250px - (h3+span));
}

.timeline-item h3 {
  font-size: 18px;
  color: #b38c52;
  margin-bottom: 8px;
}

.timeline-item p {
  color: #fff;
  text-align: center;
}

.timeline-date {
  font-size: 14px;
  color: #fff;
  opacity: 0.7;
}

.timeline-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.timeline-nav {
  background: #b38c52;
  color: #fff;
  font-size: 18px;
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
}

.timeline-nav.prev {
  display: block;
  margin: 0 5px;
}

.timeline-nav.next {
  display: block;
  margin: 0 5px;
}

.scrollable {
  width: 100%;
  overflow-y: auto;
  padding: 10px;
  scrollbar-width: thin;
}

@media screen and (max-width: 768px) {
  .container {
    max-width: 90%;
  }

  .scrollable-div {
    height: 250px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #b38c52;
    scrollbar-color: #b38c52;
    scrollbar-width: thin;
  }

  .timeline {
    position: relative;
    display: flex;
    overflow: hidden;
    border: 1px solid #b38c52;
    border-radius: 8px;
    padding: 10px;
    background: #0000001c;
    backdrop-filter: blur(10px);
  }
  
  .timeline-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
  }
  
  .timeline-item {
    min-width: 200px;
    margin: 0 10px;
    padding: 15px;
    background: #0000001c;
    backdrop-filter: blur(10px);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  }
  
  .timeline-item h3 {
    font-size: 18px;
    color: #b38c52;
    margin-bottom: 8px;
  }
  
  .timeline-item p{
      text-align: center;
  }
  
  .timeline-date {
    font-size: 14px;
    color: #fff;
    opacity: 0.7;
  }
  
  .timeline-buttons{
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 20px;
  }
  
  .timeline-nav {
    background: #b38c52;
    color: #fff;
    font-size: 18px;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
  }
  
  .timeline-nav.prev {
      display: block; 
      margin: 0 5px;
  }
  
  .timeline-nav.next {
    display: block;
    margin: 0 5px;
  }
  
  .scrollable {
      height: 250px;
      width: 100%;
      overflow-y: auto;
      padding: 10px;
      scrollbar-width: thin;
  }
  
  @media screen and (max-width: 768px) {
    .container {
      max-width: 90%;
    }
  
    .scrollable-div {
      height: 250px;
      overflow-y: auto;
      padding: 10px;
      border: 1px solid #b38c52;
      scrollbar-color: #b38c52;
      scrollbar-width: thin;
  }
  
  .timeline {
      position: relative;
      display: flex;
      overflow: hidden;
      border: 1px solid #b38c52;
      border-radius: 8px;
      padding: 10px;
      background: #2e2e2e;
      justify-content: flex-start;
      align-items: flex-end;
    }
  }
}
