﻿
body {
    overflow-x:hidden;
}
canvas {
    width: 100%;
    height: auto;
    position:absolute;
    z-index:2;
    left:0;
    top:50%;
    transform:translateY(-50%);


}
.services {
    background-image: url('../img/services.png');
    background-position:center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    position: relative;
    height:auto;
    min-height:100vh;
    display:flex;
    justify-content:space-between;

}

    .services-block {
        padding-left: 200px;
        padding-top: 40px;
        display: flex;
        z-index: 3;
        position: relative;
        width: 75%;
    }
.services-block--fitWidth {
    width:fit-content;
}
.services-item {
    margin-right:105px;
}
.services-item:last-child {
    margin-right: 0;
}
.services-list {
    margin-bottom: 25px;

}
.services-link {
    list-style: none;

    padding-bottom: 15px;
}
.services-link a {
    font-weight: 300;
    color: #ccc8cc;
    text-decoration: none;
    transition: .3s ease-in-out;
    position: relative;
    box-sizing: border-box;
}
.services-link a[href]:hover {
    cursor: pointer;
    color: #F43E36;
}
.services-link a[href]::after {
    display: inline-block;
    content: "a";
    color: transparent;
    margin-left: 10px;
    position: absolute;
    -webkit-mask: url('../img/services_arrow.svg') no-repeat center;
    mask: url('../img/services_arrow.svg') no-repeat center;
    transition: .3s ease-in-out;
    background-color: #ccc8cc;
}
.services-link a[href]:hover::after {
    background-color: #F43E36;
}
.services-link:first-child a {
    color: #fff;
    font-weight: 600;
}
.services-link:first-child a[href]:hover {
    color: #F43E36;
}
.services-link:first-child a[href]::after {
    -webkit-mask: url('../img/services_arrow_bold.svg') no-repeat center;
    mask: url('../img/services_arrow_bold.svg') no-repeat center;
    background-color: #fff;
}
.services-link:first-child a[href]:hover::after {
    background-color: #F43E36;
}
.circle {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(50%,-50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    overflow: hidden;
}
.circle__img {
    background-size: cover;
    width: 100%;
    height: 100%;
    position: absolute;
}

.circle__img--one {
    background-image: url('../img/circle_1.png');
    top: 2px;
    animation: circleLeft 10s linear infinite;
}
.circle__img--two {
    background-image: url('../img/circle_2.png');
    left: 2px;
    animation: circleRight 10s linear infinite;
}

.circle__img--three {
    background-image: url('../img/circle_3.png');
    top: -2px;
    animation: circleLeft 10s linear infinite;
}

.circle__img--four {
    background-image: url('../img/circle_4.png');
    left: -2px;
    top: 1px;
    animation: circleRight 10s linear infinite;
}
.servicesAnimated {
    width:1200px;
    height:1200px;
    position:relative;
    overflow:hidden;
    top:-150px;
    z-index:0;
}
.servicesAnimated-star {
    position:absolute;
    width: 100%;
    height: 100%;
    object-fit:cover;
    overflow:hidden;
}
.servicesAnimated-star--one {
    top: 2px;
    animation: circleLeft 60s linear infinite;
}

.servicesAnimated-star--two {
    left: 2px;
    animation: circleRight 60s linear infinite;
}

.servicesAnimated-star--three {
    top: -2px;
    animation: circleLeft 60s linear infinite;
}
.sevicseAnimated-punkter {
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    width:40%;
    height:40%;
    object-fit:contain;
}
.sevicseAnimated-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 25%;
    height: 25%;
    background-size: contain;
    animation: opacity 3s infinite linear;
    transition: 3s ease-in-out;
    background-repeat:no-repeat;
}
.sevicseAnimated-logo--car {
    background-image: url('../img/case/animated/car.png');
}
.sevicseAnimated-logo--eat {
    background-image: url('../img/case/animated/eat.png');
}
.sevicseAnimated-logo--home {
    background-image: url('../img/case/animated/home.png');
}
.sevicseAnimated-logo--air {
    background-image: url('../img/case/animated/air.png');
}

.sevicseAnimated-logo--femida {
    background-image: url('../img/case/animated/femida.png');
}
    @keyframes opacity {
        0%   {
        opacity:1;
        }
        50% {
            opacity:0.5;

        }
        100% {
            opacity:1;
        }
}
@keyframes circleRight {
    from {
        transform: rotate(360deg);
    }
}

@keyframes circleLeft {
    from {
        transform: rotate(-360deg);
    }
}
@media screen and (max-width:1600px) {
    .circle {
        width:530px;
        height:530px;
    }
    .services-block {
        padding-left:150px;
    }
    .services-item {
        margin-right: 70px;
    }
    .servicesAnimated {
        width: 600px;
        height: 600px;
        top: 0px;
    }

}


@media screen and (max-width:1200px) {
    .circle {
        width: 450px;
        height: 450px;
    }

    .services-block {
        padding-top: 30px;
        padding-left: 15px;
    }

    .services-item {
        margin-right: 15px;
    }
    .servicesAnimated {
        width: 500px;
        height: 500px;
    }
}

    @media screen and (max-width:991px) {
        .circle {
            display: none;
        }
        .servicesAnimated {
            display:none;
        }

        .services-block {
            width: 100%;
            padding: 15px;
            flex-wrap: wrap;
            justify-content: space-between;
        }

        .services-item {
            margin-right: 0;
            width: 45%;
        }
    }

    @media screen and (max-width:576px) {
        .services-block {
            justify-content:center;
        }
        .services-item {
            width: 100%;
        }
    }