:root {
  --bg: #f7f5f0;
  --green: #8aa67f;
  --light: #e6efe2;
  --text: #2e2e2e;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
}
body.lock {
  overflow: hidden;
}

/* Floral background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("https://www.transparenttextures.com/patterns/flowers.png");
  opacity: 0.15;
  z-index: -2;
}

#envelope {
  position: fixed;
  inset: 0;
  background: #f7f5f0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  cursor: pointer;
  transition: all 1.4s ease;
}

#envelope img {
  width: 50%;
  max-width: 85vw;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  transition: transform 1.4s ease;
}

#envelope.open {
  opacity: 0;
  transform: scale(1.2);
  pointer-events: none;
}

.open-text {
  margin-top: 25px;
  font-family: "Marck Script", cursive;
  letter-spacing: 2px;
  color: #7c9b6a;
  font-size: 2rem;
  animation: pulse 2s infinite;
}
@media (max-width: 600px) {
  #envelope img {
    width: 90%;
  }
  .open-text {
    font-size: 1.5rem;
    text-align: center;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* HERO */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.2)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.hero h1 {
  font-family: "Marck Script", cursive;
  font-size: 8rem;
  margin: 0;
  animation: ease-in-out;
  line-height: 1;
}

.hero p {
  letter-spacing: 4px;
  margin-top: 10px;
}

