.home{
    height: fit-content;
}

.about-container{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 3rem auto;
}

h1{
    background: -webkit-linear-gradient(#000, #777);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInAnimation ease 1s;
    text-align: center;
    margin: 3rem auto;
    width: 60%;
}

.timeline {
  width: 50%;
  height: auto;
  /* max-width: 800px; */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.timeline-content {
  padding: 20px;
  background: #1f1f1f;
  border-radius: 15px;
  color: white;
  padding: 0.2rem;
  transition: 0.4s ease;
  overflow-wrap: break-word !important;
  margin: 1rem;
  margin-bottom: 20px;
  border-radius: 15px;
}


/* .timeline-component {
  margin: 0px 20px 20px 20px;
} */

.timeline-component img{
    width: 100%;
    border-radius: 10px;
}

@media screen and (min-width: 768px) {
  .timeline {
    display: grid;
    grid-template-columns: 3px 1fr;
  }
  .timeline-middle {
    position: relative;
    background-image: linear-gradient(45deg, #F27121, #E94057, #8A2387);
    width: 3px;
    height: 100%;
    border-radius: 10px;
  }
  .main-middle {
    opacity: 0;
  }
  .timeline-circle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-image: linear-gradient(45deg, #F27121, #E94057, #8A2387);
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
  }
}

.photos{
  display: flex;
  flex-wrap: wrap;
  width: 50%;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.polaroid{
    height: 210px;
    width: 175px;
    padding: 0.75rem;
    background-color: #fff;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    transition: 0.2s;
}

.polaroid img{
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;

}

.polaroid-txt{
    font-family: "Gloria Hallelujah", cursive;
    color: #000;
    margin: 0;
}


.polaroid:nth-child(1){
  transform: rotate(-4deg);
}
.polaroid:nth-child(2){
  transform: rotate(0deg);
}
.polaroid:nth-child(3){
  transform: rotate(4deg);
}
.polaroid:nth-child(4){
  transform: rotate(-2deg);
}
.polaroid:nth-child(5){
  transform: rotate(2deg);
}
.polaroid:hover{
  cursor: url(/static/assets/circle-cursor.png),auto;
  transform: rotate(0deg) scale(1.1);
  transition: 0.2s;
}

@media (max-width: 1275px){
  .photos{
    width: 60%;
  }
}

@media (max-width: 1065px){
  .photos{
    width: 70%;
  }
  .timeline{
    width: 60%;
  }
}

@media (max-width: 915px){
  .timeline{
    width: 75%;
  }
  .polaroid{
    height: calc(210px * (2 / 3) + 15px);
    width: calc(175px * 2/3);
  }
  .polaroid-txt{
    font-size: 0.7rem;
  }
  .timeline-component{
    border-radius: 7px;
  }
  h1{
    width: 85%;
  }
}

@media (max-width: 665px){
  .photos{
    width: 80%;
  }
}

@media (max-width: 585px){
  .photos{
    width: 90%;
  }
  .timeline-content{
    margin: 0.5rem;
  }
  h1{
    margin: 2rem auto;
  }
}

@media (max-width: 520px){
  .polaroid{
    height: calc(210px * 1.5/3);
    width: calc(175px * 1.5/3);
    padding: 0.5rem;
  }
  .polaroid-txt{
    font-size: 0.5rem;
  }
}

@media (max-width: 440px){
  h1{
    font-size: 1.8rem;
    width: 90%;
  }
  .timeline{
    width: 90%;
  }
  .timeline-content{
    margin: 0.3rem;
  }
}

@media (max-width: 396px){
  .photos{
    width: 100%;
  }
}