body {
  /* default dark theme*/
  --first-layer: #01ff8deb;
  --second-layer: white;
  --third-layer: rgb(0, 255, 234);
  --forth-layer: #ffd500;
  --fifth-layer: rgb(255, 119, 232);
  --sixth-layer: rgb(255, 110, 146);
  --seventh-layer: rgb(118, 139, 255);
  --eight-layer: rgb(173, 255, 111);
  --color1: #eeeeee;
  --color2: rgb(26, 26, 26);
  --color3: grey;
  --color4: rgb(48, 48, 48);
  --color5: rgba(109, 109, 109, 0.353);

  --submitColor: rgb(61, 123, 216);
  --searchColor: rgb(48, 48, 48);
  --logoColor: #eeeeee;
  --subdivColor1: #333333;
  --subdivColor2: #222222;
  /* background-image: url("images/background_image_dark.webp"); */
  background-color: #121212;
  /* Dark base color */
  background-image:
    repeating-linear-gradient(-37deg,
      /* Angle of the lines */
      #1e1e1e,
      /* Line color */
      #1e1e1e 1px,
      /* Line thickness */
      transparent 1px,
      /* Space after line */
      transparent 8px
      /* Distance between lines */
    );

  margin: 0px auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --buttonFontWeight: 400;
  --headerColor: linear-gradient(135deg,
      rgb(1, 92, 203),
      rgb(218, 58, 98),
      rgb(200, 22, 170));
  --topNavActive: linear-gradient(134deg,
      rgb(171, 7, 135),
      rgb(130, 1, 102));

}

body.light {
  --first-layer: #02b263eb;
  --second-layer: #555555;
  --third-layer: rgb(5, 163, 150);
  --forth-layer: #bb9c1e;
  --fifth-layer: rgb(188, 66, 167);
  --sixth-layer: rgb(237, 62, 106);
  --seventh-layer: rgb(93, 117, 255);
  --eight-layer: rgb(103, 148, 68);
  --color1: rgb(19, 19, 19);
  --color2: #ffffff;
  --color3: grey;
  --color4: #eeeeee;
  --logoColor: #dddddd;
  --subdivColor1: #eeeeee;
  --subdivColor2: #ffffff;

  --submitColor: rgb(61, 123, 216);
  --searchColor: rgb(239, 239, 239);
  background-color: #f5f5f5;
  /* Dark base color */
  background-image:
    repeating-linear-gradient(-37deg,
      /* Angle of the lines */
      #ededed,
      /* Line color */
      #ededed 1px,
      /* Line thickness */
      transparent 1px,
      /* Space after line */
      transparent 8px
      /* Distance between lines */
    );
  --buttonFontWeight: 600;

}


#boxContainer {
  display: flex;
  flex-direction: column;
  margin-top: 50px;
  /* default for mobile */
}


/* Styles for desktop view (min-width: 768px) */
@media screen and (min-width: 768px) {
  #imgDiv {
    max-width: fit-content;
  }

  #boxContainer {
    display: flex;
    /* Make sure it's flex */

    flex-direction: row;
    /* side by side */
  }

  #box1 {
    flex: 0 0 66%;
  }

  #box2 {
    flex: 0 0 33%;
    position: sticky;
    top: 0;
    align-self: flex-start;
    /* Ensures sticky works inside flexbox */
    height: fit-content;
    /* Prevents stretching */
  }


}

/* Styles for mobile view (max-width: 768px) */

@media screen and (max-width: 768px) {
  #modalImage {
    max-width: 95%;
  }
}

#box1 {
  min-height: 75vh;
  overflow: hidden;
}

#box2 {
  padding: 30px 5px 5px 5px;
  border-left: 1px solid var(--color3);
}


#topNav {
  display: flex;
  height: 35px;
  flex-direction: row;
  justify-content: flex-start;
  padding-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
  gap: 10px
}

.topNavItem {
  border-radius: 20px;
  background: var(--color2);
  color: var(--color3);
  width: fit-content;
  text-align: center;
  align-items: center;
  margin: 0px;
  padding: 7px 15px;
  cursor: pointer;
  font-size: 12px;
  align-self: center;
  border: 1px solid var(--color4);

}

.topNavItem.active {
  background: var(--topNavActive);
  color: var(--color1);
  font-weight: bold;

}





#demoImg {
  width: 90%;
}


button {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  cursor: pointer;
  -webkit-user-select: text;
  /* Allows text selection */
  user-select: text;
  /* Allows text selection */
  font-weight: var(--buttonFontWeight);
  background: none;
  border: none;
  display: flex;
  flex-direction: row;
  margin-bottom: 5px;
  margin-top: 5px;
  width: 100%;
  justify-content: left;

}



