@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.cdnfonts.com/css/helvetica-neue-5');
@font-face {
  font-family: 'mottertektura';
  src: url('https://static.wfonts.com/data/2015/12/24/motter-tektura/mottertektura.ttf') format('ttf');
  font-display: swap;
}

@keyframes laganopulsiranje {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes bojanje {
    0% { color: hsl(0, 100%, 70%); }
    25% { color: hsl(90, 100%, 70%); }
    50% { color: hsl(180, 100%, 70%); }
    75% { color: hsl(270, 100%, 70%); }
    100% { color: hsl(360, 100%, 70%); }
}

@keyframes pomicanje {
    0% { transform: translateX(0) }
    25% { transform: translateX(150px) }
    50% { transform: translateX(0) }
    75% { transform: translateX(-150px) }
    100% { transform: translateX(0) }
}

.navgumb {
    background-color: #24242400;
    cursor: pointer;
    padding: 10px 36px; /* balanced vertical and horizontal padding for consistent spacing */
    border-radius: 30px;
    position: relative !important;
    z-index: 99999 !important;      /* Gura gumbe na apsolutni vrh cijelog weba */
    pointer-events: auto !important; /* Prisili preglednik da registrira klikove na njima */
    cursor: pointer !important;
}



  * {
    box-sizing: border-box; 
  }
    .col-1 {
    background-color: #383b71;
    flex: 1;
  }
  .col-2 {
    display: flex;
    flex-direction: column;
    flex: 5;
  }
  .content {
    display: flex;
    flex-direction: row;
    color: #e7e7e7;
  }

  .content2 {
    display: flex;
    flex-direction: row;
    color: #e7e7e7;
  }
  .content > article {
    flex: 3;
    min-height: 30vh;
  }

  aside{
    border-color: #713838;
    border-style: solid;
  }

  .content > aside {
    background-color: #383b71;
    flex: 1;
}
    .content2 > aside {
    background-color: #383b71;
    flex: 1;

  }
  .content2 > article {
    flex: 3;
    min-height: 30vh;
}
  header, footer {
    background-color: #383b71;
    height: 10vh;
    color: #e7e7e7;
}
    header{
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }
    footer{
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        margin-bottom: 50px;
        border-color: #713838;
        border-style: solid;
        justify-content: center;
        display: flex;
        justify-items: center;
    }

  header, footer, article, nav, aside {
    padding: 1em;
  }
  article{
    background-color: #383b71;
  }


.novo{
    margin:50px 150px 50px 150px;
}




.navgumb:hover {
    background-color: rgba(255, 255, 255, 0.115);
}

/* 2. Prisili omotač gumba da također bude iznad stakla */
.navigacija .content {
    position: relative !important;
    z-index: 99998 !important;
    pointer-events: auto !important;
}

/* 3. Prisili WebGL staklo (canvas) da bude "duh" kroz koji miš samo prolazi */
.navigacija canvas, 
.liquidGL canvas {
    pointer-events: none !important; /* Klikovi doslovno prolaze KROZ staklo na gumbe */
    z-index: 1 !important;           /* Drži staklo iza gumba */
}

/* Osiguraj da ti main sadržaj ne bježi pod fiksni header na samom početku */
main {
    display: flex;
    min-height: 100vh;
    flex-direction: column; /* stack pages vertically and center them */
    align-items: center;
    width: 100%;
    margin: 0;
    padding-top: 120px; /* reserve space so content never sits under the fixed nav bar */
}


/* Sve stranice su po zadanim postavkama nevidljive i ne zauzimaju prostor */
.stranica {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out; /* Brzina fade efekta (0.3 sekunde) */
}

/* Klasa koja definira potpuno vidljivu stranicu */
.stranica.aktivna {
  opacity: 1;
}

html{
     height: 100%;
     margin: 0;
     padding: 0;
}

.paragraf {
    position: relative;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 12px;
    background: transparent !important;
    overflow: hidden;
}

/* 1. Staklena pozadina koja će se mutiti */
.staklo-pozadina {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Ispod teksta */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 2. Pravi tekst koji nikada ne može nestati niti se zamutiti */
.tekst-sadrzaj {
    position: relative;
    z-index: 2; /* IZNAD stakla */
    color: white;
}


body {
    background-image: url(slike/pozadina.jpg);
    font-family: Roboto;
    color: #242424;
    min-height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.maska {
    position:fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 999;
    background: linear-gradient(to bottom, rgba(18, 40, 114, 0.403), transparent)
}

.posebanparagraf > .zadnjitekst {
    display: inline-block;
    animation: pomicanje 5s ease-in-out infinite;
}

.paragraf > .naslovi, form > .naslovi {
    animation: bojanje 4s linear infinite;
}

/* Linkovi */

a{
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 40px;
    font-weight: 700;
    text-decoration: none;
    transition:0.2s;
    color:white;
}

a[target="_blank"] > button, fieldset > button {
    animation: bojanje 5s infinite;
}



/* Headeri i tekst */

h1, h2, h3, p, ul, ol, table, label {
    display:block;
    text-align: center;
    margin: 20px auto;
    font-weight: 500;
}

h1 {font-size: 50px;}
h2 {font-size:30px;}
h3 {font-size:25px;}

h1 + p {
    margin-top: 10px;
}

p, ul, ol, table, label { font-size: 20px;}

p {
    max-width:750px;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
}

#ytnaslov{
    display:flex;
    justify-content:center;
    align-items:center;
}

em {font-weight: 900;}

span {text-decoration: underline;}

#anketanaslov, .anketanaslov {
    animation: laganopulsiranje 3s infinite;
}

/* Liste */

.paragraf ul, .paragraf ol{
    list-style-position:inside;
    padding-left: 0;
    margin:0 auto;
    text-align: center;
}

ol {list-style:upper-roman;}

ol li:nth-of-type(even) {
    animation: bojanje 3s infinite ease-in-out;
}

/* Slike, videi i vektori*/

audio, picture {
    padding: 15px;
}

video {
    border: 2.5px solid rgba(29, 34, 108, 0.423);
    width:85%;
    box-shadow: 0px 0px 50px rgba(29, 34, 108, 0.423);
    border-radius: 20px;
    max-width: 400px;
    margin: 25px;
}

iframe{
    width:85%;
    aspect-ratio: 16/9;
    display: block;
    margin: 15px auto;
    border: 2.5px solid rgba(29, 34, 108, 0.423);
    box-shadow: 0px 0px 50px rgba(29, 34, 108, 0.423);
    border-radius: 20px;
}

/* Dynamic panel (Pages sidebar + Latest Video) */
.dynamic-panel {
    display: flex;
    gap: 30px;
    width: 90%;
    max-width: 1400px;
    margin: 30px auto;
    /* Big visible container styling */
    background: rgba(24,38,78,0.18);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid rgba(113,56,56,0.18);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    align-items: flex-start; /* do not stretch children to match tallest item */
}
.pages-box {
    width: 220px;
    background: rgba(24, 38, 78, 0.6);
    color: #cfe4ff;
    padding: 24px 18px;
    border-radius: 12px;
    border: 1px solid rgba(113,56,56,0.35);
    align-self: flex-start; /* ensure the sidebar only grows as tall as its content */
}
.pages-box h3 { text-align: left; margin-top: 0; }
.pages-box ul { list-style: none; padding: 0; margin: 10px 0 0 0; }
.pages-box li { margin: 10px 0; }
.pages-box a { color: #eaf2ff; text-decoration: none; font-weight: 600; }
.pages-box a.active-page-link { text-decoration: underline; }

.latest-video-box {
    flex: 1;
    background: transparent; /* use dynamic-panel background */
    padding: 6px 12px;
    border-radius: 10px;
}
.latest-video-box .lv-title { font-size: 40px; margin: 0 0 10px 0; text-align: center; }
.latest-video-box .lv-media { display: flex; gap: 20px; align-items: center; justify-content: center; }
.latest-video-box .lv-video { flex: 0 1 700px; display:flex; flex-direction:column; align-items:center; }
.latest-video-box .above-text,
.latest-video-box .below-text { color: rgba(255,255,255,0.9); margin: 8px 0; text-align: center; }
.latest-video-box iframe { width: 640px; height: 360px; max-width: 100%; border-radius: 12px; }

/* When the dynamic-panel is shown inside #letiqa, make it stand out more */
#letiqa .dynamic-panel { background: rgba(24,38,78,0.24); }

@media (max-width: 900px) {
    .dynamic-panel { flex-direction: column; }
    .pages-box { width: 100%; }
    .latest-video-box .lv-media { flex-direction: column; }
}

#minecraft {
    object-fit: cover;
    width: 60%;
}

img{
    border: 2.5px solid rgba(29, 34, 108, 0.423);
    padding: 0;
    border-radius: 20px;
    display:block;
    max-width: 300px;
    width: 80%;
    height: auto;
    margin: 15px auto;
    box-sizing: border-box;
    box-shadow: 0px 0px 50px rgba(29, 34, 108, 0.423);
    border-radius: 20px;
}

#scott {
    perspective: 1000px;
    transition: 2s;
}

