
/* ==================================================
   LU SUMADIJA - RESPONSIVE CSS
   www.lusumadija.rs
   Verzija 1.0
   ================================================== */

/* GLOBAL SETTINGS */

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-width: 320px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-attachment: fixed;
}

img {
    max-width: 100%;
    height: auto;
}

input,
textarea,
select,
button {
    max-width: 100%;
    font-family: inherit;
}

iframe,
video {
    max-width: 100%;
}

/* GLAVNI KONTEJNERI */

.header_resize,
.content_resize,
.fbg_resize,
.footer_resize {
    width: 970px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* HEADER */

.header {
    width: 100%;
}

.header_resize {
    padding: 0 15px;
    display: flow-root;
}

.logo {
    max-width: 100%;
}

.logo img {
    max-width: 100%;
    height: auto;
}

/* NASLOV SAJTA */

h1 {
    max-width: 100%;
    overflow-wrap: break-word;
}

h1 small {
    max-width: 100%;
}

/* GLAVNA NAVIGACIJA */

.menu_nav {
    width: 100%;
    height: auto;
    min-height: 56px;
    padding: 0 15px;
}

.menu_nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.menu_nav ul li {
    float: none;
}

.menu_nav ul li a {
    white-space: normal;
}

/* SADRŽAJ */

.content {
    width: 100%;
}

.content_resize {
    display: flow-root;
    background-size: 100% auto;
}

.content .mainbar {
    width: 75.26%;
    float: left;
    min-width: 0;
}

.content .sidebar {
    width: 24.74%;
    float: right;
    min-width: 0;
}

.content .mainbar .article {
    overflow-wrap: break-word;
}

.content .mainbar img {
    max-width: 100%;
    height: auto;
}

.content .mainbar img.fl {
    max-width: 45%;
}

.content .sidebar .gadget,
.content .sidebar .gadget2 {
    max-width: 100%;
}

ul.sb_menu li {
    max-width: 100%;
}

/* SLIDER - NIVO */

#slider-wrapper {
    width: 970px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

#slider {
    position: relative;
    width: 100%;
    aspect-ratio: 963 / 257;
    height: auto;
    overflow: hidden;
}

#slider img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

#slider a {
    max-width: 100%;
}

.nivo-caption {
    max-width: 100%;
    overflow-wrap: break-word;
}

/* SEARCH */

.searchform {
    max-width: 100%;
}

#formsearch {
    max-width: 100%;
}

#formsearch input.editbox_search {
    max-width: 100%;
}

/* FORME */

ol li input.text,
ol li textarea {
    width: 100%;
    max-width: 480px;
}

.text_box,
.text_area,
.text_select {
    width: 100%;
    max-width: 400px;
}

ol.phpfmg_form,
ol.phpfmg_form li {
    width: 100%;
    max-width: 100%;
}

.form_error {
    max-width: 100%;
    overflow-wrap: break-word;
}

/* FOOTER / DONJI DEO */

.fbg {
    width: 100%;
}

.fbg_resize {
    display: flow-root;
    width: 970px;
    padding: 24px 40px 12px;
}

.fbg .col {
    float: left;
    max-width: 100%;
}

.fbg .c1 {
    width: 30%;
}

.fbg .c2 {
    width: 35%;
}

.fbg .c3 {
    width: 35%;
}

.footer {
    width: 100%;
}

.footer_resize {
    display: flow-root;
    width: 970px;
}

.footer .lf {
    float: left;
}

.footer .rf {
    float: right;
}

/* TABELE */