.myLink {
  display: block;
  color: var(--color1);
  font-style: italic;
  text-overflow: ellipsis;
  font-size: 14px;
}

footer>a {
  font-style: italic;
  color: grey;
  justify-content: center;
  display: flex;
  text-decoration: none;
  margin-bottom: 20px;

}

footer {
  margin-bottom: 0px;
  bottom: 0;
  width: 100%;

}



header {
  position: fixed;
  z-index: 4;
  top: 0;
  left: 0;
  background: var(--headerColor);
  color: white;
  height: 50px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  text-align: center;
  display: flex;
  /* Enables flexbox layout */
  align-items: center;
  /* Centers items vertically within the header */
  transition: top 0.3s;
}



#logo {
  width: 30px;
  height: 30px;
  margin-left: 10px;
  padding: 3px;
  border-radius: 20px;
  background-color: white;
}



#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 {
  border-bottom: 1px solid var(--color3);
  cursor: pointer;
  padding: 5px 0px;
  margin-top: 5px;
  margin-bottom: 5px;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;



}

.qtList>span {
  color: var(--color1);
  padding: 5px;
  display: block;
  margin-left: 10px;

}



.qtList:active {
  outline: none;
}



.dataQtContainer {
  max-height: 0;
  transition: max-height 0.5s ease;
  border: 1px solid var(--color3);
  margin-top: 5px;
  border-radius: 5px;
  padding-left: 10px;
  padding-right: 5px;
  padding-bottom: 10px;
  background: rgba(255, 255, 255, 0.119);


}



.dataQtContainer.show {
  max-height: 800px;
  transform: translateY(0);

}

.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: uppercase;
  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-width: 5px;
  border-style: solid;
  border-image: linear-gradient(to right, #5101fd, #ff7e06, #ff00a8) 1; */
  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;
  /* box-shadow: 0 0 3px rgb(249, 249, 249), 0 0 6px rgba(0, 255, 247, 0.74); */
  /* Optional animation for a pulsing glow effect */

}




.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;

}

.imgStar {
  display: none;
  /* hidden for now */
  height: 15px;
  width: 15px;
  margin-left: auto;
}







/* myImages class that show image in notes (not zoomed in) */
.myImages {
  width: auto;
  max-width: 95%;
  margin: 0px auto;
  z-index: 0;
}




.toolTip {
  display: block;

  font-size: 12px;
  color: grey;
  font-style: italic;
}


/* Slide In from Right */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Slide In from Left */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}


/* Utility classes */
.slide-in-right {
  animation: slideInRight 0.1s ease forwards;
}



.slide-in-left {
  animation: slideInLeft 0.1s ease forwards;
}




#rotateBtn {
  position: absolute;
  top: 15px;
  left: 35px;
  color: #f1f1f1;
  font-size: 34px;
  font-weight: bold;
  border-radius: 5px;
  transition: 0.3s;
  padding: 5px;
}

#rotateBtn:hover {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
  background-color: #ffffff55;
}




#clearText {

  color: var(--color1);
  font-size: 28px;
  margin: 0 10px;
  cursor: pointer;
  visibility: hidden;

}

/* FLOAT BUTTON EXPAND COLLAPSE ALL  */
.fab-container {
  display: none;
  flex-direction: row;
  /* Stack buttons vertically */
  position: fixed;
  /* Keeps the buttons in place during scroll */
  top: 50%;
  /* Distance from top */
  left: -90px;
  /* Distance from left */
  transform: rotate(-90deg);
  gap: 10px;
  z-index: 10;
}

.fab {
  width: 100px;
  height: 25px;
  border-radius: 5px;
  background: rgba(126, 126, 126, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.fab:active {
  background-color: #ae0160;
}

/* FLOAT BUTTON EXPAND COLLAPSE ALL  */


#searchDiv {
  display: flex;
  align-items: center;
  width: 100%;
  margin-left: 10px;
  padding-left: 10px;
  height: 35px;
  border-radius: 10px;
  background: #ffffff2a;
}

#searchTopic {
  width: 100%;
  font-size: 12px;
  border: none;
  font-size: 14px;
  background: none;
  color: var(--color1);
}

#searchTopic::placeholder {
  color: #c9c9c9;
  font-size: 14px;

}

#searchTopic:focus {
  outline: none;
}


