@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap");

:root {
  --color1: #dde6ed;
  --color2: #9db2bf;
  --color3: #526d82;
  --color4: #27374d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
}

body {
  background-color: var(--color1);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 375px;
}

.circles-and-bar {
  width: 100%;
  display: grid;
  justify-items: center;
  align-items: center;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;
  color: var(--color4);
  padding: 10px;
}

.circle {
  text-align: center;
  border-radius: 50%;
  background-color: var(--color1);
  height: 40px;
  width: 40px;
  transition: all 0.1s linear 0.1s;
}

.circle.on {
  border: 4px solid var(--color4);
}

.circle:nth-of-type(1) {
  grid-area: 1 / 1 / 2 / 2;
}

.circle:nth-of-type(2) {
  grid-area: 1 / 2 / 2 / 3;
}

.circle:nth-of-type(3) {
  grid-area: 1 / 3 / 2 / 4;
}

.circle:nth-of-type(4) {
  grid-area: 1 / 4 / 2 / 5;
}

.bar {
  background-color: var(--color4);
  height: 15%;
  z-index: -1;
  grid-area: 1 / 1 / 2 / 5;
  position: relative;
  transition: all 0.1s linear 0s;
}

.bar.pos1 {
  width: 0%;
  left: calc(0% / 2 - 75% / 2);
}

.bar.pos2 {
  width: 25%;
  left: calc(25% / 2 - 75% / 2);
}

.bar.pos3 {
  width: 50%;
  left: calc(50% / 2 - 75% / 2);
}

.bar.pos4 {
  width: 75%;
  left: calc(75% / 2 - 75% / 2);
}

.buttons {
  display: flex;
  width: 100%;
  justify-content: space-evenly;
  margin-top: 10px;
}

.container .btn {
  border-radius: 10px;
  padding: 0px 30px;
  border: none;
  cursor: pointer;
  color: var(--color4);
  background-color: var(--color2);
}

.container .btn.disabled {
  cursor: not-allowed;
  background-color: var(--color2);
  color: var(--color3);
}
