* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  background: linear-gradient(to bottom right, #14191d, #38393b);
}

.title {
  text-transform: uppercase;
  color: #fff;
  text-align: center;
}

.wrapper {
  max-width: 1000px;
  width: 100%;
  padding-top: 5rem;
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
  gap: 1rem;
}

.progress-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3rem;
  border: 1px solid #aaaaaa60;
  box-shadow: 3px 3px 3px #aaaaaa60;
  border-radius: 0.4rem;
}

.progress-label {
  background-color: #fff;
  flex-grow: 1;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0.4rem;
  border: 1px solid #aaaaaa60;
  box-shadow: 3px 3px 3px #aaaaaa60;
  font-weight: 600;
}

.progress-label:hover {
  background-color: #66aa22 !important;
}

.progress-item {
  position: absolute;
  top: 0;
  width: 0%;
  height: 3rem;
  transition: all 0.3s ease;
}

.progress-item:nth-of-type(1) {
  left: 80%;
  border-radius: 0 0.4rem 0.4rem 0;
}

.progress-item:nth-of-type(2) {
  left: 60%;
}

.progress-item:nth-of-type(3) {
  left: 40%;
}

.progress-item:nth-of-type(4) {
  left: 20%;
}

.progress-item:nth-of-type(5) {
  left: 0%;
  border-radius: 0.4rem 0 0 0.4rem;
}

.progress-radio {
  display: none;
  opacity: 0;
}

.progress-radio:checked ~ .progress-item {
  background-color: #77bb33;
  width: 20%;
}

.progress-radio:checked ~ .progress-label {
  background-color: #77bb33;
}

@media (max-width: 600px) {
  .wrapper {
    flex-direction: column-reverse;
  }
}
