:root {
    --duration: 12s;
    --delay: 12s;
}


/* html {
    background-color: black;
    animation: shrink var(--duration) var(--delay) linear infinite;
} */

body {
    position: relative;
    margin: 0 auto;
    padding: 0 1rem;
    /* Top added by Anil */
    padding-top: 100px;
    padding-bottom: 100px;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    /* animation: spin var(--duration) var(--delay) linear infinite; */
    transform-style: preserve-3d;
    perspective: 25rem;
    background-color: #000;
    /* background-image: url('../assets/img/projects/bh-11.jpeg'); */
}

footer {
    clear: both;
    position: relative;
    height: 200px;
    margin-top: -500px;
    z-index: 9999;
}

.img {
    --duration: 20s;
    --name: float-up-1;
    position: absolute;
    top: 0;
    left: 0;
    width: 33vw;
    transform: translateY(200vh);
    animation: var(--name) var(--duration) linear infinite;
    box-shadow: 1px 3px 15px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.img:nth-child(1) {
    animation-delay: 0s;
}

.img:nth-child(2) {
    animation-delay: -2s;
}

.img:nth-child(3) {
    animation-delay: -4s;
}

.img:nth-child(4) {
    animation-delay: -6s;
}

.img:nth-child(5) {
    animation-delay: -8s;
}

.img:nth-child(6) {
    animation-delay: -10s;
}

.img:nth-child(7) {
    animation-delay: -12s;
}

.img:nth-child(8) {
    animation-delay: -14s;
}

.img:nth-child(9) {
    animation-delay: -16s;
}

.img:nth-child(10) {
    animation-delay: -20s;
}

.img:nth-child(11) {
    animation-delay: -1s;
}

.img:nth-child(12) {
    animation-delay: -3s;
}

.img:nth-child(13) {
    animation-delay: -5s;
}

.img:nth-child(14) {
    animation-delay: -7s;
}

.img:nth-child(15) {
    animation-delay: -9s;
}

.img:nth-child(16) {
    animation-delay: -11s;
}

.img:nth-child(17) {
    animation-delay: -13s;
}

.img:nth-child(18) {
    animation-delay: -15s;
}

.img:nth-child(19) {
    animation-delay: -17s;
}

.img:nth-child(20) {
    animation-delay: -19s;
}

.img:nth-child(21) {
    animation-delay: -21s;
}

.img:nth-child(22) {
    animation-delay: -5s;
}

.img:nth-child(23) {
    animation-delay: -10s;
}

.img:nth-child(24) {
    animation-delay: -15s;
}

.img:nth-child(25) {
    animation-delay: -1s;
}

.img:nth-child(26) {
    animation-delay: -6s;
}

.img:nth-child(27) {
    animation-delay: -12s;
}

.img:nth-child(28) {
    animation-delay: -18s;
}

.img:nth-child(29) {
    animation-delay: -3s;
}

.img:nth-child(30) {
    animation-delay: -11s;
}

.img:nth-child(31) {
    animation-delay: -7s;
}

.img:nth-child(32) {
    animation-delay: -21s;
}

.img:nth-child(33) {
    animation-delay: -18s;
}

.img:nth-child(34) {
    animation-delay: -1s;
}


/* .img:nth-child(35) {
    animation-delay: -4s;
} */

.img:nth-child(1) {
    --name: float-up-1;
    --duration: calc(12s * 1);
    left: 0vw;
    z-index: -1;
}


/* theatre room */

.img:nth-child(2) {
    --name: float-up-3;
    --duration: calc(12s * 3);
    left: 10vw;
    z-index: -3;
}


/* conference room */

.img:nth-child(3) {
    --name: float-up-2;
    --duration: calc(12s * 2);
    left: 30vw;
    z-index: -2;
}


/* first floor entrance */

.img:nth-child(4) {
    --name: float-up-1;
    --duration: calc(12s * 1);
    left: 56vw;
    z-index: -1;
}

.img:nth-child(5) {
    --name: float-up-3;
    --duration: calc(1s * 3);
    left: 22vw;
    z-index: -3;
}


/* jubilee hills - balcony view */

.img:nth-child(6) {
    --name: float-up-2;
    --duration: calc(12s * 2);
    left: 65vw;
    z-index: -2;
}


/* first floor  - manager cabin*/

.img:nth-child(7) {
    --name: float-up-4;
    --duration: calc(12s * 1);
    left: 2vw;
    z-index: -2;
}

.img:nth-child(8) {
    --name: float-up-3;
    --duration: calc(12s * 3);
    left: 45vw;
    z-index: -3;
}


/* fan image */

.img:nth-child(9) {
    --name: float-up-1;
    --duration: calc(10s * 1);
    left: 28vw;
    z-index: -1;
}


/* cafeteria */

.img:nth-child(10) {
    --name: float-up-2;
    --duration: calc(8s * 3);
    left: 100vw;
    z-index: -2;
}

.img:nth-child(11) {
    --name: float-up-4;
    --duration: calc(12s * 1);
    left: 5vw;
    z-index: -1;
}

.img:nth-child(12) {
    --name: float-up-1;
    --duration: calc(12s * 2);
    left: 10vw;
    z-index: -1;
}

.img:nth-child(13) {
    --name: float-up-2;
    --duration: calc(12s * 3);
    left: 15vw;
    z-index: -2;
}

.img:nth-child(14) {
    --name: float-up-3;
    --duration: calc(12s * 1);
    left: 100vw;
    z-index: -2;
}

.img:nth-child(15) {
    --name: float-up-4;
    --duration: calc(12s * 3);
    left: 70vw;
    z-index: -1;
}

.img:nth-child(16) {
    --name: float-up-1;
    --duration: calc(12s * 1);
    left: 50vw;
    z-index: -2;
}

.img:nth-child(17) {
    --name: float-up-2;
    --duration: calc(12s * 3);
    left: 25vw;
    z-index: -4;
}

.img:nth-child(18) {
    --name: float-up-3;
    --duration: calc(12s * 1);
    left: 40vw;
    z-index: -2;
}

.img:nth-child(19) {
    --name: float-up-4;
    --duration: calc(12s * 2);
    left: 50vw;
    z-index: -2;
}

.img:nth-child(20) {
    --name: float-up-1;
    --duration: calc(12s * 3);
    left: 65vw;
    z-index: -1;
}

.img:nth-child(21) {
    --name: float-up-2;
    --duration: calc(12s * 1);
    left: 5vw;
    z-index: -2;
}

.img:nth-child(21) {
    --name: float-up-3;
    --duration: calc(12s * 1);
    left: 20vw;
    z-index: -3;
}

.img:nth-child(22) {
    --name: float-up-4;
    --duration: calc(12s * 2);
    left: 70vw;
    z-index: -1;
}

.img:nth-child(23) {
    --name: float-up-1;
    --duration: calc(12s * 3);
    left: 25vw;
    z-index: -2;
}

.img:nth-child(24) {
    --name: float-up-5;
    --duration: calc(12s * 2);
    left: 30vw;
    z-index: -2;
}

.img:nth-child(25) {
    --name: float-up-3;
    --duration: calc(12s * 1);
    left: 60vw;
    z-index: -1;
}

.img:nth-child(26) {
    --name: float-up-5;
    --duration: calc(12s * 2);
    left: 5vw;
    z-index: -1;
}

.img:nth-child(27) {
    --name: float-up-2;
    --duration: calc(12s * 1);
    left: 60vw;
    z-index: -2;
}

.img:nth-child(28) {
    --name: float-up-4;
    --duration: calc(12s * 3);
    left: 20vw;
    z-index: -1;
}

.img:nth-child(29) {
    --name: float-up-3;
    --duration: calc(12s * 3);
    left: 35vw;
    z-index: -3;
}

.img:nth-child(30) {
    --name: float-up-5;
    --duration: calc(12s * 1);
    left: 45vw;
    z-index: -1;
}

.img:nth-child(31) {
    --name: float-up-4;
    --duration: calc(12s * 2);
    left: 20vw;
    z-index: -2;
}

.img:nth-child(32) {
    --name: float-up-3;
    --duration: calc(12s * 3);
    left: 10vw;
    z-index: -1;
}

.img:nth-child(33) {
    --name: float-up-4;
    --duration: calc(12s * 1);
    left: 60vw;
    z-index: -1;
}

.img:nth-child(34) {
    --name: float-up-3;
    --duration: calc(12s * 1);
    left: 20vw;
    z-index: -2;
}


/* .img:nth-child(35) {
    --name: float-up-3;
    --duration: calc(12s * 1);
    left: 60vw;
    z-index: -1;
} */


/* @keyframes float-up-4 {
    from {
        transform: translateY(170vh) translateZ(-50vh);
    }
    to {
        transform: translateY(-170vh) translateZ(-50vh);
    }
} */

@keyframes float-up-5 {
    from {
        /* transform: scale(0.75); */
        /* transform: translateY(75vh) translateZ(-25vh); */
        transform: rotate(20);
    }
    to {
        transform: rotate(180);
        /* transform: translateY(-200vh) translateZ(-50vh); */
    }
}

@keyframes float-up-4 {
    from {
        /* transform: scale(0.75); */
        transform: translateY(150vh) translateZ(-50vh);
    }
    to {
        transform: scale(1);
        /* transform: translateY(-200vh) translateZ(-50vh); */
    }
}

@keyframes float-up-3 {
    from {
        transform: translateY(200vh) translateZ(-50vh);
    }
    to {
        transform: translateY(-200vh) translateZ(-50vh);
    }
}

@keyframes float-up-2 {
    from {
        transform: translateY(150vh) translateZ(-25vh);
    }
    to {
        transform: translateY(-150vh) translateZ(-25vh);
    }
}

@keyframes float-up-1 {
    from {
        transform: translateY(100vh);
    }
    to {
        transform: translateY(-100vh);
    }
}

@keyframes spin {
    10%,
    100% {
        transform: rotateY(360deg);
    }
}

@keyframes shrink {
    0% {
        transform: scale(1) translateX(0);
    }
    2.5% {
        transform: scale(0.75) translateX(5%);
    }
    7.5% {
        transform: scale(0.75) translateX(-5%);
    }
    10%,
    100% {
        transform: scale(1);
    }
}

@media (max-width: 992px) {
    .img {
        --duration: 40s;
        --name: float-up-1;
        position: absolute;
        top: 0;
        left: 0;
        width: 75vw;
        transform: translateY(200vh);
        animation: var(--name) var(--duration) linear infinite;
        box-shadow: 1px 3px 15px rgba(0, 0, 0, 0.5);
        z-index: 1;
    }
}