@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap");

body {
	background-color: #efefef;
	color: #444;
}
a {
	color: #08f;
}
h1 {
	/*size: large;*/
  font-size: 2em;
  word-wrap: break-word;
}

.dg.ac {
    top: 80px !important;
}

@media only screen and (max-width: 800px) {
    .hide-on-mobile {
        display: none;
    }
/*    .resize-on-mobile {
        width: 100px;
    }*/
    .resize-on-mobile img {
      width: 100%;
      height: auto;
    }
    .resize-on-mobile h1 {
      size: 0.6em;
    }
    .resize-on-mobile h2 {
      size: 0.4em;
    }
    .resize-on-mobile li {
      font-size: 0.4em;
    }

}

/*#infoleft {
    background-color: rgba(255, 255, 255, 0.2);
}*/

.collapse-button {
  width:100%;
  padding: 0px;
  text-align: left;
  background-color: var(--elec-bg, #e3e3e3);
  border: 0px;
  cursor: pointer;
}
#collapse-erp {
  width:100%;
  padding: 0px;
  text-align: left;
  background-color: var(--elec-bg, #e3e3e3);
  border: 0px;
  cursor: pointer;
}

#collapse-info {
  width:100%;
  padding: 0px;
  text-align: left;
  background-color: var(--elec-bg, #e3e3e3);
  border: 0px;
  cursor: pointer;
}

.collapsible-content {
  display: block;
}

.collapsible-erp-content {
  display: block;
}

.collapsible-info-content {
    background-color: var(--elec-bg, #e3e3e3);
    padding: 10px;
}

#topleft {
  padding-left : 15px;
  padding-right : 15px;
  font-family: "Poppins", sans-serif; 
  color: var(--list-text, #000);
  position: fixed;
  pointer-events: none;
  /*z-index: 3;*/
  /*width: 800px;*/
}

#lowerleft {
  font-family: "Poppins", sans-serif;		
  font-size: 1em;
  margin-bottom: 1px;
  margin-left : 1px;
  margin-top: 0px;
  /*padding-left : 15px;*/
  /*padding-right : 15px;*/
  padding-top : 0px;
  width: 600px;
  max-height: 300px;
  background-color: #d3d3d3;
  color: black;
  position: fixed;
  bottom: 0;
  pointer-events: none;
  z-index: 1001;
}
#centerleft {
	font-family: "Poppins", sans-serif;		
    margin-bottom: 1px;
    /*margin-left : 1px;*/
    margin-top: 0px;
    padding-left : 10px;
    padding-right : 10px;
    padding-top : 0px;
    width: 400px;
    height: 300px;
    background-color: #262626;
    color: white;
    position: relative;
    bottom: 0;
}
#lowerright {
    font-family: "Poppins", sans-serif;		
    margin-bottom: 1px;
    margin-left: 1px;
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 0px;
    width: 600px;
    max-width: 600px;
    max-height: none;
    color: white;
    position: fixed;
    right: 0;
    bottom: 0;
    background-color: #cccccc;
	overflow: hidden;
    pointer-events: none;
    z-index: 1001;
}
#lowerright .collapsible-erp-content img {
    padding: 10px;
    max-width: 580px;
    width: calc(100% - 20px);
    height: auto;
    display: block;
}
#topleft a,
#topleft button,
#topleft h1,
#topleft h2,
#topleft p,
#topleft ul,
#lowerleft button,
#lowerleft .collapsible-content,
#lowerright button,
#lowerright .collapsible-erp-content {
  pointer-events: auto;
}
.list {
  position: relative;
}
.list h2 {
  color: #000;
  /*font-weight: 700;*/
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.list ul {
  position: relative;
}
.list ul li {
  position: relative;
  left: 0;
  color: var(--list-text, #000); /*#fce4ec;*/
  list-style: none;
  margin: 4px 0;
  border-left: 2px solid #000;/*#f50057;*/
  transition: 0.5s;
  cursor: pointer;
}
/*			.list ul li:hover {
  left: 10px;
}*/
.list ul li span {
  position: relative;
  padding: 2px;
  padding-left: 12px;
  display: inline-block;
  z-index: 1;
  transition: 0.5s;
}
#parttxt #anattxt #chtxt span {
  position: relative;
  padding: 0px;
  padding-left: 0px;
  display: inline-block;
  z-index: 1;
}
#chtxt .katex {
  white-space: nowrap;
  font-size: 0.85em;
}
.list ul li:hover span {
  color: #777;
}
.list ul li:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #f50057;
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.5s;
}
#phn {
	border-left: 2px solid #f50057;
}
#phn:before {
  transition: transform 0.5s ease;
  transform: scaleX(var(--scale-factor, 1));
}
#gab:before {
  background: #47B34E;
  transition: transform 0.5s ease;
  transform: scaleX(var(--scale-factor-gab, 1));
}
#gab {
  border-left: 2px solid #47B34E;
}
#spec:before {
  background: #265D8A;
  transition: transform 0.5s ease;
  transform: scaleX(var(--scale-factor-spec, 1));
}
#spec {
	border-left: 2px solid #265D8A;
}
.animate_scale {
	transform: scaleX(var(--scale-factor, 1));
}

