body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0; 
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dis, .con, .ect {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    margin: 0% 0; 
    font-size: 50px; 
}

.half {
    position: relative;
    height: 50px;
    width: 100px; 
    overflow: hidden;
    font-weight: bold;
    color: black;
    display: flex;
    justify-content: center;
    align-items: flex-end; 
}

.top {
    clip-path: inset(0 0 50% 0);
    background: #f0f0f0; 
    z-index: 1;
    align-items: flex-end; 
    color: purple;
    animation: move 2s infinite alternate;
}
@keyframes move {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(25px);
    }
}

.bottom {
    clip-path: inset(50% 0 0 0);
    background: white;
    color: green;
    animation: move-bottom 2s infinite alternate;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

@keyframes move-bottom {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-25px);
    }
}


.line {
    width: 100px; 
    height: 3px;
    background: black;
    margin: -25px; 
    position: sticky; 
    align-items: flex-end; 
}
    
