* {
    margin: 0;
    padding: 0;
}

::selection {
    background-color: #1f3b9e;
    color: white;
}

body {
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: Open;
    src: url(fontovi/OpenSans-Regular.ttf);
}

@font-face{
    font-family: Arsenal;
    src: url(fontovi/Arsenal-Regular.ttf);
}

html {
    scroll-behavior: smooth;
}

html {
    --scrollbarBG: #cfd8dc;
    --thumbBG: #1f3b9e;
}

body::-webkit-scrollbar {
    width: 13px;
}

body {
    scrollbar-width: thin;
    scrollbar-color: var(--thumbBG) var(--scrollbarBG);
}

body::-webkit-scrollbar-track {
    background: var(--scrollbarBG);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--thumbBG);
    border-radius: 6px;
    border: 1.5px solid var(--scrollbarBG);
}

header img {
    width: 100%;
}

.prvi {
    position: relative;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.22);
    top: -75px;
    display: grid;
    background-color: white;
    font-family: Open;
    width: 80%;
    margin: auto;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    box-sizing: border-box;
    padding: 30px;
    grid-template-areas: "jedan dva tri";
}

.jedan {
    grid-area: jedan;
    text-align: center;
    border-right: 2px solid #1f3b9e;
    padding-top: 4.5%;
    padding-right: 6%;
}

.dva {
    grid-area: dva;
    border-right: 2px solid #1f3b9e;
    height: 10vh;
    text-align: center;
    line-height: 80px;
}

.tri {
    grid-area: tri;
    text-align: center;
    padding-top: 4%;
}

.tri li {
    list-style-type: none;
}

.drugi {
    background-image: url(slike/ordinacija/Dom%20zdravlja-2.jpg);
    height: 50vh;
    margin: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.drugi h1 {
    text-align: center;
    line-height: 350px;
    font-family: Open;
    font-size: 30px;
    text-shadow: 2px 2px black;
    color: white;
}

iframe {
    width: 99vw;
    margin: auto;
    display: block;
}

footer {
    display: grid;
    width: 90%;
    margin: auto;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "adresa tekst1 poveznice";
}

footer ul {
    list-style-type: none;
    font-family: Arsenal;
    line-height: 25px;
}

.prva_lista {
    padding-right: 40px;
}

footer section {
    font-weight: bold;
}

.poveznice {
    grid-area: poveznice;
    padding-top: 30px;
    text-align: center;
    letter-spacing: 10px;
    display: block;
    margin: auto;
}

.tekst1 h2 {
    font-family: Arsenal;
    font-weight: bold;
    font-size: 16px;
}

.tekst1 {
    grid-area: tekst1;
    grid-gap: 10px;
    margin-top: 30px;
    column-count: 2;
}

.tekst2 {
    font-family: Open;
    padding-right: 2%;
    padding-top: 3%;
    line-height: 23px;
    width: 60%;
    margin: auto;
    clear: both;
}

.adresa {
    grid-area: adresa;
    width: 70%;
    padding-top: 20%;
    font-family: Open;
    text-align: center;
}

#copyright {
    width: 100%;
    text-align: center;
    background-color: #1f3b9e;
    line-height: 100px;
    margin-top: 2%;
    color: white;
    font-family: Open;
    font-size: 17px;
}

#instagram {
    font-size: 47px;
    color: #1f3b9e;
}

#instagram:hover {
    transition-timing-function: ease-in-out;
    color: #4d98dc;
    transition: .5s;
}

#gmail {
    font-size: 47px;
    color: #1f3b9e;
}

#gmail:hover {
    color: #4d98dc;
    transition: .5s;
}

#facebook {
    font-size: 43px;
    color: #1f3b9e;
}

#facebook:hover {
    color: #4d98dc;
    transition: .5s;
}

.logo {
    position: fixed;
    left: 2%;
    top: 1%;
    width: 75px;
    height: 75px;
    background-image: url(slike/LOGO1.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: 105;
}

.logo_tekst {
    position: fixed;
    top: 3%;
    left: 8%;
    font-family: Open;
    z-index: 100;
    letter-spacing: 6px;
    font-size: 13px;
    z-index: 105;
}

.logo_tekst section {
    font-weight: 900;
    letter-spacing: normal;
    color: #1f3b9e;
    font-size: 20px;
    display: inline;
}

#drugi_dio {
    letter-spacing: normal;
    font-weight: normal;
    color: black;
    font-size: 13px;
    display: inline;
}