#elecinfotxt {
	color: var(--elecinfo-col, #000);
	background-color: var(--elec-bg, #e3e3e3); 
	padding-left: 15px;
}

#hidepara {
    color: var(--elecinfo-col, #000);
    background-color: var(--elec-bg, #e3e3e3); 
    padding-left: 15px;
}

#evokedtxt {
  color: var(--elecinfo-col, #000);
  background-color: var(--elec-bg, #e3e3e3); 
  padding-left: 15px;
  text-align: left;
}

#infoleft {
  transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
  background-color: var(--elec-bg, #e3e3e3); 
  max-height: 500px; /* Adjust to the maximum height your content might need */
  overflow: hidden;
  width: 385px; /* -15 px due to padding */
  opacity: 1;
}
.hidden {
    opacity: 0;
    display: none;
    max-height: 0px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
    display: none; /* Initially hidden */
    overflow-y: auto;
}

.tutorialSlide ul {
    list-style-type: disc; /* Optional: to show bullet points */
    padding-left: 20px; /* Add padding to indent the list */
    text-align: left; /* Align text to the left */
}

.tutorialSlide li {
    margin-bottom: 10px; /* Add some space between list items */
}

.tutorialSlide {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
    font-family: "Poppins", sans-serif;
    overflow-y: auto;
}
@media only screen and (max-width: 600px) {
    .tutorialSlide {
        max-width: 95%;
        max-height: 95%;
        padding: 10px;
    }
    .tutorialSlide img {
        max-width: 70%;
        height: auto;
    }
    .tutorialSlide h2 {
        font-size: 1.5em;
    }
    .tutorialSlide p {
        font-size: 1em;
    }
    .tutorialSlide button {
        font-size: 1em;
    }
}

.highlight {
    border: 3px solid pink;
    box-shadow: 0 0 10px pink;
}

.top-slide {
    position: fixed;
    top: 0;
    /*left: 0;*/
    width: 100%;
    background: white; /* Ensure the slide has a white background */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    border-radius: 0 0 10px 10px;
    right: 270px; /* Position 100px from the right */
    width: calc(100% - 270px); /* Ensure it doesn't overflow */
    z-index: 1003; /* Ensure it is above the overlay */
}

.top-slide2 {
    position: fixed;
    top: 50px;
    /*left: 0;*/
    width: 100%;
    background: white; /* Ensure the slide has a white background */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    border-radius: 10px 10px 10px 10px;
    right: 270px; /* Position 100px from the right */
    width: calc(100% - 270px); /* Ensure it doesn't overflow */
    z-index: 1004; /* Ensure it is above the overlay */
}

.left-slide {
    position: fixed;
    left: 0;
    bottom: 220px;
    width: 100%;
    background: white; /* Ensure the slide has a white background */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    border-radius: 10px 10px 10px 10px;
    width: calc(100% - 270px); /* Ensure it doesn't overflow */
    z-index: 1004; /* Ensure it is above the overlay */
}
.right-slide {
    position: fixed;
    right: 0;
    top: 320px;
    width: 100%;
    background: white; /* Ensure the slide has a white background */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    border-radius: 10px 10px 10px 10px;
    width: calc(100% - 270px); /* Ensure it doesn't overflow */
    z-index: 1004; /* Ensure it is above the overlay */
}

.overlay-below {
    position: fixed;
    top: 100px; /* Adjust based on the height of the top slide */
    left: 0;
    width: 100%;
    height: calc(100% - 100px); /* Adjust based on the height of the top slide */
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Ensure it is below the slide but above the rest of the content */
}

#colorbarContainer {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;   /* important: doesn’t block 3D interaction */
  z-index: 1000;
}

#colorbarImg {
  max-width: 60vw;
  height: auto;
  /*background: rgba(255,255,255,0.75); /* helps transparency readability */
  padding: 6px 10px;
  /*border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);*/
}

#chtxt .katex {
  display: inline;
  padding: 0;
  padding-left: 0;
}

@media only screen and (max-width: 1024px) {
    #lowerleft {
        max-width: 50vw;
        width: 50vw;
    }
    #lowerright {
        max-width: 50vw;
        width: 50vw;
    }
}

