/* =======================
   BODY
======================= */
body {
    background-color: rgb(34, 36, 37);
    margin: 0;
    overflow-x: hidden;
}

/* =======================
   HEADER
======================= */
header {
    background:
        linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.85)),
        url("img/background.jpg");
    background-size: cover;
    background-position: center;

    text-align: center;
    padding: 80px 20px;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    box-shadow: inset 0 -50px 100px rgba(0, 0, 0, 0.7);
    color: white;

    transition: transform 0.3s ease, filter 0.3s ease;
}

header:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}


/* =======================
   FOOTER
======================= */
footer {
    background-color: #1b1f24;
    color: #ccc;
    text-align: center;
    padding: 15px 0;
    font-family: "MyFont2";
    font-size: 0.9rem;
    margin-top: 40px;
}


/* =======================
   NASLOVI
======================= */
/*glavni naslov*/
h1 {
    font-family: 'MyFont1', bold;
    font-size: 6rem;
    text-shadow: 2px 2px 15px black;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

h1:hover {
    font-family: "MyFont1", bold;
}

.content h1 {
    font-size: 3rem;
}
/* *naslov u odlomcima */
.odlomak h1 {
    font-size: 2.2rem;
}

/* =======================
   TEKST
======================= */
header p {
    font-family: "MyFont2";
    font-size: 1.7rem;
    max-width: 700px;
    line-height: 1.6;
}


.row {
    margin-bottom: 60px;
}

/* =======================
   NAVIGACIJA (FIXED STICKY)
======================= */

/* NAV BUTTON */
.nav-item {
    padding: 10px 20px;
    background-color: #181717;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
    display: inline-block;
    font-family: MyFont1;
}

.nav-item:hover {
    background-color: #333;
    transform: translateY(-2px);
   
    font-size: 1.5rem;
}

nav.navbar {
    position: sticky;
    top: 0;
    z-index: 9999;

    width: 100%;
    background-color: #1b1f24;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;

    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* =======================
   CITAT
======================= */
.quote {
    text-align: center;
    font-style: italic;
    margin: 50px 0;
    font-size: 1.3rem;
    color: #ccc;
}

/* =======================
   ODLomci
======================= */
.odlomak {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: left;
}

/* =======================
   SLIKE
======================= */
img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    transition: 0.4s;
}

img:hover {
    transform: scale(1.05);
}

.img1 {
    width: 75%;
}

.img2 {
    width: 55%;
}

.img3 {
    width: 70%;
}

/* hover efekt slika */
.img1,
.img2,
.img3 {
    transition: 0.4s;
}

.img1:hover,
.img2:hover,
.img3:hover {
    transform: scale(1.03);
}

/* =======================
   TIMELINE
======================= */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 80px auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    background: linear-gradient(to bottom, gold, orange);
    box-shadow: 0 0 10px gold, 0 0 20px rgba(255, 215, 0, 0.5);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 10px 40px;

    opacity: 0;
   transform: translateY(80px) scale(0.95);
    transition: 0.6s ease;
}


.left {
    left: 0;
}

.right {
    left: 50%;
}

.content {
    padding: 20px;
    background: #2b2b2b;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: gold;
    border: 3px solid white;
    border-radius: 50%;
    top: 20px;
      z-index: 2;
}

.left::before {
    right: -8px;
}

.right::before {
    left: -8px;
}
.timeline-item.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.timeline-item.show .content {
    border: 1px solid rgba(255,215,0,0.5);
    box-shadow: 0 0 15px rgba(255,215,0,0.5);
}

/* =======================
   GALLERY
======================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 10px;
}

.gallery img {
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* =======================
   SCROLLBAR
======================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: gold;
    border-radius: 10px;
    box-shadow: 0 0 8px gold, 0 0 20px gold;
}

::-webkit-scrollbar-thumb:hover {
    background: goldenrod;
}

/* =======================
   FONTOVI
======================= */
@font-face {
    font-family: 'MyFont1';
    src: url('fonts/Norse-KaWl.otf') format('truetype');
}

@font-face {
    font-family: 'MyFont2';
    src: url('fonts/jorvik.TTF') format('truetype');
}


/* =======================
   RESPONSIVE FIX
======================= */

/* TABLET */
@media (max-width: 992px) {

    h1 {
        font-size: 4rem;
    }

    header p {
        font-size: 1.3rem;
        padding: 0 10px;
    }

    nav.navbar {
        gap: 15px;
        padding: 10px 10px;
        flex-wrap: wrap;
    }

    .nav-item {
        margin: 0;
        font-size: 0.95rem;
    }

    .img1,
    .img2,
    .img3 {
        width: 100%;
    }
}

/* MOBILE */
@media (max-width: 600px) {

    h1 {
        font-size: 2.8rem;
        letter-spacing: 1px;
    }

    header {
        padding: 60px 15px;
        min-height: 80vh;
    }

    header p {
        font-size: 1rem;
    }

    nav.navbar {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        backdrop-filter: blur(10px);
        background: rgba(27, 31, 36, 0.95);
    }


    .nav-item {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .odlomak {
        padding: 15px;
    }

    .quote {
        font-size: 1rem;
        margin: 30px 10px;
    }

    .timeline {
        margin: 40px auto;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding: 10px 20px;
    }

    .timeline::after {
        left: 10px;
    }

    .timeline-item::before {
        left: 2px !important;
    }
}


/*   Quiz   */
.quiz-container {
    max-width: 600px;
    margin: 50px auto;
    text-align: center;
    background: #1b1f24;
    padding: 30px;
    border-radius: 15px;
    color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

#question {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.answer {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 12px;
    background: #333;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.answer:hover {
    background: #555;
    transform: scale(1.03);
}

#result {
    font-size: 1.8rem;
    margin-top: 20px;
}

.hidden {
    display: none;
}
