/* Osnovni stilovi */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #141e30, #243b55);
    color: #fff;
    text-align: center;
}

header {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

h1 {
    font-weight: 600;
}

main {
    margin-top: 8%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 40px 20px;
}

.transform-example {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 20px;
    margin: 15px;
    width: 280px;
    transition: all 0.3s ease-in-out;
}

.transform-example:hover {
    transform: scale(1.05);
}

/* Stilizacija box elemenata */
.box {
    width: 120px;
    height: 120px;
    background: #ff6b81;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.box:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* Efekti transformacija */
.translate:hover {
    transform: translate(20px, 20px);
}

.rotate:hover {
    transform: rotate(45deg);
}

.scale:hover {
    transform: scale(1.4);
}

.skew:hover {
    transform: skew(20deg, 10deg);
}

.matrix:hover {
    transform: matrix(1, 0.2, 0.2, 1, 10, 10);
}

/* Responsivnost */
@media (max-width: 768px) {
    main {
        flex-direction: column;
        align-items: center;
    }
}

footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 14px;
}
