@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap'); /* Montserrat Latin */

* {
    margin: 0;
    padding: 0;
    border: 0;    
}

head, html{
    font-family: 'Montserrat', sans-serif;
    font-size: 16px; /* base font size for desktop */
}

/* Montserrat base font */
body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

nav a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.tekst-header {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}
.header-div {
    background-color: black; /*osigurava crnu pozadinu do pune širine ekrana dio koji ne pokriva slika*/

}
.header-img-div { /* bolja kontrola izgleda slike*/
    background-image: url("images/header-img.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    height: 500px;
    max-width: 100vw; 
    margin: auto;
    padding-top: 2em;
}

.header-img-div img {
position: relative;
    width: 200px;
    margin: auto;
    display: flex;
    opacity: 1;
    vertical-align: bottom;
    bottom: -55%;
}

.tekst-header { /*prikaz teksta na slici sa definiranom pozicijom centralno dole */
    position: relative;
    color: rgb(255 255 255);
    text-align: center;
    margin: auto;
    padding: 10px 0 0 0;
    vertical-align: top;
    top: -50%;
    width: 100%;
    bottom: 25%;
    text-transform: uppercase;
    font-size: 1.2em;
    font-weight: 700;
    background-color: #61080894;
}


nav {
    position: relative;
}

ul {
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #b50000;
    border-top: red;
    border-top-width: 1px;
    border-style: solid;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}   

li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

li a:hover,
li a.active {
    background-color:rgb(255, 255, 255); 
    text-decoration: underline;
    color: #b50000;
}

/* Hamburger menu stilovi */
.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 15px;
    position: absolute;
    top: 5px;
    right: 10px;
    z-index: 1001;
    background-color: #b50000;
    border: 2px solid white;
    border-radius: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
    display: block;
}

/* Hamburger animacija kada je checked */
.menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Responzivnost za tablete i mobitele */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        right: auto;
    }
    
    /* Skrij normalne linkove na manjim ekranima */
    ul li {
        display: none;
    }
    
    /* Prikaži padajući izbornik */
    .menu-toggle:checked ~ ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #b50000;
        flex-direction: column;
        z-index: 1000;
        padding: 0;
        visibility: visible;
        opacity: 1;
        max-height: 500px;
        overflow: visible;
        transition: all 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .menu-toggle:checked ~ ul li {
        display: block;
    }
    
    ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #b50000;
        flex-direction: column;
        z-index: 1000;
        padding: 0;
        visibility: hidden;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    
    li a {
        padding: 15px 20px;
        font-size: 1em;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: left;
        color: white;
        text-decoration: none;
        font-weight: bold;
        text-transform: uppercase;
        display: block;
    }
    
    li a:hover,
    li a.active {
        background-color: rgb(255, 255, 255);
        text-decoration: underline;
        color: #b50000;
    }
    
    li:last-child a {
        border-bottom: none;
    }
    
    /* Header responzivnost za tablete */
    .header-img-div {
        height: 60vh; /* 60% visine ekrana za tablete */
        padding-top: 1.5em;
    }
    
    .header-img-div img {
        width: 150px; /* srednji logo za tablete */
        bottom: -50%;
    }
    
    .tekst-header {
        font-size: 1.1em; /* malo manji font za tablete */
        padding: 8px 0 0 0;
        top: -48%;
    }
}

@media screen and (max-width: 480px) {
    .hamburger {
        padding: 12px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        right: auto;
    }
    
    .hamburger span {
        width: 20px;
        height: 2px;
    }
    
    li a {
        padding: 12px 15px;
        font-size: 0.9em;
    }
    
    /* Header responzivnost za mobitele */
    .header-img-div {
        height: 40vh; /* 40% visine ekrana */
        padding-top: 1em;
    }
    
    .header-img-div img {
        width: 120px; /* manji logo za mobitele */
        bottom: -45%;
    }
    
    .tekst-header {
        font-size: 1em; /* manji font za mobitele */
        padding: 5px 0 0 0;
        top: -45%;
    }
}


