@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
/* https://www.joshwcomeau.com/css/designing-shadows/*/
*, *::before, *::after {
    box-sizing: border-box;
    font-family: "Nunito", sans-serif;
}
#highlight {
    border-bottom: 2px solid white;
}
html, body {
    background: #08162b;
    margin: 0;
    padding: 0;
    min-height: 100%;
    width: 100%;
    overflow-x: hidden;
}
article {
    animation: pageFade 1800ms ease-out;
}
@keyframes pageFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
main {
    margin: 0 auto;
    display: block;
    width: 100%;
    flex: 1 0 auto;
}
header {
    position: sticky;
    top: 0;
    z-index: 999999;
    background: #08162B;
    box-shadow: 0px 12.0px 12.0px hsl(0deg 0% 0% / 0.31);
}
section {
    display: flex;
    flex-direction: column;
    width: 100%;
}
logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 5px;
}
logo img {
    height: 45px;
    margin: 5px auto;
    padding: 5px;
    object-position: 50% 50%;
    filter: invert(1);
    transition: 0.15s ease;
}
logo img:hover {
    opacity: 0.8;
    transition: 0.25s ease;
    transform: scale(0.96);
}
logo img:active {
    transform: scale(0.93);
    transition: 0.25s ease;
}
uporabn, article #tekst {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}
uporabn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}
nav ul li {
    font-size: 16px;
    white-space: nowrap;
    position: relative;
}
nav ul li::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: white;
    transition: width 0.25s ease;
}
nav ul li:hover::after {
    width: 100%;
}
nav ul li a {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    text-decoration: none;
    color: white;
    transition: 0.15s ease;
}
nav ul li a:hover {
    opacity: 0.8;
    font-weight: bold;
    transition: 0.25s ease;
    letter-spacing: 1px;
}
article {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-image:
        url('../images/bg/bgpattern.png'), linear-gradient(180deg, #08162B 0%, #16324A 100%);
    background-repeat: repeat, no-repeat;
    background-size: auto, cover;
    background-position: 0 0, center;
    animation: patternMove 80s linear infinite;
}
@keyframes patternMove {
    from {
        background-position: 0 0, center;
    }
    to {
        background-position: -939px 0, center;
    }
}
figure {
    margin: 0;
    height: 500px;
    width: 100%;
    position: relative;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
figure::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}
figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 60%;
    display: block;
}
figure h1 {
    font-size: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -150%);
    margin: 0;
    z-index: 2;
    width: calc(100% - 40px);
    color: white;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    text-align: center;
}
article #tekst {
    height: auto;
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 3fr 1fr 3fr;
    grid-template-areas:
        "Prvo Prvo Cetrto"
        "Drugo Tretje Tretje";
    gap: 30px;
    top: -100px;
    position: relative;
}
footer {
    background: #08162b;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: clamp(32px, 12vw, 120px);
    color: white;
    padding: 20px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 10px;
    position: relative;
}
footer::after {
    content: "Zgodbe v sliki in zvoku | Pelikula 2026";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    opacity: 0.2;
    pointer-events: none;
    white-space: nowrap;
}
footer div {
    margin-bottom: 20px;
}
footer h2 {
    font-style: italic;
}
#Kontakt, #Delovnik {
    text-align: center;
    width: 300px;
}
#Kontakt h2, #Kontakt p, #Delovnik h2, #Delovnik p {
    margin: 20px;
}
#footerslika {
    position: relative;
    align-items: center;
    justify-content: flex-start;
    margin: 20px 5px 5px;
}
#footerslika img {
    height: 130px;
    margin: 5px auto;
    padding: 5px;
    object-position: 50% 60%;
    filter: invert(1);
}
/* ---------- Media safety ---------- */
img, video, iframe {
    max-width: 100%;
    height: auto;
}
@media only screen and (max-width: 1265px) {
    #Delovnik {
        display: none;
    }
    #footerslika {
        margin: auto 50px;
    }
}
@media only screen and (max-width: 850px) {
    footer img {
        padding: auto;
    }
    figure h1 {
        width: calc(100% - 32px);
    }
}
@media only screen and (max-width: 770px) {
    #highlight {
        border-bottom: none;
    }
    html.menu-open, body.menu-open {
        overflow: hidden;
        height: 100%;
        touch-action: none;
    }
    footer {
        gap: 12px;
    }
    #footerslika {
        display: none;
    }
    footer #footerslika {
        margin-right: auto;
    }
    header {
        position: relative;
        z-index: 999999;
    }
    header uporabn {
        position: relative;
        z-index: 999999;
    }
    header uporabn nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        position: relative;
        min-width: 44px;
        min-height: 44px;
        margin-left: auto;
        z-index: 1000000;
    }
    /* Burger / X button */
    header uporabn nav::before {
        content: "\2630";
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 30px;
        cursor: pointer;
        user-select: none;
        color: white;
        position: relative;
        z-index: 1000002;
        transition:
            transform 0.25s ease, opacity 0.2s ease, scale 0.2s ease;
    }
    header uporabn nav:hover::before {
        transform: scale(0.96);
        opacity: 0.85;
    }
    header uporabn nav:active::before {
        transform: scale(0.93);
    }
    header uporabn nav.open::before {
        content: "\2715";
        font-size: 25px;
        position: fixed;
        top: 18px;
        right: 14px;
        transform: rotate(90deg) scale(1);
        animation: iconSpinIn 0.25s ease;
        z-index: 1000003;
    }
    header uporabn nav ul {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        inset: 0;
        margin: 0;
        padding: 80px 0 24px;
        list-style: none;
        background: #08162B;
        width: 100vw;
        height: 100dvh;
        z-index: 1000001;
    }
    header uporabn nav.open ul {
        display: flex;
        animation: mobileMenuIn 0.28s ease;
    }
    header uporabn nav ul li {
        width: 100%;
        font-size: 22px;
        text-align: right;
    }
    header uporabn nav ul li::after {
        display: none;
    }
    header uporabn nav ul li a {
        display: block;
        width: 100%;
        padding: 18px 14px 18px 22px;
        color: white;
        text-decoration: none;
        text-align: right;
        box-sizing: border-box;
    }
    header uporabn nav ul li a:hover {
        background: rgba(255, 255, 255, 0.08);
        opacity: 1;
    }
}
@keyframes mobileMenuIn {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes iconSpinIn {
    from {
        opacity: 0;
        transform: rotate(0deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(90deg) scale(1);
    }
}