html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;
}

body {
    background: #ffffff;
}


/* =====================================================
   GLAVNA PROSTORIJA
===================================================== */

.museum-room {
    position: relative;

    width: 100vw;
    height: 100vh;

    overflow: hidden;

    background: #ffffff;
}


/* =====================================================
   STRAŽNJI ZID
===================================================== */

.room-back-wall {
    position: absolute;

    left: 10%;
    top: 10%;

    width: 80%;
    height: 80%;

    background: #ffffff;

    border-left: 1px solid #222222;
    border-right: 1px solid #222222;

    box-sizing: border-box;

    z-index: 3;
}


/* =====================================================
   LIJEVI BOČNI ZID
===================================================== */

.room-left-wall {
    position: absolute;

    left: 0;
    top: 0;

    width: 10%;
    height: 100%;

    background: #ffffff;

    clip-path: polygon(
        0% 0%,
        100% 10%,
        100% 90%,
        0% 100%
    );

    border-right: 1px solid #555555;

    box-sizing: border-box;

    z-index: 2;
}


/* =====================================================
   DESNI BOČNI ZID
===================================================== */

.room-right-wall {
    position: absolute;

    right: 0;
    top: 0;

    width: 10%;
    height: 100%;

    background: #ffffff;

    clip-path: polygon(
        0% 10%,
        100% 0%,
        100% 100%,
        0% 90%
    );

    border-left: 1px solid #555555;

    box-sizing: border-box;

    z-index: 2;
}

 /* =====================================================
    STROP — SVJETLI PASTELNI ANTRACIT
 ===================================================== */

.room-ceiling {
    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 10%;

    background: #bebfbf;

    clip-path: polygon(
        0% 0%,
        100% 0%,
        90% 100%,
        10% 100%
    );

    border-bottom: 1px solid #4f5251;

    box-sizing: border-box;

    z-index: 5;
}

/* =====================================================
   POD — BIJELI MRAMOR / DUBROVAČKI KAMEN
   NEPRAVILNE PLOČE + PERSPEKTIVA
===================================================== */

.room-floor {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 10%;

    background-color: #f8f8f5;

    /*
     * Osnovna vrlo suptilna mramorna struktura.
     */

    background-image:
        linear-gradient(
            116deg,
            transparent 0%,
            rgba(120,120,120,.035) 18%,
            transparent 34%,
            rgba(120,120,120,.025) 52%,
            transparent 70%,
            rgba(120,120,120,.035) 86%,
            transparent 100%
        );

    clip-path: polygon(
        10% 0%,
        90% 0%,
        100% 100%,
        0% 100%
    );

    border-top: 1px solid #bcbcb7;

    box-sizing: border-box;

    overflow: hidden;

    z-index: 20;
}


/* =====================================================
   POD — 3 VODORAVNE FUGE
===================================================== */

.room-floor::after {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    background-image:

        linear-gradient(
            to bottom,
            transparent 0%,
            transparent 24%,
            #b5b5b0 24%,
            #b5b5b0 calc(24% + 2px),
            transparent calc(24% + 2px)
        ),

        linear-gradient(
            to bottom,
            transparent 0%,
            transparent 52%,
            #b5b5b0 52%,
            #b5b5b0 calc(52% + 2px),
            transparent calc(52% + 2px)
        ),

        linear-gradient(
            to bottom,
            transparent 0%,
            transparent 78%,
            #b5b5b0 78%,
            #b5b5b0 calc(78% + 2px),
            transparent calc(78% + 2px)
        );

    z-index: 2;
}






/* =====================================================
   AMBIJENTALNO SVJETLO
===================================================== */

.room-ambient-light {
    position: absolute;

    left: 10%;
    top: 10%;

    width: 80%;
    height: 80%;

    pointer-events: none;

    background:
        radial-gradient(
            ellipse at 50% 45%,
            rgba(255,255,255,.55),
            rgba(255,255,255,0) 68%
        );

    z-index: 15;
}