main{
    max-width: 1240px;
    margin:auto;
    padding: 0 1em 4em 1em;
    background-image: linear-gradient(90deg, transparent, #b4b4b4, transparent);
}
h1 {
    margin: 0px 0px 0.5em 0px;
    font-size: 1.8em;
    padding: 0.75em 1em;
    background-color: #b50000;
    border: rgb(255 255 255 / 40%) solid 1px;
    color: #ffffff;
    display: block;
    animation: h1-fade-down 0.9s ease-out both;
}
h1::before {
    content: "";
    display: inline-block;
    width: 32px;
    height: 32px;
    margin-right: 0.5em;
    background: url("images/hgss-before.jpg") center/contain no-repeat;
    vertical-align: middle;
}
h2 {
    font-size: 1.5em;
    color: #000000;
    padding-left: 1em;
    margin: 0.5em;
}
main a {
    color: #27318b;
    text-decoration: none;
}
main a:hover {
    color: #8b3727;
    text-decoration: underline;
}
p {
    margin: 1em;
    line-height: 1.4em;
    letter-spacing: 1px;
}
hr {
    margin: 1em;
    border: 1px dotted #27318b;
    clear: both;
}
figure {
    padding: 0.5em;
    margin: 0 1em 0.5em 1em;
    float: left;
    width: 33%;
    border: 1px solid black;
}
figcaption {
    font-size: 0.85em;
    font-style: italic;
    font-weight: bold;
}
img {
    width: 100%;
}


@media screen and (max-width: 900px) {
    figure {
        width: 90%;
    }
    
    .novosti img {
    width: 100%;
    padding: 0;
    }
}

footer {
    background-color: #b50000;
    padding: 0.1em;
    clear: both;

    position:fixed; /*fiksiranje pozicije*/
    bottom:0;
    width:100%;
    height:35px;   /* visina footera */

    border-top: red;
    border-top-width: 1px;
    border-style: solid;
}
footer p, footer a {
    color: white;
    margin: 0.5em;
    text-decoration: none;
}
footer a:hover {
    color:rgb(0, 0, 0);
}

.footerDiv {
    background-color: #b50000;
    font-size: 12px;
    width: 100%;

}

.footerLeft {
    width:48%;
    float:left;
    background-color: transparent;
    text-align: left;
    padding-left: 2%;
    vertical-align: middle;
}

.footerRight {
    width: 48%;
    float: right;
    background-color: transparent;
    text-align: right;
    padding-right: 2%;
    vertical-align: middle;  
}
/* Footer responzivnost za tablete */
@media screen and (max-width: 768px) {
    footer {
        height: max-content;
        padding: 0.3em 0;
    }
    
    .footerDiv {
        font-size: 11px;
    }
    
    .footerLeft {
        width: 100%;
        float: none;
        text-align: center;
        padding-left: 0;
        margin-bottom: 0.2em;
    }
    
    .footerRight {
        width: 100%;
        float: none;
        text-align: center;
        padding-right: 0;
    }
}

/* Footer responzivnost za mobitele */
@media screen and (max-width: 640px) {
    footer {
        height: max-content;
        padding: 0.2em 0;
    }
    
    .footerDiv {
        font-size: 10px;
    }
    
    .footerLeft {
        width: 100%;
        float: none;
        background-color: transparent;
        text-align: center;
        padding-left: 0;
        vertical-align: middle;
        margin-bottom: 0.1em;
    }

    .footerRight {
        width: 100%;
        float: none;
        background-color: transparent;
        text-align: center;
        padding-right: 0;
        vertical-align: middle;  
    }
}

.novosti img {
    float:left;
    width:20%;
    padding: 0em 0.5em 0.5em 0.5em;

}

.novosti h2{
    text-transform: uppercase;
    color: darkred;
    font-size: 20px;

}
.novosti a {
    font-style: oblique;
    text-decoration: none;
    font-weight: bold;
    color: red;
}
.novosti h2 a {
    color: darkred;
    font-style: normal;
    font-weight: 600;
    text-decoration: none;
}
.novosti h2 a:hover {
    text-decoration: underline;
}


.novosti hr {
    margin: 1em 0.1em;
    border: 1px solid red;
    clear: both;
}

.novost-item {
    background-color: rgba(181, 0, 0, 0.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-radius: 15px;
    padding: 0.75em 0.5em 0.2em 0.5em;
    margin: 0 0 1.2em 0;
    overflow: hidden;
}
.novost-item::after {
    content: "";
    display: block;
    clear: both;
}
.novost-item:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.088);
}

.dat-obj {
    font-size: 0.9em;
    color: gray;
    font-weight: bold;
}

@media screen and (max-width: 900px) {
    .novosti img {
        width: 100%;
    }
    .novosti h2 {
        padding-left: 0;
        margin-left: 1em;
    }
}

.galerija{
    padding: 10px;
    border-top: 1px solid red;
    border-bottom: 1px solid red;
    display: flex;
    justify-content: center;
}

.galerija figure {
    float: left;
    width: 20%;
    padding: 0.5em;
    margin: 0.2em;
    box-shadow: 2px 2px 6px #2f1d1d80;
}

.description {
    font-weight: bold;
}