.treci {
    width: 95%;
    padding-top: 3%;
    padding-left: 2%;
    clear: both;
    display: block;
}

.slika1 {
    width: 100%;
    margin-top: 20%;
    z-index: 100;
}

.treci h2 {
    font-family: Arsenal;
    color: #1f3b9e;
    line-height: 45px;
}

.treci p {
    width: 90%;
    font-family: Arsenal;
    line-height: 25px;
    padding-left: 5%;
}

.treci ul {
    padding-top: 2%;
    font-family: Arsenal;
    line-height: 28px;
    padding-bottom: 2%;
    list-style-type: none;
    padding-left: 5%;
}

.treci1 {
    width: 60%;
    float: left;
    column-count: 2;
    column-gap: 20px;
    padding-top: 6%;
    position: relative;
    top: 1%;
    padding-bottom: 2%;
}

.treci2 {
    width: 40%;
    float: right;
    display: block;
    margin: auto;
}

.pacijenti {
    width: 100%;
}

.pacijenti h2 {
    width: 50%;
    margin: auto;
    text-align: center;
}

.pacijenti p {
    width: 50%;
    margin: auto;
    text-align: center;
}

.cetvrti {
    background-image: url(slike/ordinacija/Dom%20zdravlja-18.jpg);
    background-position: center;
    background-size: cover;
    height: 70vh;
    width: 100%;
    background-repeat: no-repeat;
    position: relative;
    clear: both;
}

.cetvrti .wave {
    width: 100%;
    height: 10vh;
    position: absolute;
    bottom: 0;
    left: 0;
    clear: both;
}

.topnav {
    overflow: hidden;
    background-color: rgb(255, 255, 255, 0.8) !important;
    line-height: 52px;
    position: fixed;
    width: 100%;
    z-index: 101;
}

.topnav a {
    float: right;
    display: block;
    color: black;
    text-align: center;
    padding: 18px 40px;
    text-decoration: none;
    font-size: 17px;
    font-family: Open;
}

@supports (-ms-ime-align:auto) {
        .topnav {
    overflow: hidden;
    background-color: white;
    }
}

.topnav a:hover {
    background-color: rgb(77, 152, 220, 0.3);
    color: #006;
    transition: .5s;
}

.topnav .icon {
    display: none;
}

@media screen and (min-width:800px) {
    span {
        float: none;
        display: none;
    }

    .overlay {
        display: none;
    }
}

@media screen and (max-width:800px) {
    .topnav a:not(:first-child) {
        display: none;
    }

    .topnav a:first-child {
        display: none;
    }

    .topnav a.icon {
        float: right;
        display: none;
    }

    span {
        float: right;
        margin: 5%;
        margin-right: 7.5%;
        position: fixed;
        right: 0;
        z-index: 200;
        font-family: Open;
    }

    .logo_tekst {
        display: none;
    }
}

.overlay {
    height: 0;
    width: 100%;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #000;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-y: hidden;
    transition: .5s;
    font-family: Open;
    z-index: 1000;
}

.overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
    z-index: 2000;
}

.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 20px;
    color: #818181;
    display: block;
    transition: .3s;
    z-index: 2001;
}

.overlay a:hover,
.overlay a:focus {
    color: #f1f1f1;
}

.overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
}