/* =====================================================
   DISPLAY IZNAD VRATA
===================================================== */

.artist-display {
    position: absolute;

    left: 50%;
    top: 12%;

    width: 28%;
    height: 13%;

    transform: translateX(-50%);

    z-index: 30;
}

.artist-display-screen {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    border: 1px solid #111111;

    border-radius: 8px;

    background: #eeeeee;

    box-shadow:
        0 8px 20px rgba(0,0,0,.14);
}

.artist-art {
    position: absolute;

    inset: 0;

    opacity: 0;

    background-size: cover;
    background-position: center;

    animation:
        artistFade 20s infinite;
}

.art-one {
    background:
        linear-gradient(
            135deg,
            #bcbcbc,
            #f5f5f5,
            #898989
        );

    animation-delay: 0s;
}

.art-two {
    background:
        linear-gradient(
            45deg,
            #d8d8d8,
            #969696,
            #eeeeee
        );

    animation-delay: 5s;
}

.art-three {
    background:
        linear-gradient(
            135deg,
            #eeeeee,
            #a7a7a7,
            #d0d0d0
        );

    animation-delay: 10s;
}

.art-four {
    background:
        linear-gradient(
            45deg,
            #9d9d9d,
            #ededed,
            #c2c2c2
        );

    animation-delay: 15s;
}

@keyframes artistFade {

    0% {
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    33% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.artist-display-overlay {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 34%;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    background:
        rgba(255,255,255,.88);

    border-top: 1px solid rgba(0,0,0,.15);

    font-size: 10px;

    letter-spacing: 3px;
}

.artist-display-label {
    color: #777777;

    font-size: 8px;

    letter-spacing: 3px;
}

#artistDisplayName {
    color: #111111;

    transition:
        opacity .7s ease,
        transform .7s ease;
}

.artist-changing {
    opacity: 0;

    transform:
        translateY(5px);
}


/* =====================================================
   AUTORI
===================================================== */

.room-authors {
    position: absolute;

    left: 19%;
    top: 36%;

    width: 20%;

    z-index: 35;
}

.authors-heading {
    margin-bottom: 20px;

    font-size: 9px;

    letter-spacing: 5px;

    color: #888888;
}

.artist-link {
    display: block;

    width: fit-content;

    margin-bottom: 14px;

    padding-bottom: 4px;

    color: #181818;

    text-decoration: none;

    font-size: 12px;

    letter-spacing: 3px;

    border-bottom: 1px solid transparent;

    transition:
        color .3s ease,
        border-color .3s ease,
        transform .3s ease;
}

.artist-link:hover {
    color: #a00000;

    border-bottom-color: #a00000;

    transform: translateX(6px);
}


/* =====================================================
   CENTRALNA VRATA
===================================================== */

.door-area {
    position: absolute;

    left: 50%;
    top: 32%;

    width: 25%;
    height: 58%;

    transform: translateX(-50%);

    z-index: 40;

    perspective: 1400px;
}


/* =====================================================
   FIKSNI OTVOR VRATA
===================================================== */

.door-opening {
    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    display: flex;

    overflow: visible;

    background: #ffffff;

    border: 1px solid #171717;

    box-sizing: border-box;

    box-shadow:
        0 12px 30px rgba(0,0,0,.20);

    z-index: 10;
}


/* =====================================================
   SVJETLO IZA VRATA
===================================================== */

.door-light {
    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    background:
        radial-gradient(
            ellipse at center,
            rgba(255,255,255,1),
            rgba(255,255,255,.96) 55%,
            rgba(255,255,255,.88) 100%
        );

    z-index: 1;

    pointer-events: none;
}


/* =====================================================
   SJENE POSJETITELJA
===================================================== */

.people-shadow {
    position: absolute;

    bottom: 3%;

    width: 19%;
    height: 58%;

    border-radius:
        50% 50% 30% 30%;

    background:
        radial-gradient(
            ellipse at center,
            rgba(20,20,20,.42),
            rgba(20,20,20,.12) 50%,
            rgba(20,20,20,0) 75%
        );

    filter: blur(6px);

    z-index: 5;

    pointer-events: none;
}

.shadow-one {
    left: 20%;

    animation:
        personOne 9s ease-in-out infinite;
}

.shadow-two {
    left: 46%;

    width: 15%;
    height: 50%;

    animation:
        personTwo 12s ease-in-out infinite;
}

.shadow-three {
    left: 66%;

    width: 18%;
    height: 61%;

    animation:
        personThree 11s ease-in-out infinite;
}


@keyframes personOne {

    0%,
    100% {
        transform:
            translateX(-12px)
            scale(.85);

        opacity: .08;
    }

    35% {
        transform:
            translateX(8px)
            scale(1);

        opacity: .34;
    }

    70% {
        transform:
            translateX(24px)
            scale(.92);

        opacity: .14;
    }
}


@keyframes personTwo {

    0%,
    100% {
        transform:
            translateX(18px)
            scale(.85);

        opacity: .06;
    }

    45% {
        transform:
            translateX(-16px)
            scale(1);

        opacity: .30;
    }

    75% {
        transform:
            translateX(5px)
            scale(.9);

        opacity: .12;
    }
}


@keyframes personThree {

    0%,
    100% {
        transform:
            translateX(10px)
            scale(.88);

        opacity: .07;
    }

    40% {
        transform:
            translateX(-22px)
            scale(1);

        opacity: .32;
    }

    80% {
        transform:
            translateX(-5px)
            scale(.92);

        opacity: .12;
    }
}


/* =====================================================
   VRATA - OSNOVNO
===================================================== */

.museum-door {
    position: relative;

    width: 50%;
    height: 100%;

    flex: 0 0 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #ddddda
        );

    color: #222222;

    text-decoration: none;

    font-size: 18px;

    letter-spacing: 6px;

    font-weight: 300;

    transform-style: preserve-3d;

    backface-visibility: hidden;

    will-change: transform;

    transition:
        transform 1.8s
        cubic-bezier(.2,.75,.2,1);

    z-index: 20;
}


