html, body {
    width: 100%;
    height: 100%;
    margin: 0;
}


body {
    font-family: "Lato","Helvetica Neue",Helvetica,Arial,sans-serif;
    font-weight: 700;
    background: url(../img/background.jpeg) no-repeat center center fixed;
    background-size: cover;
    overflow: hidden; 
    color: #f8f8f8;
}


.intro-header {
    height: 100vh;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.45); 
    text-align: center;
}


.intro-message {
    min-height: 100vh;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeIn 1.2s ease-in-out;
}

.intro-message h2 {
    margin-bottom: 20px;
    margin-top: 30px;
    font-size: 30px;
    text-align: center;
}

.slike img {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.slike-red {
    margin: 60px 0;
}

.slika-okvir {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    margin-bottom: 30px;
    position: relative;
}

.slika-okvir img {
    width: 100%;
    max-width: 320px;     
    height: 220px;        
    object-fit: cover;    
    border-radius: 12px;
}

.video-okvir {
    position: relative;
    width: 60%;
    height: 300px;
}

.video-okvir::after {
    content: "▶";
    position: absolute;
    font-size: 96px;
    color: rgba(255,255,255,0.85);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.lightbox:target {
    opacity: 1;
    pointer-events: auto;
}

.lightbox .close {
    position: absolute;
    inset: 0;
    cursor: zoom-out;
}

.slika-okvir video {
    width: 700px;
    height: 282px;      
    object-fit: cover;
    border-radius: 12px;
    cursor: zoom-in;
}

.lightbox video {
    max-width: 90%;
    max-height: 90%;
    border-radius: 14px;
}

.slika-okvir img {
    cursor: zoom-in;
}

.vrh a {
    color: #ffffff
}

.vrh h2 {
    color: #ffffff
}

.vrh {
    color: #ffffff
}

.naslov{
    font-size: 30px;
    color: #ffffff
}

.naslov h2 {
    font-size: 30px;
    color: #ffffff
}

.intro-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-width: 960px;
    margin: 20px auto 60px;
    text-align: center;
    column-gap: 40px;
}

.intro-nav-doc {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    max-width: 1400px;
    margin: 10px auto 30px;
    text-align: center;
    column-gap: 20px;
}

.intro-nav-doc h2 {
    font-size: 18px;
    line-height: 1.3;
}

.intro-nav-doc-pov {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    max-width: 1080px;
    margin: 20px auto 60px;
    text-align: center;
    column-gap: 40px;
}

.intro-nav a,
.intro-nav a.email-address {
    font-size: 22px;
    letter-spacing: 0.18em;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    padding: 6px 0;
    text-shadow: none;
    position: relative;
    transition: color 0.3s ease;
}

.intro-nav a::after {
    content: "";
    position: absolute;
    left: 20%;
    bottom: -6px;
    width: 60%;
    height: 1px;
    background-color: #ffd966;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.intro-nav a:hover {
    color: #ffd966;
    font-size: 25px;
}

.intro-nav a:hover::after {
    opacity: 1;
}

.onama {
    margin: 60px auto 0;  
    max-width: 1100px;
    padding: 35px 40px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.35);
    clear: both;
}

.onama h2 {
    margin-bottom: 25px;
    font-size: 30px;
    text-align: center;
    letter-spacing: 0.12em;
}

.onama p {
    font-weight: 400;
    line-height: 1.8;
    font-size: 18px;
    text-align: center;
}

.clear-separator {
    height: 60px;
    width: 100%;
    clear: both;
}

.karta{
    width:100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}


.intro-message h1 {
    margin: 0 0 30px 0;
    font-size: 4.5em;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.6);
}

.intro-message h2 {
    font-size: 1.6em;
    margin: 20px 0;
    font-weight: 400;
}

.intro-divider {
    width: 80%;
    margin: 30px auto;
    border-top: 1px solid #f8f8f8;
    border-bottom: 1px solid rgba(0,0,0,0.3);
}

.intro-message a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.intro-message a:hover {
    color: #ffd966;
    text-decoration: underline;
}

a.email-address {
    font-size: 1.4em;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.6);
}

form label {
    font-weight: 400;
    margin-top: 10px;
    display: block;
}

.form-control {
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    border: none;
    padding: 10px;
    color: #000;
}

.form-control:focus {
    box-shadow: 0 0 0 2px #ffd966;
}

.btn-submit {
    margin-top: 25px;
    padding: 12px 40px;
    font-size: 18px;
    background-color: #ffd966;
    border: none;
    border-radius: 30px;
    color: #000;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #fff;
    transform: translateY(-2px);
}

.izlozba-slika {
    display: flex;
    justify-content: center;
    align-items: center; 
    padding: 20px;
}

.izlozba-slika img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 767px) {
    .intro-message {
        padding: 80px 15px;
    }

    .intro-message h1 {
        font-size: 2.6em;
    }

    .intro-message h2 {
        font-size: 1.2em;
    }

    a.email-address {
        font-size: 1.1em;
    }

    .intro-divider {
        width: 90%;
    }
    
    .slike img {
        max-width: 95%;
        border-radius: 10px;
    }
    
    .slika-okvir {
        padding: 8px;
        border-radius: 12px;
    }

    .slika-okvir img {
        max-width: 95%;
        height: auto;
    }

    .intro-nav {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 18px;
        margin-bottom: 40px;
    }
    
    .intro-nav-doc {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 18px;
        margin-bottom: 40px;
    }

    .intro-nav a {
        padding: 8px 18px;
        font-size: 0.85em;
        column-gap: 60px;
    }
    
}

@media (min-width: 1200px) {
    .intro-nav {
        column-gap: 60px;
    }
    
    .intro-nav-doc{
        column-gap: 60px;
    }

    .intro-nav a {
        font-weight: 600;
        letter-spacing: 0.2em;
    }
}

@media (max-width: 767px) {
    .intro-nav {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 18px;
    }
    
    .intro-nav-doc{
        grid-template-columns: repeat(2, 1fr);
        row-gap: 18px;
    }
    
    .onama {
        padding: 28px 22px;
        margin: 60px 15px;
        border-radius: 16px;
    }
    
    .slika-okvir video {
        max-width: 95%;
        height: auto;
    }
}
