/* discography.css */

/* Timeline container */
.timeline {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start; /* top-align all items */
    min-height: 100vh;
    position: relative;
  }

  .timeline-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 200px;
  } 
  
  .timeline-line .segment-wrapper {
    width: 100%;
    position: relative;
  }
  
  .timeline-line .year-box {
    position: sticky;
    top: 0;
    z-index: 2;
    color: #eee;
    background-color: #333; /* background is needed to prevent overlap */
    padding: 12px 16px;
    font-weight: bold;
    font-size: 40px;
    text-align: center;
    border-radius: 12px;
  }
  
  .timeline-line .segment {
    width: 25px; /* or however long your timeline section is */
    background-color: #333;
    margin: 0px auto 0;
  }
  
  .timeline-line .branch {
    width: 260px; /* line thickness */
    height: 50px; /* segment length */
    color: #eee;
    background-color: #333;
    font-size: 25px;
    text-align: center;
    padding-top: 10px;
    position: absolute;
  }

  .timeline-line .branch.right {
    left: 70px;
  }

  .timeline-line .branch.left {
    right: 70px;
  }
  /* Timeline item container */

  .timeline-side {
    display: flex;
    flex-direction: column;
    gap: 100px; /* vertical spacing between albums */
    flex-shrink: 0;
    padding-top: 400px;
  }
  
  .timeline-side.left {
    align-items: flex-start;
    margin-right: 40px;
  }
  
  .timeline-side.right {
    align-items: flex-end;
    margin-left: 40px;
  }

  .timeline-item {
    position: relative;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  /* Timeline item content */
  .timeline-item .content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .timeline-item .content img {
    position: absolute;
    width: 355px; /* Adjust the size of the album cover */
    height: 355px; /* Keep the album cover square */
    margin-bottom: 10px;
    border-radius: 12px;
    transition: transform 0.3s ease;
    z-index: 3;
  }

  .album-animate {
    animation: albumCoverAnimation 3s forwards;
  }

  .timeline-item .content .spotify-player {
    position: relative;
    width: 355px; /* Adjust the size of the album cover */
    height: 355px; /* Keep the album cover square */
    border-radius: 12px;
    z-index: 2;
  }
  
  /* Buttons for linking to streaming services */
  /* .timeline-item .content .links {
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  
  .timeline-item .content .links a {
    text-decoration: none;
    color: #333;
    background-color: #ddd;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
  }
  
  .timeline-item .content .links a:hover {
    background-color: #888;
  }
  */

  .links {
    display: flex;
    justify-content: center;
    gap: 50px;
  }

  .links img {
    max-width: 30px; 
    max-height: 30px;
    opacity: 0.8;
    transition: transform 0.2s ease-in-out;
  }

  .links img:hover {
    transform: scale(1.1);
  }

  .song-name {
    text-align: center;
    font-size: 20px;
    padding-top: 5px;
    padding-bottom: 10px;
  }

  @keyframes albumCoverAnimation {
    25% {
      transform: translateY(-360px);
    }
    50% {
      transform: translateX(-20px) translateY(-20px);
    }
    100% {
      transform: translateX(-20px) translateY(-20px);
        z-index: 1;
    }
}