* {
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: #121212;
    background-image: url(images/background.png);
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: top center;
    background-attachment: scroll;
}

html {
    scroll-behavior: smooth;
}

.navigacija {
    position: fixed;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    margin-top: 3vh;
}

#navi {
    display: flex;
    gap: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    background-color: #4a70a9;
    border-radius: 50%;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.02s ease;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 0 10px #000000;
}

.btn-icon {
    height: 23pt;
    background-color: #4a70a9;
}

.btn:hover {
    transform: scale(1.1);
    transition: 0.2s ease;
    box-shadow: 0 0 20px #4a70a9;
}

.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #efece3;
    background-image: url(images/background1.webp);
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: clamp(40px, 12vw, 160px); 
    width: 90%;
    max-width: 1400px;
}

.hero h3 {
    font-size: 20pt;
    color: #dcdcdc;
    margin-bottom: 30pt;
    margin-top: -25pt;
}

.hero a {
    display: inline-block;
    text-decoration: none;
    color: #efece3;
    background-color: #4a70a9;
    padding: 24pt;
    border-radius: 48pt;
    font-size: 12pt;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-btn {
    display: flex;
    justify-content: center;
    align-items: center;

}

.hero-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #4a70a9;
}

/* PARTICLES */

.particles-container {
    position: relative;
    width: 100%;
    min-height: 600px;
    background-color: #121212;
    overflow: hidden;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-color: #121212;
}

.content-overlay {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.container-info,
.timeline {
    position: relative;
    z-index: 2;
}

/* INFORMACIJE */

.container-info {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.info {
    position: relative;
    /* To ustvari "posodo" za plasti */
    width: 100%;
    min-height: 100vh;
    background-color: transparent;
}

.box-info {
    width: 50%;
    height: 65%;
    border-radius: 40pt;
    background: rgba(18, 18, 18, 0.4);
    box-shadow: 0 0 80px 20px #4a70a9;
    backdrop-filter: blur(3px);
}

.box-info p {
    margin: 50pt;
    color: #efece3;
    font-size: 15pt;
    line-height: 2;
}

.bold {
    font-weight: 800;
}

.podcrtano {
    text-decoration: underline;
    text-decoration-color: #4a70a9;
    text-decoration-thickness: 2px;
}

/* TIMELINE*/

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 90px auto 0 auto;
    margin-bottom: 100pt;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
    content: "";
    position: absolute;
    width: 6px;
    background-color: #8fabd4;
    top: 15pt;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    margin-bottom: 30pt;
}

/* Container around content */
.container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* The circles on the timeline */
.container::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid #4a70a9;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

/* Place the container to the left */
.left {
    left: 0;
}

/* Place the container to the right */
.right {
    left: 50%;
}

/* Add arrows to the left container (pointing right) */
.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #121212;
}

/* Add arrows to the right container (pointing left) */
.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent #121212 transparent transparent;
}

/* Fix the circle for containers on the right side */
.right::after {
    left: -16px;
}

/* The actual content */
.content {
    padding: 20px 30px;
    background-color: #121212;
    position: relative;
    border-radius: 25px;
    box-shadow: 0 0 20px #4a70a9;
    color: #efece3;
    background: rgba(18, 18, 18, 0.4);
    box-shadow: 0 0 60px 7px #4a70a9;
    backdrop-filter: blur(3px);
    top: -28px;
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {

    .timeline::after {
        left: 31px;
    }

    .container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .container::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    .left::after,
    .right::after {
        left: 15px;
    }

    .right {
        left: 0%;
    }
}

#link {
    color: #efece3;
    font-size: 15pt;
}

.skrito {
    height: 10%;
    background-color: #ffffff;
}

.galery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.kartica {
    width: 100%;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.kartica:hover {
    transform: scale(1.05);
}

.naslov-galerija {
    margin-top: 10%;
    text-align: center;
    color: #efece3;
    font-size: 20pt;
}

.galerija {
    display: flex;
}

footer {
    display: flex;
    margin-top: 8%;
    background-color: black;
    padding: 20pt
}

.f-leva {
    margin-left: 25%;
    width: 30%;
    color: #efece3;
}

.f-leva img {
    width: 40pt;
}

#logo-ime {
    display: flex;
    gap: 10pt;
}

