html,
body {
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    height: 100%;
    font-family: Roboto;
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

section {
    display: block;
    text-align: left;
}

h2,
h3 {
    margin: 0;
}

p {
    line-height: 1.4;
}

.just {
    text-align: justify;
}

.fr {
    float: right;
}

.orange {
    color: orangered;
}

a {
    text-decoration: none;
}

ul {
    line-height: 1.5;
}

ul.download {
    line-height: 2;
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 0 15px gray;
    z-index: 1000;
    text-align: right;
}

#akcija {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
    text-align: center;
}

.okvir-poruke {
    border-radius: 10px;
    background-color: white;
    position: relative;
}

.okvir-poruke #img-akcija {
    position: absolute;
    left: -48px;
}

.okvir-poruke .exit {
    background-color: transparent;
    border: none;
    font-size: 36px;
    color: red;
    position: absolute;
    top: 15px;
    right: 10px;
    cursor: pointer;
    outline: none;
}

/* -------------------------------------------------------------------------- */
/* MOBILE MODE: ------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */

@media only screen and (max-width: 650px) {
    body {
        /*
        background-size: cover;
        background-image: url("gui/podloga.jpg");
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-position: center bottom;
        */
        text-align: center;
        font-size: 12px;
        padding-top: 60px;
        padding-bottom: 50px;
    }
    section {
        width: 100%;
        /* margin: 0 auto 30px auto; */
        background-color: rgba(255, 255, 255, 0.7);
        padding: 0 20px 20px 20px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    }
    section h1 {
        margin: 0 -20px 20px -20px;
        background-color: #00244e;
        padding: 5px 15px;
        font-size: 24px;
        color: white;
        font-weight: normal;
    }
    ul.download a {
        color: steelblue;
    }
    li strong,
    ul.download a i {
        color: orangered;
    }
    #header {
        background-image: url("gui/si_logo.jpg");
        background-repeat: no-repeat;
        background-size: 230px auto;
        background-position: 0 0;
        height: 56px;
        border-bottom: solid 5px #00244e;
    }
    #slogani {
        display: none;
    }
    #sebo {
        display: none;
    }
    #menu {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.6);
    }
    #links {
        width: 100%;
        text-align: left;
    }
    #ponuda {
        text-align: center;
        color: orangered;
        padding-top: 9px;
        border-left: solid 1px gray;
        border-right: solid 1px gray;
    }
    #hamburger-tablet {
        display: none;
    }
    .big-icon {
        display: inline-block;
        width: 60px;
        height: 60px;
        font-size: 36px;
        margin: 3px 3px 0 0;
        padding: 5px;
        color: #00244e;
    }
    #mobile-menu-close { color: orangered; }
    #kontakti {
        grid-template-columns: 30% 70%;
    }
    #BiH {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    @media only screen and (max-width: 820px) {
        #products {
            display: grid;
            width: 100%;
            grid-template-columns: 40px 40px 40px 40px 40px auto 40px;
            margin: auto;
            position: relative;
            left: 0;
        }
        #products .product,
        #products #ponuda,
        #desktop-spacer {
            display: none;
        }
        #hamburger-tablet {
            display: inline-block;
        }
        #kontakti {
            grid-template-columns: 1fr;
        }
        #BiH {
            display: grid;
            grid-template-columns: 1fr;
        }
    }
    #products .icon {
        width: 40px;
    }
    .spacer {
        border-right: solid 1px gray;
    }
    #products a {
        padding: 8px 0 6px 0;
        background-color: #00244e;
        color: white;
        font-size: 18px;
        text-align: center;
        border-right: solid 1px gray;
    }
    #marks {
        display: none;
    }
    #slideshow {
        display: none;
    }
    #mobile-splash { width: 100%; margin: 0; }
    #slideshow .slide:not(:first-child) {
        display: none;
    }
    #X7,
    #X8,
    #FELIX,
    #DUO {
        width: 280px;
        height: auto;
        display: block;
        float: none;
        margin-left: calc(50% - 140px);
    }
    #certifikati {
        width: 230px;
        height: auto;
        display: block;
        float: none;
        margin-left: calc(50% - 115px);
    }
    footer {
        background-color: #00244e;
        padding: 20px 0;
    }
    #kontakti {
        width: 100%;
        margin: auto;
        text-align: left;
        color: white;
        display: grid;
        line-height: 1.4;
    }
    #kontakti>div {
        padding: 20px;
    }
    #kontakti h3 {
        text-align: right;
    }
    #kontakti h2 {
        color: gainsboro;
        padding: 15px 0;
    }
    #kontakti a {
        color: gainsboro;
    }
    #kontakti a:hover {
        color: orangered;
    }
    #HR {
        border-bottom: solid 1px gainsboro;
    }
    #references-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        font-size: 14px;
        z-index: 2000;
        display: none;
        padding: 150px 50px 50px 50px;
        background-color: rgba(0, 0, 0, 0.5);
    }
    #references {
        background-color: white;
        position: fixed;
        top: 99px;
        left: 50px;
        right: 50px;
        bottom: 50px;
        overflow-y: scroll;
    }
    #reference a {
        color: white;
        display: inline-block;
        margin: 3px 10px 0 0;
        float: right;
    }
    #reference a:hover {
        color: orangered;
    }
    #references h1 {
        margin: 0;
        border-radius: 0;
        padding: 10px;
    }
    #references .lista {
        column-count: 2;
        text-align: left;
        padding: 20px;
        border-top: solid 1px #00244e;
        border-bottom: solid 1px #00244e;
    }
    #reference {
        position: fixed;
        top: 50px;
        left: 50px;
        right: 50px;
        font-size: 24px;
        background-color: #00244e;
        color: white;
        text-align: center;
        padding: 10px;
    }
    #reference i {
        float: right;
    }
    #mobile-contacts {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 52px;
        background-color: #00244e;
        font-size: 0;
        border-top: solid 1px gray;
    }
    #mobile-contacts a {
        display: inline-block;
        width: 33.33%;
        color: white;
        text-align: center;
        text-decoration: none;
        font-size: 14px;
        padding: 20px 0 15px 0;
    }
    #mobile-contacts a i {
        /* display: block;
        margin-bottom: 5px; */
        display: inline-block;
        margin-right: 15px;
    }
    #contact-phone,
    #contact-sms {
        border-right: solid 1px gray;
    }
    .okvir-poruke {
        width: 80%;
        padding: 100px 20px 20px 20px;
        margin: 60px auto;
    }
    .okvir-poruke #img-akcija {
        top: 10px;
    }
    .okvir-poruke p {
        font-size: 16px;
    }
    
    #facebook {
        display: inline-block;
        width: 36px;
        height: 36px;
        position: fixed;
        top: 10px;
        right: 90px;
        z-index: 1000;
    }

    #facebook img {
        width: 36px;
        height: 36px;
    }

    #instagram {
        display: inline-block;
        width: 36px;
        height: 36px;
        position: fixed;
        top: 10px;
        right: 50px;
        z-index: 1000;
    }

    #instagram img {
        width: 36px;
        height: 36px;
    }

}

