.container {
    width: 200px;
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: hide 4s linear forwards;
}

.bar {
    position: absolute;
    overflow: hidden;
    width: 200px;
    height: 40px;
    border: 2px solid black;
    align-items: center;
    justify-content: center;
    display: flex;
}

.loading-txt {
    animation: loadingText 4s steps(1, end) forwards;
    li {
        list-style-type: none;
        height: 40px;
    }
}

.progress {
    width: 200px;
    height: 40px;
    position: relative;
    display: flex;
    border: 2px solid black;
    background-color: gray;
    opacity: 0.7;
    animation: progressBar 3s ease-in-out;
    animation-fill-mode: both;
}

@keyframes hide {
    99% { opacity: 100; }
    100% {
        opacity: 0;
        display: none;
        visibility: hidden;
    }
}

@keyframes progressBar {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes loadingText {
    0% { margin-bottom: -160px; }
    20% { margin-bottom: -80px; }
    40% { margin-bottom: 0px; }
    60% { margin-bottom: 80px; }
    80% { margin-bottom: 160px; }
}