


.title{
    box-shadow: 10px 5px 10px rgba(0, 0, 0, 0.5);
    padding: 1rem 0rem 1rem 0.7rem;
    border-top-right-radius: 5px;
    border-bottom-left-radius: 5px;
    color: #fff;
    font-size: 1.3rem;
    background-color: #de3163;
}

.year{
    background-color: #436e94;
    padding: 0.2rem 0.8rem;
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    margin: 0 0.5rem;

}

#timeline p {
    padding: 0rem 2rem 2rem 2rem;
    color: black;
}

#timeline button {
    margin: 0.5rem 0rem 1rem 1rem;
    outline: none;
    border: 1px solid;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: transparent;
    transition: all 0.3s ease-in;
    font-family: inherit;
    cursor: pointer;
    
}

#timeline button:hover{
    background-color: #17202a;
    color: #fff;
}

#timeline ul {
    position: relative;
    list-style: none;
    padding: 0;
}


#timeline ul li{
    list-style: none;
    position: relative;
    width: 2px;
    margin: 0 auto;
    background-color: #000000;
}


#timeline ul li .box {
    position: relative;
    bottom: 0; 
    margin-top: 48px;
    /* margin-bottom: 41px; */
    width: 425px;
    background-color: var(--color-fondo);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}


/*right side */
#timeline ul li:nth-child(even) .box{
    left: 50px;
}

/*left side */
#timeline ul li:nth-child(odd) .box{
    left: -500px;
}

#timeline ul li h5 {
    /* position: absolute; */
    /* position: absolute; */
    left: 50%;
    top: 20%;
    width: 14rem;
    /* height: 45px; */
    background: var(--color-primario);
    transform: translateX(-50%);
    border-radius: 56px;
    color: white;
    text-align: center;
    padding: 9px;
}

#timeline .fa-brands,
#timeline .fa-solid{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #f4d03f;
}




@media (max-width: 900px) {
  #timeline ul li .box {
    width: 350px !important;
  }

  #timeline ul li:nth-child(even) .box:beofre {
    left: -15px !important;
    border-width: 8px 16px 8px 0px !important;
    border-color: transparent #de3163 !important;
  }

  /* right side */
  #timeline ul li:nth-child(odd) .box {
    left: 40px !important;
  }

  /* left side */
  #timeline ul li:nth-child(even) .box {
    left: -390px !important;
  }
}

@media (max-width: 768px) {
  #timeline ul li {
    margin-left: 100px !important;
  }

  #timeline ul li .box {
    width: 235px !important;
  }

  /* left side conte */
  #timeline ul li:nth-child(even) .box {
    left: 40px !important;
  }

  #timeline ul li:nth-child(even) .box:before {
    left: -15px !important;
    border-width: 8px 16px 8px 0px !important;
    border-color: transparent #de3163 !important;
  }
}


