* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'brygada1918';
    src: url('../font/Brygada_1918/Brygada1918-VariableFont_wght.ttf') format('truetype');
}

@font-face {
    font-family: "Lemon Milk";
    src: url("/assets/fonts/LEMONMILK-Regular.otf") format("opentype");
}

@font-face {
    font-family: "BebasNeue";
    src: url("/assets/fonts/BebasNeue-Regular.ttf");
}

@font-face {
    font-family: "Bayon";
    src: url("/assets/fonts/Bayon-Regular.ttf");
}


:root {
    --background: #080808;
    --color: #FAFAFA;
    overflow: hidden;
    
    /* Dynamic viewport height for mobile browsers */
    --vh: 1vh;
}

html,
body {
    width: 100%;
    height: 100%;
    /* Use dynamic viewport height for mobile */
    height: calc(var(--vh, 1vh) * 100);
    font-family: Arial;

    overflow: hidden;
    /* Prevent pull-to-refresh on mobile */
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
    /* background-color: #080808; */

    background-color: black;
}

.home {
    width: 100vw;
    height: 100vh;
    /* Use dynamic viewport height for mobile */
    height: calc(var(--vh, 1vh) * 100);
    position: fixed;
    overflow: hidden;
    top: 0%;
    /* background-color: #080808; */
}

.scroll-div-container{
    width: 100vw;
    height: 100vh;
    /* Use dynamic viewport height for mobile */
    height: calc(var(--vh, 1vh) * 100);
    top: 0px;
    left: 0px;
    position: absolute;

    overflow: scroll;
}

.scroll-div{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
}

.left-back-frame {
    width: 50%;
    height: 100%;
    top: 0%;
    left: 0%;
    position: absolute;

    background-image: url(../img/frame-hitam-kiri.png);
    background-size: cover;
    background-position: 100% 50%;
    background-repeat: no-repeat;

    transition: left 0.5s linear;
}

.right-back-frame {
    width: 50%;
    height: 100%;
    top: 0%;
    right: 0%;
    position: absolute;

    background-image: url(../img/frame-hitam-kanan.png);
    background-size: cover;
    background-position: 0% 50%;
    background-repeat: no-repeat;

    transition: right 0.5s linear;
}

.left-frame {
    width: 100%;
    height: 100%;
    position: absolute;
    background-image: url(../img/sub-kiri.png);
    background-position: 50% 35%;
    background-size: auto 110%;
    background-repeat: no-repeat;
    left: 0%;

    transition: left 1.3s linear;
}

.right-frame {
    width: 100%;
    height: 100%;
    position: absolute;
    background-image: url(../img/sub-kiri.png);
    background-position: 50% 35%;
    background-size: auto 110%;
    background-repeat: no-repeat;
    right: 0%;

    transition: right 1.3s linear;
}

.left-back-frame.open {
    left: -17%;
}

.right-back-frame.open {
    right: -17%;
}

.left-back-frame.fully-open {
    left: -50%;

}

.right-back-frame.fully-open {
    right: -50%;

}

.left-frame.open {
    left: -100%;
}

.right-frame.open {
    right: -100%;
}

.frame-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 100vw;
    height: 100vh;
    aspect-ratio: 16 / 9;
    object-fit: cover;

    min-width: calc(100vh * 16 / 9);
    min-height: calc(100vw * 9 / 16);

    pointer-events: none;
}

.frame-dot-up {
    height: 200px;
    width: 100%;
    background-image: url(../img/frame-dot-up.png);
    background-size: auto 100%;
    background-repeat: repeat-x;

    top: 0px;
    position: absolute;
}


.frame-dot-left {
    height: 100%;
    width: 200px;
    background-image: url(../img/frame-dot-left.png);
    background-size: 100% auto;
    background-repeat: repeat-y;

    left: 0px;
    position: absolute;
}

.frame-dot-right {
    height: 100%;
    width: 200px;
    background-image: url(../img/frame-dot-right.png);
    background-size: 100% auto;
    background-repeat: repeat-y;
    position: absolute;

    right: 0px;
    top: 0px;
}

.frame-dot-down {
    height: 200px;
    width: 100%;
    background-image: url(../img/frame-dot-down.png);
    background-size: auto 100%;
    background-repeat: repeat-x;
    position: absolute;

    left: 0px;
    bottom: 0%;
}

.corner-left-top {
    width: 200px;
    height: 250px;
    position: absolute;
    top: 0px;
    left: 0px;

    background-image: url(../img/corner-left-top.png);
    background-size: cover;
    background-repeat: no-repeat;
}

