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

:root {
  --progress_r: 140;
  --progress_g: 60;
  --progress_b: 220;
}

.progress_container
{
  width: 50%;
  background-color:
    rgba(var(--progress_r),
           var(--progress_g),
           var(--progress_b),
           0.14);
  border-radius: 8px;
  padding: 3px;
  margin: 20px auto;
  position: relative;
  border:
    1px solid rgba(255,255,255,0.06);
}

.progress_bar
{
  width: 0;
  height: 30px;
  background:
    linear-gradient(
      90deg,
      rgba(var(--progress_r),
             var(--progress_g),
             var(--progress_b),
             0.95),

      rgba(220,120,255,0.95)
    );
  border-radius: 5px;
  transition: width 0.4s ease;
  position: relative;
  box-shadow:
    0 0 18px rgba(200,100,255,0.28);
}

#progressBarTextId {
  position: absolute;
  top: 50%; /* Vertically centers the text */
  left: 50%; /* Horizontally centers the text */
  transform: translate(-50%, -50%); /* Ensures perfect centering */
  z-index: 2; /* Ensures text stays above the progress bar */
  color: black; /* Text color starts as black */
  font-weight: 600;
  font-size: 0.75rem;
  pointer-events: none; /* Prevents any interaction with the text */
  white-space: nowrap; /* Prevents the text from wrapping onto a new line */
  overflow: hidden; /* Ensures text does not overflow the container */
  text-overflow: ellipsis; /* Adds ellipsis ("...") if the text is too long */

  /*color: rgba(255,255,255,0.92);*/
}

@media screen and (max-width:300px)
{
  .progress_container
  {
    width: 80%;
  }
}

@media screen and (min-width:301px) and (max-width:800px)
{
  .progress_container
  {
    width: 80%;
  }
}

@media screen and (min-width:801px) and (max-width:1200px)
{
  .progress_container
  {
    width: 30%;
  }
}

@media screen and (min-width:1201px)
{
  .progress_container
  {
    width: 30%;
  }
}

/* DEBUG: show all div with border */
/*
div {
  outline: 1px solid red;
}
*/