#searchQtDiv,
#searchTiDiv {
  display: none;
  align-items: center;
  width: 100%;
  margin-left: 10px;
  padding-left: 10px;
  height: 35px;
  border-radius: 10px;
  background: #ffffff2a;
}

#searchQt,
#searchTi {
  width: 100%;
  font-size: 12px;
  border: none;
  font-size: 14px;
  background: none;
  color: var(--color1);
}

#searchQt::placeholder,
#searchTi::placeholder {
  color: #c9c9c9;
  font-size: 14px;

}

#searchQt:focus,
#searchTi:focus {
  outline: none;
}


#clearQt,
#clearTi {
  visibility: hidden;
  color: var(--color1);
  font-size: 28px;
  margin: 0 10px;
  cursor: pointer;


}




#searchContentDiv {
  display: none;
  flex-direction: row;
  align-items: center;
  border-radius: 10px;
  background: #ffffff2a;
  width: 100%;
  height: 35px;
  margin-left: 10px;
  padding-left: 10px;
  padding-right: 10px;
}

#searchContent {
  width: 100%;
  font-size: 12px;
  border: none;
  font-size: 14px;
  background: none;
  color: var(--color1);


}

#searchContent::placeholder {
  color: #c9c9c9;
  font-size: 14px;


}

#searchContent:focus {
  outline: none;
}



#searchCounter {
  justify-content: center;
  margin: auto 0px;
  color: var(--color1);
  font-style: italic;
  border-radius: 10px;
  width: auto;
  font-size: 12px;
  text-align: center;

}

#closeSearchContent {
  color: var(--color1);
  margin: auto 0px;
  width: 50px;
  text-align: center;
  visibility: hidden;
}




#goPrev {
  cursor: pointer;
  color: var(--color1);
  margin: auto 0px;
  width: 50px;
  text-align: center;
  visibility: hidden;

}

#goNext {
  visibility: hidden;
  cursor: pointer;
  color: var(--color1);
  margin: auto 0px;
  width: 50px;
  text-align: center;


}

/* google font  */
.material-symbols-outlined {

  font-variation-settings:
    'FILL' 0,
    'wght' 300,
    'GRAD' 0,
    'opsz' 24
}

/* #searchButton {
  border: 1px solid var(--color1);
  color: var(--color1);
  border-radius: 5px;
  width: 20%;
  justify-content: center;
  margin: 3px;
  padding: 3px;

} */



.dummyLabel {
  display: none;
}

#category_select {
  position: relative;
  border: none;
  width: 100%;
  background: none;
  margin-left: 15px;
  font-size: 16px;
  height: 37px;
  z-index: 1;
  padding: 5px;
  border-radius: 0px 0px 5px 0px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color: var(--color1);

}

#category_select>option {
  background-color: var(--color2);
}

#category_select:focus {
  outline: none;
}

#expand_icon {
  position: absolute;
  right: 0px;
  z-index: 0;
}

/* remove blue rectable background on clicks */
* {
  -webkit-tap-highlight-color: transparent;
}


.myList {
  /* cursor: pointer; */
  display: flex;
  flex-direction: column;
  list-style-type: none;
  color: var(--color1);
  align-items: center;
  margin: 0px auto;
  padding: 0px;


}


#tiDiv {
  margin-top: 20px;
  color: white;
  /* font-style: italic; */
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  row-gap: 20px;
  column-gap: 20px;
}

.tiClass {

  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  width: 100px;



}

.tiClass>img {
  height: 100px;
  width: 100px;
  object-fit: cover;
  object-position: top left;
  border-radius: 8px;

}

.tiClass>span {
  font-size: 12px;
  padding-top: 10px;
  text-align: center;
}


.myList>li {
  border-bottom: 1px solid grey;
  width: 90%;
  padding: 10px 15px;
  margin-bottom: 3px;
  cursor: pointer;
  transition: background-color 0s, transform 0s;

}

.myList>li:hover {
  background-color: rgba(255, 255, 255, 0.15);
  /* transform: scale(1.01); */
  /* Optional shrinking effect */

}

.myList>li:active {
  background-color: rgba(255, 255, 255, 0.46);
  /* transform: scale(1.01); */
  /* Optional shrinking effect */

}



#ncd li {
  border-left: 3px solid var(--first-layer);
}

#cd li {
  border-left: 3px solid var(--seventh-layer);
}

#mch li {
  border-left: 3px solid var(--second-layer);
}

#paeds li {
  border-left: 3px solid var(--third-layer);
}


#emerge li {
  border-left: 3px solid var(--forth-layer);
}

#pharma li {
  border-left: 3px solid var(--fifth-layer);
}

