/* Navigacija */
.navbar {
    background-color: #255024;
    padding: 10px 20px; 
    width: 100%;
   /* max-width: 800px;*/
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #255024 !important; /* Tamno zelena */
    padding: 0.5rem 1rem; /* Smanjeni padding za bolji izgled */
}


.navbar-nav .nav-link {
    color: #ffffff !important; /* Bijela boja teksta */
    font-weight: bold;
    padding: 10px 15px;
    text-transform: uppercase;
    font-size: 1.2rem; /* Increased font size */
    margin-right: 20px; /* Added margin for space between items */
}

.navbar-nav .nav-link:hover {
    color: #E1A924 !important; /* Zlatna boja na hover */
}

.btn-outline-success {
    color: white;
    border-color: white;
}

.btn-outline-success:hover {
    background-color: white;
    color: #255024;
    border-color: white;
}

/* Dropdown menu */
.dropdown-menu {
    background-color: #ffffff; /* Bijela pozadina za padajući izbornik */
    border-color: #255024; /* Tamno zelena boja ruba */
}

.dropdown-item {
    color: #255024; /* Tamno zelena boja teksta */
}

.dropdown-item:hover {
    background-color: #E1A924; /* Zlatna pozadina na hover */
    color: #ffffff; /* Bijela boja teksta na hover */
}
/* Footer styling */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #255024;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 30px; 
}

.menu-spacer {
    height: 100px; /* Adjust this value based on your menu's height */
    width: 100%;
    display: block;
    background-color: transparent;
}

/* Stil za logotip */
.navbar-brand img {
    height: 90px; /* Visina logotipa */
    max-height: 100%; /* Ograničavanje visine unutar navbar-a */
    margin-right: 15px; /* Razmak između logotipa i izbornika */
}

/* Stil za logotip */
.logo {
    height: 100px; /* Visina logotipa */
    max-height: 100%; /* Ograničenje visine unutar navbar-a */
    border: 2px solid #E1A924; /* Zlatni obrub */
    border-radius: 5px; /* Lagano zaobljeni rubovi */
    padding: 3px; /* Razmak između slike i obruba */
    margin-left: 25px;
    justify-content: center;
    align-items: center;
}


/* Stil za dropdown menu */
.nav-item.dropdown:hover .dropdown-menu {
    display: block; /* Prikazivanje dropdown menija kada se pređe mišem */
}

/* Stil za unutarnje dropdownove */
.nav-item .dropdown-menu {
    display: none; /* Sakrij unutarnje dropdownove */
    position: absolute;
    left: 100%;
    top: 0;
    z-index: 10;
    background-color: #ffffff; /* Bijela pozadina za unutarnji dropdown */
    border: 1px solid #255024; /* Tamnozelena boja ruba */
}

.nav-item.dropdown:hover > .dropdown-menu {
    display: block;
}

.nav-item .dropdown-menu .dropdown-item {
    color: #255024; /* Tamno zelena boja teksta */
}

.nav-item .dropdown-menu .dropdown-item:hover {
    background-color: #E1A924; /* Zlatna pozadina na hover */
    color: #ffffff; /* Bijela boja teksta na hover */
}


.container {
    flex: 1; /* Ensures content takes up remaining space */
}

.main.container {
    padding-bottom: 20px;
}
body {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 10px; /* Space inside the border */
    border: 10px solid #E1A924; /* Gold border */
    box-sizing: border-box; /* Include border in size calculations */
}
/* Vodeni žig */
body::before {
    content: "";
    position: fixed; /* Keeps watermark fixed on the screen */
    top: 50%; /* Center the watermark vertically */
    left: 50%; /* Center the watermark horizontally */
    transform: translate(-50%, -50%); /* Perfect centering */
    width: 150%; 
    height: auto;
    background-image: url('../slike/logo_vodeni.png'); 
    background-position: center;
    background-size: contain; 
    background-repeat: no-repeat;
    opacity: 0.8; /* Transparency of the watermark */
    z-index: 3; 
    pointer-events: none; /* Prevent interaction with the watermark */
}



.carousel-item {
    text-align: justify; /* Justify the text inside carousel items */
}

/* Postavljanje svih slika sa istim dimenzijama u carouselu */
.carousel-item img {
    width: 100%; /* Prilagoditi širinu slike u odnosu na konteiner */
    height: 250px; /* Fiksna visina slike unutar carousel item-a */
    object-fit: cover; /* Održava proporcije slike dok pokriva cijeli prostor */
    object-position: center; /* Centriranje slike unutar kontejnera */
    max-height: 500px; /* Adjust the height as needed */
}

/* Osiguranje da svaki carousel ima iste dimenzije */
.carousel {
    width: 100%; /* Postavljanje širine svakog carousela na 48% */
    margin-bottom: 20px;
}

/* Razmak između dva carousela */
.carousel-container {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Razmak između dva carousela */
}

.carousel-item .text-center {
    margin-bottom: 0; /* Removes any unnecessary gap between text and the image */
}


/* Full-width header image container */
.header-image-container {
    position: relative;
    width: 100%;
    height: 300px; /* Adjust height as needed */
    overflow: hidden;
}

/* Full-width header image */
.header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the area while maintaining aspect ratio */
}

/* Text overlay on the header image */
/* Header text with animation */
.header-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    padding: 20px;
    border-radius: 10px;
    width: calc(100% - 40px); /* Dynamic width for responsiveness */
    max-width: 800px;
    animation: fadeIn 1.5s ease-in-out; /* Animation applied here */
}


.header-text h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #E1A924; /* Highlighted text color */
}

.header-text p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 10px;
}


/* Keyframes for fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Add bottom padding to content to prevent overlap with fixed footer */
.content {
    padding-bottom: 80px; /* Adjust this value as needed to create space */
}

.bottom-menu{
    color:white;
}


/* Modal container styling */
.modal-container {
    position: relative;
    display: inline-block; /* Adjust to fit your layout */
}

.custom-modal {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    padding: 20px;
    z-index: 999;
}



.custom-modal.active {
    display: block;
}


/* Show modal on hover for desktop */
@media (min-width: 768px) {
    .modal-container:hover .custom-modal {
        display: block;
    }
}

/* Responsive behavior: handle clicks on mobile */
@media (max-width: 767px) {
    .modal-container .custom-modal {
        display: none;
    }

    .modal-container.active .custom-modal {
        display: block;
    }
}

/* Card container with flexbox */
.card-container {
    display: flex;
    flex-wrap: wrap; /* Ensure cards wrap to the next line if necessary */
    gap: 30px; /* Space between cards horizontally and vertically */
}

/* Ensure individual card has space at the bottom to create row gaps */
.card {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
    max-height: 100%;
    margin: 0 0 20px 0; /* Add margin at the bottom for space between rows */
}


.card a { /* Targets all <a> elements inside .my-container */
    color: white;
    text-decoration: none; /* Optional: Removes underlines */
}

.card a:hover { /* Style for hover state */
    color: lightgray; /* Or another color you prefer */
    text-decoration: underline; /* Optional: Adds underline on hover */
}

/* Card image fixed height */
.card img {
    width: 100%; /* Image fills the full width of the card */
    height: 250px; /* Fixed height for all card images */
    object-fit: cover; /* Maintain image aspect ratio while covering the area */
    object-position: center; /* Center the image within its container */
}


/* Ensure cards are displayed in rows with space between them */
.card-deck {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping of cards to the next row */
    gap: 20px; /* Adjust the gap between the rows */
}

.language-selector {
    display: flex;
    gap: 10px;
}

.language-flag img {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.language-flag img:hover {
    transform: scale(1.1);
}
