html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

#animation_container {
    position: absolute;
    margin: auto;
    /* left: 0; */
    /* right: 0; */
    top: 0;
    aspect-ratio: 320/480;
    /* bottom: 0; */
    background-color:rgba(255, 255, 255, 0.00);
    width: 100% !important;
    /* height: 100% !important; */
    pointer-events: auto;
}
#canvas{
    position: absolute;
    /* top: -50%;
    left: -50%; */
    display: block;
    background-color:rgba(255, 255, 255, 0.00);
    /* transform: scale(.5); */
}
#dom_overlay_container{
    display: none;
}

.img{
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}

#preloader {
    position: absolute;
    width: 20%;
    height: 20%;
    background-image: url(images/preloader.svg);
    animation: rotating 2s linear infinite;
}

#buttonC2A {
    position: absolute;
    bottom: 4%;
    left: 75%;
    width: 52%;
    height: 11%;
    transform: translateX(-50%);
    background-image: url(images/cta.png);
    transition: opacity .3s ease-out;
    animation: scaling 1s ease-in-out infinite;
    opacity: 0;
    z-index: 5001;
}

#advert {
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    /* top: 50%; */
    /* left: 50%; */
    /* transform: translate(-50%,-50%); */
    /* width:320px; */
    /* height:480px; */
    aspect-ratio: 320/480;
    /* min-height: -webkit-fill-available; */
    overflow: hidden;
    cursor: pointer;
    pointer-events: none;
    background-image: url(images/wallpaper.jpg);
    background-repeat: no-repeat;
    background-size: contain;
    background-color: white;
}

#cards {
    position: absolute;
    height: 100%;
    display: flex;
    flex-direction: row;
    left: 0px;
    transition: left .5s cubic-bezier(0.42, 0, 0.16, 1);
}

.card {
    position: relative;
    width: 100vw;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-direction: column;
}

#cards>div:nth-child(1) {
    background-image: url('images/background.jpg');
}

#cards>div:nth-child(2) {
    background-image: url('images/photo-final.jpg');
}

#kv, #kv-start{
    opacity:0;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 50%;
    /* background-position: top; */
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity .3s ease-out;
}
#kv {
    z-index: 5000; 
    
}
#kv-start{
    opacity:1;
    background-image: url(images/start.png);
}

#cards>div>video {
    position: absolute;
    height: 100%;
    opacity: 0;
    transition: opacity .5s ease-out;
}

#button{
    position: absolute;
    width:100%;
    height: 100%;
    pointer-events: auto;
}

#interface {
    position: absolute;
    width: 100%;
    /* height: 100%; */
    aspect-ratio: 320/480;
    /* background-color: yellow; */
    pointer-events: none;
}

#logotype {
    position: absolute;
    top: 0;
    left: 4%;
    width: 29%;
    height: 15%;
    background-image: url(images/logo.png);
    background-position: top;
    /* background-color: aliceblue; */
    z-index: 5002;
}

#closeButton {
    margin: 3vh;
    position: absolute;
    width: 5vh;
    height: 5vh;
    right: 0;
    background-image: url(images/closeButton.svg);
    background-position: right top;
    pointer-events: auto;
    z-index: 5001;
}

#border{
    /* box-sizing: border-box; */
    position: absolute;
    width:100%;
    height:100%;
    box-shadow:inset 0px 0px 0px 1px rgba(6, 0, 0, 0.252);
    pointer-events: none;
    z-index: 10000;
}


@media screen and (orientation:landscape) {
    /* #advert {
        display: none;
    }

    body {
        background-image: url(images/usePhone.svg);
        background-size: 2% !important;
    } */
}

@keyframes scaling {
    0% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(0.9);
    }

    100% {
        transform: translateX(-50%) scale(1);
    }
}

@keyframes rotating {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}