.environment__training {
  color: green;
  text-align: center;
}

.watermark_training {
  background-image: url("/atlas-assets/img/watermark_training.svg");
}

#censusOverlay {
  position: fixed; /* Sit on top of the page content */
  display: none; /* Hidden by default */
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
  z-index: 9999; /* Specify a stack order in case you're using a different order for other elements */
  cursor: pointer; /* Add a pointer on hover */
}

#censusSpinner {
  position: relative;
  height: 100px;
  width: 100px;
  top: 50%;
  left: 50%;
  margin-left: -50px;
  margin-top: -50px;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
}

.eye:before {
  content: url("/atlas-assets/img/icons/eye.svg");
  cursor: pointer;
}

.eye-slash:before {
  content: url("/atlas-assets/img/icons/eye-slash.svg");
  cursor: pointer;
}

.dash_char {
  background-color: white;
  font-weight: bolder;
  border: none;
}

#sacButton {
  position: relative;
  padding-left: 1.5em;
  padding-right: 1.5em;
}

.pass_not_ok {
  color: red;
}

.pass_not_ok:before {
  content: "\274C";
}

.pass_ok {
  color: green;
}

.pass_ok:before {
  content: "\2714";
}

.hidden,
.ui-accordion .ui-accordion-header.hidden {
  display: none;
}

.hidden_by_logic {
  display: none;
}

img.info_icon {
  width: 20px;
  height: 20px;
  vertical-align: super;
}

.qa_info {
  margin-left: 10px;
}

/* floating buttons for resident and enumerator census application form WIP */
.fixedPosition {
  position: fixed;
}

.container_heading {
  background-color: #4f81b1;
  color: white;
  border: none;
  font-weight: 800;
  height: 50px;
}

.accordion_body_container:not(.hidden) {
  display: grid;
}

.accordion_body_container .question_container {
  grid-column: 1;
  grid-row: 1;
}

.accordion_label {
  position: absolute;
  top: 14px;
  margin-left: 16px;
}

h3 {
  outline: none;
}

.callback_container {
  display: inline-block;
  padding-left: 15px;
}

.next_button {
  margin-left: 20px;
}

.answer_container > label.form-check-label {
  margin-left: 0.5rem;
}

.progress_bar {
  position: absolute;
  display: inline-flex;
  width: 70%;
  left: 15%;
  top: 10px;
  margin-bottom: 10px;
}

.progress_bar_text {
  position: absolute;
  margin-left: 45%;
  margin-top: 4px;
  font-size: 20px;
  font-weight: bold;
  line-height: 18px;
}

.ui-accordion-header-icon {
  position: absolute;
  display: inline-flex;
  right: 5%;
  top: 28%;
  height: 30px;
  width: 30px;
}

.icon_expand {
  content: url("/atlas-assets/img/icons/plus-lg.svg");
}
.icon_collapse {
  content: url("/atlas-assets/img/icons/dash-lg.svg");
}

.ui-accordion-header-icon:hover {
  background: rgb(137, 178, 231);
}

@media screen and (max-width: 730px) {
  .progress_bar {
    display: none;
  }
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 250px;
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 4px;
  color: #fff;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.4s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-info {
  background: #3498db;
}
.toast-success {
  background: #2ecc71;
}
.toast-error {
  background: #e74c3c;
}
.toast-warning {
  background: #f39c12;
}

.toast-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.bg-fraud {
  background: linear-gradient(
    90deg,
    rgba(155, 42, 42, 1) 0%,
    rgba(0, 0, 0, 1) 50%,
    rgba(237, 83, 83, 1) 100%
  );
  color: #fff;
}

#imageOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 999999; /* above ANYTHING */
}

#imageOverlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#imageOverlay .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
}

.thumb-fixed {
  min-height: 150px; 
  max-height: 150px;
  max-width: 151px;
  object-fit: cover;
}

.img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 0.5rem;
}
