* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #ffffff;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-container {
    flex-shrink: 0;
    z-index: 1001;
}

.logo {
    height: 50px;
    width: auto;
}

.nav-container {
    position: relative;
}

.nav-container nav ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
}

.nav-container nav ul li a {
    color: black;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.nav-container nav ul li a:hover {
    color: #025d0b;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    z-index: 1001;
}


.main-image-container {
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.pic {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.pic.active {
    opacity: 1;
    z-index: 1;
}

.image-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 80%;
    max-width: 800px;
    z-index: 2;
}

.image-caption h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(30px, 6vw, 80px);
    text-shadow: 0 0 3px black;
}

#fact {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(16px, 3vw, 40px);
    text-align: center;
    margin-top: 20px;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    text-shadow: 0 0 5px black;
}

#fact.fade-out {
    opacity: 0;
}

#fact.fade-in {
    opacity: 1;
}

.content-right {
    flex: 1;
    margin: 0;
    padding: 20px;
    background-color: rgb(255, 255, 255);
    display: flex;
    justify-content: center;
}

.frame {
    background-color: #ffffff;
    padding: 30px;
    border: 2px solid #025d0b;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 80%;
    text-align: center;
    margin-top: 10%;
    margin-bottom: 20%;
    width: 100%;
    height: 80%;
}

#izbor {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.red {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px;
    border-radius: 8px;
    background-color: #f2f9ff;
}

.red.obrnut {
    flex-direction: row-reverse;
}

.slika img {
    width: 100%;
    max-width: 450px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.sadrzaj {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sadrzaj h2 {
    font-size: 28px;
    margin-bottom: 12px;
    font-family: Arial, sans-serif;
    color: #333;
}

.sadrzaj p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #444;
}

.sadrzaj button {
    align-self: center;
    padding: 12px 24px;
    font-size: 16px;
    background-color: #0288d1;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sadrzaj button:hover {
    background-color: #01579b;
}

.slika iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 8px;
    object-fit: cover;
    display: flex;
}

.red.karta-blok {
    display: flex;
    gap: 40px;
    padding: 40px;
    border-radius: 8px;
    background-color: #f2f9ff;
    align-items: stretch;
}

.red.karta-blok .slika {
    flex: 2;
}

.red.karta-blok .sadrzaj {
    flex: 1;
}

.red.karta-blok .slika iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
  .red.karta-blok {
    flex-direction: column;
  }

  .red.karta-blok .slika,
  .red.karta-blok .sadrzaj {
    flex: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-container {
    position: absolute;
    top: 100%;
    right: 10px;
    width: 250px;
    background-color: #ffffff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    opacity: 0;
    padding: 0;
    z-index: 999;
  }

  .nav-container.active {
    max-height: 500px;
    opacity: 1;
  }

  .nav-container nav ul {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    padding: 20px;
  }

  .nav-container nav ul li {
    width: 100%;
    text-align: right;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .nav-container nav ul li:last-child {
    border-bottom: none;
  }

  .nav-container nav ul li a {
    color: #333;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .nav-container nav ul li a:hover {
    background-color: #e0f2f1;
    color: #025d0b;
  }

  .red, .red.obrnut{
    flex-direction: column;
  }
}  
footer {
    background-color: #f2f9ff;
    color: #333;
    padding: 40px 20px 20px;
    font-family: Arial, sans-serif;
    border-top: 2px solid #0288d1;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.footer-left, .footer-middle, .footer-right, .footer-sestrinska {
    flex: 1;
    min-width: 250px;
}

.footer-left h3 {
    color: #025d0b;
    margin-bottom: 10px;
}

.footer-middle h4,
.footer-right h4,
.footer-sestrinska h4 {
    margin-bottom: 12px;
    color: #0288d1;
}

.footer-middle ul {
    list-style: none;
    padding: 0;
}

.footer-middle ul li {
    margin-bottom: 8px;
}

.footer-middle ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-middle ul li a:hover {
    color: #025d0b;
}

.footer-sestrinska a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-sestrinska a:hover {
    color: #025d0b;
}

.footer-sestrinska p {
    margin: 5px 0;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #777;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left, .footer-middle, .footer-right, .footer-sestrinska {
        margin-bottom: 20px;
    }
}
