/***************************
        OSNOVNI CSS
***************************/

* {
    box-sizing: border-box;
}

body {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content {
    width: 95%;
    max-width: 920px;
}

/***************************
        HEADER
***************************/

header {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.info {
    background-color: rgb(42, 109, 0);
    color: white;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0px 50px 0px 50px;
}

.navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0px 40px 0px 50px;
    margin-top: 5px;
}

.navbar img {
    width: 200px;
}

nav a {
    color: black;
    text-decoration: none;
    padding: 10px;
    margin: 5px;
}

nav a:hover {
    font-weight: bold;
    color: rgb(42, 109, 0);
}

/***************************
        UVOD, PREČACI
***************************/

.uvod {
    background-image: url(../img/pozadina.jpg);
    background-position: center;
    background-size: cover;
    height: 500px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.uvod h1 {
    color: white;
    font-size: 50px;
    text-align: center;
    margin-top: 5px;
}

.precaci {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-top: -100px;
}

.precaci a {
    text-decoration: none;
    flex: 1;
    min-width: 200px;
    max-width: 250px;
}

.precaci article {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgb(42, 109, 0);
    background-color: rgb(238, 238, 238);
    border-bottom: 10px solid rgb(42, 109, 0);
    text-transform: uppercase;
    padding: 50px;
    border-radius: 15px;
    width: 250px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    transition: ease 0.5s;
}

.precaci article:hover {
    background-color: rgb(47, 128, 0);
    border-bottom: 10px solid rgb(29, 76, 0);
    color: rgb(238, 238, 238);
    transition: ease 0.5s;
}

.precaci article img {
    width: 100px;
}

/***************************
        O NAMA
***************************/

.oNama {
    margin-top: 100px;
}

.oNama h2,
.popisDjelatnika h2,
.kucniRed h2 {
    color: rgb(42, 109, 0);
    text-align: center;
    font-size: 40px;
}

.oNama p {
    text-align: justify;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.popisDjelatnika td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.popisDjelatnika th {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    background-color: rgb(42, 109, 0);
    color: white;
}

.popisDjelatnika tr:nth-child(even) {
    background-color: #f9f9f9;
}

/***************************
        VIJESTI
***************************/

.istaknuteVijesti {
    background-color: rgb(42, 109, 0);
    border-radius: 15px;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    margin-top: 100px;
    padding: 20px;
}

.istaknuteVijesti h2 {
    color: white;
    text-align: center;
    font-size: 40px;
}

.istaknuteVijesti img {
    margin: 0;
    margin-bottom: -5px;
    width: 100%;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

#postovi {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.istaknuteVijesti article {
    background-color: white;
    border-radius: 25px;
    margin-bottom: 20px;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.istaknuteVijesti article:hover {
    cursor: pointer;
}

.istaknuteVijesti article h2 {
    color: black;
}

.vijesti h2 {
    color: rgb(42, 109, 0);
    text-align: center;
    font-size: 40px;
}

.popisVijesti h2 {
    color: rgb(42, 109, 0);
    text-align: center;
    font-size: 40px;
}

#sveVijesti {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.popisVijesti article {
    width: 275px;
    margin-bottom: 50px;
    border-radius: 15px;
    transition: ease 1s;
    box-shadow: rgba(0, 0, 0, 0.45) 0px 5px 15px;
}

.popisVijesti article:hover {
    box-shadow: rgba(0, 0, 0, 1) 0px 5px 15px;
    cursor: pointer;
}

.popisVijesti .objavaInfo {
    background-color: rgb(42, 109, 0);
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: -5px;
}

.popisVijesti article img {
    width: 100%;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.popisVijesti button {
    width: 100%;
    background-color: rgb(42, 109, 0);
    color: white;
    border: 0px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    height: 40px;
    transition: ease 0.5s;
}

.popisVijesti button:hover {
    cursor: pointer;
    background-color: rgb(29, 76, 0);
    transition: ease 0.5s;
}

.popisVijesti h3 {
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
}

.popisVijesti p {
    padding-left: 10px;
    padding-right: 10px;
    text-align: justify;
}

/***************************
        KONTAKT
***************************/

#kontakt {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 50px;
}

.kontakt {
    background-color: rgb(238, 238, 238);
    padding: 30px;
    border-radius: 15px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    width: 400px;
    text-align: center;
}

.kontakt h2 {
    color: rgb(42, 109, 0);
    margin-bottom: 20px;
}

.kontakt label {
    display: block;
    margin: 10px 0 5px;
    text-align: left;
    color: rgb(42, 109, 0);
    font-weight: bold;
}

.kontakt input,
.kontakt textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid rgb(42, 109, 0);
    border-radius: 5px;
    font-size: 16px;
}

.kontakt button {
    margin-top: 15px;
    background-color: rgb(42, 109, 0);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.kontakt button:hover {
    background-color: rgb(29, 76, 0);
}

/***************************
        GALERIJA
***************************/

.galerija {
    display: flex;
    flex-direction: column;
    margin-top: 100px;
}

.galerija h2 {
    color: rgb(42, 109, 0);
    text-align: center;
    font-size: 40px;
}

#mediji {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
}

#mediji img {
    width: 250px;
    margin-bottom: 50px;
    border-radius: 15px;
    transition: ease 1s;
}

#mediji img:hover {
    transform: scale(1.25);
    transition: ease 1s;
}

/***************************
        FOOTER
***************************/

footer {
    width: 100%;
    text-align: center;
    background-color: rgb(42, 109, 0);
    color: white;
    margin-top: 30px;
}


/***************************
        RESPONZIVNOST
***************************/

@media only screen and (min-width: 320px) and (max-width: 899px) {
    .uvod {
        background-image: url(../img/pozadina2.jpg);
    }
}

@media only screen and (min-width: 900px) and (max-width: 1200px) {
    .uvod {
        background-image: url(../img/pozadina3.jpg);
    }
}