/* =====================================================
   topic-view.css  -  Topic view: popup, quick-topics, tooltips, menu, tree
   Split from gpnotesv4.css (original lines 294-767)
   ===================================================== */

#container2div {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1;
  display: none;
  width: 100%;
  height: 100%;
  background: rgb(0, 0, 0, 0.5);
  justify-content: center;
  animation: zoom 0.3s ease-in-out forwards;


}

#container2content {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--color1);
  border-radius: 10px;
  width: 90%;
  z-index: 2;
  margin-top: 50px;
  margin-bottom: 20px;
  background: var(--color2);
}

#container2header {
  height: 50px;
  width: 100%;
  display: flex;
  flex-direction: row;
  border-radius: 10px 10px 0px 0px;
  border-bottom: 1px solid var(--color3);
  color: var(--color1);
  background: var(--headerColor);
}

#topic2header {
  width: 90%;
  margin: auto 0px auto 10px;
  text-transform: capitalize;
  text-align: center;
}

#close2container {
  width: 10%;
  text-align: center;
  margin: auto 10px auto 0px;
  font-size: 30px;
}

#container2 {
  display: flex;
  width: 100%;
  flex-direction: column;
  overflow: auto;

}




#mainListDiv {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#container {
  display: flex;
  flex-direction: column;

}

#qtDiv {
  flex-direction: column;

}

#frag1 {
  display: block;
  padding: 5px 10px 20px 10px;

}



#frag2 {
  display: none;
  padding: 5px 10px 20px 20px;
}

#frag3 {
  display: none;
  padding: 5px 10px 20px 20px;

}

.qtList {
  cursor: pointer;
  margin: 6px 0;
  border-radius: 10px;
  border-left: 3px solid var(--third-layer);
  background: var(--color4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.qtList::after {
  content: '›';
  color: var(--third-layer);
  font-size: 20px;
  padding-right: 14px;
  flex-shrink: 0;
}

.qtList>span {
  color: var(--color1);
  padding: 12px 8px 12px 14px;
  display: block;
  font-size: 14px;
  flex: 1;
}

.qtList:hover {
  transform: translateX(3px);
  background: var(--subdivColor1);
}

.qtList:active {
  outline: none;
  transform: translateX(1px);
}



.qtPopupOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.qtPopupOverlay.show {
  opacity: 1;
}

.dataQtContainer {
  background: var(--bg-color, #1e1e2e);
  border: 1px solid var(--color3);
  border-radius: 10px;
  padding: 0 15px 15px;
  width: min(520px, 90vw);
  max-height: 75vh;
  overflow-y: auto;
  transform: scale(0.92);
  transition: transform 0.2s ease;
}

.dataQtContainer.show {
  transform: scale(1);
}

.qtPopupTitle {
  color: var(--color1);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 0 10px;
  border-bottom: 1px solid var(--color3);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--bg-color, #1e1e2e);
}

.qtPopupClose {
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--color1);
  opacity: 0.6;
  padding: 0 4px;
}

.qtPopupClose:hover {
  opacity: 1;
}

.qtText {
  color: var(--color1);
  font-size: 13px;
  /* font-family: cursive; */
  margin: 5px 0px 0px 10px;
  display: flex;
  flex-direction: row;
  padding-top: 3px;
}

.highlightedMed {
  font-size: 14px;
  font-weight: 600;
  position: relative;
  color: white;
  background: #004a87;
  border-radius: 5px;
  padding: 0px 5px;

}

.medTooltip {
  position: absolute;
  z-index: 10;
  width: 240px;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-top: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: pre-line;
  pointer-events: none;
  font-weight: 400;
  font-size: 13px;
  font-family: sans-serif;

}

#topBannerAds {
  width: 90%;
  height: auto;
  margin: 0 auto;
}

.tooltipTitle {
  text-transform: uppercase;
  font-weight: bold;
  font-size: 12px;


}

.tooltipTitle::before {
  content: "👶 ";
  /* or use "\1F48A" as Unicode */
}

.medTooltip.visible {
  opacity: 1;
  pointer-events: auto;
}

.tooltipClose {
  position: absolute;
  top: 1px;
  right: 8px;
  font-size: 26px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  color: #f00;
}


#menuButton {
  height: 20px;
  padding: 15px;
  visibility: 'hidden';

}

#dummyLayerMenu {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 3;
  /* Sit on top */
  padding-top: 100px;
  /* Location of the box */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0);
  /* Fallback color */

}



#myMenu {
  position: absolute;
  top: 40px;
  right: 15px;
  z-index: 3;
  border-radius: 5px;
  background-color: var(--color2);
  border: 1px solid var(--color3);
  display: none;
  flex-direction: column;
  padding: 10px;
}

.menuItems {
  text-align: left;
  font-size: 14px;
  margin: 5px 5px;
  color: var(--color1);
  display: block;

}




.mainDiv>button {

  color: var(--first-layer);
  border-bottom: 1px solid grey;
  /* border-radius: 5px; */
  font-weight: bold;
  min-height: 30px;
  text-transform: capitalize;
  display: flex;
  align-items: center;
  padding-top: 7.5px;
  padding-left: 0px;
  padding-bottom: 7.5px;
}

.subDiv>button {
  color: var(--second-layer);
}

.subDiv>div>button {
  color: var(--third-layer);
}

.subDiv>div>div>button {
  color: var(--forth-layer);
}

.subDiv>div>div>div>button {
  color: var(--fifth-layer);
}

.subDiv>div>div>div>div>button {
  color: var(--sixth-layer);
}

.subDiv>div>div>div>div>div>button {
  color: var(--seventh-layer);
}

.subDiv>div>div>div>div>div>div>button {
  color: var(--eight-layer);
}

.mainDiv {
  margin: 1px 5px;
  padding: 5px;
  background-color: none;
  border: none;
  display: flex;
  justify-content: center;
  flex-direction: column;
  border-radius: 7px;
  transition: padding 0.3s ease-in-out, margin 0.3s ease-in-out, max-height 0.3s ease-in-out;

}

.subDiv {
  background-color: var(--subdivColor1);
  border: 0px solid var(--color3);
  border-radius: 7px;
  width: auto;
  padding: 0px;
  margin: 0px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color2);
  max-height: 0px;
  transition: padding 0.3s ease-in-out, margin 0.3s ease-in-out, max-height 0.3s ease-in-out;
}




.subDiv div {
  background-color: var(--subdivColor2);
  border: none;
  width: auto;
  padding: 0px;
  margin: 0px;
  border-radius: 7px;
  max-height: 0px;
  transition: padding 0.3s ease-in-out, margin 0.3s ease-in-out, max-height 0.3s ease-in-out;
  overflow: hidden;
}

.subdiv div>div {
  background-color: var(--subdivColor3);
  border: none;
  width: auto;
  padding: 0px;
  margin: 0px;
  border-radius: 7px;
  max-height: 0px;
  transition: padding 0.3s ease-in-out, margin 0.3s ease-in-out, max-height 0.3s ease-in-out;
  overflow: hidden;
}

.buttonHeader {
  display: flex;
  flex-direction: row;

}

.bullets {
  margin-right: 10px;
  margin-left: 6px;
  width: 5px;
  height: 15px;
  font-weight: bold;


}

.buttonText {
  text-align: left;
  text-wrap: wrap;
  font-size: 13px;
}

.mainDiv>.buttonHeader>.buttonText {
  /* first bullet points */
  font-size: 16px;
}

.imgStar {
  display: none;
  /* hidden for now */
  height: 15px;
  width: 15px;
  margin-left: auto;
}


/* myImages class that show image in notes (not zoomed in) */
