/* ----------------------------------------------------------- 
   GLOBAL RESET & BASE STYLES 17.nov25
----------------------------------------------------------- */
*, body *, :active, :focus, a {
  outline: none;
  border: 0;
  font-family: Arial, sans-serif;

  text-decoration: none;
}

body {
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-shadow: 1px 1px 0px black;
  margin: 0;
}

/* -----------------------------------------------------------
   CARD
----------------------------------------------------------- */
.card {
  background: #F0F0F0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  padding: 1rem;
  max-width: 400px;
  width: 90%;
  text-align: left;
}

h1 {
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 10px;
}

/* -----------------------------------------------------------
   INFO LIST ITEMS
----------------------------------------------------------- */
.info-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.info-item {
  display: block;
  width: 100%;
  padding: 10px 15px;
  border-bottom: 1px dashed #AAC;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.info-item:last-child {
  border-bottom: none;
}

.info-item:hover {
  background-color: silver;
  transform: scale(1.01);
}

.info-item:active {
  background-color: aqua;
}

/* -----------------------------------------------------------
   POPUP TAG
----------------------------------------------------------- */
.popup {
  display: inline-block;
  background-color: aqua;
  color:#EEEEFF;
  padding: 5px 10px;
  border-radius: 5px;
  margin-left: 10px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.popup.visible {
  visibility: visible;
  opacity: 1;
}

/* -----------------------------------------------------------
   IMAGE SECTION
----------------------------------------------------------- */
#imagecontainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  text-align: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

#imagecontainer.show {
  opacity: 1;
}

#imagecontainer img {
  max-width: 250px;
  width: 100%;
  margin-top: 8px;
}

/* -----------------------------------------------------------
   CENTERED MODAL
----------------------------------------------------------- */
#infoModal {
  position: fixed;
  inset: 0;
  display: block;
  background: rgba(0,0,0,0.6);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

#infoModal.visible {
  visibility: visible;
  opacity: 1;
}

#infoModal .modal-content {
  background: dodgerblue !important;
  color:#FFFFFF !important; /*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX text-shadow:10px 11px 2px #CDF, -13px -14px 1px #ACE;  XXXXXXXXXXXXXXXXXXXXX*/

  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);

  padding: 1em;
  width: 85%;
  max-width: 450px;
  max-height: 10rem;
  min-height: 6rem;
  overflow-y: auto;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  font-size: 1.4em;
  border-radius: 12px;
}

#infoModal .close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color:#FFFFFF !important;
}

/* Small screens */
@media(max-width: 480px) {
  #infoModal .modal-content,
  #modalText {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  #infoModal .modal-content {
    width: 90vw;
    max-width: 90vw;
  }
}

/* -----------------------------------------------------------
   SPINNER
----------------------------------------------------------- */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.4);
  border-top: 3px solid #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.spinner.visible {
  display: inline-block;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* -----------------------------------------------------------
   TOAST MODAL
----------------------------------------------------------- */
#toastModal {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 50vw;
  min-width: 200px;
  background: #fff;
  color: #003366;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: none;
  text-align: center;
  z-index: 10;
}

#toastModal.visible {
  display: block;
  bottom: 60px;
}

/* -----------------------------------------------------------
   CONSENT BOX
----------------------------------------------------------- */
.consent-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
}

.consent-box {
  background: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.consent-text {
  font-size: 18px;
  margin-bottom: 20px;
}

.btn {
  margin: 10px;
  padding: 10px 25px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  color: #FFFFFF;
}

.btn.yes { background-color: #28a745; }
.btn.no { background-color: #dc3545; }
.btn:hover { opacity: 0.85; }

/* -----------------------------------------------------------
   JS WARNING
----------------------------------------------------------- */
#js-warning {
  display: block;
  visibility: visible;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffcccc;
  color: #900;
  padding: 20px 30px;
  border: 2px solid #900;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Screen reader text */
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* -----------------------------------------------------------
   LINKS
----------------------------------------------------------- */
a, a:link, a:visited, a:focus, a:hover {
  color: #333;
  text-decoration: none;
}