:root {
  --z-index-5: 50;
  --z-index-4: 40;
  --z-index-3: 30;
  --z-index-2: 20;
  --z-index-1: 10;

  --circle-width: min(10vw, 11vh);
  --circle-height: min(10vw, 11vh);
}

.popup {
  text-align: left;
  padding: 20px;
  p {
    margin-bottom: 10px;
  }
}

.main-headline {
  position: absolute;
  top: var(--t-main-headline);
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-weight: bold;
  transform: translate(-50%, -50%);
  font-size: clamp(20px,3.8vw, 32px);
  &.palestine {
    left: var(--l-main-palestine);
    color: white;
  }
  &.genocide {
    transform: translate(-50%, -50%);
    left: var(--l-main-genocide);
  }
}

.subhead {
  position: absolute;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-weight: bold;
  font-size: clamp(10px, min(2.8vw,6vh), 30px);
  transform: translate(-50%, -50%);
  color: white;
  &.people {
    left: var(--l-sub-people);
    top: var(--t-sub-people);
  }
  &.countries {
    left: var(--l-sub-countries);
    top: var(--t-sub-countries);
  }
}

.date-widget {
  &.dw-pa {
    left:none;
    right: 2px;
    top: 1px;
  }
}

.day-count {
  &.dc-pa {
    font-size: clamp(12px, 1.8vw, 28px);
    transform: translate(-50%, -50%);
    top: 2%;
    right: 23%;
  }
}


.image-cycler {
  position: absolute;
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}


@keyframes sheroCycle {
  0%   { /* placeholder for possible future animation */ }
  50%  { /* placeholder for possible future animation */ }
} 
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fade-out-news {
  animation: fadeOut 5.0s linear;
}

.fade-out {
  animation: fadeOut 0.5s forwards;
}

.fade-in {
  animation: fadeIn 0.5s forwards;
}

.converts {
  display: none;
  position: absolute;
  z-index: var(--z-index-3);
  left: 10%;
  top: 60%;
  border: black solid 1px;
  width: 300px;
  height: 150px;
  background-color: purple;
}

.bomb-container {
  position: absolute;
  left: var(--l-bomb);
  top: var(--t-bomb);
  width: 20vw;
  height: auto;
  max-width: 100vw;
}

.bomb {
  width: 100%;
  height: auto;
  display: block;
}

.bomb-overlay {
  position: absolute;
  top: -5px;
  left: -12%;
  width: 100%;
  height: 100%;
  color: white;
  text-shadow: 1px 1px 3px black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  padding: 10px;
  box-sizing: border-box;
  div {
    margin: 1px 0;
  }
}
.bomb-title {
  font-size: clamp(8px, 1.0vw, 16px);
  font-weight: bold;
  text-align: center;
}

.bomb-gaza {
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: bold;
  color: red;
  text-align: center;
}

.bomb-other {
  font-size: clamp(8px, 1.0vw, 14px);
  font-weight: bold;
  text-align: center;
}

.bomb-title {
  margin-bottom: 3px;
}

.bomb-popup.pa-popup {
  position: absolute;
  top: 100%;
  right: 100%;
  transform: translate(0, -45%);
  width: clamp(320px, 30vw, 500px);
  height: 80vh;
  background-color: red;
}

.shrinking-box {
  position: absolute;
  width: 30vw;
  height: 20vh;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #222;
  color: white;
  z-index: var(--z-index-5);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 1s ease-in-out 1s;
}

.shrinking-box.shrink {
  width: 5vw;
  height: 2vh;
  top: 5px;
  left: 5px;
  transform: none;
}

.pa-tooltip {
  position: absolute;
  top: 100%;
  margin-top: 0.25rem;
  z-index: 50;
  background-color: white;
  border: 1px solid #ccc;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-size: 0.875rem;
  max-width: 90vw;
  overflow: scroll;
  display: none;
}

.pa-tooltip:not(.hidden) {
  display: block;
}

.un {
  position: absolute;
  left: 2%;
  top: 20%;
  img {
    width: 7vw;
  }
}

.person-tt {
  max-height: 30vh;
}



.companies {
  left: var(--l-companies);
  top: var(--t-companies);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pa-company {
  width: var(--circle-width);
  height: var(--circle-height);
  border: 4px solid red;
  /* border-radius: 50%; */
  overflow: hidden;
  border-radius: 10%;
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.company-details {
  width: clamp(100px,20vw, 240px);
  height: 30vh;
  padding: 0 4px;
  border: black 1px solid;
  border-radius: 5%;
  &.pa-tooltip {
    bottom: 100%;
    right: 0;
    top: auto;
  }
}