.corner-right-top {
    width: 450px;
    height: 250px;
    position: absolute;
    top: 0px;
    right: 0px;

    background-image: url(../img/corner-right-top.png);
    background-size: cover;
    background-repeat: no-repeat;
}

.corner-left-bottom {
    width: 400px;
    height: 400px;
    position: absolute;
    bottom: 0px;
    left: 0px;

    background-image: url(../img/corner-left-bottom.png);
    background-size: cover;
    background-repeat: no-repeat;
}

.corner-right-bottom {
    width: 500px;
    height: 500px;
    position: absolute;
    bottom: 0%;
    right: 0%;

    background-image: url(../img/corner-right-bottom.png);
    background-size: cover;
    background-repeat: no-repeat;
}

.page-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;

    opacity: 1;

    transition: top 0.5s linear, opacity 0.5s linear;
}

.page-container.open {
    width: 100%;
    height: 100%;
    position: absolute;
    top: -100%;
    left: 0;

    opacity: 0;
}

.page-container.hide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 200%;
    left: 0;

    opacity: 0;
}

.djarum-logo {

    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 70%;
    height: 50%;

    background-image: url(../img/djarum-super-logo.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}

.special-edition-pack {
    position: absolute;
    width: 50%;
    max-height: 80px;
    height: 20%;

    top: 22%;
    left: 50%;

    background-image: url(../img/special-edition-pack.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;

    transform: translate(-50%, -50%);
}

.celebration {
    position: absolute;
    width: 70%;
    max-height: 52px;
    height: 10%;

    top: calc(50% + 18%);
    left: 50%;

    background-image: url(../img/celebration-of-greatness.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;

    transform: translate(-50%, -50%);
}

.scroll-down {
    position: absolute;
    width: 50%;
    height: 15px;

    bottom: 10%;
    left: 50%;

    background-image: url(../img/scroll-down.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;

    transform: translate(-50%, -50%);

    pointer-events: all;
    cursor: pointer;
}


.scroll-animation {
    position: absolute;
    left: 50%;
    bottom: 8%;

    width: 50px;
    height: 50px;

    transform: translate(-50%, -50%);
}

.scroll-arrow-animation-1 {
    position: absolute;
    width: 70px;
    height: 70px;

    background-image: url(../img/scroll-arrow.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    top: 0%;
    left: 50%;
    transform: translate(-50%, -50%);

    animation: scrollArrow1 1s infinite;
}

@keyframes scrollArrow1 {
    0% {
        top: 0%;
    }

    30% {
        top: 8%;
    }

    40% {
        top: 10%;
    }

    60% {
        top: 10%;
    }

    100% {

        top: 0%;
    }
}

.scroll-arrow-animation-2 {
    position: absolute;
    width: 50px;
    height: 50px;

    background-image: url(../img/scroll-arrow.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    top: -13%;
    left: 50%;
    transform: translate(-50%, -50%);

    animation: scrollArrow2 1s infinite;
}

@keyframes scrollArrow2 {
    0% {
        top: -13%;
    }

    40% {
        top: -20%;
    }

    90% {
        top: -15%;
    }

    100% {

        top: -13%;
    }
}

.background-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;

    background-image: url(../img/wave-background.png);
    background-size: cover;
    background-repeat: no-repeat;

    opacity: 1;

    z-index: -1;

    transition: opacity 0.5s linear;
}

.background-wave.open {
    opacity: 0;
}

.background-flat {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;

    background-color: #080808;
    background-image: url(../img/shine.png);
    background-size: cover;
    background-repeat: no-repeat;

    z-index: -1;
}

.page {
    position: absolute;

    width: 50%;
    height: 80%;

    top: 50%;
    left: 50%;

    color: #F9E29E;
    font-family: 'brygada1918';

    font-size: min(3.5vw, 3.5vh);

    transform: translate(-50%, -50%);
    text-align: center;

    /*drop-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);*/
    text-shadow: 0px 0px 10px rgba(5, 0, 0, 1);
}

.ini-rasanya-super {
    position: relative;
    width: 300px;
    height: 300px;

    left: 50%;
    background-image: url(../img/ini-rasanya-super.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    transform: translateX(-50%);
}

.page-knob-container {
    position: absolute;
    width: 100%;
    height: 100px;
    bottom: 15%;
    left: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    transform: translateX(-50%);
    /* background-color: white; */
    z-index: 1;
}

.page-1-text {
    position: absolute;
    width: 100%;
    top: 45%;
    left: 50%;

    transform: translate(-50%, -50%);
    transition: opacity 0.3s linear, top 0.5s linear;

}

.page-1-text.hide {
    top: -100%;
    opacity: 0;
}

.page-indicator-shadow {
    position: absolute;
    width: 100%;
    height: 100%;

    top: 0;
    left: 0;

    background-image: url(../img/shine-shadow.png);
    background-size: contain;
    background-repeat: no-repeat;
}

.page-2-text {
    position: absolute;
    width: 100%;
    top: 45%;
    left: 50%;

    transform: translate(-50%, -50%);
    transition: opacity 0.3s linear, top 0.5s linear;
}

.page-2-text.hide {
    top: 100%;
    opacity: 0;
}

.page-knob {
    width: 15px;
    height: 15px;
    margin: 10px;
    margin-top: 50px;

    background-image: url(../img/page-knob.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;

    cursor: pointer;

    transition: transform 0.3s ease-in-out;

    opacity: 0.5;

    transition: opacity 0.3s linear;
}

.page-knob.open {
    opacity: 1;
}

.background-video {
    position: absolute;
    width: 100%;
    height: 95%;
    top: 0%;
    left: 0;

    /* object-fit: cover; */
    object-position: center center;

    opacity: 0;

    transition: opacity 0.5s linear;
}

.background-video.open {
    opacity: 1;
}

.frame {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;

    transform: scale(1);

    transition: transform 0.5s linear;
    pointer-events: none;
}

.frame.open {
    transform: scale(1.1);
}

#page-container-1 {
    opacity: 0;
}

#page-container-2 {
    opacity: 0;
}

#background-wave {
    opacity: 0;
}

#background-flat {
    opacity: 0;
}

.scroll-container{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 1;
    overflow: hidden;

    transition: opacity 0.5s linear;

    pointer-events: none;
}

.scroll-container.open {
    opacity: 0;
}

.left-top-frame-portrait {
    width: 50%;
    height: 50%;
    opacity: 0;
    display: none;

    position: absolute;
    left: 0px;
    top: 0px;

    background-image: url(../img/frame-top-left.png);
    background-size: 100% auto;
    background-repeat: no-repeat;

    transition: opacity 0.5s linear;
}

.right-top-frame-portrait {
    width: 50%;
    height: 50%;
    opacity: 0;
    display: none;

    position: absolute;
    right: 0px;
    top: 0px;

    background-image: url(../img/frame-top-right.png);
    background-size: 100% auto;
    background-repeat: no-repeat;

    transition: opacity 0.5s linear;
}

.left-bottom-frame-portrait {
    width: 50%;
    height: 50%;
    opacity: 0;
    display: none;

    position: absolute;
    right: 0px;
    bottom: 0px;

    background-image: url(../img/frame-bottom-right.png);
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: 0% 100%;

    transition: opacity 0.5s linear;
}

.right-bottom-frame-portrait {
    width: 50%;
    height: 50%;
    opacity: 0;
    display: none;

    position: absolute;
    left: 0px;
    bottom: 0px;

    background-image: url(../img/frame-bottom-left.png);
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: 0% 100%;

    transition: opacity 0.5s linear;
}

/*when page width less than 1200px*/
@media (max-width: 1300px) {

    .special-edition-pack {
        top: 20%;
        width: 50%;
        max-height: 200px;
    }

    .djarum-logo {
        top: 50%;
        width: 40%;
        background-image: url(../img/djarum-super-logo-portrait.png);
    }

    .celebration {
        top: calc(50% + 22%);
        width: 50%;
        /* background-image: url(../img/celebration-of-greatness-portrait.png); */
    }

    .left-back-frame.open {
        left: -10%;
    }

    .right-back-frame.open {
        right: -10%;
    }

    .left-back-frame.fully-open {
        left: -50%;

    }

    .right-back-frame.fully-open {
        right: -50%;

    }

    .left-frame.open {
        left: -100%;
    }

    .right-frame.open {
        right: -100%;
    }

    .page {
        width: 60%;
        font-size: min(3vw, 3vh);

        pointer-events: none;
    }


}

@media (max-width: 900px) {

    .special-edition-pack {
        top: 23%;
        width: 78%;
        max-height: 200px;
    }

    .djarum-logo {
        top: 47%;
        width: 80%;
        background-image: url(../img/djarum-super-logo-portrait.png);
    }

    .celebration {
        top: calc(50% + 15%);
        width: 50%;
        background-image: url(../img/celebration-of-greatness-portrait.png);
    }

    .left-back-frame {
        opacity: 0;
    }

    .left-back-frame.open {
        left: 1%;
        opacity: 0;
    }

    .right-back-frame {
        opacity: 0;
    }

    .right-back-frame.open {
        right: 1%;
        opacity: 0;
    }

    .left-back-frame.fully-open {
        left: -50%;

    }

    .right-back-frame.fully-open {
        right: -50%;

    }

    .left-frame.open {
        transform: scaleX(1.4);
    }

    .left-frame.open {
        left: -100%;
        transform: scaleX(1.4);
    }

    .right-frame {
        transform: scaleX(1.4);
    }

    .right-frame.open {
        right: -100%;
        transform: scaleX(1.4);
    }

    .frame {
        opacity: 0;
    }

    .page {
        width: 80%;
        font-size: min(4.5vw, 4.5vh);
    }

    .left-top-frame-portrait {
        opacity: 1;
        display: block;
    }

    .right-top-frame-portrait {
        opacity: 1;
        display: block;
    }

    .left-bottom-frame-portrait {
        opacity: 1;
        display: block;
    }

    .right-bottom-frame-portrait {
        opacity: 1;
        display: block;
    }


    .left-top-frame-portrait.open {
        opacity: 0;
    }

    .right-top-frame-portrait.open {
        opacity: 0;
    }

    .left-bottom-frame-portrait.open {
        opacity: 0;
    }

    .right-bottom-frame-portrait.open {
        opacity: 0;
    }
}

.mobile-frame-container {
    position: absolute;
    transform: scale(1);

    width: 100%;
    height: 100%;

    transition: transform 1s linear;    

    pointer-events: none;
}

.mobile-frame-container.open {
    transform: scale(1.5);
}


.mute-icon{
    background-color: rgba(0, 0, 0, 0.6);
    width: 50px;
    height: 50px;
    position: absolute;
    top: 20px;
    right: 20px;
    
    background-image: url(../img/mute-icon.png);
    background-size: 60% 60%;
    background-repeat: no-repeat;
    background-position: center center;
    
    display: block;
    transition: opacity 0.3s ease, background-color 0.3s ease;

    pointer-events: all;
    cursor: pointer;
}

.mute-icon.mute{
    background-image: url(../img/unmute-icon.png);
}

.video-control-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s linear;

    pointer-events: none;;
}

.video-control-container.open {
    opacity: 1;
}

.video-timeline{
    position: absolute;
    width: 100%;
    height: 5px;
    bottom: 10px;
    left: 0;

    background-color: rgba(255, 0, 0, 0.5);

    pointer-events: all;
    opacity: 0;
    /* transition: width 0.5s linear; */
}


.main-button {
    position: absolute;
    left: 50%;
    bottom: 0%;

    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);

    padding: 10px 20px 10px 20px;

    font-family: 'Lemon Milk';
    font-size: min(3vw, 14px);
    color: rgb(0, 0, 0);

    background-color: #d9a557;
    border: none;
    border-radius: 10px;

    display: none;

    cursor: pointer;
}

.main-button:hover {
    background-color: #916e3a;
}


.arrow-left {
    position: absolute;
    top: 50%;
    left: -10px;

    width: 100px;
    height: 100%;


    transform: translate(-100%, -50%);

    background-image: url("/assets/images/video/arrow-right.png");
    background-position-y: 50%;
    background-position-x: 0%;
    background-repeat: repeat-x;
    background-size: contain;


    mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0), black, black);
    -webkit-mask-image: -webkit-linear-gradient(0deg, rgba(0, 0, 0, 0), black, black);

    animation-name: arrow-left-animation;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.arrow-right {
    position: absolute;
    top: 50%;
    right: -10px;

    width: 100px;
    height: 100%;


    transform: translate(100%, -50%);

    background-image: url("/assets/images/video/arrow-left.png");
    background-position-y: 50%;
    background-position-x: 0%;
    background-repeat: repeat-x;
    background-size: contain;


    mask-image: linear-gradient(0deg, rgb(0, 0, 0), black, rgba(0, 0, 0, 0));
    -webkit-mask-image: -webkit-linear-gradient(0deg, rgb(0, 0, 0), black, rgba(0, 0, 0, 0));

    animation-name: arrow-right-animation;
    animation-timing-function: linear;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

@keyframes arrow-left-animation {
    0% {
        background-position-x: 10%;
    }

    50% {
        background-position-x: 45%;
    }

    100% {
        background-position-x: 100%;
    }
}

@keyframes arrow-right-animation {
    0% {
        background-position-x: 100%;
    }

    50% {
        background-position-x: 45%;
    }

    100% {
        background-position-x: 10%;
    }
}
