* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.content {
    padding: 20px;
}

body,
html {
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    /* Adjust background color for better contrast */
}

body {
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    background-color: #658699;
    color: #fff;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-size: 2em;
}

.header_sect {
    display: inline-block;
    width: 20%;
    margin-top: 10px;
    margin-bottom: 10px;
}

.container {
    display: flex;
    flex-grow: 1;
    width: 100%;
    margin: auto;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    background-color: #fff;
}


nav ul {
    list-style-type: none;
}

nav ul li a,
nav>a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 15px;
    transition: background-color 0.3s, color 0.3s;
    height: 3rem;
}

.secondnav {
    background-color: #f4f4f4;
}

.secondnav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.secondnav a,
.secondnav li {
    flex-grow: 1;
    display: block;
    min-width: 110px;
    text-align: center;
}

nav ul li a:hover {
    background-color: #658699;
    color: #fff;
}

nav ul li a:active {
    background-color: #99abb6;
    color: #fff;
}

main {
    flex: 1;
}

.mainnav {
    background-color: #f4f4f4;
    width: 200px;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 20px;
    bottom: 0;
    width: 100%;
}

form {
    margin: auto;
    background-color: #ffffff;
    padding: 20px;
    /* Form utseende och padding och margin för att vara konsekventa*/
}

fieldset {
    border-radius: 8px;
    border: solid;
    /* Border style */
}

legend {
    font-weight: bold;
    font-size: 1.2rem;
    color: #000000;
    /* Legend style */
}

label {
    margin-bottom: 8px;
    /* För konsekvent avstånd mellan rader */
}

input[type="submit"],
input[type="text"],
select,
textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    /* För konsekvent textbox utseende */
}

.novosti {
    font-size: 0.9rem;
    margin-bottom: 15px;
    margin-top: 5px;
}

.pitanje {
    margin-bottom: 8px;
    margin-top: 10px;
    font-size: 1.1rem;
    color: #000000;
    /* För konsekvent avstånd mellan rader */
}

.radio {
    margin-bottom: 8px;
    margin-top: 10px;
}

.predstavse {
    padding: 15px;
    margin-bottom: 20px;
    /* För konsekvent avstånd mellan rader */
}

.razno {
    padding: 15px;
    margin-bottom: 10px;
}

input[type="radio"] {
    float: right;
    margin-right: 50%;
}

input[type="submit"] {
    background-color: #658699;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    /* Submit style */
}

input[type="submit"]:hover {
    background-color: #99abb6;
    /* Submit hover style */
}

input[type="submit"]:active {
    background-color: #808080;
    /* Submit active style */
}

.kontakt {
    margin-top: 20px;
}

.navdiv {
    display: none;
    padding: 20px;
}

iframe {
    border: 5px, solid, #658699;
    border-radius: 15px;
    margin-top: 10px;
}
#introLogo {
  position: fixed;
  z-index: 9999;
  background-color: white;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column; /* >>> ovo je ključno! <<< */
  justify-content: center;
  align-items: center;
  transition: opacity 2s ease;
  gap: 20px; /* razmak između loga i teksta */
}

#introLogo img {
    width: 300px;
}
#loadingText {
  color: black;
  font-size: 3rem;
  margin-top: 20px;
  font-family: Impact, sans-serif;
  opacity: 1;
  transition: opacity 1s ease;
}
#introLogo {
  flex-direction: column; /* VAŽNO: stavi logo gore, tekst dolje */
}

#loadingText {
  margin-top: 20px;
  font-size: 1.8rem;
  font-family: Impact, sans-serif;
  color: black;
}