.povratak {
    box-shadow:inset 0px 1px 0px 0px #cf866c;
    background:linear-gradient(to bottom, #d0451b 5%, #bc3315 100%);
    background-color:#d0451b;
    border-radius:3px;
    border:1px solid #942911;
    display:inline-block;
    cursor:pointer;
    color:#ffffff;
    font-family:Arial;
    font-size:13px;
    padding:6px 24px;
    text-decoration:none;
    text-shadow:0px 1px 0px #854629;
}
.povratak:hover {
    background:linear-gradient(to bottom, #bc3315 5%, #d0451b 100%);
    background-color:#bc3315;
}





@media screen and (max-width: 900px) {
    .galerija figure {
        float: left;
        width: 45%;
        padding: 0.5em;
        margin: 0.2em;
    }
    .galerija {
        display:inline-block;
    }
}

@media screen and (max-width: 560px) {
    .galerija figure {
        float: left;
        width: 95%;
        padding: 0.5em;
        margin: 0.2em;
    }
    .galerija {
        display:inline-block;
    }
}
.back {
    border-top: 2px solid gray;
    border-style: solid;
    padding: 0.4em;
    width: 65%;
}


label {
    display: block;
    font-size: 12px;
}

input, textarea {
    border-width: 1px;
    border-color: #894b4b;
    border-style: solid;
    padding: 0.3em;
    min-width: 17em;
    width: 65%;
}

@media screen and (max-width: 560px) {
    input, textarea {
        width: 85%;
    }
}
textarea {
    height: 80px;
}

.divIndiv {
    text-align: left;
    border-left: 1px solid #000;
    vertical-align: middle;
    padding-left: 3em;
    padding-bottom: 3em;
    margin-bottom: 2em;
}

select {
    border: 1px solid #000;
}

.karta {
    width:100%;
    height: 450px;
    border:0;
    margin-bottom: 2em;
}


.img-gallery{
    padding: 10px;
    border-top: 1px solid red;
    border-bottom: 1px solid red;
    display: flex;     /* flex raspored i razmake elemenata */
    flex-wrap: wrap;
    gap: 0.4em;
}
.img-gallery figure {
    float: none;
    width: calc(33.333% - 0.4em);
    height: auto;
    padding: 0.5em;
    margin: 0;
    box-shadow: 2px 2px 6px #2f1d1d80;
    border: none; /*ovo je namjerno postavljeno jer je postoji globalna postavka rub na slikama a ovo se primjenjuje u galeriji*/
    border-radius: 25px 25px 0 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.img-gallery img {
    width: 100%;
    height: 180px;
    display: block;
    border-radius: 25px;
    object-fit: cover;
}
.img-gallery figcaption {
    margin-top: 0.4em;
}
.img-gallery figcaption {
    padding-top: 0.5em;
    padding-left: 1.5em;
}

@media screen and (max-width: 900px) {
    .img-gallery figure {
        float: none;
        width: calc(50% - 0.4em);
        height: auto;
        padding: 0.5em;
        margin: 0;
    }
    .img-gallery img {
        width: 100%;
        height: 220px;
    }

}

@media screen and (max-width: 560px) {
    .img-gallery figure {
        float: none;
        width: 100%;
        height:max-content;
        padding: 0.5em;
        margin: 0.2em;
    }
    .img-gallery img {
        width: 100%;
        height: auto;
    }
}
/* **hover na slikama u galeriji start** */
.overlay {
    position: relative;

    opacity: 1;
    transition: .3s ease;
    background-color: rgba(163, 88, 88, 0.5);
    border-radius: 25px;
    background: url("images/galerija/full-screen.png") no-repeat;
    background-position: center;
    background-size: 20%;
    margin:auto;
}
.img-gallery img:hover {
    position: relative;

    opacity: 0.5;
    transition: .3s ease;
    background-color: rgba(163, 88, 88, 0.5);
    border-radius: 25px;
}
/* **hover na slikama u galeriji end** */

.mov_inside {
    width: 50%;
    float: left;
    margin: 0.3em 0.6em 0.5em 1em;
    padding: 2px;
    border: 1px solid #000;
    box-shadow: 0px 0px 10px 1px #3b3b3b;
}

@media screen and (max-width: 900px) {
    .mov_inside {
        float: left;
        width: 95%;
        margin: 0.5em;
    }
}

h3 {
    font-size: 1em;
    padding-left: 1em;
    margin: 0.5em 2em;
}

ol {
    padding-left: 3em;
    border-style: dashed;
    border-color: red;
    border-width: 0.3em;
    margin: 0.5em 2em;
}

ol li {
    margin: 1em;
    line-height: 1.2em;
    letter-spacing: 0.05em;
}

@keyframes h1-fade-down {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
