html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circle_container {
    display: flex; 
    justify-content: center;
    align-items: center;
    
    width: 100vw;
    height: 100vh;
}

/* 3. Tvůj černý kruh - zůstává uprostřed kontejneru */
.box_circle {
    width: 200px;
    height: 200px;
    background-color: black;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    
    /* Zajišťuje, že se kruh nezdeformuje na malých displejích */
    flex-shrink: 0; 
}





.wrapper {
    width: 180px;
    height: 60px;
    position: relative;
    z-index: 1;
}

.circle {
    width: 20px;
    height: 20px;
    position: absolute;
    border-radius: 50%;
    background-color: #fff;
    left: 15%;
    transform-origin: 50%;
    animation: circle1 .5s alternate infinite ease;
    }

@keyframes circle1 {
    0% {
        top: 60px;
        height: 5px;
        border-radius: 50px 50px 25px 25px;
        transform: scaleX(1.7);
    }

    40% {
        height: 20px;
        border-radius: 50%;
        transform: scaleX(1);
    }

    100% {
        top: 0%;
    }
}

.circle:nth-child(2) {
    left: 45%;
    animation-delay: .2s;
}

.circle:nth-child(3) {
    left: auto;
    right: 15%;
    animation-delay: .3s;
}






  /* Tvoje definice animace */
@keyframes fadein {
    0% {
        transform: scale(1);
    }
    
    100% {
        /* Zvětší se tak moc, že i rohy monitoru budou pod černou barvou */
        transform: scale(15); 
    }
}

@keyframes fadeOutQuick {
    0% {
        opacity: 1;
    }
    15% {
        opacity: 0; /* Zmizí už v 10 % času animace */
    }
    100% {
        opacity: 0; /* Zůstane neviditelný */
    }
}

/* Třída, kterou JavaScript přidá po 3 sekundách */
.start-animation {
    /* Spustí animaci 'fadein', bude trvat 1s a zůstane v konečném stavu */
    animation: fadein 1s forwards ease-in-out;
}

/* Obal, který chceme animovat */
.box_circle {
    /* Tvůj stávající styling... */
    transition: all 0.5s ease;
}

/* TATO ČÁST ZAŘÍDÍ ZMIZENÍ KULIČEK */
/* Když má box_circle třídu start-animation, tak se wrapper uvnitř schová */
.start-animation .wrapper {
    animation: fadeOutQuick 1.5s forwards; 
    /* Čas musí být stejný jako u expandCircle, aby těch 10 % sedělo */
}