/* Import the Snell font */
@font-face {
  font-family: 'Snell';
  src: url('fonts/SnellRoundhand.ttc') format('truetype');
}

/* Import the DidotLTStd-BoldItalic font */
@font-face {
  font-family: 'DidotBoldItalic';
  src: url('fonts/DidotLTStd-BoldItalic.ttf') format('truetype');
}

/* Import the DidotLTStd-Italic font */
@font-face {
  font-family: 'DidotItalic';
  src: url('fonts/DidotLTStd-Italic.ttf') format('truetype');
}

/* General Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'DidotItalic', serif; /* Apply the new font globally */
  scroll-behavior: smooth;
}

body {
  background-image: url('images/bg.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  color: #333;
  line-height: 1.6;
  font-size: 1.2rem;
  margin: 0;
  padding: 0;
}

/* Header and Sticky Navigation Bar */
header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: #c7d7e5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav {
  background-color: #c7d7e5;
  padding: 30px;
  text-align: center;
  display: flex;
  justify-content: center;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow effect */
}

nav a {
  font-size: 16px;
  color: #6c757d;
  margin: 0 15px;
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
}

nav a:hover {
  color: #333;
}

/* Hamburger Menu */
.menu-icon {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
  background-color: #c7d7e5;
  color: #6c757d;
  text-align: center;
}

.nav-links {
  display: flex;
  justify-content: center;
}

