/* progressive bar */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;700&display=swap');

:root {
  --bg-color: #333333;
  --sec-color: #252525;
  --bar-bg-color:#C3C6D2;
  --bar-height: 15px;
  --title-bg: #1a1a1a;
  --bar-turquoise: turquoise;
  --bar-orange: #20507A;
  --bar-yellow: yellow;
  --bar-red: red;
}

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

.container {
  overflow: hidden;
  
  width: 100vw;
  height: 100vh;
  
  background-color: transparent;
  
  display: flex;
  justify-content: center;
  align-items: center;
  
  flex-direction: column;
}

.bars-title-container {
  background-color: transparent;
  
  width: 600px;
  
  padding: 20px;
  
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.progress-field{
padding: 4rem;
}

.bars-title {
  text-align: center;
  color: #ddd;
}

.bars {
  width: 600px;
  height: 300px;
  
  padding: 40px;
  
  background-color: var(--sec-color);
  
  display: flex;
  justify-content: space-around;
  align-items: center;
  
  flex-direction: column;
  
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  
  border-left: 4px solid var(--title-bg);
  border-bottom: 4px solid var(--title-bg);
  border-right: 4px solid var(--title-bg);
}

.progress-field {
  display: grid;
  justify-content: center;
  align-items: center;
  column-gap: 25px;
  grid-template-columns: 1fr auto 1fr;
  transition: 0.3s;
}

.progress-field:hover {
  transform: scale(1.15);
}

.progress-title {
  font-size: 16px;
  font-weight: 400;
  margin-top: 2rem !important;
}

.progress-bar {
  position: relative;
  
  width: 300px;
  
  background-color: var(--bar-bg-color);
  
  border-radius: var(--bar-height);
}

.progress-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  bottom: 1px;
  
  border-radius: var(--bar-height);
}

.progress-bar.p70::after {
  width: 70%;
  animation: p70ease 0.7s;
}

.progress-bar.p50::after {
  width: 50%;
  animation: p50ease 0.5s;
}

.progress-bar.p90::after {
  width: 90%;
  animation: p90ease 0.9s;
}

.progress-bar.p20::after {
  width: 20%;
  animation: p20ease 0.2s;
}

.progress-field.orange .progress-title,
.progress-field.orange .progress-percent {
  color: var(--bar-orange);
}

.progress-field.orange .progress-bar::after {
  background-color: var(--bar-orange);
}

.progress-field.red .progress-title,
.progress-field.red .progress-percent {
  color: var(--bar-red);
}

.progress-field.red .progress-bar::after {
  background-color: var(--bar-red);
}

.progress-field.turquoise .progress-title,
.progress-field.turquoise .progress-percent {
  color: var(--bar-turquoise);
}

.progress-field.turquoise .progress-bar::after {
  background-color: var(--bar-turquoise);
}

.progress-field.yellow .progress-title,
.progress-field.yellow .progress-percent {
  color: var(--bar-yellow);
}

.progress-field.yellow .progress-bar::after {
  background-color: var(--bar-yellow);
}

@keyframes p70ease {
  from {
    width: 0;
  }
  to {
    width: 70%;
  }
}

@keyframes p50ease {
  from {
    width: 0;
  }
  to {
    width: 50%;
  }
}

@keyframes p90ease {
  from {
    width: 0;
  }
  to {
    width: 90%;
  }
}

@keyframes p20ease {
  from {
    width: 0;
  }
  to {
    width: 20%;
  }
}


