/* =====================================================
   CROARTIS MUSEUM
   STANDALONE ENTRANCE
   NO DEPENDENCIES
===================================================== */


/* =====================================================
   RESET
===================================================== */

html,
body {

    margin: 0;

    padding: 0;

    width: 100%;

    min-height: 100%;

}


body {

    background: #f7f5ef;

}


/* =====================================================
   MAIN MUSEUM
===================================================== */

.croartis-museum {

    width: 100%;

    min-height: 100vh;

    background: #f7f5ef;

    color: #181818;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    display: flex;

    flex-direction: column;

    align-items: center;

    position: relative;

    overflow: hidden;

    padding-top: 40px;

}


/* =====================================================
   MAIN HEADER
   SAMO OVDJE JE CROARTIS / MUSEUM
===================================================== */

.museum-header {

    text-align: center;

    position: relative;

    z-index: 30;

    margin-bottom: 12px;

}


.museum-header-croartis {

    font-size: 60px;

    letter-spacing: 13px;

    font-weight: 300;

    line-height: 1;

    background:

        linear-gradient(
            90deg,
            #b40000,
            #ffffff,
            #000000,
            #ffffff,
            #b40000
        );

    background-size: 300% 100%;

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;

    animation:
        museumTitleFlow 8s ease infinite;

}


.museum-header h1 {

    margin: 4px 0 0 0;

    font-size: 30px;

    font-weight: 300;

    letter-spacing: 12px;

}


/* =====================================================
   CROARTIS COLOR FLOW
===================================================== */

@keyframes museumTitleFlow {

    0% {

        background-position: 0% 50%;

    }

    50% {

        background-position: 100% 50%;

    }

    100% {

        background-position: 0% 50%;

    }

}


/* =====================================================
   BUILDING
===================================================== */

.museum-building {

    position: relative;

    width: min(1500px, 100vw);

    height: 570px;

    outline: none;

    perspective: 1500px;

}


/* =====================================================
   SIDE WINGS
   DVA KATA + PROZORI
===================================================== */

.museum-wing {

    position: absolute;

    top: 100px;

    width: 46%;

    height: 350px;

    border-top: 1px solid #444;

    border-bottom: 1px solid #444;

    background: #ffffff;

    box-sizing: border-box;

    z-index: 2;

}


/* =====================================================
   LEFT WING
===================================================== */

.museum-wing-left {

    left: 0;

    border-left: 1px solid #444;

    transform:
        perspective(1000px)
        rotateY(5deg);

}


/* =====================================================
   RIGHT WING
===================================================== */

.museum-wing-right {

    right: 0;

    border-right: 1px solid #444;

    transform:
        perspective(1000px)
        rotateY(-5deg);

}


/* =====================================================
   FLOORS
===================================================== */

.museum-floor {

    position: absolute;

    left: 0;

    right: 0;

    height: 50%;

    display: flex;

    align-items: center;

    justify-content: space-around;

    padding: 0 5%;

    box-sizing: border-box;

}


/* =====================================================
   FLOOR DIVISION
===================================================== */

.floor-1 {

    top: 0;

    border-bottom: 1px solid #555;

}


.floor-2 {

    bottom: 0;

}


/* =====================================================
   WINDOWS
   SAMO VANJSKI OKVIR
   BEZ KRIŽA
===================================================== */

.window {

    width: 13%;

    height: 48%;

    border: 1px solid #555;

    background: #f7f7f5;

    box-sizing: border-box;

    position: relative;

}


.window::after {

    content: "";

    position: absolute;

    inset: 4px;

    border: 1px solid rgba(80,80,80,.16);

}


/* =====================================================
   CENTRAL BUILDING
===================================================== */

.museum-central {

    position: absolute;

    left: 50%;

    top: 30px;

    width: 46%;

    height: 440px;

    transform:
        translateX(-50%)
        translateZ(40px);

    z-index: 10;

}