#scott:hover {
    transform: rotateY(180deg);
    transition: 2s;
}

.object-container > object {
    display: inline-block;
    backface-visibility: visible;
    transition: 2s;
}

.markoslika1 {
    perspective: 1000px;
    backface-visibility: hidden;
    transition: 3s;
}

.markoslika1:hover {
    transform:  rotateX(1440deg);
    backface-visibility: visible;
    transition: 3s;
}

object {
    padding-left: 50px;
    padding-right: 50px;
    padding-bottom: 50px;
}

#slika{
    width:400px;
    display:block;
    margin-left:auto;
    margin-right: auto;
    transition: 1s;
}

#slika ~ p {
    border-left: 3px solid #ff9900;
    border-right: 3px solid #ff9900;
    padding-left: 15px;
}

#slika:hover {
    transform: scaleX(2);
}

#eksplozija {
    transition: 1s;
}

#eksplozija:hover {
    transform: skewY(20deg);
}


.object-container > object:hover{ 
    transform: rotate(720deg);
    transition: 2s;
}

/* Navigacija */

.navigacija {
    position: fixed;
    top: 16px; /* small offset from top */
    
    /* 1. SAVRŠENO CENTRIRANJE */
    left: 50%;
    transform: translateX(-50%); /* Ovo drži navigaciju točno u sredini */
    
    /* 2. DIMENZIJE */
    width: 1250px;                /* Fiksna širina sprječava da se gumbi gužvaju */
    max-width: 95%;      
    border-radius: 10px;
    z-index: 1000;
    background: wheat !important;
    overflow: hidden;    
    
    /* 3. GLATKA ANIMACIJA */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
    opacity: 1;
}

