/* Reset default margins and paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

iframe {
  width: 256px;
  height: 48px;
  margin: 0 !important;
  padding: 0 !important;
}

.justify-center {
  justify-content: flex-start !important;
}

/* Ensure the page takes up the full height of the viewport */
html,
body {
  height: 100%;
}

/* Flexbox layout for the entire page */
body {
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensures the entire viewport is used */
  font-family: "Roboto", sans-serif;
}

/* Header and footer with fixed height */
header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 1rem;
  text-align: center;
  height: 4rem;
}

header .advent-logo {
  width: 250px;
  height: auto;
}

/* Footer */
footer {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  background-color: #f5f5f5;
  padding: 1rem;
  text-align: center;
  padding: 1rem;
  text-align: center;
}

footer img {
  max-width: 200px;
  height: auto;
}

.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 20px; /* Space between links */
}

.footer-menu li {
  display: inline;
}

.footer-menu a {
  text-decoration: none;
  color: #666666; /* Change to match your theme */
  font-size: 14px;
  font-weight: 300;
  padding: 10px;
}

.copyright {
  font-size: 0.65rem;
  font-weight: 300;
  background-color: #e1e1e1;
  color: #777777;
  padding: 0.5rem;
}

/* Main content expands to fill the remaining space */
/* Hero banner */
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  row-gap: 1.5rem;
  flex: 1; /* Makes the main take up all the remaining space */
  background-color: #3082d3;
  padding: 2rem;
  overflow: auto; /* Allows scrolling if content exceeds the available space */
  background-image: url("/images/hero-banner-min.png"); /* Background image */
  background-size: cover; /* Ensures the image covers the entire div */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents repetition */
  width: 100%; /* Ensure div takes full width */
  height: 100vh; /* Example: Full viewport height */
  min-height: 300px;
}

/* Material symbols */
.material-symbols-filled {
  font-family: "Material Symbols Filled";
  font-variation-settings: "FILL" 1; /* Enables filled icons */
}

/* Buttons */
.buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  row-gap: 1.5rem;
}

.button {
  width: fit-content;
  max-height: 2.2rem;
  height: 2.2rem;
  border-radius: 100rem;
  padding: 0 1rem;
  white-space: nowrap;
  font-size: 0.875rem;
}

.button:hover {
  cursor: pointer;
}

.button-dark {
  color: #e0e0e0;
  background-color: #174778;
}

.button-dark:hover {
  background-color: #29629b;
  cursor: pointer;
}

.button-transparent {
  color: #e0e0e0;
  background-color: rgba(0, 30, 50, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.button-transparent:hover {
  color: #f9f9f9;
  background-color: #174778;
  border: 2px solid #ffffff;
  cursor: pointer;
}

.button-outlined {
  border: 1px solid #174778;
  background-color: #fafafa;
}

.button-outlined:hover {
  border: 1px solid #174778;
  background-color: #3081d329;
}

.button-icon {
  font-size: 2.2rem;
  border-radius: 100rem;
  border: none;
  vertical-align: middle;
  color: #174778;
}

.button-icon:hover {
  background-color: #3081d329;
}

.button-lg {
  width: 320px;
}

.button-text {
  display: flex;
  justify-content: center;
  align-items: center;
  vertical-align: middle;
  column-gap: 0.25rem;
  height: 40px;
  color: #174778;
  background-color: #3081d322;
  border: 1px solid #3081d322;
  border-radius: 100rem;
  padding: 0.5rem 0.75rem 0.5rem 0.35rem;
  font-size: 0.875rem;
}

.button-text .icon {
  font-size: 1.25rem;
}

.button-text:hover {
  background-color: #3081d32c;
  border: 1px solid #3081d393;
  cursor: pointer;
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 0.25rem;
  padding: 2.5rem 1rem;
}

.status-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  column-gap: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #dddddd;
}

.status-container span {
  font-size: 2.5rem;
}

.status {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.emodal-status-badge {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  column-gap: 0.5rem;
  width: auto;
  height: 3rem;
}

.emodal-status-badge .font-medium {
  white-space: nowrap;
}

.status span.label {
  font-size: 0.875rem;
  font-weight: 400;
  color: #666666;
  margin-left: 1.25rem;
}
.status span.value {
  font-size: 1.5rem;
  font-weight: 500;
}

a.more-link {
  font-size: 14px !important;
  font-weight: 300;
  color: #29629b;
  text-decoration: none;
  text-align: right;
  width: 40px;
  height: 40px;
  border-radius: 100px;
  border: 1px solid #dddddd;
  display: flex;
  align-items: center;
  justify-content: center;
}

a.more-link span {
  font-size: 1.25rem;
}

.success-color {
  color: #077f17;
}

.success-bg {
  background-color: #f1ffea;
}

.helpline {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 0.5rem;
  width: 100%;
  padding: 0.5rem;
}

.helpline span.label {
  font-size: 0.875rem;
  font-weight: 300;
  color: #666666;
}

.helpline a {
  text-decoration: none;
}

/* Utility classes */

.w-full {
  width: 100%;
}

.flex-between-center {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-end-center {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  column-gap: 0.5rem;
}

.flex-end-center {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  column-gap: 0.5rem;
}

.flex-col-center-end {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}

/* Tool tip styles */

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: fit-content;
  background-color: #174778;
  color: #fff;
  text-align: center;
  padding: 5px;
  border-radius: 5px;
  font-size: 0.75rem;
  white-space: nowrap;

  position: absolute;
  top: 100%; /* Position above the element */
  left: 50%;
  transform: translateX(-50%);

  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 600px) {
  header .advent-logo {
    width: 180px;
    height: auto;
  }

  main {
    background-size: auto; /* Ensures the image covers the entire div */
    background-position: right;
  }

  .buttons {
    width: 100%;
    margin: 0 auto;
  }

  .buttons a {
    width: 100%;
  }

  .button {
    width: fit-content;
    height: 2rem;
    border-radius: 100rem;
    padding: 0 1rem;
    white-space: nowrap;
    font-size: 1rem;
  }

  .button-lg {
    width: 100%;
  }

  .button-icon {
    font-size: 1.5rem;
    border-radius: 100rem;
    border: none;
    vertical-align: text-bottom;
    color: #212121;
  }

  .status-container span {
    font-size: 2.5rem;
  }

  .status .value {
    line-height: 1.3;
  }

  .helpline .label {
    line-height: 1.5;
    text-align: center;
  }

  footer {
    flex-direction: column;
    row-gap: 1rem;
  }

  .footer-menu ul {
    flex-direction: column; /* Stack links vertically */
    gap: 10px; /* Reduce spacing */
  }

  .footer-menu a {
    font-size: 16px; /* Make links larger for mobile */
    display: block;
    padding: 8px 0;
  }
}

@media (max-width: 768px) {
  main {
    background-size: auto; /* Ensures the image covers the entire div */
    background-position: right;
  }

  .footer-menu ul {
    flex-direction: column; /* Stack links vertically */
    gap: 10px; /* Reduce spacing */
  }
}