@media screen and (max-height:450px) {
    .overlay {
        overflow-y: auto;
    }

    .overlay a {
        font-size: 20px;
    }

    .overlay .closebtn {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}

.container_usluge {
    background-image: url(slike/val3.jpg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center 190px;
    height: 190vh;
    width: 100%;
    margin: auto;
    font-family: Open;
    overflow-x: hidden !important;
}

.container_usluge p {
    width: 50%;
    text-align: center;
    padding: 5%;
    padding-top: 15%;
}

.container_usluge h2 {
    padding-top: 5%;
    text-align: center;
}

#prije_usluge {
    float: none;
    margin: auto;
    text-align: center;
    margin-top: -15%;
    font-size: 20px;
}

.prvi_usluge {
    display: block;
    width: 40.5%;
    float: left;
    height: 45vh;
    background-color: #6290c8;
    margin: 5%;
    box-shadow: -2px 2px 10px #1f3b9e;
    background-image: url(slike/thermometer1.png);
    background-position: 78% center;
    background-size: 20%;
    background-repeat: no-repeat;
}

.prvi_usluge p {
    margin-top: -3%;
    float: left;
}

.drugi_usluge {
    display: block;
    margin: auto;
    width: 40.5%;
    float: right;
    height: 45vh;
    background-color: #a3bac3;
    margin: 5%;
    margin-top: -2%;
    box-shadow: -2px 2px 10px #1f3b9e;
    background-image: url(slike/doctor2.png);
    background-position: 20% center;
    background-size: 20%;
    background-repeat: no-repeat;
}

.drugi_usluge p {
    margin-top: -5%;
    float: right;
}

.treci_usluge {
    width: 40.5%;
    float: left;
    height: 45vh;
    background-color: #1d3461;
    margin: 5%;
    box-shadow: -2px 2px 10px #1f3b9e;
    color: white;
    background-image: url(slike/doctor.png);
    background-position: 78% center;
    background-size: 20%;
    background-repeat: no-repeat;
    margin-top: -2%;
}

.treci_usluge p {
    float: left;
    margin-top: -2%;
    text-align: center;
}

.galerija {
    display: grid;
    grid-gap: 2%;
    margin-bottom: 3%;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "galerija1 galerija2 galerija3""galerija4 galerija5 galerija6";
}

#galerija1 {
    grid-area: galerija1;
    width: 80%;
    display: block;
    margin: auto;
}

#galerija2 {
    grid-area: galerija2;
    width: 80%;
    display: block;
    margin: auto;
}

#galerija3 {
    grid-area: galerija3;
    width: 80%;
    display: block;
    margin: auto;
}

#galerija4 {
    grid-area: galerija4;
    width: 80%;
    display: block;
    margin: auto;
}

#galerija5 {
    grid-area: galerija5;
    width: 80%;
    display: block;
    margin: auto;
}

#galerija6 {
    grid-area: galerija6;
    width: 80%;
    display: block;
    margin: auto;
}

.djelatnici_h1 {
    text-align: center;
    font-family: Open;
    font-size: 40px;
}

.djelatnici_p {
    text-align: center;
    font-family: Open;
    font-size: 18px;
    padding-top: 10px;
}

.djelatnici1 {
    width: 100%;
    padding-left: 15%;
    box-sizing: border-box;
    padding-top: 4%;
}

.djelatnici {
    width: 40%;
    display: inline;
    padding-left: 1%;
}

.djelatnici2 {
    margin: auto;
    width: 85%;
    padding: 0;
}

.djelatnici_slika1 {
    float: right;
    width: 40%;
    display: inline-block;
    padding-top: 6%;
}

.djelatnici_slika2 {
    float: left;
    width: 40%;
    display: inline-block;
}

.djelatnici_tekst1 {
    padding: 2%;
    margin-top: 10%;
    float: left;
    width: 40%;
    height: 50vh;
    text-align: center;
    font-family: Open;
    font-size: 25px;
    background-color: white;
}

.djelatnici_tekst2 {
    float: right;
    width: 40%;
    padding-top: 16%;
    text-align: center;
    font-family: Open;
    font-size: 25px;
}

#nastavak {
    text-align: center;
    margin: auto;
    width: 55%;
    padding-top: 2%;
    font-size: 16px;
}

@media screen and (max-width:1450px) {
    .treci1 {
        width: 100%;
    }

    .treci2 {
        display: none;
    }

    iframe {
        width: 98vw;
    }
}

@media screen and (max-width:1305px) {
    .logo {
        position: fixed;
        left: 2%;
        top: 1%;
        width: 55px;
        height: 55px;
        background-image: url(slike/LOGO1.png);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        z-index: 105;
    }

    .logo_tekst {
        position: fixed;
        top: 2%;
        left: 8%;
        font-family: Open;
        z-index: 100;
        letter-spacing: 6px;
        font-size: 11px;
        z-index: 105;
    }

    .logo_tekst section {
        font-weight: 900;
        letter-spacing: normal;
        color: #1f3b9e;
        font-size: 15px;
    }

    .treci_usluge {
        height: 43vh;
    }

    .drugi_usluge {
        height: 43vh;
    }

    .prvi_usluge {
        height: 46vh;
    }
}

@media screen and (max-width:1205px) {
    .topnav a {
        padding: 8px 10px;
    }
}

