body {
    height: 100vh;
    width: 100vw;
    background-color: black;
    margin: 0rem;
    overflow: hidden;
    animation: body_intro 5s;
    touch-action: none;
    
}
#image-track > .image {
    width: 40vmin;
    height: 56vmin;
    object-fit: cover;
    object-position: 100% 50%;
    
}

#image-track > .image:hover {
    cursor: pointer;
}

#image-track {
    display: flex;
    gap: 4vmin;
    position: absolute;
    left: 50%; top: 50%; transform: translate(0%, -50%);
    user-select: none;
    animation: intro 5s ease-in;
    z-index: 1;
}

h1 {
    font-size: 5vw;
    font-family: "space mono", monospace;
    text-align: center;
    position: relative;
    top: 4%;
    gap: 4vmin;
    user-select: none;
    background: linear-gradient(to right, rgb(139, 215, 95), rgb(49, 165, 178));
    -webkit-background-clip: text; 
    background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 2;
}

h2 {    
    user-select: none;
    color: white;
    backdrop-filter: blur(3px);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    bottom: 10px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    gap: 5px;
    right: 10px;
    padding: 10px 20px;
    position: fixed;
    z-index: 10000;
    animation: hide_appear 6s;
    
}


#blob {
    height: 500px;
    aspect-ratio: 1;
    position: fixed;
    left: 0;
    top: 0;
    border-radius: 50%;
    background: linear-gradient(
        to right,
        rgb(38, 198, 38),
        rgb(62, 62, 226)
    );
    filter: blur(200px)
}

.hider {
    animation: hide 1s forwards;
}


@keyframes body_intro {
    0% {
        transform: translateY(-35%);
        
    }

    95% {
        transform: translateY(-35%);
    }

    100% {
        transform: translateY(0%);
    }
}


@keyframes intro {
    0% {
        transform: translate(-100%, -50%);
    }

    30% {
        transform: translate(-80%, -50%);
    }

    100% {
        transform: translate(0%, -50%);
    }
}

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

    83.3% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
    
}

@keyframes hide {
    0% {
        opacity: 100;
    }

    100% {
        opacity: 0;
    }
}

#back-link {
    backdrop-filter: blur(3px);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    bottom: 10px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
    color: white;
    display: inline-flex;
    font-family: "Space Mono", monospace;
    font-size: 0.85rem;
    left: 10px;
    padding: 10px 20px;
    position: fixed;
    text-decoration: none;
    transition: background-color 400ms, border-color 400ms;
    z-index: 10000;
    animation: hide_appear 6s;
}

#back-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

/* ─── card overlay ─────────────────────────────────────────────────────────── */

#card-overlay {
    align-items: center;
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    gap: 2.5vw;
    inset: 0;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.35s ease;
    z-index: 20000;
}

#card-overlay.open {
    opacity: 1;
    pointer-events: all;
}

#card-frame {
    aspect-ratio: 5 / 7;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    position: relative;
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: min(calc(82vh * 5 / 7), 80vw);
}

#card-overlay.open #card-frame {
    transform: scale(1);
}

#card-img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
    width: 100%;
}

#card-info {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.68));
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    left: 0;
    padding: 50px 20px 18px;
    position: absolute;
    right: 0;
}

#card-location {
    color: white;
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    opacity: 0.9;
}

#card-counter {
    color: rgba(255, 255, 255, 0.45);
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
}

#card-close {
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    height: 36px;
    line-height: 36px;
    position: absolute;
    right: 14px;
    text-align: center;
    top: 14px;
    transition: background 300ms, border-color 300ms;
    width: 36px;
    z-index: 1;
}

#card-close:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.6);
}

.card-nav {
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 2rem;
    height: 52px;
    line-height: 52px;
    text-align: center;
    transition: background 300ms, border-color 300ms;
    width: 52px;
}

.card-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}
