.komunikat-main {
    display: none;
    margin: auto;
    position: fixed; /* Ustawia element na stałe, bez przesuwania przy przewijaniu */
    top: 80px; /* Odległość od górnej krawędzi */
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 20px);
    height: auto;
    z-index: 10000;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 9px;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px,
        rgba(0, 0, 0, 0.23) 0px 6px 6px;
    overflow: hidden;
}

.komunikat-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

@keyframes komunikat-in {
    from {
        transform: translateX(-50%) translateY(-400px);
    }
    to {
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes komunikat-out {
    from {
        transform: translateX(-50%) translateY(0);
    }
    to {
        transform: translateX(-50%) translateY(-400px);
    }
}

.show-komunikat {
    animation: komunikat-in 0.9s;
}

.hide-komunikat {
    animation: komunikat-out 0.9s;
}
