.contentElements {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding-right: 4px;
}

.service {
    width: 47.5%;
    height: 25vw;
    max-height: 250px;
    position: relative;
    margin-bottom: 60px;
}

.serviceTextContainer {
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
    color: white;
    padding: 0;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    border: 2px solid transparent;
    -webkit-transition: .4s;
    transition: .4s;
}

/*
.serviceTextContainer:hover {
    color: black;
}
*/


#f {
    background: url(../images/China.jpg);
    background-position: center;
    background-size: cover;
}

#filmprod {
    background: url(../images/digitalart.jpg);
    background-position: center;
    background-size: cover;
}

#vfx {
    background: url(../images/Designbasic.jpg);
    background-position: center;
    background-size: cover;
}

#animation {
    background: url(../images/logo.jpg);
    background-position: center;
    background-size: cover;
}

#sfx-and-sound {
    background: url(../images/video.jpg);
    background-position: center;
    background-size: cover;
}

#drone-services {
    background: url(../images/banner.jpg);
    background-position: center;
    background-size: cover;
}

#rental-services {
    background: url(../images/animati.jpg);
    background-position: center;
    background-size: cover;
}


@media screen and (min-width: 769px) {
    #filmprod:hover {
        background: url('../images/digitalart.gif');
        background-position: center;
        background-size: cover;
    }

    #vfx:hover {
        background: url('../images/Designbasic.gif');
        background-position: center;
        background-size: cover;
    }

    #animation:hover {
        background: url('../images/logo.gif');
        background-position: center;
        background-size: cover;
    }

    #sfx-and-sound:hover {
        background: url('../images/video.gif');
        background-position: center;
        background-size: cover;
    }

    #drone-services:hover {
        background: url('../images/banner.gif');
        background-position: center;
        background-size: cover;
    }

    #rental-services:hover {
        background: url('../images/animati.gif');
        background-position: center;
        background-size: cover;
    }
}


.serviceTextContainer::before,
.serviceTextContainer::after,
.serviceText::before,
.serviceText::after {
    display: block;
    content: "";
    width: 3.8vw;
    height: 3.8vw;
    position: absolute;
}

.serviceTextContainer::before {
    top: -2px;
    left: -2px;
    border-top: 1px solid black;
    border-left: 1px solid black;
    -webkit-transition: 0.5s all;
    transition: 0.5s all;
}

.serviceTextContainer::after {
    top: -2px;
    right: -2px;
    border-top: 1px solid black;
    border-right: 1px solid black;
    -webkit-transition: 0.5s all;
    transition: 0.5s all;
}

.serviceText::before {
    bottom: -2px;
    left: -2px;
    border-bottom: 1px solid black;
    border-left: 1px solid black;
    -webkit-transition: 0.5s all;
    transition: 0.5s all;
}

.serviceText::after {
    bottom: -2px;
    right: -2px;
    border-bottom: 1px solid black;
    border-right: 1px solid black;
    -webkit-transition: 0.5s all;
    transition: 0.5s all;
}

.dark .serviceTextContainer::before,
.dark .serviceTextContainer::after,
.dark .serviceText::before,
.dark .serviceText::after {
    border-color: white;
}

.serviceTextContainer:hover::before,
.serviceTextContainer:hover::after {
    width: 70%;
    height: 70%;
}

.serviceTextContainer:hover .serviceText::before,
.serviceTextContainer:hover .serviceText::after {
    width: 70%;
    height: 70%;
}

.serviceText {
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.serviceName {
    margin-bottom: 5px;
    font-family: 'kanit_r', sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 1024px) {

    .serviceName {
        font-size: 1.8rem;
    }

    .serviceTextContainer:hover::before,
    .serviceTextContainer:hover::after {
        width: 3.8vw;
        height: 3.8vw;
    }

    .serviceTextContainer:hover .serviceText::before,
    .serviceTextContainer:hover .serviceText::after {
        width: 3.8vw;
        height: 3.8vw;
    }
}

@media (max-width: 768px) {
    .service {
        width: 100%;
        height: 35vw;
        max-height: 300px;
        margin-bottom: 40px;
    }

    .contentElements {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

@media (max-width: 650px) {

    .content {
        height: 80%;
        height: 80vh;
        height: calc(var(--vh, 1vh) * 80);
        width: 90%;
    }

    .serviceName {
        font-size: 1.5rem;
    }

    .service {
        margin-bottom: 24px;
    }

}
