/* Container for progress bar and image */
#loadingContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 200px; /* Set a fixed width */
    opacity: 1;
    transition: opacity 1s ease; /* Add transition for fade effect */
}

/* Progress bar container */
#progressBarContainer {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 5px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    height: 20px; /* Explicitly set height */
}

/* Gradient progress bar */
#progressBar {
    height: 20px;
    width: 0;
    background: linear-gradient(to right, #4068bd, #3e64b5, #7f66c8, #c13485);
    transition: width 0.1s ease;
}

/* Percentage text */
#percentageText {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333;
}