/* =========================================================
   CROARTIS — MUSEUM ROOM 2
   TATJANA POLITEO — AMEBE
========================================================= */


* {
    box-sizing: border-box;
}


html,
body {

    margin: 0;
    padding: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #ffffff;
}


body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}



/* =========================================================
   MUZEJSKA SOBA
========================================================= */

.museum-room {

    position: relative;

    width: 100vw;
    height: 100vh;

    overflow: hidden;

    background: #ffffff;

    perspective: 1400px;
}



/* =========================================================
   STRAŽNJI ZID
========================================================= */

.room-back-wall {

    position: absolute;

    left: 10%;
    top: 10%;

    width: 80%;
    height: 80%;

    background: #ffffff;

    z-index: 1;
}



/* =========================================================
   LIJEVI ZID
========================================================= */

.room-left-wall {

    position: absolute;

    left: 0;
    top: 10%;

    width: 10%;
    height: 80%;

    background: #ffffff;

    clip-path:
        polygon(
            0% 0%,
            100% 12.5%,
            100% 87.5%,
            0% 100%
        );

    z-index: 2;
}



/* =========================================================
   DESNI ZID
========================================================= */

.room-right-wall {

    position: absolute;

    right: 0;
    top: 10%;

    width: 10%;
    height: 80%;

    background: #ffffff;

    clip-path:
        polygon(
            0% 12.5%,
            100% 0%,
            100% 100%,
            0% 87.5%
        );

    z-index: 2;
}



/* =========================================================
   STROP
========================================================= */

.room-ceiling {

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 10%;

    background: #6a596c;

    clip-path:
        polygon(
            0% 0%,
            100% 0%,
            90% 100%,
            10% 100%
        );

    z-index: 3;
}



/* =========================================================
   POD
========================================================= */

.room-floor {

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 10%;

    background-color: #f8f8f5;

    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;

    overflow: hidden;

    z-index: 20;
}


.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;
}



/* =========================================================
   SJENE BOČNIH ZIDOVA
========================================================= */

.room-left-wall::after,
.room-right-wall::after {

    content: "";

    position: absolute;

    top: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    opacity: .65;
}


.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%
        );
}


.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%
        );
}



/* =========================================================
   SVJETLOSNI SNOPI
========================================================= */

.ceiling-spotlights {

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    z-index: 16;
}


.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;
}


.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;
}



/* =========================================================
   LIJEVI CAROUSEL
========================================================= */

.politeo-carousel {

    position: absolute;

    left: 15%;
    top: 30%;

    width: 20%;
    height: 52%;

    overflow: hidden;

    background: #ffffff;

    border:
        1px solid #dddddd;

    box-shadow:
        0 8px 25px rgba(0,0,0,.12);

    z-index: 30;
}


.politeo-art {

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;

    transition:
        opacity 1s ease;
}


.politeo-art.active {

    opacity: 1;
}



/* =========================================================
   NASLOV IZNAD VRATA
========================================================= */

.artist-door-title {

    position: absolute;

    left: 50%;
    top: 18%;

    transform:
        translateX(-50%);

    z-index: 40;

    white-space: nowrap;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        clamp(22px, 2.4vw, 42px);

    font-weight: 700;

    letter-spacing:
        .14em;

    color:
        #d00000;

    text-shadow:
        0 0 1px rgba(0,0,0,.15);

    transition:
        color 1s ease;
}



/* =========================================================
   VRATA
========================================================= */

.door-area {

    position: absolute;

    left: 50%;
    top: 32%;

    width: 25%;
    height: 58%;

    transform:
        translateX(-50%);

    z-index: 35;

    perspective:
        1400px;
}


.door-opening {

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    background:
        #ffffff;

    z-index: 1;
}


.museum-door {

    position: absolute;

    top: 0;

    width: 50%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    text-decoration: none;

    color:
        #111111;

    background:
        linear-gradient(
            to right,
            #eeeeee,
            #ffffff 18%,
            #f4f4f4 80%,
            #dddddd
        );

    border:
        1px solid #cfcfcf;

    box-shadow:
        inset 0 0 20px rgba(0,0,0,.08),
        0 8px 20px rgba(0,0,0,.10);

    backface-visibility:
        hidden;

    transition:
        transform 1.8s cubic-bezier(.2,.7,.2,1);

    z-index: 2;
}


.museum-door-left {

    left: 0;

    transform-origin:
        left center;
}


.museum-door-right {

    right: 0;

    transform-origin:
        right center;
}



/* =========================================================
   NATPISI NA VRATIMA
   VODORAVNO
========================================================= */

.door-text {

    display: block;

    writing-mode:
        horizontal-tb;

    text-orientation:
        mixed;

    white-space:
        nowrap;

    transform:
        none;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        clamp(10px, 1vw, 16px);

    letter-spacing:
        .16em;

    font-weight:
        600;

    opacity:
        .72;
}


.door-opening-active.museum-door-left {

    transform:
        rotateY(-72deg);
}


.door-opening-active.museum-door-right {

    transform:
        rotateY(72deg);
}



/* =========================================================
   DESNI DISPLAY
========================================================= */

.politeo-info-display {

    position: absolute;

    right: 12%;
    top: 29%;

    width: 23%;
    height: 56%;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 35px;

    background:
        rgba(248,248,248,.92);

    border:
        1px solid #d4d4d4;

    box-shadow:
        0 10px 30px rgba(0,0,0,.10);

    z-index: 30;
}


.politeo-info-inner {

    width: 100%;
}


.politeo-info-label {

    display: block;

    margin-bottom:
        25px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        14px;

    letter-spacing:
        .22em;

    color:
        #777777;
}


.politeo-info-text {

    display: block;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(20px, 2vw, 34px);

    line-height:
        1.25;

    color:
        #111111;

    opacity:
        1;

    transform:
        translateY(0);

    transition:
        opacity .7s ease,
        transform .7s ease;
}


.politeo-info-text.info-changing {

    opacity:
        0;

    transform:
        translateY(8px);
}



/* =========================================================
   EXIT
========================================================= */

.exit-museum {

    position: absolute;

    left: 80%;
    bottom: 6.2%;

    transform:
        translateX(-50%);

    z-index: 50;

    text-decoration: none;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        11px;

    letter-spacing:
        .16em;

    color:
        #222222;

    padding:
        10px 16px;

    border:
        1px solid #bdbdbd;

    background:
        rgba(255,255,255,.85);

    transition:
        background .3s ease,
        color .3s ease;
}


.exit-museum:hover {

    background:
        #222222;

    color:
        #ffffff;
}
