body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  font-family: "sans-serif";
}

/* Fix for iOS height issues */
@supports (-webkit-touch-callout: none) {
  body, html {
    height: -webkit-fill-available;
  }
  
  .video-container {
    height: -webkit-fill-available;
  }
}

.video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  object-fit: cover; /* Ensures video covers the entire container */
}

.text-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background-color: black;
  border-radius: 50px;
  padding: 20px;
  width: 80%;
  max-width: 500px;
}

.success-message {
  color: green;
  font-size: 16px;
  margin-top: 10px;
}

.form-container {
  text-align: center;
  width: 100%;
}

input[type="email"] {
  box-sizing: border-box;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  margin-bottom: 10px;
  text-align: left;
  width: 100%;
  max-width: 250px;
}

h1 {
  font-size: 48px;
  color: #a2a7a9;
}

h2 {
  color: #a2a7a9;
  font-family: "sans-serif";
  font-size: 24px;
  margin: 15px 0;
}

a:link {
  text-decoration: none;
}

.logo {
  border-radius: 50px;
  max-width: 90%;
  height: auto;
}

.credits {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: lightgray;
  font-size: 12px;
  z-index: 10;
}

.error {
  color: white;
  margin-top: 5px;
}

button[type="submit"] {
  background-color: #a2a7a9;
  color: black;
  padding: 5px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 20px;
  font-family: "sans-serif";
  margin-left: 10px;
}

button[type="submit"]:hover {
  background-color: #9cc4d4;
  font-family: "sans-serif";
}

label {
  color: #a2a7a9;
  font-size: 24px;
  font-family: "sans-serif";
  margin-right: 10px;
}

/* Responsive design for tablets */
@media screen and (max-width: 768px) {
  .text-container {
    width: 90%;
    padding: 15px;
  }
  
  h2 {
    font-size: 20px;
  }
  
  label {
    font-size: 20px;
    display: block;
    margin-bottom: 10px;
    margin-right: 0;
  }
  
  input[type="email"] {
    margin-bottom: 10px;
    width: 80%;
  }
  
  button[type="submit"] {
    margin-left: 0;
    margin-top: 5px;
  }
}

/* Responsive design for mobile phones */
@media screen and (max-width: 480px) {
  .text-container {
    width: 90%;
    padding: 15px;
    border-radius: 25px;
  }
  
  h2 {
    font-size: 18px;
  }
  
  label {
    font-size: 18px;
  }
  
  input[type="email"] {
    font-size: 14px;
    max-width: 100%;
  }
  
  button[type="submit"] {
    font-size: 16px;
    padding: 8px 15px;
    display: block;
    margin: 10px auto 0;
  }
  
  .logo {
    max-width: 80%;
  }
  
  .credits {
    font-size: 10px;
  }
}

/* For very small screens like iPhone SE */
@media screen and (max-width: 375px) {
  .text-container {
    padding: 10px;
    border-radius: 20px;
  }
  
  h2 {
    font-size: 16px;
    margin: 10px 0;
  }
  
  label {
    font-size: 16px;
  }
  
  button[type="submit"] {
    font-size: 14px;
    padding: 6px 12px;
  }
}