/* Reset i osnovni stilovi */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f0f2f5;
    color: #333;
}

/* Header */
header {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    padding: 2rem;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.intro {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.properties {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.property-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h2, h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.demo-box {
    width: 50px;
    height: 50px;
    background: #4f46e5;
    margin: 1rem auto;
    border-radius: 4px;
}

/* Animacije */
@keyframes scale {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(100px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fade {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* Demo animacije */
.keyframes-demo {
    animation: scale 2s infinite;
}

.name-demo {
    animation: rotate 2s infinite;
}

.duration-demo {
    animation: slide 3s infinite alternate;
}

.delay-demo {
    animation: fade 2s infinite;
    animation-delay: 1s;
}

.iteration-demo {
    animation: scale 1s infinite;
}

.direction-demo {
    animation: slide 2s infinite alternate;
}

.timing-demo {
    animation: slide 2s infinite ease-in-out;
}

.fill-mode-demo {
    animation: fade 2s forwards;
}

.shorthand-demo {
    animation: rotate 2s ease-in-out infinite;
}