@font-face {
  font-family: "Owners Wide Medium";
  src: url("/fonts/owners-wide-medium.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body,
html {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  background-color: #1f0052;
  color: white;
  text-align: center;
  max-height: 100vw;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh; /* Fallback for browsers that don't support custom properties */
  height: calc(var(--vh, 1vh) * 100); /* Use the custom property */
}

.box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0rem;
}

.logo-image {
  width: auto; /* Let it size naturally */
  max-width: 200px; /* Set a max size */
  margin-top: 5rem;
}

/* Make sure the container allows for absolute positioning */
.hexagon-box {
  position: relative;
  flex-grow: 2;
  z-index: 0; /* Lower z-index to ensure content goes on top */
}

/* Position the background image absolutely within the hexagon box */
.hexagon-background {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw; /* Adjust size as needed */
  max-width: 800px; /* Maximum size */
  height: auto; /* Maintain aspect ratio */
  transform: translate(-50%, -50%);
  z-index: -1; /* Sit behind other content */
  opacity: 30%;
}

/* Ensure that other boxes have a higher z-index */
.logo-box,
.newsletter-box {
  position: relative;
  z-index: 1; /* Higher z-index to ensure it's on top of the background */
}

.overlay-text {
  position: absolute;
  align-self: center;
  width: 60%;
  font-size: 4.5vw;
  font-weight: 700;
  line-height: 90%;
  letter-spacing: 0.2rem;
  font-family: "Owners Wide Medium", sans-serif;
}

.green {
  color: #61ffa6; /* The specific green color you want */
}

.newsletter-box {
  margin-bottom: 5rem;
}

.newsletter-btn {
  background-color: white; /* Adjust button color as needed */
  color: #1f0052;
  padding: 20px 40px; /* Adjust padding as needed */
  border-radius: 2rem; /* Adjust border radius as needed */
  text-decoration: none; /* Removes underline from the anchor tag */
  margin: 2rem; /* Adds space above the button */
  font-size: 1rem;
  font-weight: 800;
  z-index: 10;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 5;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

@keyframes rotateBackground {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.modal-content {
  position: absolute;
  background-color: #1f0052;
  background-image: url("zeshoek.svg");
  background-size: cover; /* Cover the entire area of the modal */
  background-position: center; /* Center the background image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-blend-mode: overlay;
  padding: 20px;
  width: 50%;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.close-button {
  color: #61ffa6;
  float: right;
  font-size: 2.5rem;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: rgb(255, 255, 255);
  text-decoration: none;
  cursor: pointer;
}

.modal form {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  padding: 10px;

  font-weight: 400;
}

.modal input[type="text"],
.modal input[type="email"],
.modal input[type="tel"],
.modal textarea {
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-weight: 400;
}

.modal textarea {
  height: 100px; /* Adjust as needed */
  font-weight: 600;
  font-family: "Roboto", sans-serif;
  font-size: 0.8rem;
}
.modal button[type="submit"] {
  background-color: #61ffa6; /* Green */
  color: black;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
}

.modal button[type="submit"]:hover {
  background-color: white;
}

.modal h1 {
  font-family: "Owners Wide Medium", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  margin: 2rem;
}

.modal h2 {
  font-weight: 400;
  text-transform: lowercase;
  margin: 2rem;
}

.fas {
  margin-left: 0.1rem;
}

/* Mobiel */
@media (max-width: 767px) {
  .logo-image {
    max-width: 120px;
  }

  .hexagon-background {
    width: 90%; /* Adjust width as needed for your hexagon */
  }
  .modal h1 {
    font-family: "Owners Wide Medium", sans-serif;
    font-size: 1rem;
    margin: 0.5rem;
  }

  .modal h2 {
    font-size: 0.8rem;
    margin: 0rem;
  }

  .overlay-text {
    width: 90%; /* Adjust the width of the text box if needed */
    font-size: 8vw;
    font-weight: 700;
    line-height: 95%;
  }

  .newsletter-btn {
    background-color: white; /* Adjust button color as needed */
    color: #2c0346;
    padding: 13px 30px; /* Adjust padding as needed */
    border-radius: 2rem; /* Adjust border radius as needed */
    text-decoration: none; /* Removes underline from the anchor tag */
    margin: 1rem; /* Adds space above the button */
    font-size: 0.8rem;
    font-weight: 800;
  }

  .modal-content {
    background-color: #1f0052;
    padding: 20px;
    width: 80%; /* Could be more or less, depending on screen size */
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    max-width: 800px;
  }
}

/* Mobiel */
@media only screen and (min-width: 768px) and (max-width: 1200px) {
  .logo-image {
    max-width: 200px;
  }

  .hexagon-background {
    width: 60%; /* Adjust width as needed for your hexagon */
  }

  .overlay-text {
    width: 80%; /* Adjust the width of the text box if needed */
    font-size: 6vw;
    font-weight: 700;
    line-height: 95%;
  }

  .newsletter-btn {
    background-color: white; /* Adjust button color as needed */
    color: #2c0346;
    padding: 13px 30px; /* Adjust padding as needed */
    border-radius: 2rem; /* Adjust border radius as needed */
    text-decoration: none; /* Removes underline from the anchor tag */
    margin: 1rem; /* Adds space above the button */
    font-size: 0.8rem;
    font-weight: 800;
  }
}