.nav-links.show {
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media (max-width: 768px) {
  .menu-icon {
    display: block; /* Show hamburger icon on mobile */
  }

  .nav-links {
    display: none; /* Hide navigation links by default */
    flex-direction: column;
    width: 100%;
  }

  .nav-links.show {
    display: flex; /* Show links when 'show' class is added */
  }

  .nav-links a {
    margin: 10px 0;
    font-size: 18px;
  }
}

/* Section for Home */
section.home-outside {
  background-color: #fffdfc;
  padding: 40px;
  margin: 10px auto;
  text-align: center;
  max-width: 1200px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

section.home-inside {
  background-color: #eae7e5;
  padding: 60px;
  text-align: center;
  max-width: 1200px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.title {
  font-size: 84px;
  color: #5e5c5c;
  font-family: 'Snell', serif;
  font-weight: normal;
  text-align: center;
}

.monograma {
  width: 300px;
  height: 300px;
}

.flower {
  width: 94px;
  height: 94px;
}

.text1 {
  font-size: 1.2rem;
  color: #5e5c5c;
  margin-bottom: 66px;
}

.text2 {
  font-size: 1.2rem;
  color: #5e5c5c;
  font-family: 'DidotBoldItalic', serif;
}

.text3 {
  font-size: 1.2rem;
  color: #5e5c5c;
  letter-spacing: 2px;
}

.text35 {
  font-size: 1.2rem;
  color: #5e5c5c;
  letter-spacing: 2px;
  margin-bottom: 66px;
}

/* Scroll Button Styles */
#scroll-button {
  text-align: center;
  margin: 40px 0;
}

#scroll-button button {
  padding: 12px 20px;
  background-color: #c7d7e5;
  color: #fff;
  border: none;
  border-radius: 30px;  /* Increased border-radius for a more round shape */
  font-family: 'SnellBT', serif;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#scroll-button button:hover {
  background-color: #75a2ca;
}

/* Section for History */
section.history {
  background-color: #eae7e5;
  padding: 40px;
  margin-top: 200px;
  text-align: center;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.text4 {
  font-size: 1.2rem;
  color: #5e5c5c;
  margin-bottom: 66px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.weddingday {
  width: fit-content;
  height: fit-content;
}

/* Section for information */
section.information {
  background-color: rgba(255, 253, 252, 0.7);
  padding: 40px;
  text-align: center;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.text5 {
  font-size: 1.2rem;
  color: #5e5c5c;
  margin-bottom: 48px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.text6 {
  font-size: 1.2rem;
  font-family: 'DidotBoldItalic', serif;
  color: #5e5c5c;
  margin-bottom: 48px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* RSVP Form */
form {
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  margin: 200px auto;
  padding: 20px;
  background-color: #fffdfc; /* Slight transparency */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

form label {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #5e5c5c;
}

.text8 {
  font-size: 1.2rem;
  color: #5e5c5c;
  margin-bottom: 10px;
  margin-right: 20px;
  margin-left: 20px;
  text-align: justify;
}

.text9 {
  font-size: 1.2rem;
  color: #5e5c5c;
  margin-bottom: 10px;
  margin-right: 20px;
  margin-left: 20px;
  text-align: justify;
  font-family: 'DidotBoldItalic', serif;
}

form select {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  border: 1px solid #ced4da;
  font-size: 1.2rem;
  color: #5e5c5c;
}

form select option[disabled] {
  color: #aaa;
}

form input, form textarea {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  border: 1px solid #ced4da;
  font-size: 1.2rem;
  width: 100%;
  resize: none;
}

form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: #a3c6d6;
  font-size: 1.2rem;
}

form button {
  padding: 12px 20px;
  background-color: #c7d7e5;
  color: #fff;
  border: none;
  border-radius: 30px; /* Increased border-radius for a more round shape */
  font-family: 'SnellBT', serif;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #75a2ca;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: white;
  padding: 40px;
  margin: 15% auto;
  max-width: 500px;
  border-radius: 8px;
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content h1 {
  font-size: 2.2rem;
  color: #505050;
}

.modal-content button {
  margin-top: 20px;
  padding: 10px;
  background-color: #c7d7e5;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
}

.modal-content button:hover {
  background-color: #75a2ca;
}

/* Footer */
footer {
  padding: 20px;
  text-align: center;
  background-color: #c7d7e5;
  margin: 0;
}

footer p {
  font-size: 1rem;
  color: #6c757d;
  font-family: 'Cormorant Garamond', serif;
}

/* General Mobile Styles */
@media (max-width: 768px) {
  body {
    background-size: contain;  /* Use cover for very small screens */
    background-repeat: repeat;
    background-position: center;
    background-attachment: fixed;
    font-size: 14px;
  }

  nav {
    flex-direction: column;
    padding: 15px;
  }

  nav a {
    margin: 5px 0;
    font-size: 18px;
  }

  .home-outside, .home-inside, .history, .information{
    padding: 20px;
    max-width: 100%;
  }

  .monograma{
    max-width: 100%;
    height: auto;
  }

  .title {
    font-size: 2.5rem;
  }

  .text1, .text2, .text3, .text4, .text5, .text6, .text7, .text8, .text9 {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .weddingday {
    height: auto;
    max-width: 100%;
  }

  #scroll-button button {
    font-size: 1rem;
    padding: 10px 15px;
  }

  form {
    max-width: 100%;
    padding: 15px;
  }

  form label {
    font-size: 1rem;
  }

  form input, form select, form textarea {
    padding: 15px;
    font-size: 1rem;
  }

  form input:focus, form select:focus, form textarea:focus {
    font-size: 1rem;
  }

  footer p {
    font-size: 14px;
  }
}

/* For very small screens like mobile phones (max-width 480px) */
@media (max-width: 480px) {
  body {
    background-size: contain;  /* Use cover for very small screens */
    background-repeat: repeat;
    background-position: center;
    background-attachment: fixed;
  }

  .title {
    font-size: 2.3rem;
  }

  .text1, .text2, .text3, .text4, .text5, .text6, .text7, .text8 {
    font-size: 14px;
  }

  .weddingday {
    height: auto;
    max-width: 100%;
  }

  .text9 {
    font-size: 14px;
    text-align: center;
  }

  form {
    padding: 10px;
  }

  nav a {
    font-size: 16px;
  }

  #scroll-button button {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}