
/* Layout za sticky footer */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1; /* Gura footer na dno */
}

body {
     margin: 0;
    font-family: Arial, sans-serif;
    padding-bottom: 60px; /* isto kao visina footera */
}

header {
    background: #0088cc;
    color: white;
    padding: 1rem;
    text-align: center;
}

header h1 {
    margin: 0;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

nav ul li a.active,
nav ul li a:hover {
    text-decoration: underline;
}

/* Hero sekcija */


/* Flexbox kartice */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem;
    gap: 1rem;
}

.card {
    flex: 1 1 250px;
    max-width: 300px;
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    object-fit: cover;
    
}

.card img {
    width: 100%;
    border-radius: 10px;
}

/* Formular */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: auto;
}

form input, form textarea, form button {
    padding: 10px;
    font-size: 1rem;
}

form button {
    background: #0088cc;
    color: white;
    border: none;
    cursor: pointer;
}

form button:hover {
    background: #006699;
}

/* Footer */
footer {
    position: fixed;     /* stalno na dnu */
    bottom: 0;
    left: 0;
    width: 100%;         /* cijela širina */
    background: #222;    /* tamna podloga */
    color: white;
    text-align: center;
    padding: 1rem;
    height: 30px;
    border-radius: 2px;
}


/* Responzivnost */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    .hero {
        padding: 2rem 1rem;
    }
}
