/* Resetovanje osnovnih stilova */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    padding-top: 150px; /* Dodajemo padding za header koji je fiksiran */
}

/* Heder u beloj boji */
header {
    background-color: white;
    color: #89cced;
    padding: 10px 0;
    position: fixed; /* Fiksiran header na vrhu */
    width: 100%;
    top: 0;
    left: 0;
    border-bottom: 10px solid #2980b9;
    z-index: 10;
    transition: top 0.3s; /* Animacija pomeranja header-a */

}



header.hidden {
    top: -120px; /* Sakrivanje header-a */
}

/* Raspored u header-u */
.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo */
.logo img {
    max-height: 120px;
    width: auto;
    border-radius: 5px;
    border: 3px solid white;
    padding: 5px;
}

/* Navigacija */
.navigation {
    display: flex;
    list-style: none;
    z-index: 20;
}

.navigation .close-btn{
    display: none;
}

.navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navigation ul li {
    margin-left: 20px;
}

.navigation ul li a {
    color: #2980b9;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.navigation ul li a:hover {
    color: #ffffff;
    background-color: #2980b9;
    border: 2px solid #202733;
    border-radius: 4px;
}

/* Hamburger meni (samo za male ekrane) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger .line {
    background-color: #2980b9;
    height: 4px;
    width: 100%;
    border-radius: 5px;
}

/* Responsivnost - Mobilni uređaji (manje od 768px) */
@media (max-width: 768px) {
    .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .gallery-item .caption {
        font-size: 14px;  /* Smanjujemo veličinu fonta */
        padding: 3px;     /* Smanjujemo padding */
        line-height: 1.2; /* Poboljšavamo čitljivost */
        max-width: 80%;   /* Ograničavamo širinu teksta */
        white-space: normal; /* Dozvoljavamo prelom teksta */
    }
    
    .navigation {
        display: none;
        position: fixed;
        right: 0;
        top: 0;
        background-color: #2980b9;
        width: 250px;
        height: 100vh;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        flex-direction: column;
    }

    .navigation.open {
        transform: translateX(0);
        display: block;
        padding-top: 60px;
    }

    .navigation ul {
        display: block;
        padding: 0;
        margin: 0;
    }

    .navigation ul li {
        margin-left: 0;
        margin-bottom: 10px;
        text-align: center;
    }

    .navigation ul li a {
        display: block;
        padding: 15px;
        text-align: center;
        color: #ffffff;
        text-decoration: none;
        font-size: 18px;
    }

    .navigation ul li a:hover {
        background-color: #2980b9;
        border: 2px solid #ffffff;
        border-radius: 5px;
    }

    .hamburger {
        display: flex;
    }

    .close-btn {
        display: none;
        font-size: 30px;
        color: #ffffff;
        position: absolute;
        top: 20px;
        right: 20px;
        cursor: pointer;
        z-index: 30;
    }

    .navigation.open .close-btn {
        display: block;
    }
}

/* Stil za footer */
.site-footer {
    background-color: #202733;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}

/* Potpis dizajnera */
.designer-signature {
    font-size: 12px;
    margin-top: 5px;
    color: #2980b9;
}

.designer-signature a {
    color: #2980b9;
    text-decoration: none;
}

.designer-signature a:hover {
    text-decoration: underline;
}

/* Osiguraj da telo stranice ima minimalnu visinu 100vh */
html, body {
    height: 100%;
}

main {
    min-height: calc(100vh - 120px);
    padding-bottom: 20px;
}

/* Pozicioniranje dugmadi sa strane */
.side-buttons {
    position: fixed;
    left: 0;
    top: 40%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
    margin-left: 10px;
    transition: left 0.3s ease;
}

.side-buttons.hidden {
    left: -80px;
}

.side-buttons .button,
.side-buttons .button2 {
    display: block;
    background-color: #2db45a;
    padding: 10px;
    border-radius: 20%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.side-buttons .button2 {
    background-color: #db3450;
}

.button:hover,
.button2:hover {
    background-color: #202733;
}

.icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
    background-color: transparent;
}

/* Stil za liniju sa tekstom */
.linija {
    width: 100%;
    height: 50px;
    background-color: #2980b9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0px 0;
}

.linija span {
    font-size: 20px;
    color: white;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

.linija:before {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    border-top: 2px solid #2980b9;
    z-index: -1;
}

/* Galerija */
.gallery {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    padding: 20px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    max-width: 100%;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 10px;
    border: 2px solid #2980b9;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.5);
}

.gallery-item:hover .caption {
    opacity: 1;
}

/* Sekcija sa pasusima i naslovima */
.content {
    margin: 50px auto;
    max-width: 1200px;
    padding: 20px;
}

.content-item {
    margin-bottom: 40px;
}

.content-item h3 {
    font-size: 24px;
    color: #2980b9;
    font-weight: bold;
    margin-bottom: 10px;
    text-decoration: none;
}

.content-item p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #333;
}

/* Stil za pasuse sa naslovima koji su povezani sa slikama */
.content-item p[id^="para"] {
    padding-left: 20px;
}