/* -------------------------------------------------------------------------- */
/* TABLET MODE: ------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */

@media only screen and (min-width: 651px) and (max-width: 1039px) {
    body {
        background-size: cover;
        background-image: url("gui/podloga.jpg");
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-position: center bottom;
        text-align: center;
    }
    section {
        width: 100%;
        /* margin: 0 auto 30px auto; */
        background-color: rgba(255, 255, 255, 0.7);
        padding: 0 20px 20px 20px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    }
    section h1 {
        margin: 0 -20px 20px -20px;
        background-color: #00244e;
        padding: 5px 15px;
        font-size: 24px;
        color: white;
        font-weight: normal;
    }
    ul.download a {
        color: steelblue;
    }
    li strong,
    ul.download a i {
        color: orangered;
    }
    #header {
        background-image: url("gui/logo.jpg");
        background-repeat: no-repeat;
        background-size: 250px 75px;
        background-position: 3px 0;
    }
    #slogani {
        display: none;
    }
    #sebo {
        margin: 13px 13px 8px 8px;
    }
    #menu {
        background-color: #00244e;
    }
    #links {
        width: 100%;
        text-align: left;
    }
    #products {
        display: grid;
        width: 100%;
        grid-template-columns: 100px 160px 160px 160px 160px 40px 40px auto 40px 40px;
        margin: auto;
        position: relative;
        left: 0;
    }
    #ponuda {
        text-align: center;
        color: orangered;
        padding-top: 9px;
        border-left: solid 1px gray;
        border-right: solid 1px gray;
    }
    #products .product {
        width: 160px;
    }
    #hamburger-tablet, #hamburger-mobile, #mobile-menu-close {
        display: none;
    }
    #kontakti {
        grid-template-columns: 30% 70%;
    }
    #BiH {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    @media only screen and (max-width: 920px) {
        #products {
            display: grid;
            width: 100%;
            grid-template-columns: 40px 40px 40px 40px 40px auto 40px;
            margin: auto;
            position: relative;
            left: 0;
        }
        #products .product,
        #products #ponuda,
        #desktop-spacer {
            display: none;
        }
        #hamburger-tablet {
            display: inline-block;
        }
        #kontakti {
            grid-template-columns: 1fr 1fr;
        }
        #BiH {
            display: grid;
            grid-template-columns: 1fr;
        }
    }
    #products .icon {
        width: 40px;
    }
    .spacer {
        border-right: solid 1px gray;
    }
    #products a {
        padding: 8px 0 6px 0;
        background-color: #00244e;
        color: white;
        font-size: 16px;
        text-align: center;
        border-right: solid 1px gray;
    }
    #products a:hover {
        background-color: orangered;
    }
    #mobile-splash { display: none; }
    #slide_0 {
        background-image: url("../slideshow/x_slide_0.jpg");
        background-position: right center;
    }
    #slide_1 {
        background-image: url("../slideshow/x_slide_1.jpg");
        background-position: left center;
    }
    #slide_2 {
        background-image: url("../slideshow/x_slide_2.jpg");
        background-position: center center;
    }
    #slide_3 {
        background-image: url("../slideshow/x_slide_4.jpg");
        background-position: right center;
    }
    #slide_4 {
        background-image: url("../slideshow/x_slide_7.jpg");
        background-position: left center;
    }
    #slide_5 {
        background-image: url("../slideshow/x_slide_9.jpg");
        background-position: center center;
    }
    #slide_6 {
        background-image: url("../slideshow/f_slide_3.jpg");
        background-position: right center;
    }
    #slide_7 {
        background-image: url("../slideshow/f_slide_4.jpg");
        background-position: right center;
    }
    #slide_8 {
        background-image: url("../slideshow/f_slide_6.jpg");
        background-position: center center;
    }
    #slide_9 {
        background-image: url("../slideshow/d_slide_0.jpg");
        background-position: center center;
    }
    #slide_10 {
        background-image: url("../slideshow/d_slide_1.jpg");
        background-position: center center;
    }
    #marks {
        display: none;
    }
    #marks i {
        margin-right: 3px;
        cursor: pointer;
    }
    #marks i:hover {
        color: #00244e;
    }
    #slideshow {
        width: 100%;
        height: 525px;
        margin: 113px auto 0 auto;
        overflow: hidden;
        position: relative;
        overflow: hidden;
        background-color: rgba(0, 0, 0, 0.5);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    }
    #slideshow .slide {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    #slideshow .slide:not(:first-child) {
        display: none;
    }
    #mobile-contacts {
        display: none;
    }
    #X7,
    #X8,
    #FELIX,
    #DUO {
        width: 230px;
        height: auto;
    }
    footer {
        background-color: #00244e;
        padding: 20px 0;
    }
    #kontakti {
        width: 100%;
        margin: auto;
        text-align: left;
        color: white;
        display: grid;
        line-height: 1.4;
    }
    #kontakti>div {
        padding: 20px;
    }
    #kontakti h2 {
        color: gainsboro;
        padding: 15px 0;
    }
    #kontakti a {
        color: gainsboro;
    }
    #kontakti a:hover {
        color: orangered;
    }
    #HR {
        border-right: solid 1px gainsboro;
    }
    #references-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        font-size: 14px;
        z-index: 2000;
        display: none;
        padding: 150px 50px 50px 50px;
        background-color: rgba(0, 0, 0, 0.5);
    }
    #references {
        background-color: white;
        position: fixed;
        top: 99px;
        left: 50px;
        right: 50px;
        bottom: 50px;
        overflow-y: scroll;
    }
    #reference a {
        color: white;
        display: inline-block;
        margin: 3px 10px 0 0;
        float: right;
    }
    #reference a:hover {
        color: orangered;
    }
    #references h1 {
        margin: 0;
        border-radius: 0;
        padding: 10px;
    }
    #references .lista {
        column-count: 2;
        text-align: left;
        padding: 20px;
        border-top: solid 1px #00244e;
        border-bottom: solid 1px #00244e;
    }
    #reference {
        position: fixed;
        top: 50px;
        left: 50px;
        right: 50px;
        font-size: 24px;
        background-color: #00244e;
        color: white;
        text-align: center;
        padding: 10px;
    }
    #reference i {
        float: right;
    }
    .okvir-poruke {
        width: 90%;
        padding: 40px;
        margin: 200px auto;
    }
    .okvir-poruke #img-akcija {
        top: 10px;
    }

    #facebook {
        display: inline-block;
        width: 68px;
        height: 68px;
        position: fixed;
        top: 5px;
        right: 230px;
        z-index: 1000;
    }

    #facebook img {
        width: 68px;
        height: 68px;
    }

    #instagram {
        display: inline-block;
        width: 68px;
        height: 68px;
        position: fixed;
        top: 5px;
        right: 310px;
        z-index: 1000;
    }

    #instagram img {
        width: 68px;
        height: 68px;
    }

}

