@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;1200&display=swap");
@import url("https://fonts.googleapis.com/css?family=Lobster");

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14pt;
  background-color: #001429;
  padding-top: 70px; /* This value should be equal or greater than the height of your header */
}

h1 {
  font-family: "Lobster", cursive;
  font-size: 60px;
  text-align: center;
  color: #c71d1d;
  letter-spacing: 3px;
  margin-top: 10px;
}

h2 {
  font-size: 30px;
  text-align: center;
  color: #ebf4ff;
  letter-spacing: 2px;
}

h3 {
  font-size: 20px;
  color: #ebf4ff;
  letter-spacing: 2px;
  padding: 10px 10px;
  margin: 25px 0;
}

p {
  color: #ebf4ff;
  text-align: center;
}

/* Button general styles */
button {
  padding: 10px 20px;
  font-size: inherit;
  border: none;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  font-weight: bold;
  border-radius: 5px;
}

/* Basic reset for table elements */
table {
  font-size: inherit;
  width: 80%;
  border-collapse: collapse;
  border-radius: 10px;
  margin-left: auto;
  margin-right: auto;
  min-width: 400px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.357);
  overflow: scroll;
}

tbody {
  text-align: center;
  overflow: scroll;
}

td {
  text-align: center;
  padding: 12px 15px;
}

th {
  letter-spacing: 2px;
  font-weight: 1000;
  text-align: center;
  background-color: #4fb8ee;
  padding: 12px 12px;
  color: #ebf4ff;
}

table th:first-child {
  border-top-left-radius: 5px;
}

table th:last-child {
  border-top-right-radius: 5px;
}

tr {
  text-align: center;
}

/* Zebra-striping for rows */
tr:nth-of-type(even) {
  background-color: #ddecfce6;
}

tr:nth-of-type(odd) {
  background-color: #ffffffe0;
}

tr:hover {
  background-color: rgba(163, 207, 255, 0.939);
  cursor: pointer;
}

table tr:last-child td:first-child {
  border-bottom-left-radius: 5px;
}

table tr:last-child td:last-child {
  border-bottom-right-radius: 5px;
}

footer {
  width: 100%;
  padding: 25px;
  background-color: rgba(12, 32, 53, 0.681);
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  bottom: 0;
  z-index: 1;
}

.footer-container {
  display: flex;
  justify-content: space-between; /* Align items on both ends */
  align-items: center;
  max-width: 1200px; /* Manage the container size */
  margin: 0 auto; /* Center the container */
}

.footer-button {
  margin: 0 auto; /* Center the button within the container */
}

.footer-logo-container {
  display: flex;
  flex-direction: row; /* Stack children vertically */
  align-items: center; /* Center children horizontally */
  position: absolute;
  right: 80px; /* Adjust as needed for spacing from the right edge */
  top: 15px; /* Adjust as needed for spacing from the top edge of the footer */
  bottom: 15px;
}

.footer-text {
  color: #fff; /* Adjust text color as needed */
  font-size: 18px; /* Adjust text size as needed */
  margin-bottom: 4px; /* Space between text and logo */
  padding-bottom: 5px;
  padding-right: 13px;
}

#isologo {
  display: block;
  height: 80px; /* Adjust logo size as needed */
  padding: 10px;
}

#humai {
  display: none;
  height: 8px;
}

.popup div {
  text-align: center;
  align-self: center;
}

div .confirmation-message {
  text-align: center;
  background-color: #00000000;
  color: #ebf4ff;
  font-size: 24px;
  padding: 10px;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  width: 100%;
}

.footer-button {
  padding: 20px 40px;
  cursor: pointer;
  background-color: #4fb8ee;
  color: white;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.footer-button:hover {
  filter: brightness(75%);
}

header {
  width: 100%;
  background-color: #4fb8ee;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed; /* Keeps the header at the top of the screen */
  top: 0;
  left: 0;
  z-index: 1000; /* Ensures the header is above other content */
}

.header-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0; /* Add padding to give some space around the logo */
}

.header-logo {
  max-height: 50px; /* Adjust the size as needed */
  max-width: 100%; /* Makes sure the image is responsive */
}

/* Add this to your style.css */
.button-cell {
  padding: 10; /* Remove padding to allow the button to fill the cell */
  overflow: visible;
}

.select-button {
  box-sizing: border-box;
  overflow: visible;
  padding: 10px; /* Add some padding inside the button for better aesthetics */
  border: none; /* Remove border */
  background-color: rgba(255, 255, 255, 0.127); /* Light grey background */
  text-align: center; /* Align the text to the left */
  border-radius: 5px;
}

.select-button.selected {
  /* Styling for selected state */
  background-color: #fb4545; /* Change background to green when selected */
  color: white;
  overflow: visible;
}

/* Style for the popup overlay */
#popup-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
  z-index: 2; /* Make sure it's above other items */
  cursor: pointer; /* Change cursor to pointer to indicate it's clickable */
}

