/* makes sizing simpler */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font: inherit;
}

html, body {

  height: 100%;
  width: 100%;
  
}

/* dark mode user-agent-styles */
/* improves punctuation in supported browsers */
html {
  color-scheme: dark;
  hanging-punctuation: first last;
  min-height: 100%;
  height: 100%;
  padding-top: env(safe-area-inset-top);
  overflow: hidden; /* Prevent horizontal and vertical scrolling */
}


/* min body height */
body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: system-ui;
  font-optical-sizing: auto;
  font-style: normal;
  background-repeat: no-repeat;
  background-size: cover;
  padding-top: env(safe-area-inset-top);
  margin: 0;
  overflow-x: hidden; /* Prevent horizontal overflow */
    overflow-y: auto;   /* Allow vertical scrolling */
}

/* responsive images/videos */
img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

/* Improved heading in supported browsers */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/* improve readability with max-width on paragraphs and lists */
/* prevent orphans in supported browsers */
p,
li {
  max-width: var(--p-max-width, 65ch);
  text-wrap: pretty;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh; /* Make sure the hero section takes the full viewport height */
  
}

.title {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%; /* Ensure some padding on sides */
}

h1 {
  font-size: calc(50px + 12vw); /* Increased font size */
  font-weight: 800;
  text-align: center;
  padding-top: 3%; /* Decreased padding-top */
  padding-bottom: 10%; /* Increased padding-bottom */
  text-shadow: .1em .1em 0 hsl(0, 0%, 0%);
  margin: 0; /* Reset margin */
}

@media (max-width: 768px) {
  h1 {
    font-size: calc(40px + 8vw); /* Adjust font size for mobile */
    padding-left: 5%;
    padding-right: 5%;
  }
}

h2 {
  font-size: calc(25px + 0.7vw);
  font-weight: 400;
  text-align: center;
  margin-inline: calc(7px + 1.01vw);
  padding-bottom: 6%;
}

.texto_color {
  font-weight: 800;
  text-align: center;
  background-color: rgb(255, 255, 255);
  opacity: 1;
  color: black;
  padding-inline: 10px;
  appearance: none;
}

.button-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-inline: calc(7px + 1.01vw);
  padding-bottom: 5rem; /* Increased padding-bottom for more space */
}

.hero-button,
.link {
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: calc(15px + 0.7vw);
  font-weight: 800;
  background-color: transparent; /* Transparent background */
  border: 3px solid white; /* White border */
  border-radius: 25px;
  cursor: pointer;
  min-width: 300px;
  appearance: none;
  text-decoration: none;
  color: white; /* White text */
}

.hero-button:hover,
.link:hover {
  background-color: black; /* Black background on hover */
  color: white; /* White text on hover */
  border-color: black; /* Black border on hover */
}

.hero-button .icon,
.link .icon {
  background-color: transparent;
  color: white; /* White icon */
  margin-right: 10px;
}

.hero-button .icon svg,
.link .icon svg {
  height: 1.5em;
  width: 1.5em;
  fill: white; /* Ensure SVGs are white */
}

.hero-button:hover .icon,
.link:hover .icon {
  color: white; /* White icon on hover */
  fill: white; /* Ensure SVGs remain white on hover */
}

.modal-container {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6); /* Darker background with more opacity */
}

.modal-container:target {
  display: block;
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border: none;
  width: 80%;
  max-width: 500px;
  font-size: calc(15px + 0.7vw);
  font-weight: 400;
  border-radius: 12px; /* More rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow for modern look */
  position: relative;
  animation: slide-down 0.3s ease-out; /* Smooth slide-down animation */
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-20%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-weight: 800;
  background-color: transparent;
  color: #333;
  font-size: 1.5rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover,
.close:focus {
  color: #ff5a5a;
  outline: none;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Reduced spacing between form elements */
}

.form_group {
  display: flex;
  flex-direction: column;
}

.label_form {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"] {
  border-radius: 8px;
  border: 1px solid black; /* Black border for text and email inputs */
  padding: 12px 15px;
  font-size: 1rem;
  background-color: white; /* Set background to white */
  transition: border-color 0.3s ease;
  margin-bottom: 10px; /* Reduced margin-bottom */
  color: black; /* Ensure text color is black for visibility */
}

input[type="file"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%; /* Ensure the button takes full width */
  box-sizing: border-box; /* Ensure padding does not exceed the width */
}

input[type="file"]::file-selector-button {
  padding: 12px 15px;
  font-size: 1rem;
  background-color: white; /* White background */
  color: black; /* Black text */
  border: 1px solid black; /* Black border */
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px; /* Align with the label */
}

input[type="file"]::file-selector-button:hover {
  background-color: black; /* Black background on hover */
  color: white; /* White text on hover */
  border: 1px solid black; /* Black border on hover */
}

input[type="file"]::file-selector-text {
  display: none; /* Hide the "no files selected" text */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="file"]:focus {
  border-color: none;
  outline: none;
}

input[type="submit"] {
  background-color: white; /* White background */
  color: black; /* Black text */
  border: 1px solid black; /* Black border */
  padding: 15px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 20px; /* Increased space between buttons in the modal */
  font-weight: bold; /* Make the text bold */
}

input[type="submit"]:hover {
  background-color: black; /* Black background on hover */
  color: white; /* White text on hover */
  border: 1px solid black; /* Black border on hover */
}

/* Additional styles for progress bar and thumbnails */
progress {
  display: block;
  width: 100%;
  height: 20px;
  margin-top: 10px;
}

#thumbnailContainer img {
  max-width: 100px;
  max-height: 100px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-right: 10px;
}

#thumbnailContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}


/* Style for the button in the modal */
.modal-content button[type="submit"] {
  background-color: white; /* White background */
  color: black; /* Black text */
  border: 1px solid black; /* Black border */
  padding: 15px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold; /* Bold text */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px; /* Increase space between thumbnails and button */
}

.modal-content button[type="submit"] .icon svg {
  vertical-align: middle; /* Vertically align the SVG */
}

.modal-content button[type="submit"]:hover {
  background-color: black; /* Black background on hover */
  color: white; /* White text on hover */
  border: 1px solid black; /* Black border on hover */
}

.modal-content .close {
  font-size: 2rem; /* Increase size of the close button */
  position: absolute;
  top: 15px; /* Adjust spacing from top */
  right: 15px; /* Adjust spacing from right */
  color: black;
  text-decoration: none;
  cursor: pointer;
}
