/* Copyright Phoboz Interactive. All Rights Reserved. */

:root {
    --phz--app-ref-width: 100vw / 1920;
    --phz--app-ref-height: 100vh / 1080;
    --phz--app-font-family: "Borna";
}

html, body {
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;
    user-select: none;
}

body {
    background: #442d2d;
    font-family: var(--phz--app-font-family);
}

*, *:focus, *:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

#phz--app-cover {
    background-image: url("img/cover.png");
    background-size: cover;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 7;
}

#phz--app-cover .phz--app-logo {
    position: absolute;
    top: calc(73 * var(--phz--app-ref-height));
    left: calc(72 * var(--phz--app-ref-width));
    width: calc(256 * var(--phz--app-ref-width));
}

#phz--app-cover .phz--app-title {
    position: absolute;
    color: white;
    font-size: calc(86 * var(--phz--app-ref-height));
    font-weight: 400;
    top: calc(470 * var(--phz--app-ref-height));
    left: calc(135 * var(--phz--app-ref-width));
}

#phz--app-cover .phz--app-subtitle {
    font-size: calc(40 * var(--phz--app-ref-height));
    font-weight: 600;
    margin-top: calc(23 * var(--phz--app-ref-height));
}

#phz--app-cover #phz--app-play {
    position: absolute;
    color: white;
    font-size: calc(60 * var(--phz--app-ref-height));
    font-weight: 600;
    text-align: center;
    top: calc(730 * var(--phz--app-ref-height));
    left: calc(92 * var(--phz--app-ref-width));
    width: calc(234 * var(--phz--app-ref-width));
    cursor: pointer;
    display: none;
}

#phz--app-cover #phz--app-play > div {
    transition: scale 400ms cubic-bezier(0.3, 1.7, 0.6, 0.7);
}

#phz--app-cover #phz--app-play > svg {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition-duration: 400ms;
    transition-timing-function: cubic-bezier(0.3, 1.7, 0.6, 0.7);
    transition-property: left, opacity;
    height: calc(86 * var(--phz--app-ref-height));
    width: calc(105 * var(--phz--app-ref-width));
}

#phz--app-cover #phz--app-play:hover > div {
    scale: calc(86 / 60);
}

#phz--app-cover #phz--app-play:hover > svg {
    left: 100%;
    opacity: 1;
}

#phz--app-video,
#phz--app-video-outro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 6;
    background: black;

    /* Temporary fix for shifted intro video */
    padding-top: calc(10 * var(--phz--app-ref-height));
    padding-right: calc(20 * var(--phz--app-ref-width));
    left: calc(-20 * var(--phz--app-ref-width));
}

#phz--app-video-outro {
    display: none;
}

#phz--app-video-lens5 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    background: black;
}

#phz--app-stage-holder {
    position: relative;
}

#phz--app-stage-holder > div {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

#phz--app-logo {
    position: fixed;
    top: 20px;
    left: 30px;
    z-index: 5;
    cursor: pointer;
}

#phz--app-logo img {
    width: 10vw;
}

#phz--app-lenses {
    bottom: 20px;
    left: 30px;
}

#phz--app-lenses-panel {
    position: absolute;
    bottom: 90px;
    left: 27px;
    z-index: 5;
    background-image: url("img/swirl.png");
    background-color: #1D0F40;
    background-size: contain;
    background-position-y: center;
    background-repeat: no-repeat;
    padding: 20px 25px 35px 25px;
    border-radius: 4px 4px 50px 4px;
    width: 255px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

#phz--app-lenses-panel .phz--app-lens {
    color: white;
    cursor: pointer;
    line-height: 33px;
    padding: 10px;
    font-family: objektiv-mk2, sans-serif;
}

#phz--app-lenses-panel .phz--app-lens.phz--app-selected {
    border-radius: 10px;
    border: 1px solid #D158BD;
    padding: 16.5px 21px 16px 21px;
    line-height: normal;
}

.phz--app-lenses-cycle {
    left: 85px;
    width: 28px;
    height: 28px;
}

#phz--app-lenses-prev {
    bottom: 47px;
}

#phz--app-lenses-next {
    bottom: 17px;
}

.phz--app-window-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phz--app-window-overlay > div {
    position: relative;
}

.phz--app-window-overlay .phz--app-popup {
    height: 773px;
}

.phz--app-window-overlay .phz--app-close {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 52px;
    opacity: 0.7;
    cursor: pointer;
}

.phz--app-window-overlay .phz--app-close:hover {
    opacity: 1;
}

/*************/

.phz--orbital-pin {
    white-space: pre;
    display: flex;
    align-items: center;
    padding: 0;
}

.phz--orbital-pin:hover {
    background: var(--phz-orbital-dark-navy);
}

.phz--orbital-pin > span {
    padding: 5px 15px;
    display: none;
}