/* Import fontov */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@400&display=swap");

:root {
  --primary-color: #a0522d; /* Hnedá (jemná, svadobná) */
  --accent-color: #d2b48c; /* Svetlohnedá/krémová */
  --text-color: #333;
  --background-color: #f5f5dc; /* Béžová */
}

/* Základné nastavenie */
body {
  font-family: "Roboto", sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  color: var(--primary-color);
  text-align: center;
}

/* === Hlavička a Odpočítavanie === */
.hero {
  background-color: var(--accent-color);
  color: white;
  padding: 60px 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.names {
  font-size: 5em; /* Obrovské mená */
  color: white;
  margin: 0 0 10px 0;
  line-height: 1;
}

.countdown-container {
  margin-top: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 10px 30px;
  border-radius: 5px;
}

/* === OSOBNÉ POČÍTADLÁ (Pod Headerom) === */
.personal-counters {
  text-align: center;
  padding: 30px 20px;
}

.relationship-counter {
  background-color: white;
  padding: 30px;
  margin-bottom: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.counter-heading {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.big-number {
  font-family: 'Playfair Display', serif;
  font-size: 3em;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

.seconds-style {
  font-size: 2em; /* Sekundy sú menšie, aby sa zmestili */
  color: #555;
}

.small-details {
  margin-top: 10px;
  color: #888;
}

/* GRID pre vek */
.age-counters-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.age-card {
  flex: 1;
  background-color: var(--background-color);
  padding: 20px;
  border-radius: 8px;
}

/* Responsivita pre vek */
@media (max-width: 600px) {
  .age-counters-grid {
      flex-direction: column; /* Kartičky pod sebou na mobiloch */
  }
}

/* Pridajte do style.css */
.countdown-details {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  text-align: left;
  max-width: 250px; /* Zarovnanie na stred menšieho bloku */
  margin-left: auto;
  margin-right: auto;
}

.countdown-details p {
  margin: 3px 0;
  color: white;
  font-size: 0.9em;
  font-weight: 300;
}

.countdown-details strong {
  font-weight: bold;
  color: var(--background-color); /* Farba pozadia (béžová) pre kontrast */
}

#countdown {
  font-size: 2.5em; /* Veľké odpočítavanie */
  color: white;
  margin: 0;
}

.date {
  color: white;
  margin: 5px 0 0 0;
  font-weight: bold;
}

/* === Info Sekcia === */
.info-section,
.private-section,
.login-form-section {
  padding: 40px 20px;
  margin-bottom: 30px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.details-grid {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  text-align: center;
  margin-top: 20px;
}

.details-grid div {
  flex: 1;
  padding: 15px;
  border: 1px solid var(--accent-color);
  border-radius: 5px;
}

.time {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
}

/* === Prihlásenie === */
.login-form-section {
  text-align: center;
  padding: 30px;
}

input[type="password"] {
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 90%;
  max-width: 300px;
}

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #8b4513; /* Tmavšia hnedá */
}

.error-message {
  color: red;
  font-weight: bold;
  margin-top: 10px;
}

/* === Súkromná Sekcia === */
.intro {
  text-align: center;
  font-style: italic;
  margin-bottom: 30px;
}

.content-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.block {
  background-color: var(--background-color);
  padding: 20px;
  border-radius: 5px;
}

iframe {
  border-radius: 5px;
}

ul {
  list-style: none;
  padding-left: 0;
}

ul li::before {
  content: "💐"; /* Svadobný emoji */
  margin-right: 8px;
}

/* === Pätička === */
.footer {
  text-align: center;
  padding: 20px;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.9em;
}

.footer a {
  color: white;
  text-decoration: underline;
}

/* === Responsivita pre Mobily === */
@media (max-width: 768px) {
  .names {
    font-size: 3em;
  }

  #countdown {
    font-size: 1.8em;
  }

  .details-grid {
    flex-direction: column;
    gap: 15px;
  }

  .content-blocks {
    grid-template-columns: 1fr; /* Pod sebou na mobiloch */
  }
}

/* === NAVIGÁCIA (MENU) === */
.navbar {
  background-color: var(--primary-color);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.nav-brand {
  color: white;
  font-size: 1.5em;
  font-family: "Playfair Display", serif;
  text-decoration: none;
  font-weight: bold;
}

.nav-links {
  display: flex;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  margin: 0 5px;
  border-radius: 4px;
  transition: background-color 0.3s;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

/* Hamburger pre mobil */
.hamburger {
  display: none; /* Predvolene skryté na desktope */
  background: none;
  border: none;
  color: white;
  font-size: 1.8em;
  cursor: pointer;
}

/* Responsivita pre navigačné menu */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Skrytie menu na mobiloch */
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px; /* Pod navigačnou lištou */
    left: 0;
    background-color: var(--primary-color);
    z-index: 1000;
    padding-bottom: 10px;
  }

  .nav-links.show {
    display: flex; /* Zobrazenie, keď je aktívne */
  }

  .nav-links a {
    text-align: center;
    margin: 5px 20px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hamburger {
    display: block; /* Zobrazenie na mobiloch */
  }
}

/* === ČASOVÁ OS - O NÁS === */

.timeline-card {
  display: flex;
  margin-bottom: 50px;
  align-items: flex-start; /* Dôležité pre zarovnanie obsahu */
}

.timeline-date {
  flex: 0 0 150px; /* Pevná šírka pre dátum */
  font-family: "Playfair Display", serif;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
  padding-top: 10px;
  text-align: right;
  margin-right: 30px;
  position: relative;
}

/* Bodka na časovej osi - len vizuálny efekt */
/* .timeline-date::after {
  content: "";
  position: absolute;
  top: 15px;
  right: -10px;  Umiestnenie na stred medzi dátum a obsah 
  width: 15px;
  height: 15px;
  background-color: var(--primary-color);
  border-radius: 50%;
  border: 3px solid white;
  z-index: 5;
  
} 
 */

.timeline-content {
  flex-grow: 1;
  border-left: 2px solid var(--accent-color);
  padding-left: 30px;
  padding-bottom: 20px;
}

.timeline-content h3 {
  text-align: left;
  margin-top: 0;
  color: #555;
}

/* === GALÉRIA (JEDNODUCHÝ KOLOTOČ) === */
.gallery {
  position: relative;
  max-width: 450px;
  margin-bottom: 20px;
  overflow: hidden; /* Skryje neaktívne obrázky */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.gallery-image {
  width: 100%;
  height: auto;
  display: none; /* Predvolene skryté */
  transition: opacity 0.5s;
}

.gallery-image.active-image {
  display: block; /* Zobrazenie aktívnej fotky */
}

.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5em;
  line-height: 1;
}

.prev-btn {
  left: 0;
  border-radius: 0 5px 5px 0;
}

.next-btn {
  right: 0;
  border-radius: 5px 0 0 5px;
}

/* === KALENDÁR SVADBA.HTML === */

.calendar-section {
  padding: 30px 0;
  text-align: center;
}

.calendar-embed-wrapper {
  /* Zaistí, že iframe nezaberá viac ako 90% kontajnera a je na strede */
  max-width: 900px; 
  margin: 20px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden; /* Odreže prípadné pretečenie */
}

.calendar-embed-wrapper iframe {
  /* Uistí sa, že iframe je vždy responzívny */
  width: 100%; 
  height: 600px; /* Pevná výška, môžete zmeniť */
  display: block;
}

/* Úprava na menšie obrazovky */
@media (max-width: 600px) {
  .calendar-embed-wrapper iframe {
      height: 400px; /* Trochu nižšia výška na mobiloch */
  }
}


/* === Responsivita pre Časovú Os === */
@media (max-width: 600px) {
  .timeline-card {
    flex-direction: column; /* Dátum nad obsahom */
  }

  .timeline-date {
    flex: auto;
    text-align: left;
    margin-right: 0;
    margin-bottom: 10px;
    padding-top: 0;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 5px;
  }

  .timeline-date::after {
    display: none; /* Odstránenie bodky pre mobil */
  }

  .timeline-content {
    border-left: none; /* Odstránenie linky */
    padding-left: 0;
  }

  .gallery {
    max-width: 100%; /* Na mobiloch na celú šírku */
  }

}
