@import "normalize.css";

/* Main style */
.chronology {
  padding: 5rem 10rem;
  margin: 0 auto;
  color: #333333;

  h1 {
    text-align: center;

    font-size: 3rem;
    font-weight: bold;
  }

  p {
    text-align: center;
    margin-top: 3rem;
    font-size: 1.3rem;
  }
}

.chronology {
  details {
    margin: 1rem;
    cursor: pointer;
  }

  summary {
    font-weight: bold;
  }

  details[open] p {
    border-left: 0.2rem solid #333333;
    padding-left: 1rem;
  }

  .details-content {
    padding: 3vh;
  }

  .details-block {
    margin-top: 8vh;
    font-size: 1.3rem;
    gap: 2rem;
    background-color: #ffffff;
    border-radius: 2rem;

    p {
      margin: 1rem;
      text-align: left;
    }

    details {
      margin-top: 2vh;
    }
  }
}

/* Chart style */
.chart {
  width: 80%;
  margin: auto;
}

.percentage-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding-left: 20%;
}

.percentage {
  text-align: center;
  width: 20%;
  font-size: 1rem;
  color: gray;
}

.row {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.label {
  width: 20%;
  text-align: right;
  padding-right: 1rem;
}

.bar {
  width: 80%;
  background-color: #ffffff;
  height: 2rem;
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
}

.progress {
  height: 100%;
  line-height: 2rem;
  color: white;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

.green {
  background-color: #67c776;
}

.orange {
  background-color: #ffa500;
}