/* -------------------------------------------------------------------------- */
/* DESKTOP MODE: ------------------------------------------------------------ */
/* -------------------------------------------------------------------------- */

@media only screen and (min-width: 1040px) {
    body {
        background-size: cover;
        background-image: url("gui/podloga.jpg");
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-position: center bottom;
        text-align: center;
    }
    section {
        width: 1040px;
        margin: 0 auto 30px auto;
        background-color: rgba(255, 255, 255, 0.7);
        border-radius: 20px;
        padding: 0 20px 20px 20px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    }
    section h1 {
        margin: 0 -20px 20px -20px;
        background-color: rgba(0, 0, 0, 0.5);
        padding: 5px 15px;
        font-size: 24px;
        color: white;
        font-weight: normal;
        border-radius: 20px;
    }
    ul.download a {
        color: steelblue;
    }
    li strong,
    ul.download a i {
        color: orangered;
    }
    #header {
        background-image: url("gui/logo.jpg");
        background-repeat: no-repeat;
        background-size: 250px 75px;
        background-position: 3px 0;
    }
    #slogani {
        position: absolute;
        top: 22px;
        width: 1000px;
        left: calc(50% - 500px);
        height: 40px;
        text-align: center;
        font-size: 28px;
        font-weight: bolder;
        color: #00244e;
        -webkit-transition: all .5s ease;
        -moz-transition: all .5s ease;
        transition: all .5s ease;
        transition-delay: .5s;
    }
    #sebo {
        margin: 13px 13px 8px 8px;
    }
    #menu {
        background-color: #00244e;
        text-align: center;
    }
    #links {
        width: 1040px;
        margin: auto;
        text-align: left;
    }
    #products {
        display: grid;
        width: 1040px;
        grid-template-columns: 100px 160px 160px 160px 160px 40px 40px auto 40px 40px;
        margin: auto;
        position: relative;
        left: 0;
    }
    #ponuda {
        text-align: center;
        color: orangered;
        padding-top: 9px;
        border-left: solid 1px gray;
        border-right: solid 1px gray;
    }
    #products .product {
        width: 160px;
    }
    #products .icon {
        width: 40px;
    }
    .spacer {
        border-right: solid 1px gray;
    }
    #hamburger-tablet,
    #tablet-spacer,
    #hamburger-mobile,
    #mobile-menu-close {
        display: none;
    }
    #products a {
        padding: 8px 0 6px 0;
        background-color: #00244e;
        color: white;
        font-size: 16px;
        text-align: center;
        border-right: solid 1px gray;
    }
    #products a:hover {
        background-color: orangered;
    }
    #mobile-splash { display: none; }
    #slide_0 {
        background-image: url("../slideshow/x_slide_0.jpg");
    }
    #slide_1 {
        background-image: url("../slideshow/x_slide_1.jpg");
    }
    #slide_2 {
        background-image: url("../slideshow/x_slide_2.jpg");
    }
    #slide_3 {
        background-image: url("../slideshow/x_slide_4.jpg");
    }
    #slide_4 {
        background-image: url("../slideshow/x_slide_7.jpg");
    }
    #slide_5 {
        background-image: url("../slideshow/x_slide_9.jpg");
    }
    #slide_6 {
        background-image: url("../slideshow/f_slide_3.jpg");
    }
    #slide_7 {
        background-image: url("../slideshow/f_slide_4.jpg");
    }
    #slide_8 {
        background-image: url("../slideshow/f_slide_6.jpg");
    }
    #slide_9 {
        background-image: url("../slideshow/d_slide_0.jpg");
        background-position: center center;
    }
    #slide_10 {
        background-image: url("../slideshow/d_slide_1.jpg");
        background-position: center center;
    }
    #marks {
        position: absolute;
        left: 20px;
        top: 20px;
        font-size: 12px;
        z-index: 500;
        color: gainsboro;
        background-color: #617074;
        padding: 10px;
        border-radius: 0 0 20px 0;
    }
    #marks i {
        margin-right: 3px;
        cursor: pointer;
    }
    #marks i:hover {
        color: #00244e;
    }
    #slideshow {
        width: 1040px;
        height: 565px;
        margin: 160px auto 30px auto;
        overflow: hidden;
        position: relative;
        border-radius: 20px;
        overflow: hidden;
        background-color: rgba(0, 0, 0, 0.5);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    }
    #slideshow .slide {
        width: calc(100% - 40px);
        height: calc(100% - 40px);
        position: absolute;
        top: 20px;
        left: 20px;
        right: 0;
        bottom: 0;
        border-radius: 10px;
    }
    #slideshow .slide:not(:first-child) {
        display: none;
    }
    #mobile-contacts {
        display: none;
    }
    #X7,
    #X8,
    #FELIX,
    #DUO {
        width: 230px;
        height: auto;
    }
    footer {
        background-color: #00244e;
        padding: 20px 0;
    }
    #kontakti {
        width: 1024px;
        margin: auto;
        text-align: left;
        color: white;
        display: grid;
        grid-template-columns: 40% 60%;
        line-height: 1.4;
    }
    #kontakti>div {
        padding: 20px;
    }
    #kontakti h2 {
        color: gainsboro;
        padding: 15px 0;
    }
    #kontakti a {
        color: gainsboro;
    }
    #kontakti a:hover {
        color: orangered;
    }
    #HR {
        border-right: solid 1px gainsboro;
    }
    #BiH {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    #references-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        font-size: 14px;
        z-index: 2000;
        display: none;
        padding: 150px 50px 50px 50px;
        background-color: rgba(0, 0, 0, 0.5);
    }
    #references {
        background-color: white;
        position: fixed;
        top: 99px;
        left: 50px;
        right: 50px;
        bottom: 50px;
        overflow-y: scroll;
    }
    #reference a {
        color: white;
        display: inline-block;
        margin: 3px 10px 0 0;
        float: right;
    }
    #reference a:hover {
        color: orangered;
    }
    #references h1 {
        margin: 0;
        border-radius: 0;
        padding: 10px;
    }
    #references .lista {
        column-count: 2;
        text-align: left;
        padding: 20px;
        border-top: solid 1px #00244e;
        border-bottom: solid 1px #00244e;
    }
    #reference {
        position: fixed;
        top: 50px;
        left: 50px;
        right: 50px;
        font-size: 24px;
        background-color: #00244e;
        color: white;
        text-align: center;
        padding: 10px;
    }
    #reference i {
        float: right;
    }
    .okvir-poruke {
        margin: 200px auto;
        width: 800px;
        padding: 80px;
    }
    .okvir-poruke #img-akcija {
        top: 20px;
    }

    #facebook {
        display: inline-block;
        width: 136px;
        height: 136px;
        position: fixed;
        top: 120px;
        right: 40px;
        z-index: 1000;
    }

    #facebook img {
        width: 136px;
        height: 136px;
    }

    #instagram {
        display: inline-block;
        width: 136px;
        height: 136px;
        position: fixed;
        top: 270px;
        right: 40px;
        z-index: 1000;
    }

    #instagram img {
        width: 136px;
        height: 136px;
    }

}
