:root {
    --x: 0px;
    --y: 0px;
}

html {
    box-sizing: border-box;
    font-size: 16px;
}

html,
body {
    height: 100%;
    width: 100%;
    position: fixed;
}

*,
*:before,
*:after {
    box-sizing: inherit;
    -webkit-tap-highlight-color: transparent;
}

*:not(input):not(textarea):not(.photo-slide):not(.photo-slide img) {
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10+ */
    user-select: none;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

ol,
ul {
    list-style: none;
}

img {
    height: auto;
    max-width: 100%;
}

.intro {
    cursor: pointer;
}


body {
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, Roboto, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    display: flex;
    align-items: center;
    justify-content: center;

    -webkit-font-smoothing: grayscale;
    overscroll-behavior: none;
    touch-action: pan-x pan-y;
    overflow: hidden;

    z-index: 1;
    background: #03082e;
    background-image: url("../img/bkg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    -o-background-size: cover;
    -moz-background-size: cover;
    -webkit-background-size: cover;
}

.begin {
    width: 100%;
    height: 100%;
    transform: scale(.75);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 5s ease-in-out;
    z-index: 3;
    pointer-events: none;
}

.begin.active {
    transform: scale(1);
}

.iphone-mini {
    display: none;
}

.being-text {
    font-size: 24px;
    background: #0077ff;
    border-radius: 30px;
    padding: 16px 24px;
    width: 380px;
    position: relative;
    right: -40px;
    animation: bubble 10s alternate infinite;
}

.begin-btn-msg {
    font-size: 24px;
    border-radius: 30px;
    padding: 16px 24px;

    background: #2a2a2a;
    position: absolute;
    top: 170px;
    left: -60px;
    animation: bubble3 10s  alternate infinite;
}

.begin-right {
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    transition: opacity 1s ease-in-out;
    transform: translate(0%, 50%);
    z-index: 100;
}

.begin-svg {
    position: absolute;
    right: -8px;
    bottom: -10px;
}

@keyframes bubble {
    0% {
        transform: translate(15%,0);
    }

    100% {
        transform: translate(-2%, 0);
    }
}

@keyframes bubble3 {
    0% {
        transform: translate(-30%,0);
    }

    100% {
        transform: translate(5%, 0);
    }
}

.active .begin-right {
    opacity: 0;
    pointer-events: none;
}

.begin-btn {
    background: black;
    padding: 15px 30px;
    font-size: 21px;
    margin-top: 30px;
    border-radius: 40px;
    letter-spacing: 1px;
    border: 1px solid transparent;

    background-color: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all .4s ease-in-out;
    display: none;
}


.begin-btn:hover {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid white;
}

.mask {
    pointer-events: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 2022;
    background: black;
    transition: all 3s ease;
}

.mask.off {
    opacity: 0;
}

.content {
    width: 100%;
    height: 100%;
    max-width: 390px;
    max-height: 852px;

    position: relative;
    z-index: 1;
    border-radius: 26px;
    overflow: hidden;

    background: rgb(0, 0, 0);
}

main {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.iphone {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    max-width: initial !important;
}

.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    height: 63px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    color: white;
    z-index: 100;
}

.nav-left {
    font-size: 16px;
    cursor: pointer;
}

.lock {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 2;

    background-image: url('../img/wallpaper1.jpg');
    background-size: cover;
    background-position: 47% 50%;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    flex-direction: column;
    color: white;
    cursor: pointer;
}

.lock-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    top: 10vh;
    position: absolute;
}

.lock-time {
    font-size: 100px;
    font-weight: 300;
    line-height: 100px;
}

.lock-bottom {
    position: absolute;
    bottom: 20px;

    font-size: 12px;
    opacity: .75;

}

.lock-bottom img {
    margin-right: 4px;
}

.lock-logo {
    bottom: 56px;
    position: absolute;
    pointer-events: none;
}



.apps {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 3;
    opacity: 0;

    background-image: url('../img/wallpaper2.jpg');
    background-size: cover;
    background-position: 47% 50%;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    flex-direction: column;

    pointer-events: none;
}

.active {
    pointer-events: auto;
}


.dock {
    background: rgba(0, 0, 0, .25);
    position: absolute;
    bottom: 2vh;
    height: 94px;
    width: calc(100% - 24px);
    border-radius: 30px;
    z-index: 5;
}


.app {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    z-index: 4;
    cursor: pointer;
}

.dock,
.app {
    transition: all .6s ease-out;
}

.app-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 14px;
    background-size: cover;
}

