@font-face {
    font-family: 'CustomFont';
    src: url('https://camillemormal.com/static/font/s.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    height: 100vh;
    width: 100vw;
    background-color: #141414;
    margin: 0rem;
    overflow: hidden;
    font-family: 'CustomFont', sans-serif;
}

#image-track {
    display: flex;
    gap: 4vmin;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(0%, -50%);
    user-select: none;
}

#image-track > .image {
    width: 36vmin;
    height: 50vmin;
    object-fit: cover;
    object-position: 100% center;
}

#cursor svg {
    fill: #fff;
    height: 22px;
    width: 22px;
    position: absolute;
    left: calc(50% - 11px);
    top: calc(50% - 11px);
}

#image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.counter-text {
    display: inline-block;
}

.current-number {
    position: relative;
    display: inline-block;
}

.fade-in-up {
    animation: fadeInUp 0.5s forwards;
}

.fade-out-up {
    animation: fadeOutUp 0.5s forwards;
}

.fade-in-down {
    animation: fadeInDown 0.5s forwards;
}

.fade-out-down {
    animation: fadeOutDown 0.5s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
}

#modal.hidden {
    display: none;
}

#modal-content {
    position: relative;
    text-align: center;
    color: white;
}

#modal-image {
    max-width: 90vw;
    max-height: 80vh;
    transition: transform 0.5s ease;
    transform-origin: center center;
}

#modal-title {
    position: absolute;
    top: 20px;
    width: 100%;
    text-align: center;
    font-size: 2rem;
    opacity: 0;
}

.title-hidden {
    opacity: 0;
    transform: translateY(-50px);
}

.title-visible {
    animation: titleFlyIn 1s forwards;
}

@keyframes titleFlyIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}