/* =====================================================
   LIJEVO KRILO
   LIJEVA ŠARKA OSTANE NA MJESTU
===================================================== */

.museum-door-left {
    transform-origin: left center;

    border-right: 1px solid #333333;

    transform:
        rotateY(0deg);
}


/* =====================================================
   DESNO KRILO
   DESNA ŠARKA OSTANE NA MJESTU
===================================================== */

.museum-door-right {
    transform-origin: right center;

    border-left: 1px solid #333333;

    transform:
        rotateY(0deg);
}


/* =====================================================
   TEKST NA VRATIMA
===================================================== */

.museum-door span {
    position: relative;

    z-index: 5;

    pointer-events: none;
}


/* =====================================================
   HOVER
===================================================== */

.museum-door:hover {
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #e7e6e2
        );
}


/* =====================================================
   OTVARANJE LIJEVOG KRILA
===================================================== */

.museum-door-left.door-opening-active {
    transform:
        rotateY(-72deg);
}


/* =====================================================
   OTVARANJE DESNOG KRILA
===================================================== */

.museum-door-right.door-opening-active {
    transform:
        rotateY(72deg);
}


/* =====================================================
   WELCOME DISPLAY
===================================================== */

.welcome-display {
    position: absolute;

    right: 12%;
    top: 29%;

    width: 23%;
    height: 56%;

    box-sizing: border-box;

    border: 1px solid #111111;

    border-radius: 8px;

    background: #fafaf8;

    box-shadow:
        0 12px 30px rgba(0,0,0,.13);

    overflow: hidden;

    z-index: 35;
}