/* KAD SE SKROLA DOLJE: Ispucaj je ulijevo van ekrana */
.navigacija.skriveno {
    /* translateX(-150vw) je previše agresivno i kida centriranje. 
       Ovo je puno glađe i šalje cijelu navigaciju ravno ulijevo van vidnog polja: */
    transform: translateX(-150%) !important; 
    opacity: 0;
}

/* 3. CENTRIRANJE FONTA / GUMBA UNUTAR OKVIRA */
.navigacija .content {
    display: flex;
    justify-content: space-evenly; /* Ravnomjerno i simetrično raspoređuje gumbe */
    align-items: center;
    padding: 8px 20px;            /* vertical padding controlled, helps consistent visual height */
    height: 100%;
    width: 100%;                   /* Prisili sadržaj da se rastegne preko cijele fiksne širine */
    box-sizing: border-box;        /* Uključuje padding u ukupnu širinu */
    position: relative !important;
    z-index: 99998 !important;
    pointer-events: auto !important;
}

/* Canvas točno prati roditelja */
.navigacija canvas, 
.liquidGL canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    pointer-events: none !important;
}
.paragraf {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    color: #e7e7e7;
    background: transparent !important;
    width: 85%;
    margin: 50px auto;
    max-width: 1300px;
    padding: 15px 20px;
    border-radius: 10px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.266);
    box-shadow: 0px 0px 10px rgb(12, 21, 56, 0.593);
    transition: 0.5s;
}

/* Ensure only the ACTIVE page centers its content; keep others hidden */
.stranica {
    display: none;
}
.stranica.aktivna {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 30px 0;
}

/* Force text inside the glass area to be centered */
.tekst-sadrzaj, .paragraf, .paragraf p {
    text-align: center;
}

/* Forma.html */

form{
    font-family: Roboto;
    font-weight: 500;
    font-size: 30px;
    display:block;
    text-align: center;
}

button, input, select{
    font-family: Roboto;
    font-weight: 500;
    margin: 20px 0px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.266);
    box-shadow: 1px 1px 2px rgba(40, 54, 117, 0.347);
    border-color: rgba(40, 54, 117, 0.411);
    background-color: #1c257757;
    border-radius: 15px;
    transition:0.3s;
    color: #ffffffe8;
}

input[type="text"] {color:rgb(255, 176, 116);}

input[type="email"] {color:rgb(255, 150, 69);}

input[type="gradovi"] {color:rgb(255, 124, 23);}

button{
    border:none;
    padding: 15px 40px;
    font-size: 30px;
    cursor: pointer;
}

input{
    border: 2.5px solid rgba(40,54,117,0.411);
    padding: 15px 40px;
    font-size: 20px;
}

