body {
    font-family: Arial, sans-serif;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
    text-align: center;
}

h1 {
    margin: 20px 0;
    font-size: 2rem;
    color: #2c3e50;
}

.top-nav {
    background: #2c3e50;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-nav .menu {
    list-style: none;
    display: flex;
    gap: 15px;
}

.top-nav .menu li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.top-nav .menu li a.active {
    text-decoration: underline;
}

.language-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

/* Padajući meniji */
.selectors {
    margin: 20px 0;
}

select {
    padding: 10px;
    margin: 0 10px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* Galerija obroka */
.meal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 20px;
    padding: 10px;
}

.meal-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
    padding: 10px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.meal-card:hover {
    transform: scale(1.05);
}

.meal-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

.meal-card h3 {
    margin: 10px 0;
}

/* Recept */
#recipe-content {
    margin: 30px auto;
    max-width: 800px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
    text-align: left;
}

#recipe-text {
    margin-top: 10px;
    line-height: 1.6;
}

/* Stil za sliku recepta - ravna po širini ekrana */
.recipe-image {
    width: 100vw; /* Širina cijelog viewporta */
    max-width: 100%; /* Maksimalna širina 100% */
    height: auto; /* Automatska visina za održavanje aspekta */
    object-fit: cover; /* Pokriva prostor bez deformacije */
    border-radius: 0; /* Bez zaobljenih uglova za punu širinu */
    margin: 15px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: block;
    margin-left: calc(-50vw + 50%); /* Centriranje na širokim ekranima */
    margin-right: calc(-50vw + 50%);
}

/* Dodatni stilovi za bolji izgled */
#recipe-content {
    overflow: hidden; /* Sprečava preklapanje */
}

/* Responsive dizajn za manje ekrane */
@media (max-width: 768px) {
    .recipe-image {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        border-radius: 8px;
    }
        
/* Footer */
.footer {
    margin-top: 50px;
    padding: 15px;
    background: #2c3e50;
    color: white;
}
}