@import url("https://fonts.googleapis.com/css2?family=Titillium+Web:wght@300&display=swap");

.chronologia-wrapper {
  width: 50vw;

  margin: 0 auto;

  text-align: center;

  line-height: 1.5;

  position: relative;

  font-family: "Titillium Web", sans-serif;
}

.chronologia-detail-wrapper {
  width: 100%;

  margin-bottom: 100px;

  display: flex;
}

details {
  width: 50%;
}

summary {
  font-size: 20px;

  font-weight: 900;

  padding: 15px;

  margin-bottom: 15px;

  border-radius: 5px;

  text-align: center;

  transition: all 0.5s ease-in-out;

  cursor: pointer;

  outline-color: #324c63;
}

details[open] summary {
  margin-bottom: 25px;
}

.chronologia-wrapper > .chronologia-detail-wrapper:nth-child(even) {
  justify-content: flex-end;

  padding-left: 100px;
}

.chronologia-wrapper > .chronologia-detail-wrapper:not(:nth-child(even)) {
  justify-content: flex-start;

  padding-right: 100px;
}

.chronologia-detail-wrapper::before {
  content: "";

  width: 3px;

  background-color: #d9d9d9;

  position: absolute;

  top: 0;

  bottom: 0;

  left: 50%;
}

.chronologia-wrapper p {
  font-weight: bolder;

  font-size: 16px;
}

.chronologia-detail-wrapper details img {
  border-radius: 20px;
}

@media (max-width: 800px) {
  .chronologia-wrapper > .chronologia-detail-wrapper:nth-child(even) {
    justify-content: flex-end;

    padding-left: 50px;
  }

  .chronologia-wrapper > .chronologia-detail-wrapper:not(:nth-child(even)) {
    justify-content: flex-start;
    padding-right: 50px;
  }

  summary {
    font-size: 18px;
    font-weight: 900;
    padding: 5px;
    margin-bottom: 5px;
    border-radius: 5px;
    text-align: center;
    transition: all 0.5s ease-in-out;
    cursor: pointer;
    outline-color: #324c63;
  }
}

@media (max-width: 600px) {
  .chronologia-wrapper > .chronologia-detail-wrapper:nth-child(even) {
    justify-content: flex-end;

    padding-left: 15px;
  }

  .chronologia-wrapper > .chronologia-detail-wrapper:not(:nth-child(even)) {
    justify-content: flex-start;
    padding-right: 15px;
  }

  summary {
    font-size: 14px;
    font-weight: 900;
    padding: 5px;
    margin-bottom: 5px;
    border-radius: 5px;
    text-align: center;
    transition: all 0.5s ease-in-out;
    cursor: pointer;
    outline-color: #324c63;
  }
}
