body {
  font-family: "Roboto", sans-serif;
  color: #fff;
  margin: 0;
  /* Background image properties are now more robust */
  background: url(bg.jpg) no-repeat center center;
  background-size: cover;
  background-attachment: fixed;

  /* --- NEW: Required for the overlay to work --- */
  position: relative; /* Establishes a positioning context for the overlay */
  z-index: 1;
}

/* --- NEW: The Background Overlay --- */
body::before {
  content: "";
  position: absolute; /* Positioned relative to the body */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.68); /* Semi-transparent black */
  z-index: -1; /* Places the overlay behind the content */
}

a,
button {
  transition: 0.3s all ease-out;
}

a {
  color: #fff;
  text-decoration: none;
}

a:hover {
  color: #fff;
}

textarea:focus,
input:focus {
  outline: none;
}

#body-wrap {
  padding: 100px 20px;
}

.logo img {
  margin-top: 20px;
  width: 100px;
}

.container {
  margin: 15px auto;
  width: 100%;
  max-width: 800px;
  text-align: center;
}

header#header {
  margin-bottom: 60px;
}

.main-content h1 {
  font-size: 2em;
  font-weight: 800;
  margin-bottom: 0;
}

#countdown-clock {
  font-size: 30px;
  display: flex;
  justify-content: center;
  margin: 50px;
}

#countdown-clock > .time {
  background: rgba(137, 137, 137, 0.3);
  border-radius: 10px;
  padding: 20px;
  margin-right: 10px;
}

#countdown-clock .time > span {
  font-weight: 700;
}

#countdown-clock .time small {
  padding-top: 5px;
  font-size: 12px;
  text-transform: uppercase;
  display: block;
}

.main-content p {
  font-size: 1em;
  margin: 0;
  color: #aaa;
}

#form .form-group {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

input::placeholder {
  color: #949393;
}

.form-group input.form-control {
  width: 250px;
  height: 50px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  padding-left: 20px;
  border: none;
}

.form-group button.submit-button {
  padding: 18px 30px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  background-color: #ffcc00;
  border: none;
  cursor: pointer;
  color: #000;
}

.form-group button.submit-button:hover {
  background-color: #222630;
  color: #fff;
}

.form-group button.submit-button span {
  font-weight: 700;
  padding-left: 5px;
}

/* Style for the new form message */
#form-message {
  color: #4caf50; /* Green for success */
  margin-top: 15px;
  min-height: 20px; /* Prevents layout jump */
}

#footer .social-links {
  padding-top: 20px;
}

#footer .social-links ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
}

#footer .social-links li {
  padding-right: 20px;
}

#footer .social-links ul a {
  font-size: 1.6em;
  text-decoration: none;
}

.copyright {
  color: #aaa;
}

@media (max-width: 768px) {
  header#header {
    margin-bottom: 50px;
  }
  /* #body-wrap {
    padding: 0px 20px;
  } */
  #countdown-clock > .time {
    padding: 14px;
    margin-right: 5px;
  }
  .form-group {
    flex-direction: column;
    align-items: center;
  }

  .form-group input.form-control {
    width: 100%;
    max-width: 300px;
    border-radius: 5px;
    margin-bottom: 10px;
  }
  .form-group button.submit-button {
    width: 100%;
    max-width: 300px;
    border-radius: 5px;
    padding: 18px 9px;
  }
}
