/* Master styles*/
body {
    font-family: Oxygen;
    font-size: 16px;
    overflow:hidden;
}

@font-face {
    font-family: Oxygen;
    src: url('font/Oxygen-Regular.ttf');
}

.container {
    display: grid;
    grid-template-columns: 1fr;
}

/* Portfolio styles*/
.portfolio-items-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    height: calc(100vh - 80px - 48.4px);
    width: 100%;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    position: relative;
}

    .portfolio-items-wrapper > div {
        width: 430px;        
        min-height: 350px;
        padding: 50px;      
        top: 100px;
        right: 10%;       
        background-color: rgba(255,255,255,0.5);      
    }
    
/*Header/Logo/Menu/Foooter*/
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    background-size: cover;
}

.logo {
    height: 60px;
    width: 397px;
    background-size: contain;
    background-position: left;
    background-repeat: no-repeat;
    cursor: pointer;
    margin-right: 10px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 8vh;
    background-color: white;
    padding: 15px;
}

.cronav-links {
    display: flex;
    justify-content: space-around;
    width: 45%;    
}

    .cronav-links li {
        list-style: none;
    }

    .cronav-links a {
        color: black;
        text-decoration: none;
        letter-spacing: 3px;       
    }

.burger {
    display: none;
    cursor: pointer;
}

    .burger div {
        width: 25px;
        height: 3px;
        background-color: black;
        margin: 5px;
        transition: 0.3s ease;
    }

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 11; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: hidden; /* Enable scroll if needed - auto for enable*/
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 5px;
    border: 1px solid #888;
    width: 80%;
    animation: blowUpModal .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

.ico_lokacija_modal {
    display: inline-block;
    color: white;
    text-decoration: none;
    margin-bottom: 20px;
    margin-left: 10px;
}

    .ico_lokacija_modal:before {
        content: '';
        background: url(images/logos/lokacija.png);
        background-size: cover;
        position: absolute;
        width: 20px;
        height: 20px;
    }

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 25px;
    font-weight: bold;
}

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

.crotekst {
    animation: cronavLinkFade 1s ease forwards;
}

footer {
    background-color: rgb(54, 57, 162);
    text-decoration-style: solid;
    color: white;
    display: flex;
    height: 44px;
    position: fixed;
    bottom: 0px;
}

.footerleft {
    width: 80vw;
    padding: 8px 0px 0px 10px;
    text-align: left;
}

    .footerleft a {
        color: white;
    }

        .footerleft a:hover {
            color: rgba(255, 255, 255, 0.7);
        }

.footerright {
    width: 20vw;
    padding: 8px 10px;
    text-align: right;
}

@media screen and (max-width:1024px) {
    .cronav-links {
        width: 50%;
    }
}

@media screen and (max-width:768px) {
   
    .cronav-links {
        position: absolute;
        right: 0px;
        height: 0vh;
        top: 90px;
        background-color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 40%;       
        z-index: 10;       
        transition: height 0.5s ease-in;
    }

        .cronav-links li {
            opacity: 0;
            visibility: hidden;
        }

    .burger {
        display: block;
    }

    .portfolio-items-wrapper > div { /*za sve div elemente unutar diva sa klasom portfolio-items-wrapper*/
        max-height: 100%;
        width: auto;
        padding: 50px;
        left: 25px;
        right: 25px;
        overflow: auto;
        top: 50px;
    }

    .modal-content {
        width: 95%;       
    }

    .ico_lokacija_modal {
        display: none;
    }

    .cronav-aktivan {
        height: 50vh;
        transition: height 0.5s ease-in;        
    }

    footer {
        height: 80px;
    }
}

@media screen and (max-height:600px) and (orientation: landscape) {
    .portfolio-items-wrapper > div {
        width: 80vw;
        min-height: 150px;
        top: 10px;
        padding: 25px;
        overflow: auto;
        max-height: calc(100vh - 155px);       
    }
}

.cronav-aktivan li {    
   visibility: visible;
 }

@keyframes cronavLinkFade {
    from {
        opacity: 0;
        transform: translateX(-500px);       
    }

    to {
        opacity: 1;
        transform: translateX(0px);       
    }
}

@keyframes cronavLinksSlide {
    from {
        opacity: 0;
        height: 0vh;
    }

    to {
        opacity: 1;
        height: 50vh;
    }
}

.izmjeni .linija1 {
    transform: rotate(-45deg) translate(-5px,6px);
}

.izmjeni .linija2 {
    opacity: 0;
}

.izmjeni .linija3 {
    transform: rotate(45deg) translate(-5px,-6px);
}

@-webkit-keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

@keyframes blowUpModal {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

.openmap {
    display: block;
    width: 100%;
    height: 830px;
}

#div_4 {
    background-color: rgba(54, 57, 162, 0.5);
    color: white;
}

/*Ikone*/
.ico_kontakt {   
    display: inline-block;
    height: 30px;   
    color: white;
    text-decoration: none;
    padding-left: 40px;    
}

    .ico_kontakt:before {
        content: '';
        background: url(images/logos/Kontakt.png);
        background-size: cover;
        position: absolute;
        width: 40px;
        height: 40px;
        margin-left: -20px;
    }

.ico_onama {
    padding-left: 40px;
}

    .ico_onama:before {
        content: '';
        background: url(images/logos/o_nama.png);
        background-size: cover;
        position: absolute;
        width: 40px;
        height: 40px;
        margin-left: -20px;
    }

.ico_usluga {  
    padding-left: 40px;
}

    .ico_usluga:before {
        content: '';
        background: url(images/logos/usluge.png);
        background-size: cover;
        position: absolute;
        width: 40px;
        height: 40px;
        margin-left: -20px;      
    }

.ico_lokacija {
    display: inline-block;
    color: white;
    text-decoration: none;
    margin-bottom: 15px;
    margin-left: 5px;
}

    .ico_lokacija:before {
        content: '';
        background: url(images/logos/lokacija.png);
        background-size: cover;
        position: absolute;
        width: 20px;
        height: 20px;
    }

    a:hover {
        color: rgb(54, 57, 162);
    }

.ol-popup {
    background-color: rgba(255, 255, 255, 0.7);
    animation: blowUpModal .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
    padding: 5px;
    position: absolute;
    min-width: 280px;
    margin-left: -120px;
}

a {
    color: black;
    text-decoration:none;
}