* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f5f5;
    color: #333;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

nav a {
    text-decoration: none;
    color: #333;
    margin: 0 1rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #113267;
}

.btn {
    background: #113267;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background: #113267;
    color: white;
    transform: scale(1.05);
}

header {
    background: url(slike/pocetna.jpg) no-repeat center center/cover;
    height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 1.5s ease-out;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70vh;
    background: #00000080;
    z-index: 1;
    color: white;
}
header h1 {
    font-size: 3rem;
    z-index: 2;
    position: relative;
    animation: fadeInDown 1s ease-in-out;
}

header p {
    font-size: 1.2rem;
    margin-top: 1rem;
    z-index: 2;
    position: relative;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.swiper-container.galerija {
    width: 90%;
    max-width: 700px;
    height: 400px;
    margin: 3rem auto;
    border-radius: 15px;
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.swiper-container.galerija {
    position: relative;
}

.swiper-button-prev,
.swiper-button-next {
    color: #113267;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 50%;
}

.swiper-pagination {
    bottom: 10px !important;
}

.swiper-pagination-bullet {
    background: #113267;
    opacity: 0.8;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    text-align: center;
}

.swiper-slide:hover .slide-overlay {
    opacity: 1;
}

.swiper-slide:hover img {
    transform: scale(1.05); 
}

.swiper-slide:hover p {
    margin-top: 0.5rem;
    font-size: 1rem;
  } p {
    margin-top: 0.5rem;
    font-size: 1rem;
    z-index: 10;
  }


label {
    margin: 0 30px 0 0;
    font-size: 26px;
    width: 26px;
    line-height: 70px;
    float: right;
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
}

#prekidac {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mapa{
    padding: 2rem;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    label {
        display: block;
        cursor: pointer;
    }

    nav {
        text-align: center;
        width: 100%;
        display: none;
        background-color: #11326752;
        z-index: 2;
    }


    nav a {
        display: block;
        padding: 5px 0px;
        margin: 0;
        color: white;

    }
    #prekidac:checked+nav {
        display: block;
    }

    .predmeti li{
        float: none;
        margin-left: 0%;
    }

}
