@keyframes appear2FromBottom2{
    0%{
       opacity: 0;
       transform: translateY(500px);
       border-radius: 50px; 
    }
    30%{
        opacity: 1;
        transform: translateY(0); 
     }
     80%{

        border-radius: 0;
     }
     100%{
        transform:  scaleX(5);
     }
}

@keyframes appear2FromTop2{
    0%{
       opacity: 0;
       transform: translateY(500px);
       border-radius: 50px; 
    }
    30%{
        opacity: 1;
        transform: translateY(0); 
     }
     80%{
        transform: rotate(-90deg);
        border-radius: 0;
     }
     100%{
        transform: rotate(-90deg) scaleX(4);

     }
}

@keyframes appear2 {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes appear3 {
    0% {
        opacity: 0;
        transform: scale(-1);
    }
    100% {
        opacity: 1;
        transform: scale(2);
    }
}

@keyframes rot {
    0% {
        rotate: 0deg;
        opacity: 0;
        transform: scale(-3);
    }
    100% {
        opacity: 1;
        rotate: 45deg;
        transform: scale(3);
    }
}

.sentence1, .sentence2,.sentence3,.sentence4{
    opacity: 0;
    z-index: -2;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    font-size: 20px;

}

.dot--top:hover ~ .sentence1 {
    z-index: 20;
    animation: appear3 3s 0.5s forwards;
    transition: opacity 0.5s 1s ease-in-out;
    opacity: 1;
}
.dot--bottom:hover ~ .sentence2 {
    z-index: 20;
    animation: appear3 3s 0.5s forwards;
    transition: opacity 0.5s 1s ease-in-out;
    opacity: 1;
}
.dot--left:hover ~ .sentence3 {
    z-index: 20;
    animation: appear3 3s 0.5s forwards;
    transition: opacity 0.5s 1s ease-in-out;
    opacity: 1;
}
.dot--right:hover ~ .sentence4 {
    z-index: 20;
    animation: appear3 3s 0.5s forwards;
    transition: opacity 0.5s 1s ease-in-out;
    opacity: 1;
}

.pasek{
    width: 90px;
    height: 90px;
    background-color: black;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    animation: appear2 3s 0.5s both;
    transition: background-color .25s .25s ease-in-out;
}

.pasek--from-top {
animation: appear2FromTop2 3s 0.5s both;
}

.pasek--from-bottom {
    animation: appear2FromBottom2 3s 0.5s both;
}

.dot{
    width: 24px;
    height: 24px;
    background-color: black;
    position: relative;
    margin: 0;
    padding: 0;
    border-radius: 50px;
    border: none;
    animation: appear2 1.5s 4.5s ease-in-out both;
    transition: background-color .25s .1s ease-in-out;
}

.dot::after{
    content: "";
    width: 38px;
    height: 38px;
    border: 4px solid black;
    background-color: transparent;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50px;
    transition: opacity 0.25s ease-in-out;
}

.dot:hover::after {
    opacity: 0;
}

.dot--top {
    bottom: 30%;
    left: 1.5%;
    transform: translateX(-50%);
}

.dot--top:hover {
    background-color: var(--leading-theme-color);
}

.dot--top:hover ~ .pasek {
    background-color: transparent;
    border: 5px var(--leading-theme-color) solid;
    animation: rot 3s 0.5s both;
    transition: rotate .25s .1s ease-in-out;
}

.dot--bottom {
    right: 1.5%;
    top: 30%;
    transform: translateX(-50%);
}

.dot--bottom:hover {
    background-color: var(--third-leading-color);
}

.dot--bottom:hover ~ .pasek {
    background-color: transparent;
    border: 5px var(--third-leading-color) solid;
    animation: rot 3s 0.5s both;
    transition: rotate .25s .1s ease-in-out;
}

.dot--left {
    right: 20%;
    transform: translateY(-50%);
}

.dot--left:hover {
    background-color: var(--second-leading-color);
}

.dot--left:hover ~ .pasek {
    background-color: transparent;
    border: 5px var(--second-leading-color) solid;
    animation: rot 3s 0.5s both;
    transition: rotate .25s .1s ease-in-out;
}

.dot--right {
    left: 20%;
    transform: translateY(-50%);
}

.dot--right:hover {
    background-color: white;
}

.dot--right:hover ~ .pasek {
    background-color: transparent;
    border: 5px white solid;
    animation: rot 3s 0.5s forwards;
    transition: rotate .25s .1s ease-in-out;
}

@media screen and (max-width: 1400px){

    .sec4 {
        position: absolute;
        opacity: 0;
        display: none;
    }

}