@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700;800&display=swap');

body {
    position: relative;
    overflow-x: hidden;
    /*background-repeat: no-repeat;*/
    font-family: 'DM Serif Text', sans-serif;
    background-image: url(https://webhexam.com/img/background.jpg);
    background-size: cover;
    background-attachment: fixed;
    /* opacity: 0;
    transition: 300ms opacity;*/ /*za verziju FADEIN stranice*/
}

img {
    max-width: 100%; /* maksimalna sirina slike je maksimalna sirina elementa u komes se nalazi */
    height: auto; /* prilagodjava visinu slike srazmerno proporciji slike */
}

h1, h2, h3, h4, h5, h6, p {
    margin-top: 0;
}

p {
    font-family: 'DM Serif Text', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #434343;
    line-height: 28px;
    margin-bottom: 30px;
}

h2 {
    font-family: 'DM Serif Text', sans-serif;
    font-size: 28px;
    font-style: normal;
}

.container {
    position: relative;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}













footer {
    position: relative;
}
.footer-text {
    background: url(https://webhexam.com/img/foot-wrapper.png) center no-repeat;
    background-position: center top;
    background-size: cover;
    padding: 23% 0 5%;
    margin-top: 15%;

}
.footer-text h3 {
    font-size: 22px;
    font-weight: 800;
    margin-top: 20px;
}
.footer-text p {
    margin-bottom: 0;
    color: #1f1a1a;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
}
.bottom-text {
    vertical-align: bottom;
}


/*.footer-text .space {
    margin-bottom: 18px;
    display: inline-block;
}
*/


/* PRELOADER */

.loader-wrapper {
    background: #F7F9D9;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}


.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 40px;
    display: flex;
    align-items: center;
}

.obj {
    width: 6px;
    height: 40px;
    background: #0C6587;
    margin: 0 4px;
    border-radius: 10px;
    animation: loading 0.8s infinite;
}

.obj:nth-child(2) {
    animation-delay: 0.1s;
}

.obj:nth-child(3) {
    animation-delay: 0.2s;
}

.obj:nth-child(4) {
    animation-delay: 0.3s;
}

.obj:nth-child(5) {
    animation-delay: 0.4s;
}

.obj:nth-child(6) {
    animation-delay: 0.5s;
}

.obj:nth-child(7) {
    animation-delay: 0.6s;
}

.obj:nth-child(8) {
    animation-delay: 0.7s;
}

@keyframes loading {
    0% {
        height: 0;
    }
    50% {
        height: 40px;
    }
    100% {
        height: 0;
    }
}


/*PRELOADER END*/
/*efekat galerije*/
:root{
    --width: 100%;
    --height: 100%;
    --border-width: 200px;
    --border-height: 200px;

}

.works{
    height:250px;
    width:100%;
    position:relative;
    z-index: 99;
    transform: translate(30%, 40%);

}

.gallery{
    position:relative;
    height:100%;
    width:100%;
}

.gallery:after{
    content:'';
}

img{
    width:var(--width);
    height:var(--height);
}

.clipped-border{
    -webkit-clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
    padding:5px;
    background:linear-gradient(#e8edef, #569eba);
    width:var(--border-width);
    height:var(--border-height);
    max-height:250px;
    max-width:250px;
    height: var(--height);
    width:var(--width);
    transition:transform 0.8s;
    position:absolute;
    cursor:pointer;
}



.clipped-border:before{
    content:'';
    position:absolute;
    opacity:0.25;
    width:350px;
    height:70px;
    background:white;
    top:0;
    left:0;
    z-index:1;
    transform:rotate(45deg);
    transition:transform 0.5s;
}

.clipped-border:hover:before{
    transform: translate(-100px,400%) rotate(45deg);
    transition:transform 0.5s;
}

.clipped-border:nth-child(2){
    top:196px;
    left:118px;
}

.clipped-border:nth-child(3){
    top:0;
    left:235px;
}

.clipped-border:nth-child(4){
    top:196px;
    left:353px;
}

.clipped-border:nth-child(5){
    top:0;
    left:470px;
}
.clipped-border:nth-child(6) {
    top: 390px;
    left: 235px;
}
.clipped-border:nth-child(7) {
    top: 390px;
    left: 0;
}
.clipped-border:nth-child(8) {
    top: 390px;
    left: 470px;
}

#clipped {
    -webkit-clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);

}

.clipped-border:hover{
    transform:scale(1.2);
    transition:transform 0.2s;
    z-index:10;
}

@media all and (max-width:1440px) {
    .works {
        margin-bottom: 13%;
    }
}
@media all and (max-width:1024px) {
    .works {
        margin: 15% 0;
        transform: translateX(20%);
    }
}
@media all and (max-width:920px) {
    .works {
        transform: translate(20%, 10%);
    }
}
@media all and (max-width:500px){
    .clipped-border{
        width:160px;
        height:160px;
    }

    .clipped-border:nth-child(2){
        top:0;
        left:100px;
    }

    .clipped-border:nth-child(3){
        left:200px;
    }

    .clipped-border:nth-child(4){
        top:82px;
        left:50px;
    }

    .clipped-border:nth-child(5){
        top:82px;
        left:150px;
    }
    .clipped-border:nth-child(6){
        top:185px;
        left:100px;
        z-index: 1;
    }
    .clipped-border:nth-child(7){
        top:185px;
        left:0;
    }
    .clipped-border:nth-child(8){
        top:185px;
        left:200px;
        z-index: 1;
    }
    .works {
       margin: 50px 0 150px 0;
        height: auto;
        transform: translate(6%, 10%);
    }

}