.welcome-display-inner {
    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 25px;

    box-sizing: border-box;
}

.welcome-label {
    font-size: 18px;

    letter-spacing: 4px;

    color: #777777;
}

.welcome-message {
    margin-top: 28px;

    max-width: 90%;

    font-size: 22px;

    font-weight: 300;

    letter-spacing: 4px;

    line-height: 1.35;

    color: #fd0404;

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.welcome-submessage {
    margin-top: 16px;

    max-width: 88%;

    font-size: 12px;

    letter-spacing: 2px;

    line-height: 1.7;

    color: #666666;

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.message-changing {
    opacity: 0;

    transform:
        translateY(12px);
}

.welcome-line {
    width: 42%;

    height: 1px;

    margin-top: 30px;

    background: #222222;
}

.welcome-counter {
    margin-top: 18px;

    font-size: 8px;

    letter-spacing: 3px;

    color: #888888;
}


/* =====================================================
   POD
===================================================== */

.floor-identification {
    position: absolute;

    left: 50%;

    bottom: 2.2%;

    transform:
        translateX(-50%);

    display: flex;

    gap: 22px;

    font-size: 8px;

    letter-spacing: 3px;

    color: #666666;

    z-index: 50;
}


/* =====================================================
   EXIT
===================================================== */

.exit-museum {
    position: absolute;

    left: 80%;

    bottom: 6.2%;

    transform:
        translateX(-50%);

    color: #333333;

    text-decoration: none;

    font-size: 12px;

    letter-spacing: 4px;

    z-index: 51;

    transition:
        color .3s ease;
}

.exit-museum:hover {
    color: #a00000;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .room-authors {
        left: 13%;
        width: 22%;
    }

    .artist-link {
        font-size: 9px;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }

    .welcome-display {
        right: 13%;
        width: 24%;
    }

    .welcome-message {
        font-size: 15px;
        letter-spacing: 3px;
    }

    .door-area {
        width: 32%;
    }

    .artist-display {
        width: 30%;
    }
}


/* =====================================================
   MOBILNI
===================================================== */

@media (max-width: 700px) {

    .room-back-wall {
        left: 7%;
        width: 86%;
    }

    .room-left-wall,
    .room-right-wall {
        width: 7%;
    }

    .room-authors {
        left: 10%;
        top: 35%;
        width: 25%;
    }

    .artist-link {
        font-size: 7px;
        letter-spacing: 1.5px;
        margin-bottom: 8px;
    }

    .welcome-display {
        right: 10%;
        top: 34%;
        width: 25%;
        height: 50%;
    }

    .welcome-message {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .welcome-submessage {
        font-size: 7px;
    }

    .door-area {
        width: 32%;
        height: 58%;
        top: 31%;
    }

    .museum-door {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .artist-display {
        width: 38%;
        height: 13%;
    }

    .artist-display-label {
        display: none;
    }

    .floor-identification {
        display: none;
    }

    .exit-museum {
        bottom: 2%;
        font-size: 7px;
    }
}


/* =====================================================
   MALI MOBILNI
===================================================== */

@media (max-width: 480px) {

    .room-authors {
        left: 9%;
        top: 34%;
    }

    .authors-heading {
        font-size: 7px;
        letter-spacing: 3px;
        margin-bottom: 12px;
    }

    .artist-link {
        font-size: 6px;
        letter-spacing: 1px;
        margin-bottom: 7px;
    }

    .welcome-display {
        right: 9%;
        top: 34%;
        height: 46%;
    }

    .welcome-message {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .welcome-submessage {
        font-size: 6px;
        letter-spacing: 1px;
    }

    .door-area {
        width: 35%;
        height: 58%;
        top: 31%;
    }

    .museum-door {
        font-size: 7px;
        letter-spacing: 1.5px;
    }

    .artist-display {
        width: 42%;
        height: 13%;
    }
}


/* =====================================================
   5 UGRADBENIH STROPNIH REFLEKTORA
   VIDI SE SAMO SNOP SVJETLA
===================================================== */

.ceiling-spotlights {
    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    z-index: 16;
}


/* =====================================================
   SNOP 1
===================================================== */

.ceiling-spotlights::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    background:

        radial-gradient(
            ellipse 7% 32% at 18% 15%,
            rgba(255,255,255,.42) 0%,
            rgba(255,255,255,.20) 30%,
            rgba(255,255,255,.07) 58%,
            transparent 100%
        ),

        radial-gradient(
            ellipse 7% 34% at 34% 15%,
            rgba(255,255,255,.42) 0%,
            rgba(255,255,255,.20) 30%,
            rgba(255,255,255,.07) 58%,
            transparent 100%
        ),

        radial-gradient(
            ellipse 8% 36% at 50% 15%,
            rgba(255,255,255,.50) 0%,
            rgba(255,255,255,.23) 30%,
            rgba(255,255,255,.08) 58%,
            transparent 100%
        ),

        radial-gradient(
            ellipse 7% 34% at 66% 15%,
            rgba(255,255,255,.42) 0%,
            rgba(255,255,255,.20) 30%,
            rgba(255,255,255,.07) 58%,
            transparent 100%
        ),

        radial-gradient(
            ellipse 7% 32% at 82% 15%,
            rgba(255,255,255,.42) 0%,
            rgba(255,255,255,.20) 30%,
            rgba(255,255,255,.07) 58%,
            transparent 100%
        );

    filter: blur(4px);

    opacity: .9;
}


/* =====================================================
   MEKANO POPUNJAVANJE SVJETLA
===================================================== */

.ceiling-spotlights::after {
    content: "";

    position: absolute;

    left: 10%;
    top: 10%;

    width: 80%;
    height: 70%;

    background:
        radial-gradient(
            ellipse at 50% 20%,
            rgba(255,255,255,.12),
            rgba(255,255,255,0) 65%
        );

    pointer-events: none;
}

 /* =====================================================
    SUptilne SJENE NA BOČNIM ZIDOVIMA
===================================================== */

.room-left-wall::after,
.room-right-wall::after {
    content: "";

    position: absolute;

    top: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.08),
            rgba(0,0,0,0) 35%,
            rgba(0,0,0,.035) 70%,
            rgba(0,0,0,.08)
        );

    opacity: .65;
}


/* =====================================================
   LIJEVI ZID — DUBLJA SJENA PREMA RUBU
===================================================== */

.room-left-wall::after {
    right: 0;

    background:
        linear-gradient(
            to right,
            rgba(0,0,0,.10),
            rgba(0,0,0,.035) 55%,
            rgba(255,255,255,0) 100%
        );
}


/* =====================================================
   DESNI ZID — DUBLJA SJENA PREMA RUBU
===================================================== */

.room-right-wall::after {
    left: 0;

    background:
        linear-gradient(
            to left,
            rgba(0,0,0,.10),
            rgba(0,0,0,.035) 55%,
            rgba(255,255,255,0) 100%
        );
}


/* =====================================================
   ARTIST DISPLAY — 6 SLIKA
===================================================== */

.artist-art {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    opacity: 0;

    display: block;

    animation: artistFade 30s infinite;
}


/* =====================================================
   POZICIJE / VRIJEME PRIKAZA
===================================================== */

.art-one {
    animation-delay: 0s;
}

.art-two {
    animation-delay: 5s;
}

.art-three {
    animation-delay: 10s;
}

.art-four {
    animation-delay: 15s;
}

.art-five {
    animation-delay: 20s;
}

.art-six {
    animation-delay: 25s;
}


/* =====================================================
   ANIMACIJA
===================================================== */

@keyframes artistFade {

    0% {
        opacity: 0;
    }

    6% {
        opacity: 1;
    }

    14% {
        opacity: 1;
    }

    20% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}
