*{
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

@keyframes gira{
    from{
        transform:rotate(0deg);
    }
    to{
        transform:rotate(360deg);
    }
}

@keyframes surgeB{
    from{
        transform:translateY(10%);
        opacity: 0;
    }
    to{
        transform:translateY(0%);
        opacity: 1;
    }
}
@keyframes surgeL{
    from{
        transform:translateX(-5%);
        opacity: 0;
    }
    to{
        transform:translateX(0%);
        opacity: 1;
    }
}


body{
    background-image: url(../img/bg.png);
    background-position: right;
    background-repeat: no-repeat;
    background-size: contain;   
    background-attachment: fixed;
}

figure{
    position: absolute;
    width: 50%;
    right: 10%;
    margin-bottom: 19vh;
    animation-name: surgeB;
    animation-duration: 0.7s;
    top: 10%;
}
figure > img{
    width: 100%;
}
figure figcaption {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

figure figcaption img{
    position: absolute;
    transform-origin: center;
    left: 34%;
    top: 38.9%;
    width: 8%;
    animation-name: gira;
    animation-iteration-count: infinite;
    animation-duration: 12s;
    animation-timing-function: linear;
}

figure figcaption img:nth-child(2){width: 4%;left: 40.4%;animation-direction: reverse;animation-duration: 6s;}

figure figcaption img:nth-child(3) {
    top: 27.8%;
    left: 40%;
}

main {
    display: flex;
    flex-flow: row;
    align-items: center;
    height: 100vh;
}

main section {
    position: absolute;
    left: 8%;
    width: 25%;
    top: 22vh;
    animation-name: surgeL;
    animation-duration: 0.5s;
}


main section h1 {
    font-size: 66px;
    color: #2c7eea;
    font-weight: 800;
    margin-bottom: 16px;
}

main section p {
    font-size: 33px;
    color: gray;
}


@media only screen and (max-width: 1000px){
    body{

        background-size: cover;

        background-position-y: bottom;

        display: flex;

        flex-flow: row;

        align-items: center;

        height: 100vh;

        width: 100vw;
    }
    main {width: 100%;flex-flow: column;height: auto;}


    figure {
        position: relative;
        width: 77%;
        right: unset;
        top: unset;
        margin-bottom: auto;
    }
    main section {position: relative;width: 80%;margin-top: 12%;text-align: right;top: unset;left: unset;}
    main section h1{
        font-size: 51px;
        color: #0387c3;
    }
    main section p{
        font-size: 28px;
        color: #ffffff;
    }
}

@media only screen and (max-width: 500px){
    body{
        background-position-y: top;
    }
    figure {
        width: 100%;
    }
    main section {
        width: 90%;
        text-align: left;
    }
    main section h1{
        color: #0387c3;
    }
}