#f-naslov {
    font-size: 10pt;
}

.f-leva {
    font-size: 10pt;
}



.f-desna {
    width: 30%;
    margin-left: 10%;
}

#f-linki a {
    text-decoration: underline;
    color: #EFECE3;
    font-size: 10pt;
    line-height: 1.8;
    display: inline-block;
    position: relative;
    text-align: center;
}

li {
    list-style-type: none;
}


/* --- POSODOBLJEN MEDIA QUERY (SAMO ZA TELEFONE) --- */
@media screen and (max-width: 600px) {

    /* Hero prilagoditev */
    .hero h1 {
        font-size: 50pt;
    }

    .hero h3 {
        font-size: 14pt;
        margin-top: 0;
    }

    .box-info {
        width: 90%;
        height: auto;
        margin-top: 20%;
        border-radius: 20pt;
    }

    .box-info p {
        margin: 20pt;
        font-size: 12pt;
        line-height: 1.6;
    }

    #navi {
        gap: 15px;
    }

    .btn {
        width: 50px;
        height: 50px;
    }

    .btn-icon {
        height: 15pt;
    }

    .galery {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .right {
        left: 0%;
    }

    /* Footer prilagoditev */
    footer {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .f-leva,
    .f-desna {
        width: 100%;
        margin-left: 0;
        margin-bottom: 20px;
    }

    #logo-ime {
        justify-content: center;
    }
}




/* --- PRILAGODITEV ZA 4K ZASLONE (nad 2500px) --- */
@media screen and (min-width: 2500px) {

    /* Povečamo osnovno velikost pisave, da se vse sorazmerno poveča */
    html {
        font-size: 22px;
    }

    /* Omejimo širino boxov, da niso preširoki za branje */
    .box-info {
        width: 40%;
        /* Na 4k je 40% več kot dovolj */
        max-width: 1600px;
        height: auto;
        padding: 40px;
    }

    .box-info p {
        font-size: 20pt;
        /* Večje besedilo za 4k */
        line-height: 1.8;
    }

    /* Hero sekcija potrebuje večji naslov, da zapolni prostor */
    .hero h1 {
        font-size: 200pt;
    }

    .hero h3 {
        font-size: 35pt;
    }

    .hero a{
        font-size: 20pt;
    }

    .hero-btn {
        width: 300pt;
        height: 100pt;
    }

    /* Galerija: na 4k lahko imamo 3 ali 4 slike v vrsti, namesto 2 */
    .galery {
        grid-template-columns: repeat(3, 1fr);
        max-width: 2000px;
    }

    /* Navigacija: gumbi so lahko malo večji */
    .btn {
        width: 150px;
        height: 150px;
    }

    .btn-icon {
        height: 35pt;
    }

    /* Timeline prilagoditev */
    .timeline {
        max-width: 1800px;
    }
}




::selection {
    background-color: #ffffff;
    color: #000000;
}


::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #272727; border-radius: 5px; }


#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a; /* Temno ozadje tvojega VPS-a */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Da je vedno nad vso ostalo vsebino */
    transition: opacity 0.5s ease;
}

.loader {
    width: 300pt;
    height: 250pt;
    border-radius: 40pt;
    background: rgba(18, 18, 18, 0.4);
    box-shadow: 0 0 80px 20px #4a70a9;
    backdrop-filter: blur(3px);
    text-align: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#preloader p {
    color: white;
    margin-top: 15px;
    font-family: "Montserrat", sans-serif;
    letter-spacing: 1px;
}

#logo-loading {
    width: 100pt;
    margin-top: 20pt;
}

.loading {
    border: 8px solid #333;
    border-top: 8px solid #4a70a9; /* Minebit oranžna barva */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1.2s ease-in-out infinite;
    border: 8px solid rgba(74, 112, 169, 0.2); /* Temnejša modra za ozadje kroga */
    border-top: 8px solid #4a70a9;             /* Svetla modra, ki se vrti */
    box-shadow: 0 0 20px #4a70a9;
}

.dots::after {
  content: '';
  animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}