/* =====================================================
   WHITE ARCHITECTURAL BLOCK
   PERMANENT ART ARCHIVE
===================================================== */

.museum-top {

    width: 100%;

    height: 88px;

    border: 1px solid #383838;

    background: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    box-sizing: border-box;

    box-shadow:
        0 12px 25px rgba(0,0,0,.07);

}


/* =====================================================
   ARCHIVE TITLE
===================================================== */

.museum-archive {

    width: 100%;

    text-align: center;

}


.archive-main {

    font-size: 16px;

    letter-spacing: 5px;

    font-weight: 400;

    color: #111;

    white-space: nowrap;

    text-shadow:
        0 0 4px rgba(255,255,255,.9),
        0 0 12px rgba(255,255,255,.8);

    animation:
        archiveLight 5s ease-in-out infinite;

}


.archive-sub {

    margin-top: 8px;

    font-size: 13px;

    letter-spacing: 2.5px;

    color: #555;

}


/* =====================================================
   ARCHIVE LIGHT
===================================================== */

@keyframes archiveLight {

    0% {

        text-shadow:
            -15px 0 4px rgba(255,255,255,.1),
            0 0 5px rgba(255,255,255,.4);

    }

    50% {

        text-shadow:
            15px 0 9px rgba(255,255,255,1),
            0 0 18px rgba(255,255,255,.9);

    }

    100% {

        text-shadow:
            -15px 0 4px rgba(255,255,255,.1),
            0 0 5px rgba(255,255,255,.4);

    }

}


/* =====================================================
   FACADE
===================================================== */

.museum-facade {

    width: 100%;

    height: 352px;

    position: relative;

    border-left: 1px solid #444;

    border-right: 1px solid #444;

    border-bottom: 1px solid #444;

    background: #ffffff;

    box-sizing: border-box;

}


/* =====================================================
   ENTRANCE PORTAL
   VRATA DO GORNJE CRTE
===================================================== */

.museum-entrance {

    position: absolute;

    left: 50%;

    bottom: 0;

    transform:
        translateX(-50%);

    width: 54%;

    height: 352px;

    background: #dcdad5;

    border:
        1px solid #3c3c3c;

    border-bottom: none;

    box-sizing: border-box;

    box-shadow:
        inset 0 0 50px rgba(0,0,0,.17);

}


/* =====================================================
   PORTAL DEPTH
===================================================== */

.entrance-depth {

    position: absolute;

    top: 17px;

    left: 17px;

    right: 17px;

    bottom: 0;

    border:
        1px solid #555;

    background:

        linear-gradient(
            90deg,
            #bcbab5,
            #f4f3ee 50%,
            #bcbab5
        );

    overflow: hidden;

    perspective: 1000px;

}


/* =====================================================
   INNER LIGHT
===================================================== */

.entrance-light {

    position: absolute;

    left: 50%;

    top: 0;

    width: 60%;

    height: 100%;

    transform:
        translateX(-50%);

    background:

        radial-gradient(
            ellipse,
            rgba(255,255,255,.95),
            rgba(255,255,255,.02) 72%
        );

    opacity: .7;

}


/* =====================================================
   DOOR FRAME
===================================================== */

.museum-door-frame {

    position: absolute;

    left: 50%;

    top: 0;

    bottom: 0;

    transform:
        translateX(-50%);

    width: 76%;

    display: flex;

    border:
        1px solid #333;

    overflow: hidden;

    z-index: 5;

}


/* =====================================================
   DOORS
   SAMO VRATA SU KLIKABILNA
===================================================== */

.museum-door {

    width: 50%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:

        linear-gradient(
            135deg,
            #eeeeea,
            #ceccc7
        );

    text-decoration: none;

    transition:
        transform 1.1s cubic-bezier(.2,.75,.25,1),
        background .5s ease;

    position: relative;

}


/* =====================================================
   LEFT DOOR
===================================================== */

.door-left {

    border-right:
        1px solid #555;

    transform-origin:
        left center;

}