#proc li {
  border-left: 3px solid var(--sixth-layer);
}


.myList li:not(.listHeader) {
  display: none;
}




#ncd .listHeader {
  color: var(--first-layer);
  border-bottom: 1px solid grey;
  border-left: none;
  width: 90%;
  padding: 10px 10px;
  margin-bottom: 3px;
  font-weight: bold
}

#cd .listHeader {
  color: var(--seventh-layer);
  border-bottom: 1px solid grey;
  border-left: none;
  padding: 10px 10px;
  margin-bottom: 3px;
  font-weight: bold
}

#mch .listHeader {
  color: var(--second-layer);
  border-bottom: 1px solid grey;
  border-left: none;
  padding: 10px 10px;
  margin-bottom: 3px;
  font-weight: bold
}

#paeds .listHeader {
  color: var(--third-layer);
  border-bottom: 1px solid grey;
  border-left: none;
  padding: 10px 10px;
  margin-bottom: 3px;
  font-weight: bold
}

#emerge .listHeader {
  color: var(--forth-layer);
  border-bottom: 1px solid grey;
  border-left: none;
  padding: 10px 10px;
  margin-bottom: 3px;
  font-weight: bold
}

#pharma .listHeader {
  color: var(--fifth-layer);
  border-bottom: 1px solid grey;
  border-left: none;
  padding: 10px 10px;
  margin-bottom: 3px;
  font-weight: bold
}

#proc .listHeader {
  color: var(--sixth-layer);
  border-bottom: 1px solid grey;
  border-left: none;

  padding: 10px 10px;
  margin-bottom: 3px;
  font-weight: bold
}


.listHeader {
  font-size: 14px;
  width: 95%;
  display: flex;
  align-items: center;

}

#about_us_div {
  position: fixed;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  z-index: 5;
  font-size: 14px;
  background-color: var(--color2);
  color: var(--color1);
  max-width: 400px;
  width: 80%;
  padding: 20px;
  display: none;
  border-radius: 5px;
  border: 1px solid white;
  margin: 70px auto 70px;
  flex-direction: column;
  text-align: justify;
  overflow-y: auto;
}



.card_view {
  position: fixed;
  /* Or use absolute if inside a container */
  top: 50%;
  /* Adjust the top position as needed */
  left: 50%;
  /* Center horizontally */
  transform: translate(-50%, -50%);
  /* Center the card */
  z-index: 5;
  /* Ensure it appears above other content */
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
  width: 90%;
  /* max-width: 400px; */
  background-color: var(--subdivColor1);
  color: var(--color1);
  display: none;
  flex-direction: column;
  padding: 10px;
  overflow: hidden;
  /* Prevent overflow of the entire card */
  scrollbar-width: none;
  /* Hide scrollbar in Firefox */
  -ms-overflow-style: none;
  /* Hide scrollbar in IE/Edge */
  max-height: 90%;
  /* Prevent the card from exceeding the viewport height */
}

.card_view_header {
  position: sticky;
  top: 0;
  /* Keep the header at the top */
  z-index: 1;
  /* Ensure the header stays on top of the content */
  background-color: var(--subdivColor1);
  /* Match header background to card */
  padding: 5px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
  /* Optional: Add a border under the header */
}

.closeBtnCommon {
  right: 10px;
  color: var(--color1);
  cursor: pointer;
  font-size: 30px;
}

.card_view_content {
  overflow-y: auto;
  /* Enable vertical scrolling for the content */
  padding: 10px;
  max-height: calc(100% - 50px);
  /* Adjust height to account for header */
  flex-grow: 1;
  /* Ensure content fills available space */
}




.card_view::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar in Webkit browsers */
}

#ref_link_bg_image {
  font-style: italic;
  color: var(--color3);
  text-align: center;
  font-size: 14px;
}




#advertTitle {
  display: block;
  color: var(--color3);
  letter-spacing: 12px;
  font-size: 12px;
  text-align: center;
}



/* CSS to prevent scrolling when the div is shown */
.no-scroll {
  overflow: hidden;
}

#infoFlowchart {
  font-style: italic;
  font-size: 10px;
  color: var(--color3);
}

#general_modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 2;
  width: 100vw;
  /* Semi-transparent black */
  background-color: rgba(0, 0, 0, 0.7);
}

#imgDiv {
  max-height: 80vh;
  width: 95%;
  overflow: auto;
  justify-content: center;
  top: 50%;
  left: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  position: fixed;
}

