/* Opće postavke */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f4f4f9;
    color: #333;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    
}

/* Header */
header {
    background: #354f52;
    padding: 20px;
    color: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 28px;
}

nav {
    margin-top: 10px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    margin: 0 15px;
    padding: 8px 16px;
    border-radius: 10px;
    transition: background 0.3s, transform 0.2s;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Glavni sadržaj */
.container {
    margin: 50px auto;
    padding: 20px;
    max-width: 800px;
    background: #d6d6d6;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Transformacijski elementi */
.box {
    width: 150px;
    height: 150px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    border-radius: 10px;
    transition: transform 0.5s ease-in-out;
}

/* 2D transformacije */
.box-rotate {
    background: #6d6875;
}
.box-rotate:hover {
    transform: rotate(45deg);
}

.box-scale {
    background: #b5838d;
}
.box-scale:hover {
    transform: scale(1.3);
}

.box-translate {
    background: #e5989b;
}
.box-translate:hover {
    transform: translateX(40px);
}

.box-skew {
    background: #ffb4a2;
}
.box-skew:hover {
    transform: skewX(20deg);
}

/* 3D transformacije */
.box-rotateX {
    background: #9a8c98;
}
.box-rotateX:hover {
    transform: rotateX(180deg);
}

.box-rotateY {
    background-color:#e5989b;
}
.box-rotateY:hover {
    transform: rotateY(180deg);
}

.box-rotateZ {
    background: #a3c4f3;
}
.box-rotateZ:hover {
    transform: rotateZ(180deg);
}

/* Footer */
footer {
    background: #354f52;
    min-height: 150px;
    padding: 15px;
    color: white;
    margin-top: 50px;
    box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.2);
    padding-top: 70px;
}

footer p {
    font-size: 14px;
}

/* 2D Rotacija */
.rotate-2d {
    width: 200px;
    height: 200px;
    background-color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: transform 2s;
}

.rotate-2d:hover {
    transform: rotate(45deg);
}

/* 3D Rotacija */
.rotate-3d {
    width: 200px;
    height: 200px;
    background-color: #FF5722;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: transform 2s;
    transform-style: preserve-3d;
}

.rotate-3d:hover {
    transform: rotateX(45deg) rotateY(45deg);
}

/* Uređivanje container-a za primjere */
.example-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.example-container .rotate-2d,
.example-container .rotate-3d {
    margin: 10px;
}

.container ul {
    list-style-type: none;
}