/* =====================================================
   RIGHT DOOR
===================================================== */

.door-right {

    border-left:
        1px solid #555;

    transform-origin:
        right center;

}


/* =====================================================
   DOOR TEXT
   VODORAVNO
   CRVENA → BIJELA → CRNA → BIJELA → CRVENA
===================================================== */

.museum-door span {

    writing-mode:
        horizontal-tb;

    transform:
        none;

    font-size: 18px;

    letter-spacing: 6px;

    font-weight: 300;

    text-align: center;

    background:

        linear-gradient(
            90deg,
            #b40000,
            #ffffff,
            #000000,
            #ffffff,
            #b40000
        );

    background-size: 300% 100%;

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;

    animation:
        doorTextFlow 8s ease infinite;

}


/* =====================================================
   DOOR TEXT ANIMATION
===================================================== */

@keyframes doorTextFlow {

    0% {

        background-position: 0% 50%;

    }

    50% {

        background-position: 100% 50%;

    }

    100% {

        background-position: 0% 50%;

    }

}


/* =====================================================
   DOOR HOVER
===================================================== */

.museum-door:hover {

    background:

        linear-gradient(
            135deg,
            #f8f8f5,
            #d5d3ce
        );

}


/* =====================================================
   OPENING
===================================================== */

.museum-door.door-opening.door-left {

    transform:
        rotateY(-58deg);

}


.museum-door.door-opening.door-right {

    transform:
        rotateY(58deg);

}


/* =====================================================
   STEPS
===================================================== */

.museum-steps {

    position: absolute;

    left: 50%;

    bottom: 0;

    transform:
        translateX(-50%);

    width: 72%;

    height: 160px;

    display: flex;

    flex-direction: column;

    align-items: center;

    z-index: 12;

}


.step {

    height: 20px;

    border-top:
        1px solid #555;

    border-bottom:
        1px solid rgba(50,50,50,.20);

    background:

        linear-gradient(
            180deg,
            #f1f0eb,
            #dcdad5
        );

}


/* =====================================================
   STEP WIDTHS
===================================================== */

.step-1 {
    width: 43%;
}

.step-2 {
    width: 49%;
}

.step-3 {
    width: 55%;
}

.step-4 {
    width: 61%;
}

.step-5 {
    width: 68%;
}

.step-6 {
    width: 76%;
}

.step-7 {
    width: 87%;
}

.step-8 {
    width: 100%;
}


/* =====================================================
   GROUND LINE
===================================================== */

.museum-ground-line {

    position: absolute;

    left: 0;

    right: 0;

    bottom: 0;

    height: 1px;

    background: #3d3d3d;

    z-index: 20;

}


/* =====================================================
   EST. 2026
===================================================== */