@media screen and (max-width:1150px) {
    footer {
        display: grid;
        clear: both;
        width: 100%;
        margin: auto;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: auto;
        grid-template-areas: "adresa""tekst1""poveznice";
    }

    #copyright {
        font-size: 17px;
        line-height: 40px;
    }

    .adresa {
        grid-area: adresa;
        width: 100%;
        padding-top: 2%;
        padding-bottom: 3%;
        font-family: 'Open';
        text-align: center;
    }

    .tekst1 {
        margin: auto;
        display: block;
        grid-gap: 0;
    }

    .prvi_usluge {
        width: 50%;
        float: none;
        margin: auto;
        height: 45vh;
        margin-bottom: 3%;
    }

    .drugi_usluge {
        width: 50%;
        float: none;
        margin: auto;
        height: 45vh;
        margin-bottom: 3%;
    }

    .treci_usluge {
        width: 50%;
        float: none;
        margin: auto;
        height: 45vh;
    }

    .container_usluge {
        height: auto;
        width: 100%;
    }
}

@media screen and (max-width:950px) {
    .logo_tekst {
        position: fixed;
        top: 2%;
        left: 10%;
        font-family: Open;
        z-index: 100;
        letter-spacing: 6px;
        font-size: 11px;
        z-index: 105;
    }

    .prvi {
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.22);
        display: grid;
        position: relative;
        top: -75px;
        background-color: white;
        font-family: Open;
        width: 100%;
        margin: auto;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
        box-sizing: border-box;
        margin-top: 20px;
        margin-bottom: 20px;
        grid-template-areas: "jedan dva tri";
        font-size: 15px;
    }

    .galerija {
        display: grid;
        grid-gap: 2%;
        margin-bottom: 10%;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        grid-template-areas: "galerija1 galerija2""galerija3 galerija4""galerija5 galerija6";
    }

    .djelatnici1 {
        width: 100%;
        margin: auto;
        display: block;
        box-sizing: border-box;
        padding-top: 4%;
        padding-bottom: 5%;
    }

    .djelatnici {
        width: 80%;
        display: inline;
        padding-left: 1%;
    }

    .djelatnici_tekst1 {
        margin-top: 10%;
        width: 100%;
        float: none;
        padding: 0;
        margin: 0 auto;
        height: auto;
    }

    #nastavak {
        padding: 0;
        margin: 0 auto;
    }

    .djelatnici_h1 {
        font-size: 20px;
    }

    .djelatnici_tekst2 {
        float: none;
        width: 100%;
        padding-bottom: 2%;
    }

    .djelatnici_slika1 {
        float: none;
        width: 90%;
        display: block;
        margin: auto;
    }

    .djelatnici_slika2 {
        float: none;
        width: 90%;
        display: block;
        margin: auto;
    }
    
    .drugi {
    background-attachment: inherit;
}
}

@media screen and (max-width:850px) {
    .treci {
        width: 90%;
        display: block;
        margin: auto
    }

    iframe {
        padding-top: 5%;
        width: 95vw;
        margin: auto;
        display: block;
    }

    .drugi h1 {
        line-height: 50px;
        padding-top: 20%;
    }

    .galerija {
        display: grid;
        grid-gap: 2%;
        margin-bottom: 90%;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: auto;
        grid-template-areas: "galerija1""galerija2""galerija3""galerija4""galerija5""galerija6";
    }

    #copyright {
        padding-top: 2%;
        font-size: 16px;
        line-height: 30px;
    }

    .container_usluge {
        background-image: none;
    }

    .prvi_usluge {
        width: 80%;
    }

    .drugi_usluge {
        width: 80%;
    }

    .treci_usluge {
        width: 80%;
    }

    .djelatnici_tekst1 {
        padding-top: 0;
        margin: 0;
    }

    .djelatnici_tekst2 {
        padding-top: 0;
        margin: 0;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    #nastavak {
        width: 90%;
        padding-top: 0;
        margin: 0;
        padding-left: 5%;
    }

    .djelatnici_tekst2 {
        float: none;
        width: 90%;
        margin: auto;
        display: block;
        padding-top: 10%;
        text-align: center;
        font-family: Open;
        font-size: 20px;
    }

    .djelatnici_tekst1 {
        margin: auto;
        display: block;
        float: none;
        font-size: 20px;
    }

    .djelatnici_slika1 {
        display: block;
        margin: auto;
    }

    #prije_usluge {
        width: 90%;
        text-align: center;
        font-size: 18px;
    }

    footer {
        clear: both;
    }

    .pacijenti p {
        width: 80%;
        margin: auto;
        text-align: center;
    }

    .treci1 {
        width: 100%;
        float: none;
        column-count: 1;
        padding-top: 6%;
        z-index: 100;
    }
}

