/* Global reset and box-sizing for better layout control */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Mobile-first: Base styles for small screens */
body {
    background-color: #fff;
    color: #000;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    margin: 0;
    padding: 10px;
}

a {
    color: #000;
    text-decoration: underline;
    word-break: break-all;
    overflow-wrap: break-word;
    padding-down: 15px;
}

table {
    border: 1px solid #000;
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
}

th {
    border: 1px solid #000;
    width: 30%;
    padding: 7px; /* Povećano sa 5px za više spacinga i manje skupljenosti */
    text-align: left;
    word-break: break-all;
    overflow-wrap: break-word;
}

td {
    border: 1px solid #000;
    width: 70%;
    padding: 7px; /* Povećano sa 5px za više spacinga i manje skupljenosti */
    text-align: left;
    word-break: break-all;
    overflow-wrap: break-word;
}

input {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    padding: 8px;
}

button {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    background: #ccc;
    color: #000;
    border: 1px solid #000;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
}

button:hover {
    background: #aaa;
}

.header {
    text-align: center;
    font-weight: bold;
}

.container {
    margin: auto;
    width: 100%;
    max-width: 600px;
}

.results th {
    background: #eee;
    color: #000;
}

form {
    display: flex;
    flex-direction: column;
}

.footer {
    text-align: center;
    margin-top: 20px;
    font-size: 11px;
}

.menu {
    text-align: center;
    margin: 10px 0;
    font-size: 12px;
}

#cookie-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    color: #fff;
    z-index: 1000;
    text-align: center;
    font-size: 24px;
    padding-top: 20%;
}

#cookie-overlay button {
    font-size: 20px;
    margin: 10px;
    padding: 15px 30px;
    color: #000;
    background: #ccc;  /* Dodano za osiguranje kontrasta na svim gumbovima */
    border: none;
    cursor: pointer;
}

#cookie-overlay button.accept {
    background: #ccc;
}

#map {
    height: 400px;
    width: 100%;
    margin-bottom: 20px;
}

/* Dodatni sadržaj */
.content {
    max-width: 800px;
    margin: 20px auto;
    word-break: break-word; /* Promijenjeno sa break-all za bolju čitljivost, manje lomljenja riječi */
    overflow-wrap: break-word;
}



form {
    gap: 15px;
}

.header,
.menu,
.content,
.results,
.footer {
    margin-bottom: 20px;
}

/* Stilizacija osnovnog teksta */
p {
    margin-bottom: 10px; /* razmak između paragrafa */
    line-height: 1.4;     /* kompromisna visina linije */
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

ul, ol {
    padding-left: 20px;
    margin-bottom: 10px;
}

li {
    margin-bottom: 5px;
}

/* Media queries for larger screens */
@media (min-width: 600px) {
    input {
        width: auto;
        margin-bottom: 0;
    }
    button {
        width: auto;
    }
    form {
        flex-direction: row;
        gap: 10px;
    }
    .container {
        width: 80%;
    }
    a {
        word-break: normal;
    }
    td, th {
        word-break: normal;
    }
}