/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Desktop Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100vh;
  overflow: hidden;
  background: url('background.png') no-repeat center center/cover;
}

/* Header Styling */
header {
  background: rgba(40, 167, 69, 0.9);
  color: white;
  padding: 15px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Header Container */
#header-container {
  display: flex;
  align-items: flex-end;
  gap: 15px;
}

/* Small Header Logo */
#header-logo {
  width: 50px;
  height: auto;
  display: block;
}

/* Header Title */
header h1 {
  color: white;
  font-size: 24px;
  margin: 0;
  padding-bottom: 5px;
}

/* Product Image Container */
#product-container {
  max-width: 600px;
  margin: 10px auto;
}

/* Product Image */
#preppro-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  background: transparent;
}

/* Content Section (Features, Waitlist, Contact) */
#content {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  max-width: 900px;
  padding: 20px;
}

#features, #waitlist, #contact {
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
}

/* Waitlist Form Styling */
#waitlist-form input {
  padding: 10px;
  font-size: 16px;
  margin: 5px;
  width: 80%;
}

#waitlist-form button {
  padding: 12px;
  font-size: 18px;
  background: #ff6600;
  color: white;
  border: none;
  cursor: pointer;
}

#waitlist-form button:hover {
  background: #e65c00;
}

/* Global Heading Styles */
h1, h2 {
  margin: 10px 0;
  text-align: center;
}

/* Responsive Design - Mobile Adjustments */
@media (max-width: 768px) {
  /* Allow page scrolling on mobile */
  body {
    height: auto;
    overflow: visible;
    display: block;
  }
  
  /* Header layout: force a row layout so the logo sits to the left of the title */
  header {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
  }

  /* Adjust header container to maintain row layout */
  #header-container {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-left: 10px; /* slight left padding */
  }

  /* Reduce logo size */
  #header-logo {
    width: 30px;
  }

  /* Reduce header title font size */
  header h1 {
    font-size: 16px;
    padding-bottom: 0;
    margin-left: 10px; /* optional: add space between logo and text */
  }
  
  /* Adjust h2 size for mobile */
  h2 {
    font-size: 14px;
  }
  
  /* Ensure product image scales properly */
  #preppro-image {
    width: 100%;
    max-width: 400px;
  }
  
  /* Make content sections full-width */
  #content > div {
    width: 95%;
  }
  
  /* Form Inputs */
  #waitlist-form input {
    width: 100%;
    font-size: 16px;
  }
  
  /* Adjust waitlist button */
  #waitlist-form button {
    font-size: 16px;
    padding: 10px;
  }
}