/* Style for the popup content */
#popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #4fb8ee;
  padding: 20px;
  z-index: 3;
  border-radius: 5px;
  text-align: center;
  /* Add more styling as needed */
}

.highlighted-list-item {
  padding: 10px;
  margin-bottom: 5px;
  background: #fb4545;
  border-radius: 5px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* High z-index to ensure it's on top */
}

.popup {
  justify-content: center; /* Horizontally center the children */
  text-align: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #4fb8ee;
  padding: 20px;
  border-radius: 5px;
  z-index: 100; /* Even higher to be above the overlay */
}

.no-scroll {
  overflow: hidden;
}

/* Popup Input Fields */
.popup input[type="text"] {
  font-size: 14pt; /* Consistency in font size */
  width: 90%;
  border: none;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
}

/* ENVIAR button styles */
#sendButton {
  background-color: #fb4545; /* Green */
  color: white;
  border-radius: 5px;
  padding: 10px 20px;
}

#sendButton:hover {
  filter: brightness(120%);
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.3);
}

/* VOLVER button styles */
#closePopup {
  background-color: #8d8d8d; /* Red */
  color: white;
  border-radius: 5px;
  padding: 10px 20px;
  margin-left: 10px; /* Add space between buttons */
}

#closePopup:hover {
  filter: brightness(120%);
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.3);
}

.button-container {
  text-align: center;
  overflow: visible;
}

#sendButton,
#closePopup {
  margin: 0 5px;
}

/* Style for selectedItemsContainer */
.selectedItemsContainer {
  max-width: 600px;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Style for the list inside the container */
.selectedItemsContainer ul {
  list-style-type: none;
  letter-spacing: 2px;
}

.selectedItemsContainer li {
  background-color: #ffffff;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 10px;
}

.popup ul {
  list-style-type: none; /* Remove bullets from list */
  /* Add any additional styling you want for the ul element */
  padding-inline-start: 0px !important;
}

.popup li {
  color: #ffffff; /* White text color, change as needed */
  font-size: larger;
  font-weight: bold;
  /* Add any additional styling you want for the li elements */
}

/* Hover effect for the list items */
.selectedItemsContainer li:hover {
  background-color: #e9e9e9;
}

/* Style for the individual item names */
.selectedItemsContainer li span {
  font-weight: 600;
  color: #333;
}

@media screen and (max-width: 600px) {
  tr {
    margin-bottom: 10px;
    display: block;
    border-bottom: none;
  }

  td,
  th {
    /* Reduce padding for table cells and header cells */
    padding: 8px 10px;
    display: block;
    text-align: center; /* Align text to right to make room for data-label on the left */
    border-bottom: 1px dotted #ccc;
  }

  /* Data label styling */
  td:before {
    /* Adjust content styling to not overwhelm the data */
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }

  /* Adjust button sizes inside table cells */
  .button-cell button,
  .select-button {
    padding: 5px; /* Reduce padding */
  }

  /* Adjust footer and header positioning and padding */
  footer,
  header {
    padding: 10px 5px; /* Reduce padding */
  }

  /* Adjust popup styling */
  .popup {
    width: 90%; /* Make popup width relative to screen size */
    box-sizing: border-box; /* Include padding and border in the width */
    text-align: center;
    align-items: center;
  }

  /* Reduce input field size in popup */
  .popup input[type="text"] {
    padding: 5px; /* Reduce padding */
    font-size: 0.8em; /* Reduce font size */
  }

  /* Adjust button sizes in popup */
  #sendButton,
  #closePopup {
    padding: 5px 10px; /* Reduce padding */
    font-size: 0.8em; /* Reduce font size */
  }
  #popup-content h2 {
    font-size: 0.9em;
  }
  .footer-container {
    flex-direction: column; /* Stack items vertically */
    text-align: center;
  }

  .footer-button {
    margin-bottom: 20px; /* Add space between the button and the logo */
  }

  .footer-logo-container {
    position: relative; /* Override the absolute position */
    right: auto; /* Reset right positioning */
    top: auto; /* Reset top positioning */
    bottom: auto; /* Reset bottom positioning */
    flex-direction: column; /* Stack children vertically */
  }

  .footer-text {
    margin-bottom: 10px; /* Space between text and logo */
  }

  #isologo {
    display: none;
  }

  #humai {
    display: block;
    height: 30px; /* Adjust logo size as needed */
    margin-top: -15px;
  }
}

.select-button:hover {
  background-color: #d19a9a;
  color: #333;
}

#carousel {
  display: flex;
  overflow-x: hidden;
  white-space: nowrap;
}
.image-container {
  flex: 0 0 auto;
  border-radius: 10px;
  overflow: hidden;
  margin-right: 10px;
}
.image-container img {
  max-height: 300px;
  border-radius: 10px;
}
