@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Poppins:wght@300;400;600&family=Roboto:wght@400;700&display=swap');

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: url('https://theserenityshow.com/wp-content/uploads/2025/01/Serenity.jpg') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 800px;
  margin: 1rem auto;
  padding: 2rem 3rem 0rem 3rem; /* Adjusted bottom padding - */
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  flex: 1;
}

header {
  background: none;
  color: white;
  text-align: center;
  padding: 0.1rem 0;
  margin-bottom: 0.2rem;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2); /* Adjusts Transparency of Header Overlay */
  width: 100%;
  box-sizing: border-box;
}

.header-content {
  position: relative;
  z-index: 1;
  padding: 0;
  background: none;
}

.inspiring-message {
  font-family: 'Dancing Script', cursive;
  font-size: 3rem;
  font-weight: 700;
  max-width: 100%;
  margin: 0 auto;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

h1 {
  color: #007bff;
  text-align: center;
  margin: 0.5rem 0 1rem 0;
  font-weight: 600;
  font-size: 1.5rem;
}

p {
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.opt-in-form {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 1rem;
  border-radius: 10px;/* Adjusts Roundedness of Grey Box */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 400px; 
  width: 100%;
}

.opt-in-form h2 {
  margin: 0.5rem 0 1rem 0;
  padding: 0;
  line-height: 1.5rem;
  font-family: 'Roboto', sans-serif;'Dancing Script', cursive;
  font-size: 1.25rem;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

input[type="email"] {
  width: 80%;
  max-width: 300px;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border: 2px solid #007bff;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input[type="email"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.7rem;
  margin-bottom: 0.5rem;
}

button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.opt-in-form p {
  margin-top: 0.5rem; /* Adjusts Space Above Button */
  margin-bottom: 0; /* Adjusts Space Under Button */
}

footer {
  background-color: rgba(69, 129, 142, 0.4);
  color: white;
  text-align: center;
  padding: 0.7rem 0.4rem; /* Adjusts Footer's Transparent Layover Padding */
  font-size: 0.9rem;
  position: center;
  margin-top: auto;
  width: 100%;
}

footer p {
  margin: 0.1rem 0; /* Adjusts Footer's Transparent Layover */
  line-height: 1.0; /* Adjusts Space Between Footer's Two Lines */
}

footer a {
  color: white;
  font-size: 0.8rem;
  position: center;
 margin-top: auto;
  width: 100%;
  text-decoration: regular;
  margin: 0 0.4rem; /* Footer 2nd Line Adjusts Space Between Letters */
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    padding: 0.5rem 0;
  }
  .inspiring-message {
    font-size: 2.5rem;
  }
  .container {
    margin: 1rem auto;
    padding: 1rem 1rem 0.5rem 1rem; /* Adjusted padding */
  }
  .opt-in-form {
    padding: 0.5rem;
  }
  .opt-in-form h2 {
    font-size: 1.25rem;
  }
  input[type="email"] {
    width: 80%;
    max-width: 300px;
  }
  button {
    width: 100%;
  }
  footer {
    padding: 0.5rem 0.2rem;
  }
}