.museum-year {

    position: absolute;

    right: 5%;

    bottom: 34px;

    font-size: 16px;

    letter-spacing: 6px;

    color: #555;

    white-space: nowrap;

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .croartis-museum {

        padding-top: 30px;

    }


    .museum-header-croartis {

        font-size: 44px;

        letter-spacing: 9px;

    }


    .museum-header h1 {

        font-size: 25px;

        letter-spacing: 8px;

    }


    .museum-building {

        height: 500px;

    }


    .museum-central {

        width: 58%;

        height: 390px;

    }


    .museum-top {

        height: 76px;

    }


    .museum-facade {

        height: 314px;

    }


    .museum-wing {

        height: 310px;

        top: 90px;

    }


    .museum-entrance {

        height: 314px;

    }


    .museum-steps {

        height: 135px;

    }


    .step {

        height: 17px;

    }


    .museum-door span {

        font-size: 14px;

        letter-spacing: 4px;

    }


    .museum-year {

        right: 3%;

        font-size: 12px;

    }


    .archive-main {

        font-size: 13px;

        letter-spacing: 4px;

    }


    .archive-sub {

        font-size: 8px;

        letter-spacing: 2px;

    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .croartis-museum {

        min-height: 100svh;

        padding-top: 25px;

    }


    .museum-header-croartis {

        font-size: 31px;

        letter-spacing: 6px;

    }


    .museum-header h1 {

        font-size: 21px;

        letter-spacing: 6px;

    }


    .museum-building {

        height: 405px;

    }


    .museum-wing {

        display: none;

    }


    .museum-central {

        width: 88%;

        height: 315px;

    }


    .museum-top {

        height: 65px;

    }


    .museum-facade {

        height: 250px;

    }


    .archive-main {

        font-size: 9px;

        letter-spacing: 3px;

    }


    .archive-sub {

        font-size: 6px;

        letter-spacing: 1.5px;

    }


    .museum-entrance {

        width: 58%;

        height: 250px;

    }


    .entrance-depth {

        top: 12px;

        left: 12px;

        right: 12px;

    }


    .museum-door span {

        font-size: 10px;

        letter-spacing: 3px;

    }


    .museum-steps {

        width: 90%;

        height: 108px;

    }


    .step {

        height: 13px;

    }


    .museum-year {

        right: 4%;

        bottom: 15px;

        font-size: 9px;

        letter-spacing: 3px;

    }

}


/* =====================================================
   PATCH — MUSEUM DOOR TEXT
   ENTER / MUSEUM = PURE WHITE
===================================================== */

.museum-door span {

    background: none !important;

    -webkit-background-clip: initial !important;
    background-clip: initial !important;

    color: #ffffff !important;

    animation: none !important;

    text-shadow: none !important;

}


/* =====================================================
   FINAL PATCH — VERY SLOW MUSEUM DOORS
===================================================== */

.museum-door {
    transition: transform 5s cubic-bezier(.25,.8,.25,1) !important;
    transform-style: preserve-3d !important;
    will-change: transform;
}


/* LIJEVA VRATA */

.museum-door.door-opening.door-left {
    transform: perspective(1400px) rotateY(-75deg) !important;
}


/* DESNA VRATA */

.museum-door.door-opening.door-right {
    transform: perspective(1400px) rotateY(75deg) !important;
}


/* 3D PROSTOR U KOJEM SE VRATA OTVARAJU */

.entrance-depth {
    perspective: 1400px !important;
}


/* OKVIR OSTANE NEPOMIČAN */

.museum-door-frame {
    transform-style: preserve-3d !important;
}


/* =====================================================
   PERMANENT ART ARCHIVE
   BIJELI SVJETLOSNI FLASH
   LIJEVO → DESNO → NATRAG
===================================================== */

.museum-archive .archive-main {

    position: relative;

    display: inline-block;

    color: #111;

    overflow: hidden;

}


/* =====================================================
   SVJETLOSNA TRAKA
===================================================== */

.museum-archive .archive-main::after {

    content: "";

    position: absolute;

    top: -20%;

    left: -80%;

    width: 35%;

    height: 140%;

    background:

        linear-gradient(
            90deg,
            rgba(255,255,255,0),
            rgba(255,255,255,.95),
            rgba(255,255,255,0)
        );

    transform:
        skewX(-18deg);

    pointer-events: none;

    animation:
        archiveFlash 5s ease-in-out infinite;

}


/* =====================================================
   FLASH ANIMATION
   LIJEVO → DESNO → LIJEVO
===================================================== */

@keyframes archiveFlash {

    0% {

        left: -80%;

        opacity: 0;

    }


    10% {

        opacity: 0;

    }


    25% {

        opacity: 1;

    }


    50% {

        left: 145%;

        opacity: 1;

    }


    60% {

        opacity: 0;

    }


    75% {

        left: 145%;

        opacity: 0;

    }


    90% {

        left: -80%;

        opacity: 0;

    }


    100% {

        left: -80%;

        opacity: 0;

    }

}


/* =====================================================
   JAČI BIJELI BLJESAK
===================================================== */

.museum-archive .archive-main {

    text-shadow:

        0 0 4px rgba(255,255,255,.8),

        0 0 10px rgba(255,255,255,.5);

}


/* =====================================================
   CROARTIS MUSEUM
   FINAL ATMOSPHERE PATCH
   SUBTLE VISITOR SHADOWS IN WINDOWS
===================================================== */


/* =====================================================
   WINDOW DEPTH
===================================================== */

.window {

    overflow: hidden;

}


/* =====================================================
   VISITOR SHADOWS
   NEPRAVILNO I SUPTILNO KRETANJE
===================================================== */

.window::before {

    content: "";

    position: absolute;

    left: -45%;

    bottom: -10%;

    width: 55%;

    height: 85%;

    background:

        radial-gradient(
            ellipse at center,
            rgba(30,30,30,.22) 0%,
            rgba(30,30,30,.13) 35%,
            rgba(30,30,30,0) 72%
        );

    border-radius: 50% 50% 20% 20%;

    opacity: 0;

    filter: blur(3px);

    animation:
        visitorShadowOne 17s ease-in-out infinite;

}


/* =====================================================
   SECOND VISITOR SHADOW
===================================================== */

.window::after {

    content: "";

    position: absolute;

    inset: 4px;

    border: 1px solid rgba(80,80,80,.16);

    overflow: hidden;

}


/* =====================================================
   SHADOW ANIMATION
===================================================== */

@keyframes visitorShadowOne {

    0% {

        left: -55%;

        opacity: 0;

        transform:
            scale(.85);

    }

    12% {

        opacity: 0;

    }

    22% {

        opacity: .45;

    }

    34% {

        opacity: .32;

        transform:
            scale(1);

    }

    45% {

        left: 15%;

        opacity: .20;

    }

    57% {

        left: 55%;

        opacity: .40;

        transform:
            scale(.92);

    }

    68% {

        left: 95%;

        opacity: 0;

        transform:
            scale(.85);

    }

    100% {

        left: 95%;

        opacity: 0;

    }

}


/* =====================================================
   DIFFERENT TIMING FOR EACH WINDOW
   DA NE IZGLEDAJU KAO JEDNA ANIMACIJA
===================================================== */

.window:nth-child(1)::before {

    animation-delay: 0s;

}


.window:nth-child(2)::before {

    animation-delay: -7s;

}


.window:nth-child(3)::before {

    animation-delay: -13s;

}


.window:nth-child(4)::before {

    animation-delay: -3s;

}


.window:nth-child(5)::before {

    animation-delay: -10s;

}


/* =====================================================
   DESNO KRILO
   DRUGAČIJI RITAM
===================================================== */

.museum-wing-right .window:nth-child(1)::before {

    animation-delay: -5s;

}


.museum-wing-right .window:nth-child(2)::before {

    animation-delay: -15s;

}


.museum-wing-right .window:nth-child(3)::before {

    animation-delay: -9s;

}


.museum-wing-right .window:nth-child(4)::before {

    animation-delay: -2s;

}


.museum-wing-right .window:nth-child(5)::before {

    animation-delay: -12s;

}


/* =====================================================
   SECOND FLOOR
   MALO SPORIJE I RJEĐE
===================================================== */

.floor-2 .window::before {

    animation-duration: 21s;

}


/* =====================================================
   FIRST FLOOR
   MALO VIŠE AKTIVNOSTI
===================================================== */

.floor-1 .window::before {

    animation-duration: 16s;

}


/* =====================================================
   MOBILE
   PROZORI SU SKRIVENI PA ISKLJUČUJEMO EFEKT
===================================================== */

@media (max-width: 600px) {

    .window::before {

        animation: none;

        opacity: 0;

    }

}


/* =====================================================
   CROARTIS MUSEUM
   SKY / DAYLIGHT ATMOSPHERE PATCH
   CSS ONLY
===================================================== */


/* =====================================================
   SKY LAYER
   NEBO U PRAZNOM PROSTORU IZA ZGRADE
===================================================== */

.croartis-museum::before {

    content: "";

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 620px;

    pointer-events: none;

    z-index: 0;

    background:

        linear-gradient(
            180deg,
            #eef2f3 0%,
            #f4f5f3 38%,
            #f7f5ef 78%,
            #f7f5ef 100%
        );

}


/* =====================================================
   VERY LIGHT SKY MOVEMENT
===================================================== */

.croartis-museum::after {

    content: "";

    position: absolute;

    top: 0;

    left: -30%;

    width: 160%;

    height: 520px;

    pointer-events: none;

    z-index: 1;

    background:

        radial-gradient(
            ellipse at 30% 20%,
            rgba(255,255,255,.55),
            rgba(255,255,255,0) 32%
        );

    animation:
        skyBreathing 22s ease-in-out infinite;

}


@keyframes skyBreathing {

    0% {

        transform:
            translateX(-3%);

        opacity: .55;

    }

    50% {

        transform:
            translateX(3%);

        opacity: .82;

    }

    100% {

        transform:
            translateX(-3%);

        opacity: .55;

    }

}


/* =====================================================
   CLOUDS
   TRI VRLO SUPTILNA SLOJA
===================================================== */

.museum-header::before {

    content: "";

    position: absolute;

    top: 55px;

    left: -260px;

    width: 180px;

    height: 42px;

    border-radius: 50%;

    background:

        radial-gradient(
            ellipse,
            rgba(255,255,255,.78),
            rgba(255,255,255,.12) 70%,
            rgba(255,255,255,0) 100%
        );

    filter:
        blur(7px);

    opacity: .65;

    pointer-events: none;

    z-index: -1;

    animation:
        cloudTravelOne 34s linear infinite;

}


/* =====================================================
   SECOND CLOUD
===================================================== */

.museum-header::after {

    content: "";

    position: absolute;

    top: 145px;

    right: -300px;

    width: 230px;

    height: 48px;

    border-radius: 50%;

    background:

        radial-gradient(
            ellipse,
            rgba(255,255,255,.70),
            rgba(255,255,255,.08) 70%,
            rgba(255,255,255,0) 100%
        );

    filter:
        blur(8px);

    opacity: .55;

    pointer-events: none;

    z-index: -1;

    animation:
        cloudTravelTwo 42s linear infinite;

}


@keyframes cloudTravelOne {

    0% {

        transform:
            translateX(0)
            scale(.9);

        opacity: 0;

    }

    12% {

        opacity: .65;

    }

    50% {

        opacity: .72;

    }

    88% {

        opacity: .45;

    }

    100% {

        transform:
            translateX(calc(100vw + 620px))
            scale(1.15);

        opacity: 0;

    }

}


@keyframes cloudTravelTwo {

    0% {

        transform:
            translateX(0)
            scale(1.05);

        opacity: 0;

    }

    12% {

        opacity: .5;

    }

    50% {

        opacity: .65;

    }

    88% {

        opacity: .35;

    }

    100% {

        transform:
            translateX(calc(-100vw - 700px))
            scale(.9);

        opacity: 0;

    }

}


/* =====================================================
   SUN
   IZLAZI IZA ZGRADE
===================================================== */

.museum-central::before {

    content: "";

    position: absolute;

    left: 50%;

    top: -125px;

    width: 145px;

    height: 145px;

    transform:
        translateX(-50%);

    border-radius: 50%;

    background:

        radial-gradient(
            circle,
            rgba(255,255,255,1) 0%,
            rgba(255,255,255,.92) 24%,
            rgba(255,250,220,.58) 48%,
            rgba(255,245,205,0) 76%
        );

    filter:
        blur(1px);

    opacity: .78;

    pointer-events: none;

    z-index: -1;

    animation:
        sunRise 18s ease-in-out infinite;

}


@keyframes sunRise {

    0% {

        transform:
            translateX(-50%)
            translateY(18px)
            scale(.82);

        opacity: .38;

    }

    50% {

        transform:
            translateX(-50%)
            translateY(0)
            scale(1.08);

        opacity: .82;

    }

    100% {

        transform:
            translateX(-50%)
            translateY(18px)
            scale(.82);

        opacity: .38;

    }

}


/* =====================================================
   SUNLIGHT BEHIND THE ROOF
===================================================== */

.museum-top {

    position: relative;

    z-index: 3;

}


.museum-top::before {

    content: "";

    position: absolute;

    left: 50%;

    top: -34px;

    width: 260px;

    height: 90px;

    transform:
        translateX(-50%);

    background:

        radial-gradient(
            ellipse,
            rgba(255,248,220,.45),
            rgba(255,248,220,0) 72%
        );

    pointer-events: none;

    z-index: -1;

    animation:
        roofSunGlow 12s ease-in-out infinite;

}


@keyframes roofSunGlow {

    0% {

        opacity: .25;

    }

    50% {

        opacity: .75;

    }

    100% {

        opacity: .25;

    }

}


/* =====================================================
   BIRDS
   SITNE SILUETE
===================================================== */

.museum-building::before {

    content: "⌁    ︿      ⌁";

    position: absolute;

    top: 72px;

    left: -220px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 18px;

    font-weight: 300;

    letter-spacing: 18px;

    color: rgba(40,40,40,.28);

    white-space: nowrap;

    pointer-events: none;

    z-index: 4;

    transform:
        scale(.65);

    animation:
        birdsFlight 28s linear infinite;

}


@keyframes birdsFlight {

    0% {

        transform:
            translateX(0)
            translateY(12px)
            scale(.65);

        opacity: 0;

    }

    8% {

        opacity: .45;

    }

    45% {

        opacity: .32;

    }

    78% {

        opacity: .42;

    }

    100% {

        transform:
            translateX(calc(100vw + 520px))
            translateY(-25px)
            scale(.8);

        opacity: 0;

    }

}


/* =====================================================
   SECOND GROUP OF BIRDS
===================================================== */

.museum-building::after {

    content: "︿       ⌁   ︿";

    position: absolute;

    top: 155px;

    right: -300px;

    font-size: 15px;

    letter-spacing: 20px;

    color: rgba(50,50,50,.20);

    white-space: nowrap;

    pointer-events: none;

    z-index: 4;

    transform:
        scale(.55);

    animation:
        birdsFlightBack 39s linear infinite;

}


@keyframes birdsFlightBack {

    0% {

        transform:
            translateX(0)
            translateY(-10px)
            scale(.55);

        opacity: 0;

    }

    12% {

        opacity: .32;

    }

    50% {

        opacity: .22;

    }

    88% {

        opacity: .30;

    }

    100% {

        transform:
            translateX(calc(-100vw - 650px))
            translateY(20px)
            scale(.7);

        opacity: 0;

    }

}


/* =====================================================
   SKY MUST STAY BEHIND THE ARCHITECTURE
===================================================== */

.museum-header,
.museum-building,
.museum-year {

    position: relative;

}


.museum-header {

    z-index: 30;

}


.museum-building {

    z-index: 10;

}


/* =====================================================
   MOBILE SKY
===================================================== */

@media (max-width: 600px) {

    .croartis-museum::before {

        height: 470px;

    }


    .croartis-museum::after {

        height: 420px;

    }


    .museum-header::before {

        top: 42px;

        width: 130px;

        height: 30px;

    }


    .museum-header::after {

        top: 105px;

        width: 150px;

        height: 32px;

    }


    .museum-central::before {

        width: 105px;

        height: 105px;

        top: -85px;

    }


    .museum-building::before {

        top: 58px;

        font-size: 13px;

        letter-spacing: 10px;

    }


    .museum-building::after {

        top: 120px;

        font-size: 11px;

        letter-spacing: 12px;

    }

}


/* =====================================================
   SKY PATCH — CLOUDS + BIRDS BOOST
===================================================== */


/* =====================================================
   STRONGER CLOUDS
===================================================== */

.museum-header::before {

    opacity: .88 !important;

}


.museum-header::after {

    opacity: .78 !important;

}


/* =====================================================
   CLOUDS — MORE FREQUENT MOVEMENT
===================================================== */

.museum-header::before {

    animation-duration:
        26s !important;

}


.museum-header::after {

    animation-duration:
        32s !important;

}


/* =====================================================
   BIRDS — MORE FREQUENT FLIGHTS
===================================================== */

.museum-building::before {

    animation-duration:
        18s !important;

}


.museum-building::after {

    animation-duration:
        24s !important;

}


/* =====================================================
   BIRDS — SLIGHTLY MORE VISIBLE
===================================================== */

.museum-building::before {

    color:
        rgba(40,40,40,.36) !important;

}


.museum-building::after {

    color:
        rgba(50,50,50,.28) !important;

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .museum-header::before {

        opacity: .82 !important;

        animation-duration:
            22s !important;

    }


    .museum-header::after {

        opacity: .72 !important;

        animation-duration:
            28s !important;

    }


    .museum-building::before {

        animation-duration:
            15s !important;

    }


    .museum-building::after {

        animation-duration:
            20s !important;

    }

}



/* =====================================================
   SKY PATCH — HIGH BIRD FLOCK + DISTANT AIRPLANE
   VISIBLE VERSION
===================================================== */


/* =====================================================
   VISOKO JATO PTICA
   SUPROTAN SMJER OD POSTOJEĆIH PTICA
===================================================== */

.museum-top::after {

    content:
        "⌁    ︿       ⌁      ︿        ⌁";

    position: absolute;

    top: -82px;

    right: -300px;

    width: max-content;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 17px;

    font-weight: 300;

    letter-spacing: 16px;

    color:
        rgba(35,35,35,.38);

    white-space: nowrap;

    pointer-events: none;

    z-index: 50;

    animation:
        highBirdsFlight 20s linear infinite;

}


@keyframes highBirdsFlight {

    0% {

        transform:
            translateX(0)
            translateY(10px)
            scale(.65);

        opacity: 0;

    }

    8% {

        opacity: .45;

    }

    35% {

        opacity: .38;

    }

    70% {

        opacity: .42;

    }

    90% {

        opacity: .22;

    }

    100% {

        transform:
            translateX(calc(-100vw - 700px))
            translateY(-25px)
            scale(.82);

        opacity: 0;

    }

}


/* =====================================================
   DALeki AVION
   VISOKO NEBO — VRLO SUPTILNA SILUETA
===================================================== */

.museum-facade::before {

    content: "✈";

    position: absolute;

    top: -155px;

    left: -180px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 13px;

    font-weight: 300;

    color:
        rgba(35,35,35,.30);

    white-space: nowrap;

    pointer-events: none;

    z-index: 40;

    animation:
        distantPlaneFlight 34s linear infinite;

}


@keyframes distantPlaneFlight {

    0% {

        transform:
            translateX(0)
            translateY(18px)
            scale(.55);

        opacity: 0;

    }

    8% {

        opacity: .30;

    }

    25% {

        opacity: .28;

    }

    60% {

        opacity: .24;

    }

    88% {

        opacity: .18;

    }

    100% {

        transform:
            translateX(calc(100vw + 500px))
            translateY(-30px)
            scale(.75);

        opacity: 0;

    }

}


/* =====================================================
   JOŠ MALO VIŠE NEBA IZNAD ZGRADE
===================================================== */

.museum-top {

    overflow: visible !important;

}


.museum-facade {

    overflow: visible !important;

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .museum-top::after {

        top: -58px;

        right: -210px;

        font-size: 12px;

        letter-spacing: 10px;

        animation-duration:
            17s;

    }


    .museum-facade::before {

        top: -105px;

        left: -120px;

        font-size: 9px;

        animation-duration:
            27s;

    }

}