@media screen and (max-width:720px) {
    .logo_tekst {
        position: fixed;
        top: 2%;
        left: 18%;
        font-family: Open;
        z-index: 100;
        letter-spacing: 6px;
        font-size: 11px;
        z-index: 105;
    }

    .prva_lista {
        padding-right: 0;
        padding-bottom: 10px;
    }

    .tekst1 {
        margin: auto;
        grid-gap: 0;
        padding: 8% 0;
    }

    .prvi {
        position: relative;
        width: 80%;
        top: -45px;
        display: grid;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.22);
        margin: auto;
        display: block;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
        box-sizing: border-box;
        grid-template-areas: "jedan""dva""tri";
    }

    .tekst1 h2 {
        text-align: center;
        padding-bottom: 2%;
        column-span: all;
    }

    .jedan {
        border-right: 0;
        text-align: center;
        width: 80%;
        margin-left: 8%;
        border-bottom: 2px solid #1f3b9e;
        padding-bottom: 6%;
    }

    .dva {
        border-right: 0;
        text-align: center;
        width: 80%;
        margin-left: 8%;
        border-bottom: 2px solid #1f3b9e;
        padding-bottom: 6%;
    }

    .tri {
        text-align: center;
        width: 80%;
        margin-left: 8%;
    }

    .cetvrti .wave {
        width: 100%;
        height: 5vh;
        position: absolute;
        margin-bottom: -0.5%;
        bottom: 0;
        left: 0;
    }

    .prvi_usluge {
        padding: 1%;
        float: none;
        display: block;
        margin: auto;
        background-position: center bottom 10px;
        background-repeat: no-repeat;
        margin-bottom: 5%;
    }

    .prvi_usluge p {
        float: none;
        display: block;
        width: 80%;
        margin: auto;
        padding-top: 6%;
    }

    .drugi_usluge {
        padding: 1%;
        float: none;
        display: block;
        margin: auto;
        background-position: center bottom 10px;
        background-repeat: no-repeat;
        margin-bottom: 5%;
    }

    .drugi_usluge p {
        float: none;
        display: block;
        width: 80%;
        margin: auto;
        padding-top: 6%;
    }

    .treci_usluge {
        padding: 1%;
        float: none;
        display: block;
        margin: auto;
        background-position: center bottom 10px;
        background-repeat: no-repeat;
        margin-bottom: 5%;
    }

    .treci_usluge p {
        float: none;
        display: block;
        width: 80%;
        margin: auto;
        padding-top: 6%;
    }
}

@media screen and (max-width:650px) {
    .treci2 {
        width: 90%;
        margin: auto;
        display: none;
    }

    .galerija {
        display: grid;
        grid-gap: 2%;
        margin-bottom: 90%;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: auto;
        grid-template-areas: "galerija1""galerija2""galerija3""galerija4""galerija5""galerija6";
    }

    .tekst1 {
        grid-gap: 0;
        margin-top: 10px;
        column-count: 1;
        text-align: center;
    }

    .prvi_usluge p {
        float: none;
        display: block;
        width: 80%;
        margin: auto;
    }

    .drugi_usluge p {
        float: none;
        display: block;
        width: 80%;
        margin: auto;
    }

    .treci_usluge p {
        float: none;
        display: block;
        width: 80%;
        margin: auto;
    }

    .prvi_usluge {
        height: 50vh;
        margin-bottom: 8%;
    }
    
    .drugi_usluge {
        height: 45vh;
        margin-bottom: 8%;
    }
}

@media screen and (max-width:330px) {
    .prvi_usluge {
        height: 50vh;
    }
}

@media screen and (max-width:275px) {
    .prvi_usluge {
        height: 55vh;
    }

    .drugi_usluge {
        height: 50vh;
    }

    .treci_usluge {
        height: 45vh;
    }
}

@media screen and (max-width:253px) {
    .prvi_usluge {
        height: auto;
        background-image: none;
    }

    .drugi_usluge {
        height: auto;
        background-image: none;
    }

    .treci_usluge {
        height: auto;
        background-image: none;
    }
}

.broj {
    margin: auto;
    padding: 5%;
    display: block;
}

[aos="fade"] {
    transition: ease-in-out;
}