/* Custom Download Button Color */
.custom-download-btn {
  background-color: #9AA6B2 !important;
  border-color: #9AA6B2 !important;
  color: #fff !important;
}
.custom-download-btn:hover, .custom-download-btn:focus {
  background-color: #7e8a99 !important;
  border-color: #7e8a99 !important;
  color: #fff !important;
}
/* Custom width utility for 80% on large screens */
@media (min-width: 992px) {
  .w-lg-80 {
    width: 80% !important;
  }
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background: #9AA6B2;
    color: #ffffff;
    padding: 10px 0;
    text-align: center;
}

h1 {
    margin: 0;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

footer {
    background: #35424a;
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

.button {
    display: inline-block;
    font-size: 16px;
    color: #ffffff;
    background: #e8491d;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.button:hover {
    background: #c0392b;
}

.figure-overlay {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 6px; 
    border: 0px solid rgba(0,0,0,0.1);
    line-height: 1.2;
}




/* Removidos os estilos genéricos antigos:
   .overlay-iliac-prox, .overlay-iliac-medio, .overlay-iliac-dist, .overlay-iliac-externa */

.aneurysm-figure {
  position: relative;
  display: inline-block;
  line-height: 0;
  max-width: 700px; /* ou o valor desejado */
  width: 100%;
  margin: 2rem auto;
}
.aneurysm-figure > img {
  display: block;
  width: 100%;
  height: auto;
}

/* Exemplo: supondo imagem 800x1000px (ajuste para o seu caso real!) */
.overlay-prox {
  position: absolute;
  left: 14.8%;      /* 40 / 800 * 100 */
  top: 26.8%;      /* 110 / 1000 * 100 */
  transform: translate(-50%, -50%);
  font-size: calc(1.1vw + 2px);
  color: #004aad;
  font-weight: 500;
  pointer-events: none;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 2px 1px;
}

.overlay-dist {
  position: absolute;
  left: 14.8%;      /* 40 / 800 * 100 */
  top: 34%;      /* 140 / 1000 * 100 */
  transform: translate(-50%, -50%);
  font-size: calc(1.1vw + 2px);
  color: #004aad;
  font-weight: 500;
  pointer-events: none;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 2px 1px;
}
.overlay-max-aneurisma {
  position: absolute;
  left: 14.8%;      /* 40 / 800 * 100 */
  top: 44.8%;    /* 188 / 1000 * 100 */
  transform: translate(-50%, -50%);
  font-size: calc(1.1vw + 2px);
  color: #198754;
  font-weight: 500;
  pointer-events: none;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 2px 1px;
}
.overlay-bif-aorta {
  position: absolute;
  left: 14.8%;      /* 40 / 800 * 100 */
  top: 54.7%;      /* 230 / 1000 * 100 */
  transform: translate(-50%, -50%);
  font-size: calc(1.1vw + 2px);
  color: #198754;
  font-weight: 500;
  pointer-events: none;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 2px 1px;
}

/* Ilíaca Direita */
.overlay-iliac-right-prox {
  position: absolute;
  left: 14.8%;      /* 40 / 800 * 100 */
  top: 59.8%;    /* 252 / 1000 * 100 */
  transform: translate(-50%, -50%);
  font-size: calc(1.1vw + 2px);
  color: #C68fd0;
  font-weight: 500;
  pointer-events: none;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 2px 1px;
}
.overlay-iliac-right-medio {
  position: absolute;
  left: 14.8%;      /* 40 / 800 * 100 */
  top: 63.7%;    /* 269 / 1000 * 100 */
  transform: translate(-50%, -50%);
  font-size: calc(1.1vw + 2px);
  color: #C68fd0;
  font-weight: 500;
  pointer-events: none;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 2px 1px;
}
.overlay-iliac-right-dist {
  position: absolute;
  left: 14.8%;      /* 40 / 800 * 100 */
  top: 67.6%;    /* 286 / 1000 * 100 */
  transform: translate(-50%, -50%);
  font-size: calc(1.1vw + 2px);
  color: #C68fd0;
  font-weight: 500;
  pointer-events: none;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 2px 1px;
}
.overlay-iliac-right-externa {
  position: absolute;
  left: 14.8%;      /* 40 / 800 * 100 */
  top: 75.6%;    /* 321 / 1000 * 100 */
  transform: translate(-50%, -50%);
  font-size: calc(1.1vw + 2px);
  color: #C68fd0;
  font-weight: 500;
  pointer-events: none;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 2px 1px;
}

/* Ilíaca Esquerda */
.overlay-iliac-left-prox {
  position: absolute;
  left: 71%;     /* 720 / 800 * 100 (exemplo, ajuste conforme sua imagem) */
  top: 59.8%;    /* 252 / 1000 * 100 */
  transform: translate(-50%, -50%);
  font-size: calc(1.1vw + 2px);
  color: #198754;
  font-weight: 500;
  pointer-events: none;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 2px 1px;
}
.overlay-iliac-left-medio {
  position: absolute;
  left: 71%;     /* ajuste conforme necessário */
  top: 66.5%;      /* 280 / 1000 * 100 */
  transform: translate(-50%, -50%);
  font-size: calc(1.1vw + 2px);
  color: #198754;
  font-weight: 500;
  pointer-events: none;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 2px 1px;
}
.overlay-iliac-left-dist {
  position: absolute;
  left: 73.1%;     /* ajuste conforme necessário */
  top: 71.3%;    /* 302 / 1000 * 100 */
  transform: translate(-50%, -50%);
  font-size: calc(1.1vw + 2px);
  color: #198754;
  font-weight: 500;
  pointer-events: none;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 2px 1px;
}
.overlay-iliac-left-externa {
  position: absolute;
  left: 67.9%;     /* ajuste conforme necessário */
  top: 86%;    /* 362 / 1000 * 100 */
  transform: translate(-50%, -50%);
  font-size: calc(1.1vw + 2px);
  color: #198754;
  font-weight: 500;
  pointer-events: none;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 2px 1px;
}

/* Comprimentos */
.overlay-comprimento-colo {
  position: absolute;
  left: 76.7%;  /* 254 / 800 * 100 */
  top: 28%;    /* 116 / 1000 * 100 */
  transform: translate(-50%, -50%);
  font-size: calc(1.1vw + 2px);
  color: #198754;
  font-weight: 500;
  pointer-events: none;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 2px 1px;
}
.overlay-comprimento-l2 {
  position: absolute;
  left: 85%;  /* 282 / 800 * 100 */
  top: 41.7%;    /* 175 / 1000 * 100 */
  transform: translate(-50%, -50%);
  font-size: calc(1.1vw + 2px);
  color: #198754;
  font-weight: 500;
  pointer-events: none;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 2px 1px;
}
.overlay-comprimento-iliac-left {
  position: absolute;
  left: 51.6%;   /* 636 / 800 * 100 */
  top: 72.8%;    /* 309 / 1000 * 100 */
  transform: translate(-50%, -50%);
  font-size: calc(1.1vw + 2px);
  color: #198754;
  font-weight: 500;
  pointer-events: none;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 2px 1px;
}
.overlay-comprimento-iliac-right {
  position: absolute;
  left: 44.8%;   /* 148 / 800 * 100 */
  top: 80.3%;    /* 341 / 1000 * 100 */
  transform: translate(-50%, -50%);
  font-size: calc(1.1vw + 2px);
  color: #198754;
  font-weight: 500;
  pointer-events: none;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 2px 1px;
}

.overlay-angulo-proximal-c {
  position: absolute;
  left: 74%;      /* ajuste: (exemplo, 480 / 800 * 100) */
  top: 10.1%;       /* ajuste: (exemplo, 100 / 1000 * 100) */
  transform: translate(-50%, -50%);
  font-size: calc(1.1vw + 2px);
  color: #56514f;
  font-weight: 500;
  pointer-events: none;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 2px 1px;
}

/* Overlay for Ângulo Proximal I */
.overlay-angulo-proximal-i {
  position: absolute;
  left: 74%;      /* adjust as needed for anatomical position */
  top: 13.2%;       /* adjust as needed for anatomical position */
  transform: translate(-50%, -50%);
  font-size: calc(1.1vw + 2px);
  color: #56514f;
  font-weight: 500;
  pointer-events: none;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 2px 1px;
}

/* Overlay for Ângulo Iliaca Direita C */
.overlay-angulo-iliaca-direita-c {
  position: absolute;
  left: 36.8%;      /* adjust as needed for anatomical position */
  top: 95%;       /* adjust as needed for anatomical position */
  transform: translate(-50%, -50%);
  font-size: calc(1.1vw + 2px);
  color: #56514f;
  font-weight: 500;
  pointer-events: none;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 2px 1px;
}

/* Overlay for Ângulo Iliaca Direita I */
.overlay-angulo-iliaca-direita-i {
  position: absolute;
  left: 36.8%;      /* ajuste conforme necessário para a posição anatômica */
  top: 91.8%;       /* ajuste conforme necessário para a posição anatômica */
  transform: translate(-50%, -50%);
  font-size: calc(1.1vw + 2px);
  color: #56514f;
  font-weight: 500;
  pointer-events: none;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 2px 1px;
}

/* Overlay for Ângulo Iliaca Esquerda C */
.overlay-angulo-iliaca-esquerda-c {
  position: absolute;
  left: 74%;      /* ajuste conforme necessário para a posição anatômica */
  top: 95.2%;         /* ajuste conforme necessário para a posição anatômica */
  transform: translate(-50%, -50%);
  font-size: calc(1.1vw + 2px);
  color: #56514f;
  font-weight: 500;
  pointer-events: none;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 2px 1px;
}

/* Overlay for Ângulo Iliaca Esquerda I */
.overlay-angulo-iliaca-esquerda-i {
  position: absolute;
  left: 74%;      /* ajuste conforme necessário para a posição anatômica */
  top: 92%;     /* ajuste conforme necessário para a posição anatômica */
  transform: translate(-50%, -50%);
  font-size: calc(1.1vw + 2px);
  color: #56514f;
  font-weight: 500;
  pointer-events: none;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 2px 1px;
}

.overlay-l2-l3r {
  position: absolute;
  left: 88.5%;      /* ajuste conforme necessário */
  top: 49.6%;       /* ajuste conforme necessário */
  transform: translate(-50%, -50%);
  font-size: calc(1.1vw + 2px);
  color: #b22222;
  font-weight: 700;
  pointer-events: none;
  background: rgba(255,255,255,0.92);
  border-radius: 6px;
  padding: 2px 1px;
}

.overlay-l2-l3l {
  position: absolute;
  left: 88.5%;      /* ajuste conforme necessário */
  top: 54%;       /* ajuste conforme necessário */
  transform: translate(-50%, -50%);
  font-size: calc(1.1vw + 2px);
  color: #b22222;
  font-weight: 700;
  pointer-events: none;
  background: rgba(255,255,255,0.92);
  border-radius: 6px;
  padding: 2px 1px;
}

.info-box {
  background: #fff;
  border-radius: 1px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 14px 18px;
  min-height: 32px;
  font-size: calc(1.1vw + 4px);
  color: #333;
  text-align: left;
  max-width: 700px;
  margin: 0 0 1rem 0; /* Remove auto centering */
  word-break: break-word;
  width: 100%;
  /* Align with .aneurysm-figure */
  display: block;
}

/* Cor da fonte das abas inativas */
.nav-tabs .nav-link {
  color: #818b94;
  background-color: transparent;
}

/* Cor da aba ativa permanece padrão Bootstrap */
.nav-tabs .nav-link.active {
  color: #333;
  background-color: #fff;
}