
@keyframes gradientBG {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes rainbowText {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    font-family: 'Poppins', Arial, sans-serif;
    color: #e5e5e5;
   
    line-height: 1.6;
    overflow-x: hidden;
}


header {
    text-align: center;
    padding: 3rem 1rem 2rem;
    border-bottom: 1px solid #333;
}

header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.05em;
background: linear-gradient(90deg, #fa98fd, #d500f9, #b878ec);
background-size: 400% 400%;


}

header h2 {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: #bbb;
    margin-top: 0.5rem;
}


main {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

section {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.prikaz {
    opacity: 1;
    transform: translateY(0);
}

article {
    margin-bottom: 2rem;
}

h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1rem;
    color: #fff;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #888, #444);
}

p, li, a {
    font-size: 1rem;
    color: #ddd;
}

a {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    position: relative;
    text-decoration: none;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff6666, #66ffcc, #6699ff);
    background-size: 200%;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}

a:hover::after {
    transform: scaleX(1);
    transform-origin: left;

    animation: rainbowText 3s linear infinite;
}

ul {
    list-style: disc inside;
}

code {
    font-family: 'Courier New', monospace;
    background: #000;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}



.blok-koda {
    background: #000;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

footer {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid #333;
    background: #111;
    font-size: 0.9rem;
    color: #666;
}


.blok-koda::-webkit-scrollbar {
    height: 8px;
}

.blok-koda::-webkit-scrollbar-track {
    background: #111;
}

.blok-koda::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}


@media (max-width: 600px) {
    body {
        font-size: 0.9rem;
    }
}


@keyframes pulseTitle {
    0%,100% { transform: scale(1); text-shadow: 0 0 8px rgba(255,79,161,0.6);}
    50% { transform: scale(1.05); text-shadow: 0 0 14px rgba(0,229,255,0.8);}
}
@keyframes rainbowText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}



body{
    font-family:'Inter',Arial,sans-serif;
    background: linear-gradient(135deg, #0b0f1a 0%, #272654 25%, #7a2959  70%, #281b4b 100%);
    background-size:400% 400%;
    animation: gradientBG 25s ease infinite;
}

header h1{
    font-family:'Montserrat',sans-serif;
    background: linear-gradient(90deg, #ff4fa1, #ff4fa1);
    background-size:400% 400%;
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    animation:pulseTitle 6s ease-in-out infinite;
}

header h2{
    color:#ffb3dc;
}

article h1{
    background:linear-gradient(90deg,#ff6ec4,#7873f5);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    color:transparent;
}

a:hover::after{
    animation: rainbowText 3s linear infinite;
}
