body {
  background-color: #ffffff;
  color: #1a1a1a;
  font-family: 'Open Sans', sans-serif;
  margin: 0;
}

header {
  display: flex;
  align-items: center;   /* vertikalno centriranje slike i teksta */
  justify-content: center; /* počinje od leve strane */
  height: 300px;
  background: linear-gradient(135deg, #007bff, #73b5ff);
  color: white;
  padding: 2rem 4rem;
  position: relative;
  gap: 60px; /* razmak između slike i teksta */
}

header img {
  width: 220px;  /* veća slika */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

header .text-container {
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertikalno centriranje u odnosu na sliku */
  max-width: 500px;       /* tekst neće ići predaleko desno */
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  margin: 0;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-top: 0.5rem;
  line-height: 1.4;
  max-width: 450px;
}

/* Fade-in animacija */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease forwards;
}

.fade-in.delay-1 {
  animation-delay: 0.5s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Switcher za jezik */
.switcher {
  position: absolute;
  top: 20px;
  right: 30px;
  display: flex;
  align-items: center;
  cursor: pointer;
  background-color: #e9f3ff;
  border: 1px solid #b3d6ff;
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, transform 0.3s;
}

.switcher:hover {
  background-color: #d4e8ff;
  transform: scale(1.05);
}

/* Responsive za male ekrane */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    height: auto;
    gap: 2rem;
  }

  header .text-container {
    max-width: 100%;
    align-items: center;
  }

  header img {
    width: 180px;
  }
}


section {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
  line-height: 1.8;
}

h2 {
  font-family: 'Playfair Display', serif;
  color: #007bff;
  border-bottom: 2px solid #b3d6ff;
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}


.btn {
  display: inline-block;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.6rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: #005ecb;
  transform: scale(1.05);
}

footer {
  text-align: center;
  background-color: #e9f3ff;
  color: #004a99;
  padding: 1.5rem;
  margin-top: 3rem;
  font-weight: 500;
}

/* Animacije */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease forwards;
}

.fade-in.delay-1 {
  animation-delay: 0.5s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll animacija */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.switcher {
  position: absolute;
  top: 20px;
  right: 30px;
  display: flex;
  align-items: center;
  cursor: pointer;
  background-color: #e9f3ff;
  border: 1px solid #b3d6ff;
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, transform 0.3s;
}

.switcher:hover {
  background-color: #d4e8ff;
  transform: scale(1.05);
}

#selector {
  display: flex;
  align-items: center;
  gap: 6px;
}

#selector i {
  color: #007bff;
  font-size: 1.1rem;
}

#default-lang {
  font-weight: bold;
  color: #007bff;
  font-size: 0.95rem;
}

/* Dropdown opcije jezika */
#options {
  display: none;
  position: absolute;
  top: 60px;
  right: 30px;
  background-color: #ffffff;
  border: 1px solid #b3d6ff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  overflow: hidden;
}

#options button {
  background: none;
  border: none;
  padding: 10px 15px;
  text-align: left;
  font-size: 0.95rem;
  width: 100%;
  color: #004a99;
  cursor: pointer;
  transition: background 0.3s;
}

#options button:hover {
  background-color: #e9f3ff;
}

.book-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background-color: #f0f8ff; /* svetlo plava pozadina */
  padding: 40px 20px;
  gap: 20px;
}

.book-text {
  flex: 1 1 300px;
  max-width: 600px;
  color: #003366; /* tamnoplava */
}

.book-text h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.book-text p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.book-image {
  flex: 1 1 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

  .show-more-btn {
    background-color: #6b46c1;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .show-more-btn:hover {
    background-color: #553c9a;
  }