fieldset{
    margin: 50px 75px 50px 75px;
    border-radius: 25px;
    padding-left: 100px;
    padding-right: 100px;
}

select{
    border:none;
    padding: 15px 35px;
    font-size: 30px;
    cursor: pointer;
}

/* Tablice */

table{
    width: 85%;
    max-width: 100%;
    box-sizing: border-box;
    table-layout: fixed;
    display: table;
    height: auto;
    margin:0 auto;
    padding: 10px;
    text-align: center;
    border: 15px double #ffffffbc;
    border-collapse: separate;
    border-spacing: 0px;
    border-radius: 20px;
    cursor: pointer;
}

table td, table th, table tr {
    text-shadow: 1px 1px 5px rgba(0,0,0,0.266);
    transition: 0.1s;
    padding: 5px 10px;
    border: 2px solid #ffffffb4;
    border-radius: 5px;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
}

table th {vertical-align:middle;}

td:nth-child(1),thead {background-color: #213556be;}

tbody td:hover,tbody tr:hover {background-color: rgba(255, 153, 0, 0.821);}

/* Dno */


.dnonastavak {
    display: flex;
    align-items: flex-start;
    max-width: 1300px;
    width: 85%;
    margin: 50px auto;
    gap: 20px;
}

.markoslika1 {
    width: 250px;
    height: auto;
    border: 2.5px solid rgba(29, 34, 108, 0.423);
    box-shadow: 0px 0px 50px rgba(29, 34, 108, 0.423);
    border-radius: 20px;
    display: block;
    margin: auto;
    margin-bottom: 40px;
}

.posebanparagraf{
    flex: 1;
    background-color: #383b7131;
    padding: 15px 20px;
    border-radius: 30px;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 1px 1px 10px rgb(12, 21, 56, 0.593);
    transition: 0.5s;
}


/* Za manje ekrane */

@media (max-width: 800px) {

    @keyframes pomicanje {
        0% { transform: translateX(0) }
        25% { transform: translateX(30px) }
        50% { transform: translateX(0) }
        75% { transform: translateX(-30px) }
        100% { transform: translateX(0) }
    }

    body {
        background-image: url("slike/pozadina.jpg");
        background-size: cover;
        background-position: top center;
        background-attachment: fixed;
    }

    .navigacija {
        top:20px;

    }

    .navigacija, .paragraf {
        margin-left: auto;
        margin-right: auto;
        max-width: 95%;
        min-width: 300px;
        max-width: 350px;
        box-sizing: border-box;
    }

    .paragraf {
        display: flex;
        margin: 50px auto;
        padding: 15px;
        flex-direction: column;
        align-items: center;
        max-width: 350px;
    }

    #minecraft, video {
        margin: 5px;
        width: 90%;
        height: auto;
    }


    #slika, .paragraf img, iframe, .markoslika1{
        width: 100%;
        max-width: 100%;
        height: 400px;
        margin: 15px auto;
        float: none;
        display: block;
        object-fit: cover;
        padding: 0;
    }

    .markoslika1 {
        max-width: 350px;
    }

    h1, h2, h3, p, img, table, embed, object {
        padding-left: 20px;
        padding-right: 20px;
    }

    h1 { font-size: 45px; }
    h2 { font-size: 30px; }
    h3 { font-size: 25px; }
    p, ul, ol, table, label { font-size: 20px;}

    .paragraf table {
        display: block;
        overflow-x: auto;
    }

    table {
        width: 95%;
        max-width: 600px;
        font-size: 14px;
        padding: 10px;
    }

    table td, table th {
        padding: 5px 6px;
        font-size: 14px;
    }

    form input, form select, form button{
        width: 90%;
        max-width: 400px;
        box-sizing: border-box;
    }

    form fieldset {
        padding-left: 20px;
        padding-right: 20px;
        margin: 0px;
    }

    form {
        margin: 0px;
        padding: 10px;
    }

    form h1 { font-size: 28px; }
    form h2 { font-size: 20px; }
    form input, form select, form button { font-size: 18px; }

    .dnonastavak {
        display: flex;
        flex:none;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin: 20px auto;
    }

    .posebanparagraf{
        width:auto;
        max-width: 350px;
        float: none;
        flex: none;
        display: block;
        margin: 10px auto;
    }

}

/* Temporarily hide liquid glass visuals when requested */
/* Removed body.no-liquid rules — liquid visuals are now controlled by `ENABLE_LIQUID` in JS. */
