#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: inherit;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

#preloader.active {
    opacity: 1;
    pointer-events: all;
}

#preloader img {
    width: 300px;
    max-width: 80vw;
    animation: heartbeat 1.2s ease-in-out infinite;
}

@keyframes heartbeat {

    0% {
        transform: scale(1);
        opacity: 1;
    }

    25% {
        transform: scale(1.08);
        opacity: 0.85;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }

    60% {
        transform: scale(1.08);
        opacity: 0.85;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }

}