/* Globalni stilovi */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a; /* Vrlo tamno siva */
    color: #e0e0e0; /* Svijetlo siva za tekst */
    overflow-x: hidden;
}

.header {
    position: relative; /* Ensures child elements are positioned relative to this */
    padding: 0; /* Reduce unnecessary padding */
}

.header nav {
    position: absolute;
    top: 5;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 10; /* Ensures it's above the logo */
    text-align: center;
}

.logo-container {
    position: relative;
    z-index: 5; /* Keeps it below the nav */
    text-align: center; /* Centers the logo */
    padding: 2rem 0;
    padding-bottom: 5px;
}

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

nav ul {
    white-space: nowrap; /* Prevents text from breaking into a new line */

    margin: 0 ;
    list-style: none;
    padding: 0;
    gap: 5px; /* Reduce space between items */
    justify-content: center; /* Center the items */
}

nav ul li {
    display: inline;
    margin: 0 1rem;
}

nav ul li a {
    color: #4CAF50; /* Zelena */
    text-decoration: none;
}

section {
    padding: 2rem;
    margin: 1rem 0;
    background-color: #262626; /* Tamno siva */
    border-radius: 8px;
}

h2 {
    color: #4CAF50; /* Zelena */
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #121212; /* Još tamnija siva */
    color: #4CAF50; /* Zelena */
    margin-top: 2rem;
}

/* Stil za logo */
.logo-container {
    display: flex;
    justify-content: center; /* Centers the image horizontally */
    align-items: center; /* Centers it vertically if needed */
    max-width: 100%; /* Ensures it doesn’t overflow */
    width: auto;
    overflow: hidden; /* Prevents any part from spilling over */
    text-align: center; /* Centrira logo */
    background-color: #007a00dc; /* Tamna pozadina (prilagodite boju) */
}

@media (max-width: 768px) {
    .logo-container img {
        max-width: 80%; /* Adjust size for smaller screens */
    }

    .container {
        max-width: 90%; /* Allows better spacing on smaller screens */
        padding: 10px;
    }
}


.logo-container img {
    max-width: 220px; /* Prilagodite veličinu logoa */
    height: auto; /* Očuva proporcije slike */
    display: block;
}

.container {
    /* display: flex; */
    max-width: 800px; /* Sprječava širenje */
    margin: 0 auto !important; /* Centriranje */
    padding: 20px; /* Dodatni razmak */
    text-align: left; /* Tekst ostaje poravnat lijevo */
}

.nav-menu {
    font-family: 'Orbitron', sans-serif !important;
}

.nav-menu a {
    font-family: 'Orbitron', sans-serif !important;
}

.nav-menu a:hover {
    color: #cc5500;
}

h1, h2, li, footer{
    font-family: 'Orbitron', sans-serif !important;
    color: #4CAF50;
}

h3, h4, h5, h6{
    font-family: 'Orbitron', sans-serif !important;
}

li {
    font-weight: bold;
}

h1.f1 {
    background-color: #262626 !important; /* Ensures no background */
}

.contact-icons {
    display: block;
    justify-content: left;
    gap: 20px; /* Space between icons */
    line-gap-override: 50px;
    margin-top: 20px;
    flex-wrap: wrap; /* Prevents overflow on small screens */
}

.contact-icons a {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icon and text */
    text-decoration: none;
    color: white; /* Make text visible */
    font-weight: bold;
}

.contact-icons img {
    width: 24px;
    height: 24px;
    filter: invert(1); /* Makes black icons white */
}

/* Target the specific div */
.flex-l.mt2.mw8.center {
    background-color: #262626; /* Tamno siva */
    padding: 20px; /* Adds padding for better spacing */
    border-radius: 8px; /* Rounded corners */
}

/* Align the title to the left */
.flex-l.mt2.mw8.center header h1.f1 {
    text-align: left; /* Aligns the title to the left */
    margin-bottom: 20px; /* Adds space below the title */
}

/* Ensure the article content has the same background */
.flex-l.mt2.mw8.center .nested-copy-line-height {
    background-color: #262626; /* Tamno siva */
    color: #e0e0e0; /* Svijetlo siva za tekst */
}

.cv-link {
    text-decoration: none;
    color: #45a049;
    font-weight: bold; /* (Opcionalno) naglasi link */
}

.cv-link:hover {
    color: #cc5500; /* Boja kada prijeđeš mišem */
}