.app:hover .app-icon {
    transform: scale(.95)
}

.app-title {
    font-size: 12px;
    line-height: 18px;
    letter-spacing: -.2px;
    font-weight: 400;
    position: absolute;
    top: 64px;
    white-space: nowrap;
}

.app-notif {
    position: absolute;
    background: red;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    font-size: 14px;
    right: -10px;
    top: -10px;
    transition:all .4s ease;
}

.app-notif.off{
    opacity: 0;
    transform:scale(.8)
}

.app-notif.large {
    width: 34px;
    border-radius: 12px;
    right: -17px;
    top: -10px;
}

.app-notif.middle {
    width: 34px;
    border-radius: 12px;
    right: -17px;
    top: -10px;
}



.col1 {
    left: calc((100% - 240px)/5);
}

.col2 {
    left: calc((100% - 240px)/5 * 2 + 60px);
}

.col3 {
    left: calc((100% - 240px)/5 * 3 + 120px);
}

.col4 {
    left: calc((100% - 240px)/5 * 4 + 180px);
}



.row1,
.row1 .app-content {
    top: 10vh;
}

.row2,
.row2 .app-content {
    top: calc(10vh + 98px);
    transition-delay: .1s;
}

.row3 {
    top: calc(10vh + 196px);
    transition-delay: .1s;
}

.row4 {
    top: calc(10vh + 294px);
    transition-delay: .2s;
}

.row-dock {
    bottom: 4vh;
    z-index: 6;
}

.row-dock .app-title {
    display: none;
}


.intro .row-dock {
    bottom: -4vh;
    opacity: 0;
}


.intro .dock {
    bottom: -1vh;
    opacity: 0;
}

.intro .app.row2 {
    transform: scale(1.5);
    opacity: 0;
}

.intro .app.row1 {
    transform: scale(1.5) translateY(-80%);
    opacity: 0;

}

.intro .app.row3 {
    transform: scale(1.5) translateY(80%);
    opacity: 0;

}

.intro .app.row4 {
    transform: scale(1.5) translateY(120%);
    opacity: 0;

}


.intro .app-title,
.intro .app-notif {
    opacity: 0;
}

.app-notif,
.app-title {
    transition: all .4s .4s;
}


.camera .app-icon {
    background-image: url('../img/app/camera.webp');
}


.photos .app-icon {
    background-image: url('../img/app/photos.webp');
}

.clock .app-icon {
    background-image: url('../img/app/clock.webp');
}

.in-app .notification-icon,
.n1 .notification-icon {
    background-image: url('../img/cover.jpg');
}

.n2 .notification-icon {
    background-image: url('../img/app/youtube.webp');
}

.n3 .notification-icon {
    background-image: url('../img/app/message.webp');
}


/* .calendar .app-icon {
    background-image: url('../img/app/calendar.webp');
} */