table {
    max-width: 100%;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ==================================================
   TABLETI I MANJI LAPTOPOVI
   1024px
   ================================================== */

@media screen and (max-width: 1024px) {

    body {
        background-attachment: scroll;
    }

    .header_resize,
    .content_resize,
    .fbg_resize,
    .footer_resize {
        width: 96%;
        max-width: 96%;
    }

    .content .mainbar {
        width: 72%;
    }

    .content .sidebar {
        width: 28%;
    }

    .content .mainbar .article {
        padding-left: 25px;
        padding-right: 20px;
    }

    .content .sidebar .gadget,
    .content .sidebar .gadget2 {
        padding-left: 15px;
        padding-right: 10px;
    }

    .menu_nav {
        padding-left: 10px;
        padding-right: 10px;
    }

    .menu_nav ul li a {
        padding: 15px 12px;
        font-size: 13px;
    }

    #slider-wrapper {
        width: 100%;
    }

    .fbg_resize {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ==================================================
   MOBILNI TELEFONI I TABLETI
   768px
   ================================================== */

@media screen and (max-width: 768px) {

    body {
        font-size: 14px;
        line-height: 1.7em;
        background-attachment: scroll;
        background-position: center top;
    }

    .header_resize,
    .content_resize,
    .fbg_resize,
    .footer_resize {
        width: 94%;
        max-width: 94%;
        padding-left: 0;
        padding-right: 0;
    }

    /* HEADER */

    .header_resize {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo {
        float: none;
        width: 100%;
        text-align: center;
    }

    .logo img {
        max-width: 180px;
    }

    h1 {
        padding: 10px 5px;
        font-size: 26px;
        line-height: 1.3em;
        letter-spacing: 0;
        text-align: center;
    }

    h1 small {
        padding-left: 0;
        font-size: 14px;
    }

    /* NAVIGACIJA */

    .menu_nav {
        height: auto;
        padding: 0;
        margin-bottom: 10px;
    }

    .menu_nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        padding: 5px;
    }

    .menu_nav ul li {
        float: none;
        flex: 0 0 auto;
    }

    .menu_nav ul li a {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* SADRŽAJ */

    .content {
        padding: 5px 0;
    }

    .content_resize {
        display: flex;
        flex-direction: column;
        background: #fff;
        padding-bottom: 15px;
    }

    .content .mainbar,
    .content .sidebar {
        float: none;
        width: 100%;
        max-width: 100%;
    }

    .content .mainbar .article {
        padding: 12px 15px;
    }

    .content .mainbar img.fl {
        max-width: 45%;
        height: auto;
    }

    .content .sidebar .gadget,
    .content .sidebar .gadget2 {
        padding: 12px 15px;
    }

    ul.sb_menu li {
        width: 100%;
    }

    /* NASLOVI */

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 21px;
        line-height: 1.4em;
    }

    /* SLIDER */

    #slider-wrapper {
        width: 100%;
        max-width: 100%;
        height: auto;
        padding-top: 5px;
    }

    #slider {
        width: 100%;
        height: auto;
        aspect-ratio: 963 / 257;
    }

    #slider img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .nivo-caption {
        font-size: 12px;
    }

    /* SEARCH */

    .searchform {
        float: none;
        width: 100%;
    }

    #formsearch {
        display: flex;
        width: 100%;
    }

    #formsearch span {
        flex: 1;
        min-width: 0;
        float: none;
    }

    #formsearch input.editbox_search {
        width: 100%;
        float: none;
    }

    /* FORME */

    ol li input.text,
    ol li textarea,
    .text_box,
    .text_area,
    .text_select {
        width: 100%;
        max-width: 100%;
    }

    /* DONJI DEO */

    .fbg_resize {
        display: flex;
        flex-direction: column;
        padding: 20px 10px;
    }

    .fbg .col,
    .fbg .c1,
    .fbg .c2,
    .fbg .c3 {
        float: none;
        width: 100%;
        padding: 10px 5px;
    }

    /* FOOTER */

    .footer_resize {
        text-align: center;
        padding: 20px 5px;
    }

    .footer .lf,
    .footer .rf {
        float: none;
        display: block;
        text-align: center;
    }

    /* TABELE */

    table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}

/* ==================================================
   MANJI MOBILNI TELEFONI
   480px
   ================================================== */

@media screen and (max-width: 480px) {

    body {
        font-size: 13px;
    }

    h1 {
        font-size: 21px;
    }

    h1 small {
        font-size: 12px;
    }

    h2 {
        font-size: 19px;
    }

    .header_resize,
    .content_resize,
    .fbg_resize,
    .footer_resize {
        width: 96%;
        max-width: 96%;
    }

    .menu_nav ul {
        justify-content: center;
    }

    .menu_nav ul li {
        flex: 1 1 45%;
        text-align: center;
    }

    .menu_nav ul li a {
        padding: 9px 5px;
        font-size: 11px;
    }

    .content .mainbar .article {
        padding: 10px;
    }

    .content .mainbar img.fl {
        float: none;
        display: block;
        max-width: 100%;
        margin: 5px auto 12px;
    }

    #slider {
        aspect-ratio: 16 / 7;
    }

    .nivo-caption {
        display: none !important;
    }

    .content p.pages {
        padding: 10px;
        text-align: center;
    }

    .content p.pages small {
        float: none;
        display: block;
        margin-bottom: 8px;
    }

    .footer p {
        font-size: 11px;
    }
}

/* ==================================================
   VEOMA MALI EKRANI
   360px
   ================================================== */

@media screen and (max-width: 360px) {

    h1 {
        font-size: 19px;
    }

    .menu_nav ul li {
        flex-basis: 100%;
    }

    .menu_nav ul li a {
        padding: 8px;
    }

    .content .mainbar .article {
        padding: 8px;
    }
}





/* NIVO SLIDER - FINAL RESPONSIVE FIX */

#slider-wrapper {
    width: 100%;
    max-width: 970px;
    height: auto !important;
    margin: 0 auto;
    padding-top: 8px;
}

#slider.nivoSlider {
    position: relative;
    width: 100% !important;
    max-width: 100%;
    height: auto;
    overflow: hidden;
}

#slider .nivo-slice {
    position: absolute;
    top: 0;
    height: 100%;
}

#slider .nivo-caption {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 8px 15px;
    font-size: 13px;
}

@media screen and (max-width: 768px) {

    #slider-wrapper {
        width: 100%;
        padding-top: 5px;
    }

    #slider .nivo-caption {
        padding: 4px 8px;
        font-size: 11px;
    }

    #slider .nivo-directionNav a {
        transform: scale(0.8);
    }
}

@media screen and (max-width: 480px) {

    #slider .nivo-caption {
        display: none !important;
    }

    #slider .nivo-directionNav {
        display: none;
    }

    #slider .nivo-controlNav {
        display: none;
    }
}
