﻿.eco-vessel-watermark {
    position: absolute;
    width: 45%;
    height: 45%;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background-image: url('/img/logo_without_text.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 10%;
    z-index: 1;
    pointer-events: none;
}

.eco-vessel-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Fleksibilan broj kolona */
    gap: 20px;
    justify-content: center; /* Centriranje kartica ako ih je manje od 3 */
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;
}

/* STIL ZA KARTICE */
.vessel-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.2s;
    color: var(--dark-blue);
}

    .vessel-card:hover {
        transform: scale(1.05);
    }

    .vessel-card img {
        width: 300px;
        height: 300px;
        object-fit: contain;
        object-position: center;
        display: inline-block;
        margin-bottom: 10px;
    }

.card-title {
    font-weight: bold;
    font-size: 18px;
}

.card-text {
    font-size: 14px;
    color: gray;
}

.details-btn {
    margin-top: 10px;
    display: inline-block;
    padding: 8px 12px;
    background-color: var(--dark-blue);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-decoration: none;
    color: var(--white);
}

    .details-btn:hover {
        background-color: var(--blue);
    }

/* MODAL STILOVI */
.modal {
    display: none; /* Po defaultu sakriven */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    align-content:center;
    justify-items:center;
}

#vesselModal{
    display:none;
}

.modal-content {
    background: white;
    padding: 20px;
    width: 80%;
    max-height:60%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    color: var(--dark-blue);
    text-align: justify;
    overflow-y: auto;
    font-size: 16px;
}

#modalTitle {
    margin-bottom: 15px;
}

.close {
    position: absolute;
    right: 5px;
    top: 5px;
    font-size: 24px;
    cursor: pointer;
}

/* MODAL GALERIJE */
#galleryModal {
    display: none;
}

.modal-galery {
    background: gray;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    max-height:800px;
    border-radius: 10px;
    border: 3px solid var(--dark-blue);
    text-align: center;
    position: relative;
    color: var(--dark-blue);
    text-align: justify;
    overflow-y: auto;
    font-size: 16px;
    margin-bottom: 60px;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .image-container img {
        max-width: 100%;
        max-height: 400px; /* Ograničena visina */
        display: block;
        border-radius: 10px;
    }

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
}

    .nav-arrow.left {
        left: 10px;
    }

    .nav-arrow.right {
        right: 10px;
    }

.thumbnail-container {
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 10px;
    justify-content:center;
    align-content:center;
}

.thumbnails {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
    
}

.thumbnail {
    width: 80px;
    height: 60px;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s;
}

    .thumbnail.active {
        border: 3px solid var(--dark-blue);
        opacity: 1;
    }

.thumb-arrow {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 768px) {
    .modal-content {
        font-size: 14px;
        max-height:50%;
        margin-top:100px;

    }
    .modal-galery {
        font-size: 14px;
        margin-top: -70px;
        width:85%;
    }
    #vesselModal {
        display: none;
        align-items:start;
        justify-content: center;
        align-content: start;
        justify-items: start;
    }
}
