html, body {
    height: 100%; 
    margin: 0;
    padding: 0;
}

body {
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column; 
	list-style-type: none;
    
   
	
	
}
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}
.box {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.5s;
    perspective: 800px;
}
/* Transformacije */
.rotateX:hover {
    transform: rotateX(45deg);
}
.rotateY:hover {
    transform: rotateY(45deg);
}
.rotateZ:hover {
    transform: rotateZ(45deg);
}
.translate3d:hover {
    transform: translate3d(20px, 20px, 50px);
}
.scale3d:hover {
    transform: scale3d(1.2, 1.2, 1.2);
}
.skew3d:hover {
    transform: skewY(20deg);
}


header {
    background-color: #a6acdf;
    color: #000000;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    
}

section {
    margin: 0 auto;
    background-color: #fff; 
    padding: 20px; 
    border-radius: 10px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    max-width: 800px;
    width: 100%; 
    text-align: center; 
    margin-top: 20px;
   
}
#uvod, #implementacija, #principi, #vaznost {
    margin-top: 30px; 
}


section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
}

section p, section ul, section ol {
    font-size: 1.1rem;
    line-height: 1.8;
}

section ul, section ol {
    list-style-type: none; 
    padding-left: 0; 
}

footer {
    background-color: #a6acdf;
    color: #000000;
    text-align: center;
    padding: 10px 0;
    margin-top: auto; 
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responzivni dizajn */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    main {
        padding: 15px;
    }

    section h2 {
        font-size: 1.8rem;
    }

    section p, section ul, section ol {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    section p, section ul, section ol {
        font-size: 0.9rem;
    }
}

/* Dodatni stilovi za fleksibilne slike */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}

/* Stilovi za linkove */
a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}