body {
    scroll-behavior: smooth;
    background-color: #ffffff;
    font-family: 'Popins', sans-serif;
}

.jumbotron {
    background-color: #0056b3;
    color: #ffffff;
    margin-bottom: 0;
    font-family: 'Poppins', sans-serif;
    background-image: url('media/Dobrinj.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); 
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.navbar {
    background-color: rgba(0, 86, 179, 0.9);
}

.navbar .nav-link, .navbar .navbar-brand {
    color: #ffffff !important;
}

.navbar .nav-link:hover, .navbar .nav-link:focus {
    color: #ffd700 !important;
}

.navbar .nav-link {
    position: relative;
}

.bg-grey {
    background-color: rgb(241, 241, 241);
}
.navbar .nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ffd700; 
    transition: width 0.3s;
    position: absolute;
    bottom: -5px; 
    left: 0;
}

.navbar .nav-link:hover::after,
.navbar .nav-link:focus::after {
    width: 100%; 
}

.jumbotron .display-5, .jumbotron .lead {
    color: #ffd700;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 50px; 
    width: auto; 
}

.nav-item a.active {
    color: #ffd700 !important;
}

.section {
    position: relative;
    padding: 90px 0;
    color: #333;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
    font-family: 'Popins', sans-serif;
    overflow: hidden;
}

.section h2 {
    color: #ffd700;
    z-index: 2;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7)
}

.section h3 {
    color: #ffd700;
    z-index: 2;
    position: relative;
}

.section .content {
    position: relative;
    z-index: 2;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.section .link-content {
    padding: 90px 0;
}

.section .link-item {
    color: #ffd700;
    text-decoration: none;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7)
}

.section .content h3, .section .content h5, .section .content ul {
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7)
}

.highlight{
    background-color: #000;
    padding: 10px 10px;
    border-radius: 5px;
    display: inline-block;
}

.highlight-text {
    color: #ffd700; 
    font-weight: bold; 
}

.btn-primary {
    background-color: #ffd700;
    border-color: #ffd700;
    color: #0056b3;
}

.btn-primary:hover {
    background-color: #ffd700;
    border-color: #ffd700;
}

footer {
    background-color: rgba(0, 103, 214, 0.9);
    color: #ffffff;
    text-align: center;
    padding: 20px;
}

.social-icons img.svg-icon {
    width: 30px;
    height: 30px;
    margin: 0 10px;
    transition: transform 0.3s;
}

.social-icons img.svg-icon:hover {
    transform: scale(1.2);
}

#cookieConsent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    text-align: center;
    display: none;
}

.carousel-h4{
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7)
}

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(51, 51, 51, 0.9);
    color: #ffd700;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}

.popup-link img {
    transition: transform 0.3s, box-shadow 0.3s;
} 

.popup-link:hover img {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 10;
    position: relative;
} 

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        font-size: 30px;
        cursor: pointer;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        
        text-align: center;
        padding: 10px 0;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 10px 0;
    }
}

@media (max-width: 360px) {
    .jumbotron {
        padding-top: 75px;
    }
}

@media (max-width: 411px) {
    .section {
        padding: 115px 0;
    }
    .section .link-content {
        padding: 115px 0;
    }
}