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

:root {
  --progress_r:   0;
  --progress_g: 123;
  --progress_b: 255;
}

.progress_container {
  width: 50%;
  background-color: rgba(var(--progress_r), var(--progress_g), var(--progress_b), 0.5);
  border-radius: 5px;
  padding: 3px;
  margin: 20px auto; /* This centers the container */
  visibility: hidden;
  position: relative; /* Allows positioning of text within container */
}

.progress_bar {
  width: 0;
  height: 30px;
  background-color: rgba(var(--progress_r), var(--progress_g), var(--progress_b), 1.0);
  border-radius: 5px;
  transition: width 0.4s ease;
  position: relative;
}

#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: bold;
  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 */
}

@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%;
  }
}
