* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f5f5f5;
    position: relative;
}

.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-bg video {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

nav {
    display: flex;
    background-color: rgba(173, 216, 230, 0.9);
    padding: 16px;
    position: fixed;
    top: 0;
    z-index: 100;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    padding: 15px 0;
    gap: 30px;
}

nav a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    transition: all 300ms ease;
}

nav a:hover {
    color: white;
    border-radius: 4px;
    transform: scale(1.05);
}

.pocetna {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
}

h1 {
    color: white;
    font-family: Cascade mono;
    font-size: 48px;
    text-shadow: 2px 2px 4px black;
    padding-bottom: 10px;
}

.tekst p {
    color: #2a75d0;
    font-size: 24px;
    text-shadow: 1px 1px 2px black;
}

main {
    background-color: white;
    padding: 32px;
}

h2 {
    text-align: center;
    margin: 32px 0;
    color: #ffffff;
    font-size: 32px;
    padding-bottom: 8px;

}
.h2S{
    padding-top: 100px;
    margin-top: 50px;
    margin-bottom: 50px;
    font-size: 2.5rem;
}
.stranice {
    width: 90%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 50px;
    text-align: center;
    margin: 0 auto;
}

.stranice div {
    background-color: #add8e6;
    padding: 24px;
    padding-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px black;
}

.stranice h2 {

    margin-bottom: 16px;
    color: #000000;
}

.stranice a {
    display: block;
    color: black;
    text-decoration: none;
    padding: 8px 0;
    transition: all 300ms ease;
    font-size: 20px;
}

.stranice a:hover {
    color: #0066cc;
    transform: scale(1.5);
}

.galerija {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
}

.galerija img {
    width: 300px;
    height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 300ms ease;
}

.galerija img:hover {
    transform: scale(1.05);
}
.cursor{
    position: relative;
    width: 24em;
    margin: 0 auto;
    border-right: 2px solid rgba(255, 255, 255, 0.75);
    height: 50px;
    white-space: nowrap;
    overflow: hidden;
    transform: translateY(-40%);    
}
/* Animation */
.typewriter-animation {
  animation: 
    typewriter 5s steps(50) 1s 1 normal both, 
    blinkingCursor 500ms steps(50) infinite normal;
}
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blinkingCursor{
  from { border-right-color: rgba(0, 0, 0, 0.75); }
  to { border-right-color: transparent; }
}
.animacija{
            position: relative;
            animation: pomak 2s ease-in 0s forwards;
        }

        @keyframes pomak{
            0%{
                top:500px;

            }70%{
                top: 0px;
            }100%{
                color: #ffffff;
            }
        }

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        margin: 4px;
    }

    .tekst h1 {
        font-size: 32px;
    }

    .tekst p {
        font-size: 19.2px;
    }

    .stranice {
        grid-template-columns: 1fr;
    }
    .cursor{
        height: 30px;
    }
    
}

        
