/* FLASHING CLOCK */


.flashing {
    -webkit-animation: flash 8s infinite;
    animation: flash 8s infinite;
}

@keyframes flash {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}


/* FALLING IMAGES */
.fall {
    transform: translateY(250%) rotate(8deg);
    transition: transform 1.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}


/* FADE IN FADE OUT */
.fade-loop {
    animation: fadeLoop 4s ease-in-out infinite;
}

@keyframes fadeLoop {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Resume popup */
#resume-popup {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100vw;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;

}

#resume-popup>div {
    height: fit-content;
    width: fit-content;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 8px;
    transform: rotate(-2deg);
}

#resume-popup.show {
    transform: translateX(0%);
    opacity: 1;
}

#resume-popup img {
    display: block;
    object-fit: contain;
    border-radius: 6px;
    height: 600px;

}


.carousel-cell {
    width: 90%;
    aspect-ratio: 4/2.5;
    height: auto;
    margin-right: 10px;
}



/* position dots up a bit */
.flickity-page-dots {
    bottom: 0 !important;
    display: flex !important;
    padding-top: 14px !important;
    position: relative !important;
    width: 100% !important;
    justify-content: center;
}

/* dots are lines */
.flickity-page-dots .dot {
    height: 2px !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: var(--color-grey) !important;
}

.flickity-viewport {
    transition: height 0.2s;
}


@media (max-width: 500px) {
    .carousel-cell {
        width: 100%;
        aspect-ratio: 4/2.5;
        height: auto;
        margin-right: 10px;
    }

    #resume-popup>img {
        height: 400px;
    }
}