#flowChartId {
  position: fixed;
  background: white;
  top: 50%;
  left: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  overflow: scroll;
  max-width: 95%;
  width: 95%;
  height: 500px;
  max-height: 90vh;
  padding: 10px;
  display: none;
}

#modalImage {
  display: none;
  margin: 10px auto 0px auto;

}

#youtube_div {
  display: none;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-shadow: 0 0 5px var(--color3);
  justify-content: center;
  background-color: var(--color2);
  margin: auto;
  z-index: 5;
  width: 75%;
  max-width: 400px;
  padding: 10px 2px;
  position: fixed;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  border: 1px solid var(--color3);
}

#feedback_div {
  display: none;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-shadow: 0 0 5px var(--color3);
  flex-direction: column;
  justify-content: center;
  background-color: var(--color2);
  margin: auto;
  width: 75%;
  max-width: 400px;
  padding: 10px 2px;
  z-index: 5;
  position: fixed;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  border-radius: 7px;
  border: 1px solid var(--color3);
}

#feedback_form {
  margin: auto;
  width: 90%;
  display: flex;
  flex-direction: column;
  padding: 10px;
}

#feedback_title {
  color: var(--color1);
  text-align: center;
  margin: 5px 0px 10px;
}

form>label {
  color: var(--color1);

}

.highlighted {
  background-color: orange;
  color: black;
}

.current_highlighted {
  background-color: yellow;
  color: black;
}




#topic_feedback {
  margin-top: 7px;
  width: 95%;
  border: 1px solid var(--color3);
  padding: 7px;
  color: var(--color1);
  background-color: var(--color4);
}

#feedback {
  margin-top: 7px;
  padding: 7px;
  width: 95%;
  height: 100px;
  color: var(--color1);
  max-height: 200px;
  background-color: var(--color4);
}

#topic_feedback:focus,
#feedback:focus {
  outline: 2px solid var(--color3);
}

#close_feedback {
  display: flex;
  position: absolute;
  top: 7px;
  right: 10px;
  color: var(--color1);
  font-size: 30px;
  justify-content: flex-end;
  cursor: pointer;

}

#close_about_us {
  display: flex;
  position: absolute;
  top: 7px;
  right: 10px;
  color: var(--color1);
  font-size: 30px;
  justify-content: flex-end;
  cursor: pointer;

}

#feedback_thanks {
  color: var(--color1);
  justify-content: center;
  margin: 0 auto;
}

#submitFeedback {
  height: 35px;
  background-color: var(--submitColor);
  border: none;
  justify-content: center;
  display: flex;
  align-items: center;
  color: var(--color1);
  border-radius: 5px;
}

#toast {
  visibility: hidden;
  min-width: 100px;
  background-color: var(--color3);
  color: white;
  text-align: center;
  border-radius: 2px;
  position: fixed;
  z-index: 1;
  transform: translate(-50%);
  left: 50%;
  padding: 10px;
  top: 110px;
  font-size: 15px;
  border-radius: 5px;
}

#toast.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 1.5s;
  animation: fadein 0.5s, fadeout 0.5s 1.5s;
}

@-webkit-keyframes fadein {
  from {
    top: 0;
    opacity: 0;
  }

  to {
    top: 110px;
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    top: 0;
    opacity: 0;
  }

  to {
    top: 110px;
    opacity: 1;
  }
}

@-webkit-keyframes fadeout {
  from {
    top: 110px;
    opacity: 1;
  }

  to {
    top: 220px;
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    top: 110px;
    opacity: 1;
  }

  to {
    top: 220px;
    opacity: 0;
  }
}


/* for light dark theme switch */

.container {
  display: flex;
  justify-content: center;
  align-items: center;


}

.switch {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 25px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #004a87;
  ;
  transition: 0.4s;
  border-radius: 34px;

}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 5px;
  bottom: 5px;
  background-image: url("images/moon.webp");
  background-size: cover;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #eeeeee;
  /* Blue color for dark mode */
  border: 1px solid var(--color3);
}

input:checked+.slider:before {
  transform: translateX(20px);
  background-image: url("images/sun.webp");


}




.bold {
  font-weight: bold;
  text-decoration: underline;
}

.myIcon {

  display: inline-block;
  width: 25px;
  margin-right: 10px;
  /* Size of the circle */
  height: 25px;
  /* Size of the circle */
  border-radius: 50%;
  /* Makes the shape a circle */
  background-color: #ffffff;
  /* Background color */
  text-align: center;
  line-height: 25px;
  /* Vertically center the emoji */
  font-size: 18px;
  /* Size of the emoji */
  border: 2px solid var(--color3)
    /* Optional: border around the circle */

}