.introduction {
    display: flex;
    flex-direction: column;
    color: var(--c-text);

    padding-bottom: 10em;
    margin-top: 6em;

    width: 100%;
    position: relative;
    top:0;

    /* gap: 4em;*/
}
.introduction h1{
    font-size: 2em;
}

.introduction article {
    /*background-color: cadetblue;*/

    padding: 2em;
    border-radius: 1em;
}

/* header rules intentionally left out; keep markup clean */

.introduction article:nth-child(1) {
    width: 100%;
    /* transform: rotate(5deg); */
    align-self: center;
    text-align: center;
    font-size: 2em;
}
/*
.introduction article:nth-child(2) {
    width: 50%;
    transform: rotate(3deg);
    align-self: flex-end;
}

.introduction article:nth-child(3) {
    width: 50%;
    transform: rotate(-2deg);
    align-self: flex-start;
}*/




.animation-introduction{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    z-index: -2;
}

.animation-introduction ul{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*overflow: hidden; ZAPNOUT KDYŽ NECHCEŠ ANIMACI PŘECHÁZET DO OSTATNÍCH DIVŮ*/ 
}

.animation-introduction ul li{
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    /* use design palette for animated dots */
    background: var(--c-boxes);
    opacity: 0.35;
    animation: animate 4s linear infinite;
    bottom: -150px;
    
}

.animation-introduction ul li:nth-child(1){
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}


.animation-introduction ul li:nth-child(2){
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.animation-introduction ul li:nth-child(3){
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.animation-introduction ul li:nth-child(4){
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.animation-introduction ul li:nth-child(5){
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.animation-introduction ul li:nth-child(6){
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.animation-introduction ul li:nth-child(7){
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.animation-introduction ul li:nth-child(8){
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.animation-introduction ul li:nth-child(9){
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.animation-introduction ul li:nth-child(10){
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}



@keyframes animate {

    0%{
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100%{
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }

}


@media only screen and (max-width: 990px) {
    .animation-introduction ul li:nth-child(6){
        left: 67%;
    }
    .animation-introduction ul li:nth-child(10) {
        left: 60%;
    }
    .introduction {
        margin: 0;
        top: 0;
    }

    .introduction article {
        width: auto !important;
        transform: none !important;
        align-self: none !important;
    }
}