body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 0;
    box-sizing: border-box;
}

header {
    background: #003366;
    padding: 15px;
    text-align: center;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

#logo img {
    max-width: 150px;
}

h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    text-align: center;
    margin: 0;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
    font-weight: 900;
    box-sizing: border-box;
}

main {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

.petition {
    text-align: left;
    max-width: 50%;
    margin-right: 30px;
}


.form-container {
    background: white;
    padding: 20px;
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: auto;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 10px;
}

input, select {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 5px;
    width: 90%;
    box-sizing: border-box;
    background-color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

button {
    margin-top: 15px;
    padding: 10px;
    background: #003366;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #0055a5;
}

footer {
    text-align: center;
    padding: 10px;
    background: #003366;
    color: white;
    width: 100%;
    box-sizing: border-box;
    margin-top: 50px;
    position: static;
    bottom: 0;
    margin-left: 0;
    margin-right: 0;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li a {
    color: white;
    text-decoration: none;
}

.image-container {
    width: 100%;
    height: 400px;
    background-image: url(zgrada.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
}

.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 51, 102, 0.6);
    z-index: 1;
}

@media (max-width: 768px) {
    main {
        flex-direction: column;
        align-items: center;
    }

    .petition {
        max-width: 90%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .form-container {
        max-width: 90%;
        margin-top: 20px;
    }
    h1{
        font-size: 2rem;
    }

    /* Flash poruka */
    .alert.alert-success {
        background-color: #d4edda; /* Svetlo zelena */
        color: #155724;           /* Tamno zelena */
        border-left: 5px solid #155724;
        padding: 1rem;
        margin: 20px auto;
        border-radius: 4px;
        font-weight: bold;
        max-width: 800px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        animation: fadeIn 0.7s ease-in-out;
    }

    /* Dugme za povratak */
    .btn-back {
        display: inline-block;
        margin-top: 1rem;
        background-color: #155724;
        color: #fff;
        padding: 0.5rem 1rem;
        text-decoration: none;
        border-radius: 4px;
        transition: background-color 0.2s ease-in-out;
    }

    .btn-back:hover {
        background-color: #0e3f1b;
    }

    /* FadeIn animacija */
    @keyframes fadeIn {
        0% {
            opacity: 0;
            transform: translateY(-10px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
