﻿

.hero-box {
    position: absolute;
    background: #9CBCEB;
    border-radius: 18px;
    will-change: transform;
    animation: float 6s ease-in-out infinite;
}


.hero-box-1 {
    width: 65px;
    height: 65px;
    top: 0px;
    right: 140px;
    background-color: #004393;
    opacity: 0.8;
}


.hero-box-2 {
    width: 34px;
    height: 34px;
    top: 150px;
    right: 100px;
    opacity: .6;
    border-radius: 10px;
}

.hero-box-3 {
    width: 34px;
    height: 34px;
    left: 120px;
    bottom: 150px;
    opacity: .6;
    border-radius: 10px;
}


.hero-box-4 {
    width: 65px;
    height: 65px;
    left: 140px;
    bottom: 0px;
    background-color: #004393;
    opacity: 0.8;
}

.hero-box-1 {
    animation-duration: 6s;
}

.hero-box-2 {
    animation-duration: 7s;
    animation-delay: .8s;
}

.hero-box-3 {
    animation-duration: 6.5s;
    animation-delay: 1.5s;
}

.hero-box-4 {
    animation-duration: 7.5s;
    animation-delay: .3s;
}

@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    25% {
        transform: translate3d(4px, -8px, 0) rotate(2deg);
    }

    50% {
        transform: translate3d(0, -14px, 0) rotate(0deg);
    }

    75% {
        transform: translate3d(-4px, -8px, 0) rotate(-2deg);
    }
}

@media (max-width:991px) {

    .hero-box-1 {
        top: 0px;
        right: 60px;
    }

    .hero-box-2 {
        top: 150px;
        right: 20px;
    }

    .hero-box-3 {
        left: 20px;
        bottom: 140px;
    }

    .hero-box-4 {
        left: 140px;
        bottom: 0px;
    }
}

@media(max-width:576px) {
    .hero-box-1 {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
        border-radius: 10px;
    }

    .hero-box-2 {
        display: none;
    }

    .hero-box-3 {
        display: none;
    }

    .hero-box-4 {
        width: 35px;
        height: 35px;
        left: 10px;
        bottom: 10px;
        border-radius: 10px;
    }
}
