/* Base body styling */
body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #74ebd5, #acb6e5); /* Gradient background for a modern look */
  display: flex;
  justify-content: center; /* Center the content horizontally */
  align-items: center; /* Center the content vertically */
  height: 100vh; /* Full viewport height */
  margin: 0;
}

/* Button to open the modal */
.open-modal-btn {
  padding: 12px 24px; /* Padding for button sizing */
  background-color: #74ebd5; /* Background color matching the gradient */
  border: none;
  border-radius: 5px; /* Rounded corners for a modern look */
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s; /* Smooth background transition on hover */
}

/* Hover effect for button */
.open-modal-btn:hover {
  background-color: #acb6e5; /* Change background on hover */
}

/* Modal styling */
.modal {
  display: none; /* Modal is hidden by default */
  position: fixed; /* Stays in place when scrolling */
  z-index: 1; /* Ensures modal appears above other content */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background to focus attention on the modal */
  justify-content: center; /* Center modal horizontally */
  align-items: center; /* Center modal vertically */
}

/* Modal content box */
.modal-content {
  background-color: #fff; /* White background for the content */
  padding: 30px; /* Padding for spacing */
  border-radius: 10px; /* Rounded corners for modern look */
  text-align: center; /* Centered text inside the modal */
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3); /* Box shadow for depth */
  max-width: 400px;
  width: 100%; /* Responsive width */
  animation: fadeIn 0.5s ease; /* Fade-in animation when modal appears */
}

/* Close button styling */
.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
}

/* Email input styling */
.email-input {
  padding: 10px;
  width: 80%; /* Set width relative to the modal content */
  margin: 15px 0;
  border-radius: 5px; /* Rounded input fields */
  border: 1px solid #ddd; /* Subtle border */
  font-size: 16px;
}

/* Submit button styling */
.submit-btn {
  padding: 10px 20px;
  background-color: #74ebd5;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.submit-btn:hover {
  background-color: #acb6e5; /* Background color change on hover */
}

/* Close button for inside modal */
.close-modal-btn {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #ddd;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.close-modal-btn:hover {
  background-color: #bbb; /* Hover effect for close button */
}

/* Fade-in animation for the modal */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}