* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    padding: 20px;
    line-height: 1.6;
}

h1, h2 {
    font-family: 'Arial', sans-serif;
    color: #333;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

header {
    text-align: center;
    max-width: 800px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #2c3e50;
}

header p {
    font-size: 1.1em;
    color: #7f8c8d;
}

.transformacija {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin-bottom: 20px;
}

.box {
    width: 150px;
    height: 150px;
    background-color: #3498db;
    margin: 20px auto;
    transition: transform 1s ease-in-out;
    border-radius: 8px;
}

button {
    padding: 10px 20px;
    font-size: 1.1em;
    color: white;
    background-color: #2980b9;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

button:hover {
    background-color: #1abc9c;
}

button:focus {
    outline: none;
}

.transformacija > h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #34495e;
}

.transformacija p {
    font-size: 1.1em;
    color: #7f8c8d;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.perspective-example {
    perspective: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.perspective-example .box {
    transform: rotateY(0deg);
    transition: transform 1s ease-in-out;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .container {
        padding: 10px;
    }

    .transformacija {
        padding: 15px;
    }

    .box {
        width: 120px;
        height: 120px;
    }

    button {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .transformacija {
        padding: 10px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .box {
        width: 100px;
        height: 100px;
    }

    button {
        padding: 8px 15px;
    }
}