.icon-cal {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.app-icon-day {
    color: #FF3B30;
    font-weight: 600;
    font-size: 12px;
}

.app-icon-date {
    color: black;
    font-size: 30px;
    font-weight: 300;
    line-height: 30px;
}

.phone .app-icon {
    background-image: url('../img/app/phone.webp');
}


.message .app-icon {
    background-image: url('../img/app/message.webp');
}

.tinder .app-icon {
    background-image: url('../img/app/tinder.webp');
}

.wallet .app-icon {
    background-image: url('../img/app/wallet.webp');
}

.wiki .app-icon {
    background-image: url('../img/app/wiki-app.webp');
}

.youtube .app-icon {
    background-image: url('../img/app/youtube.webp');
}

.insta .app-icon {
    background-image: url('../img/app/insta.webp');
}

.calc .app-icon {
    background-image: url('../img/app/calc.webp');
}

.notes .app-icon {
    background-image: url('../img/app/notes.webp');
}

.maps .app-icon {
    background-image: url('../img/app/maps.webp');
}

.translate .app-icon {
    background-image: url('../img/app/translate.webp');
}

.spotify .app-icon {
    background-image: url('../img/app/spotify.webp');
}

.reddit .app-icon {
    background-image: url('../img/app/reddit.webp');
}


.siri .app-icon {
    background-image: url('../img/app/siri.png');
}

.store .app-icon {
    background-image: url('../img/cover.jpg');
}

.uber .app-icon {
    background-image: url('../img/app/uber.png');
}

.fast .app-icon {
    background-image: url('../img/app/store.png');
}



/* open app */


.app-content {
    width: 60px;
    height: 60px;
    position: absolute;
    background: rgb(30, 30, 30);
    border-radius: 14px;
    z-index: 100;
    opacity: 0;
    transition: all .4s ease-in-out, opacity .8s .2s ease, border-radius .2s ease;
    pointer-events: none;
    overflow: hidden;
    padding-top: 56px;

    display: flex;
    justify-content: center;
}

.app-content iframe {
    width: 100%;
    max-width: 390px;
    /*transform: scale(.5);*/
    opacity: 0;
    transition: all .2s ease-in-out;
}



.app-content iframe::-webkit-scrollbar {
    width: 0;
}

.app-content.open {
    width: 100%;
    max-width: 390px;
    height: 100%;
    opacity: 1;
    border-radius: 0;
    transition: all .4s ease-in-out, opacity .2s ease, border-radius .4s .4s ease;
    pointer-events: auto;
}

.app-content.open iframe {
    transform: scale(1);
    opacity: 1;
    transition: opacity .4s .4s ease-in-out;
}

.notransition {
    transition: none;
}



.notif-wrapper {
    position: absolute;
    width: 100%;
    bottom: 100px;
    z-index: 10;
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
}

.notif-wrapper.menu {
    bottom: auto;
    top: 0;
    transform: translateY(-100%);
}


.notif-wrapper-inapp {
    position: absolute;
    width: 100%;
    top: 0;
    transform: translateY(-100%);
    z-index: 10;
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
}



.notification {
    position: relative;
    width: 95%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    box-sizing: border-box;
    border-radius: 20px;
    padding: 10px 10px;
    z-index: 3000;
    opacity: 0;
    transform: translateY(0%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 650ms ease;
    pointer-events: none;
    height: 0;
    margin-bottom: 5px;
}


.notification.active {
    transform: translate(0%, 0%);
    opacity: 1;
    cursor: pointer;
    pointer-events: auto;
    height: 70px;
}

.notification.in-app {
    height: 68px;
}

.notification.active.in-app {
    transform: translate(0%, 180%);
    opacity: 1;
    cursor: pointer;
    pointer-events: auto;
    height: 68px;
}



.notification-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.notification-left {
    display: flex;
}

.notification-icon {
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 9px;
    width: 50px;
    height: 50px;
    margin-right: 12px;
}

.notification-txt p:first-child {
    font-weight: bold;
}

.notification-right {
    opacity: 0.6;
    font-size: 10px;
    position: absolute;
    right: 17px;
    top: 11px;
}

.notification-txt {
    font-size: 13px;
    flex: 1;
}

.siri-round {
    position: absolute;
    bottom: 120px;
    width: 90px;
    height: 90px;
    border-radius: 120px;
    overflow: hidden;
    z-index: 100;
    background: #190c40;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transform: scale(.8);
    opacity: 0;
    transition: transform .8s .4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity .2s .4s ease-in-out;
}

.siri-round.active {
    transform: scale(1);
    opacity: 1;
    transition: transform .8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity .2s ease-in-out;
}

.siri-img {
    transform: scale(2.8);
    pointer-events: none;
}

.siri-text {
    position: absolute;
    bottom: 220px;
    color: white;
    z-index: 2000;
    background: hsl(0deg 0% 0% / 50%);
    padding: 10px 25px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(15px);
    opacity: 0;
    transition: all .4s ease-in-out;
    pointer-events: none;
}

.siri-text.active {
    transform: translateY(0);
    opacity: 1;
    transition: all .4s .4s ease-in-out;
}

.app-icon {
    transition: all .4s ease;
}

.siri.click .app-icon {
    filter: brightness(0.5);
}


.policy {
    position: fixed;
    bottom: 8px;
    right: 13px;
    color: white;
    z-index: 20;
    background: hsl(0deg 0% 0% / 50%);
    padding: 8px 18px;
    border-radius: 30px;
    color: white;
    font-size: 10px;
    text-decoration: none;
    opacity: .75;
    text-transform: unset;
    transition: all .4s ease;
}

.policy:hover {
    opacity: 1;
}


.back-btn {
    position: absolute;
    z-index: 1000;
    top: 17px;
    left: 25px;
    display: flex;
    background: white;
    padding: 4px 9px 2px 4px;
    border-radius: 20px;
    font-size: 14px;
    transform: scale(.9);
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    transition: transform .2s linear, opacity .2s linear;
}


.back-btn.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
    transition: transform .4s .4s ease-in-out, opacity .4s .4s ease-in-out;
}

.back-btn svg {
    margin: 0px 5px;
}


img.main-bkg {
    position: absolute;
    z-index: 1;
    object-fit: cover;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* desktop small */

@media (max-width: 767px) {
    .navbar.fade {
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s ease-out;
    }

    .app-content.full {
        padding-top: 15px;
    }

}

/* mobile */

@media (max-width:390px) {

    .iphone {
        display: none;
    }

    .app-content {
        padding-top: 42px;
    }

    .app-content.full {
        padding-top: 0;
    }

    .content {
        border-radius: 0;
    }

    .navbar {
        height: 43px;
        padding: 0 20px;
    }

    .back-btn {
        top: 9px;
        left: 13px;
    }

    .lock-info {
        top: 8vh;
    }


    .row1 {
        top: 8vh;
    }

    .row2 {
        top: calc(8vh + 98px);
    }

    .row3 {
        top: calc(8vh + 196px);
    }

    .row4 {
        top: calc(8vh + 294px);
    }


}



@media (max-height:810px) and (orientation:portrait) {

    .content {
        border-radius: 0;
    }

}

@media (max-height:1160px)and (orientation:landscape) {
    main {
        transform: scale(.95);
        height: 856px;
    }
}

@media (max-height:865px)and (orientation:landscape) {
    main {
        transform: scale(.9);
        height: 856px;
    }
}

@media (max-height:820px)and (orientation:landscape) {
    main {
        transform: scale(.85);
        height: 856px;
    }
}

@media (max-height:800px)and (orientation:landscape) {
    main {
        transform: scale(.8);
        height: 856px;
    }
}

@media (max-height:720px)and (orientation:landscape) {
    main {
        transform: scale(.75);
        height: 856px;
    }
}


@media (max-height:695px)and (orientation:landscape) {
    main {
        transform: scale(.7);
        height: 856px;
    }
}

@media (max-height:630px)and (orientation:landscape) {
    main {
        transform: scale(.65);
        height: 856px;
    }
}


@media (max-height:600px)and (orientation:landscape) {
    main {
        transform: scale(.6);
        height: 856px;
    }
}

@media (max-height:550px)and (orientation:landscape) {
    main {
        transform: scale(.55);
        height: 856px;
    }
}

@media (max-height:500px)and (orientation:landscape) {
    main {
        transform: scale(.5);
        height: 856px;
    }
}

@media (max-height:450px)and (orientation:landscape) {
    main {
        transform: scale(.45);
        height: 856px;
    }
}

@media (max-height:400px)and (orientation:landscape) {
    main {
        transform: scale(.4);
        height: 856px;
    }
}


@media (orientation:portrait) {
    .iphone-mini {
        display: block;
        transform: scale(1.5);
        pointer-events: none;

    }

    .begin main {
        pointer-events: none;
    }

    .begin.active main {
        display: flex;
        opacity: 1;
        transition: all 1s .5s ease-in-out;
        z-index: 1000;
    }

    .begin-right {
        animation: none;
    }

    .active .iphone-mini {
        display: block;
        transform: scale(2);
        transition: all 1s ease-in-out;
    }

    .begin-right {
        color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: translateX(0%);
        position: absolute;
        right: 0;
        width: 100%;
        max-width: 100%;
        transition: opacity 1s ease-in-out;

        justify-content: center;
        align-items: center;
    }

    .begin {
        width: 100%;
        height: 100%;
        transform: scale(1) translateX(0);
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .being-text {
        position: absolute;
        transform: scale(.75) translateY(80%);
        animation: bubble2 10s alternate infinite;
    }


    .begin-btn-msg {
        top:auto;
        transform: scale(.75) translateY(300%);
        animation:none;
        animation: bubble4 10s alternate infinite;
    }

    @keyframes bubble2 {
        0% {
            transform: scale(.7) translate(5%, 80%);
        }

        100% {
            transform: scale(.7) translate(-5%, 50%);
        }
    }

    @keyframes bubble4 {
        0% {
            transform: scale(.75) translate(50%,300%);
        }

        100% {
            transform: scale(.75) translate(30%,350%);
        }
    }
    .policy {
        position: fixed;
        bottom: 8px;
        right: auto;
        color: white;
        z-index: 2;
        background: none;
        padding: 8px 18px;
        border-radius: 30px;
        color: white;
        font-size: 9px;
        text-decoration: none;
        opacity: .75;
        text-transform: unset;
        transition: all .4s ease;
    }
}

.lock-bottom{
    opacity: 0;
    transition:all 1s .5s ease;
}