/* Sections */
section {
  padding: 72px 20px;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

h2 {
  font-family: "Marck Script", cursive;
  font-size: 2.8rem;
  color: var(--green);
}

/* Timer */
.timer {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.box {
  background: white;
  padding: 25px 30px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  min-width: 120px;
}

.box span {
  display: block;
  font-size: 2.3rem;
  color: var(--green);
}

/* Cards */
.grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: linear-gradient(180deg, #fefcf5 0%, #eaf3e7 100%);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  color: #5b7a56;
  font-family: "Marck Script", cursive;
}
.grid .card:nth-child(5) {
  grid-column: span 3;
}
@media (min-width: 768px) {
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}
.card p {
  font-size: 1.2rem;
  margin: 10px 0 0 0;
  font-family: "Playpen Sans", cursive;
  font-optical-sizing: auto;
  letter-spacing: 0.5px;

  font-style: normal;
}
.card h3 {
  font-size: 2.3rem;
}

/* Map */
.map {
  margin-top: 40px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Form */
form {
  margin-top: 40px;
  background: white;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  text-align: left;
  font-size: 16px;
}

label {
  display: block;
  margin-top: 15px;
  font-weight: 500;
}

input,
select {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}
textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 6px;
  box-sizing: border-box;
}

button {
  margin-top: 25px;
  background: var(--green);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 10px;
  width: 100%;
  font-size: 1rem;
  cursor: pointer;
}

footer {
  text-align: center;
  padding: 60px 20px;
  padding-top: 16px;
  color: #777;
  font-family: "Marck Script", cursive;
  font-size: 2rem;
}

.fairy-tale {
  padding: 100px 20px;
  text-align: center;
  border-radius: 20px;
  margin: 60px auto;
  max-width: 900px;
  font-family: "Marck Script", cursive;
  color: #7c9b6a;
}

.fairy-tale h2 {
  font-size: 4rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.fairy-tale p {
  font-size: 1.8rem;
  line-height: 1.8;
  max-width: 750px;
  margin: auto;
  color: #5b7a56;
}
.cursiv {
  font-family: "Marck Script", cursive;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 5rem;
    line-height: 0.7;
    padding: 16px;
  }
  .hero p {
    font-size: 0.9rem;
  }
  form {
    padding: 16px;
  }
  footer h3 {
    font-size: 1.5rem;
  }
  form img {
    margin: 0 auto;
    margin-top: 0px;
    margin-top: 40px;
    display: block;
    height: 330px;
  }
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
}

.hero-content h1,
.hero-content p {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1.2s ease-out;
}

.hero-content.animate h1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.hero-content.animate p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.2s;
}
@keyframes flyIn {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.timeline {
  position: relative;
  margin-top: 60px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #dfe9db, #8aa67f, #dfe9db);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 60px;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 45px;
  left: calc(100% - 10px); /* TAČNO NA LINIJI ZA LEVU STRANU */
  width: 18px;
  height: 18px;
  background: white;
  border: 3px solid #8aa67f;
  border-radius: 50%;
  z-index: 3;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px; /* TAČNO NA LINIJI ZA DESNU STRANU */
}

/* MOBILE FIX */
/* @media (max-width: 768px) {
        .timeline::before {
          left: 12px;
        }

        .timeline-dot {
          left: -3px !important;
        }
      } */

.timeline-card {
  background: linear-gradient(180deg, #fefcf5 0%, #eaf3e7 100%);
  padding: 25px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  font-family: "Marck Script", cursive;
  color: #5b7a56;
}

.timeline-card h3 {
  font-family: "Marck Script", cursive;
  font-size: 1.7rem;
}

.timeline-card p {
  font-family: "Playpen Sans", cursive;
  font-size: 1.1rem;
}

/* MOBILE */
@media (max-width: 768px) {
  .timeline::before {
    /* left: 8px; */
  }
  .timeline-card {
    background-color: transparent;
    box-shadow: unset;
    background: unset;
    padding: 24px 8px;
    text-align: center;
  }

  .timeline-item {
    /* width: 100%;
          padding-left: 30px;
          padding-right: 30px;
          text-align: center !important;
          left: 0 !important; */
    padding: unset;
  }

  .timeline-dot {
    /* left: 8px; */
  }
}

/* section:nth-child(odd) {
        background-image: url(leaves24.png);
        background-position: top left;
        background-repeat: no-repeat;
      } */
main {
  background-image: url(leaves24.png);
  background-position: top left;
  background-repeat: no-repeat;
}
body {
  background-image: url(leaves24.png);
  background-position: bottom right;
  background-repeat: no-repeat;
}
form {
  font-family: "Playpen Sans", cursive;
  font-size: 1.1rem;
}
form .info {
  margin-bottom: 32px;
}
form button {
  font-family: "Playpen Sans", cursive;
}
section.form_section {
  padding-bottom: 40px;
}
.form_section img {
  display: block;
  margin: 0 auto;
  margin-top: 0px;
  margin-top: 122px;
}

:root {
  --bg: #f7f5f0;
  --green: #8aa67f;
  --light: #e6efe2;
  --text: #2e2e2e;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
}
body.lock {
  overflow: hidden;
}

/* Floral background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("https://www.transparenttextures.com/patterns/flowers.png");
  opacity: 0.15;
  z-index: -2;
}

#envelope {
  position: fixed;
  inset: 0;
  background: #f7f5f0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  cursor: pointer;
  transition: all 1.4s ease;
}

#envelope img {
  width: 50%;
  max-width: 85vw;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  transition: transform 1.4s ease;
}

#envelope.open {
  opacity: 0;
  transform: scale(1.2);
  pointer-events: none;
}

.open-text {
  margin-top: 25px;
  font-family: "Marck Script", cursive;
  letter-spacing: 2px;
  color: #7c9b6a;
  font-size: 2rem;
  animation: pulse 2s infinite;
}
@media (max-width: 600px) {
  #envelope img {
    width: 90%;
  }
  .open-text {
    font-size: 1.5rem;
    text-align: center;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* HERO */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.2)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.hero h1 {
  font-family: "Marck Script", cursive;
  font-size: 8rem;
  margin: 0;
  animation: ease-in-out;
}

.hero p {
  letter-spacing: 4px;
  margin-top: 10px;
}

/* Sections */
section {
  padding: 72px 20px;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

h2 {
  font-family: "Marck Script", cursive;
  font-size: 2.8rem;
  color: var(--green);
}

/* Timer */
.timer {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.box {
  background: white;
  padding: 25px 30px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  min-width: 120px;
}

.box span {
  display: block;
  font-size: 2.3rem;
  color: var(--green);
}

/* Cards */
.grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: linear-gradient(180deg, #fefcf5 0%, #eaf3e7 100%);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  color: #5b7a56;
  font-family: "Marck Script", cursive;
}
.grid .card:nth-child(5) {
  grid-column: span 3;
}
@media (min-width: 768px) {
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}
.card p {
  font-size: 1.2rem;
  margin: 10px 0 0 0;
  font-family: "Playpen Sans", cursive;
  font-optical-sizing: auto;
  letter-spacing: 0.5px;

  font-style: normal;
}
.card h3 {
  font-size: 2.3rem;
}

/* Map */
.map {
  margin-top: 40px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Form */
form {
  margin-top: 40px;
  background: white;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  text-align: left;
  font-size: 16px;
}

label {
  display: block;
  margin-top: 15px;
  font-weight: 500;
}

input,
select {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}
textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 6px;
  box-sizing: border-box;
}

button {
  margin-top: 25px;
  background: var(--green);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 10px;
  width: 100%;
  font-size: 1rem;
  cursor: pointer;
}

footer {
  text-align: center;
  padding: 60px 20px;
  padding-top: 16px;
  color: #777;
  font-family: "Marck Script", cursive;
  font-size: 2rem;
}

.fairy-tale {
  padding: 100px 20px;
  text-align: center;
  border-radius: 20px;
  margin: 60px auto;
  max-width: 900px;
  font-family: "Marck Script", cursive;
  color: #7c9b6a;
}

.fairy-tale h2 {
  font-size: 4rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.fairy-tale p {
  font-size: 1.8rem;
  line-height: 1.8;
  max-width: 750px;
  margin: auto;
  color: #5b7a56;
}
.cursiv {
  font-family: "Marck Script", cursive;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 5rem;
    line-height: 0.7;
    padding: 16px;
  }
  .hero p {
    font-size: 0.9rem;
  }
  form {
    padding: 16px;
  }
  footer h3 {
    font-size: 1.5rem;
  }
  form img {
    margin: 0 auto;
    margin-top: 0px;
    margin-top: 40px;
    display: block;
    height: 330px;
  }
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
}

.hero-content h1,
.hero-content p {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1.2s ease-out;
}

.hero-content.animate h1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.hero-content.animate p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.2s;
}
@keyframes flyIn {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.timeline {
  position: relative;
  margin-top: 60px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #dfe9db, #8aa67f, #dfe9db);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 60px;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 45px;
  left: calc(100% - 10px); /* TAČNO NA LINIJI ZA LEVU STRANU */
  width: 18px;
  height: 18px;
  background: white;
  border: 3px solid #8aa67f;
  border-radius: 50%;
  z-index: 3;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px; /* TAČNO NA LINIJI ZA DESNU STRANU */
}

/* MOBILE FIX */
/* @media (max-width: 768px) {
        .timeline::before {
          left: 12px;
        }

        .timeline-dot {
          left: -3px !important;
        }
      } */

.timeline-card {
  background: linear-gradient(180deg, #fefcf5 0%, #eaf3e7 100%);
  padding: 25px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  font-family: "Marck Script", cursive;
  color: #5b7a56;
  opacity: 0.9;
}

.timeline-card h3 {
  font-family: "Marck Script", cursive;
  font-size: 1.7rem;
}

.timeline-card p {
  font-family: "Playpen Sans", cursive;
  font-size: 1.1rem;
}

/* MOBILE */
@media (max-width: 768px) {
  .timeline::before {
    /* left: 8px; */
  }
  .timeline-card {
    background-color: transparent;
    box-shadow: unset;
    background: unset;
    padding: 24px 8px;
    text-align: center;
  }

  .timeline-item {
    /* width: 100%;
          padding-left: 30px;
          padding-right: 30px;
          text-align: center !important;
          left: 0 !important; */
    padding: unset;
  }

  .timeline-dot {
    /* left: 8px; */
  }
}

/* section:nth-child(odd) {
        background-image: url(leaves24.png);
        background-position: top left;
        background-repeat: no-repeat;
      } */
main {
  background-image: url(leaves25.png);
  background-position: top left;
  background-repeat: no-repeat;
}
body {
  background-image: url(leaves25.png);
  background-position: bottom right;
  background-repeat: no-repeat;
}
form {
  font-family: "Playpen Sans", cursive;
  font-size: 1.1rem;
}
form .info {
  margin-bottom: 32px;
}
form button {
  font-family: "Playpen Sans", cursive;
}
section.form_section {
  padding-bottom: 40px;
}
.form_section img {
  display: block;
  margin: 0 auto;
  margin-top: 0px;
  margin-top: 122px;
}
