body {
  margin: 0;
  padding: 0;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: top;
  background-size: cover;
  overflow-x: hidden;
  overflow-y: hidden;
  font-family: Inter;
  font-weight: 300;
  background-image: url('../assets/sky.png');
}

/* Dark mode styles */
body.darkmode {
  background-image: url('../assets/star.png');
}

body.darkmode .city-container {
    background-image: url('../assets/City-Darkmode.png');
}

.body-container {
  overflow-y: auto;
  height: 100vh;
} 

.city-container {
  background-image: url('../assets/City-Lightmode.png');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center top;
  background-size: cover;
  
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  z-index: -100;
}

.content {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 8px;
  height: calc(100vh - 58px);
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.subheading {
  display: flex;
  align-items: center;
  margin: 30px 0 40px 0;
}

.subheading-text {
  margin-left: 12px;
  font-size: 18px;
  color: var(--text);
}

h1 {
  color: var(--text);
  font-family: Outfit;
  font-size: 64px;
  line-height: 64px;
  font-weight: 800;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 0px;
}

#privacy-policy-text {
  display: none;
  background-color: var(--primary-bg-90);
  font-size: 14px;
  font-weight: 400;
  padding: 6px 16px;
  border-radius: 10px;
  color: var(--text);
  text-align: center;
  margin-top: 8px;
  margin-bottom: 40px;
}

/* Call to Action Field */

form {
  /* This bit sets up the horizontal layout */
  display:flex;
  justify-content: space-between;
  flex-direction:row;

  background: var(--input-background); /* Light grey background */
  height: 58px;
  width: 400px;
  padding: 10px;
  border-radius: 30px; /* Rounded corners for the input group */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  margin: 0 auto; /* Center the form */

  /* I've used padding so you can see the edges of the elements. */
  padding:1px;
}

.email-input {
  font-family: Outfit;
  border: none;
  flex-grow: 1;
  outline: none;
  padding: 10px 20px 10px 28px;
  border-radius: 30px; /* Rounded corners for the input */
  font-size: 16px;
  background-color: transparent;
  font-size: 16px;
  color: #1B2559 !important;
}

.email-input::placeholder {
  color: #1B2559;
  font-weight: 500;
  font-family: 'Outfit';
  opacity: 1; /* Firefox */
}

input:-webkit-autofill,
input:-webkit-autofill:focus, 
body.darkmode input:-webkit-autofill,
body.darkmode input:-webkit-autofill:focus
{
    transition: background-color 0s 600000s, color 0s 600000s !important;
  }

#form {
  display: flex;
}

#confirm-dialog {
  background-color: var(--primary-green);
  height: 46px;
  color: #FFFFFF;
  display: none;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  padding: 0px 16px;
  border-radius: 10px;
  width: fit-content;
  margin: 0 auto;
  margin-top: 8px;
}

#confirm-dialog img {
  margin-right: 8px;
  height: 20px;
  width: 20px;
}

.cta-dialog {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 48px;
  border-radius: 20px;
  margin-bottom: 32px;
  background-color: var(--primary-bg-90);
  
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.cta-dialog button {
  margin-left: 16px;
}

.cta-dialog span:nth-child(1) {
  color: var(--primary);
  margin-right: 4px;
}

.secondary-button {
  padding: 10px 18px 10px 18px;
  color: var(--text-r);
  background-color: var(--text);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  opacity: 1;
  border: 0;
}

.secondary-button:hover {
  box-shadow: 0 4px 15px var(--primary-bg-50); /* Highlight effect on hover */
}

/*********** Footer ***********/

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  height: 70px;
  background-color: var(--footer-bg);
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  padding: 0 40px;
}

footer a:hover {
  text-decoration: underline;
}

#footer-left-side {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.link-container {
  width: 420px;
}

.link-container a {
  color: var(--text);
  text-decoration: none;
  margin-left: 16px;
  text-wrap: nowrap;
}

.social-links-container {
  width: 180px;
  display: flex;
  justify-content: space-between;
}

.social-links-container * {
  color: var(--text);
}

.social-links-container a {
  text-decoration: none;
  display: inline-block;
}

.dynamic-heading-container {
  display: flex;
  justify-content: center;
  align-items: center;
}


/*********** Media Queries ***********/

@media screen and (max-width: 1100px) {
  .city-container {
    background-position: 20% top;
  }
  body.darkmode .city-container {
    background-position: 20% top;
  }
}


@media screen and (max-width: 700px) {

  main {
    height: calc(100dvh - 210px)
  }

  h1 {
    font-size: 42px;
    line-height: 42px;
    margin-bottom: 40px;
  }

  #form {
    width: 320px;
    height: 50px;
  }

  .email-input {
    padding: 5px 10px 5px 20px;
    font-size: 14px;
    min-width: 100px;
  }

  #form button {
    white-space: nowrap;
    width: 120px;
    font-size: 14px;
    padding: 6px 16px;
  }

  .body-container {
    background-position: -250px 0;
  } 

  footer {
    height: auto;
    border-radius: 40px 40px 0 0;
    flex-direction: column;
    padding: 0 10px;
  }

  .cta-dialog {
    display: block;
    margin-bottom: 20px;
  }

  .cta-dialog *{
    display: block;
    margin: 0 auto;
    text-align: center;;
  }

  .cta-dialog span:nth-child(1) {
    margin-right: 0;
    margin-top: 8px;
  }

  .cta-dialog span:nth-child(2) {
    margin-top: 8px;
  }

  .cta-dialog button {
    margin-left: auto;
    margin-top: 20px;
  }

  #footer-left-side span:nth-child(1){
    display: block;
    text-align: center;
    margin-bottom: 32px;
  }

  #footer-left-side{
    margin-bottom: 32px;
  }

  .link-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    width: auto;
  }

  .link-container a {
    margin-bottom: 8px;
    margin-left: 24px;
  }

  .social-links-container {
    margin-bottom: 32px;
    width: 250px;
  }

  #heading-left {
    padding: 0;
  }

  ::-webkit-scrollbar { display: none; }

}

@media screen and (max-width: 380px) {
  h1 {
    font-size: 38px;
    line-height: 38px;
  }
}

@media screen and (max-width: 350px) {
  h1 {
    font-size: 34px;
    line-height: 34px;
  }
}


