/* .helpPopup { */
/*     display: none; */

/*     background-color: rgb(28, 63, 73); */
/*     color: white; */
/*     margin: 0 1em 1em 1em; */
/*     padding: 1em 0em 0 0em; */
/*     font-size: 0.5em; */
/*     margin-left: max(env(safe-area-inset-left), 1em); */
/*     margin-right: max(env(safe-area-inset-right), 1em); */
/* } */

/* --------- HELP ICON --------- */

.helpIcon {
  display: inline-block;
  cursor: pointer;
  border: 1;

  width: 46px;
  height: 46px;
  
  position: absolute;
  right: 5em;
  top: 0.8em;

  background-color: transparent;
  border-color: white;
  color: white;
}

.helpIconText {
    font-size: 200%;
}

.helpIcon.change {
    top: .65em;

    border-color: black;
    color: black;
}

/* --------- HELP BUTTON --------- */

.helpbutton {
    display: block;
    appearance: none;
    border: none;
    background: none;
    color: white;
    font: inherit;
    font-size: 0.8em;
    cursor: pointer;
}

@media (max-width: 32em) {
    .helpbutton {
	    display: none;
    }
}

/* --------- PLAIN TEXT --------- */

.LexinExplanationsWrapper {
    padding: 0;
    margin: 0;
    display: none;
    position: absolute;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /*overflow: auto;*/
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.7);
}

.LexinExplanations {
    background: white;
    padding: 2em 2em 4em 2em;
    margin: 0;
}

.LexinExplanationsClose {
    color: #aaa;
    background-color: white;
    font-size: 400%;
    font-weight: bold;
    position: fixed;
    top: 0;
    right: 5%;
    padding: 0 0.2em 0 0.2em;
    border: 5px solid #aaa;
}

/* --------- SHOW MORE TEXT --------- */

.helpOpenMoreInfo {
    color: #32525B;
    cursor: pointer;
    text-decoration: underline;
    /*display: inline-block;*/
    /*margin-top: -4px;*/
}

.helpOpenMoreInfo:hover {
    /*text-decoration: underline;*/
    background-color: #EBEEEF;
}

.helpMoreInfo {
    display: none;
    margin-left: 2em;
}

/* --------- IMAGES --------- */

.helpImageContainer {
    /*width: 400px;*/
    margin-bottom: 2em;
}

.helpImageBase {
    width: 100%;
    border: 2px solid black;
}

.helpImageOverlay {
    position: absolute;
}

/* --------- HELP MENU--------- */

.helpMenu {
    display: none;
    top: 0;
    left: 0;
    padding-top: 1em;
    height: 2em;
    background-color: white;
    font-size: large;
    width: 100%;
    height: 2.2em;
}

.helpMenu a {
    margin: 1em;
    padding-left: 1em;
}

/* --------- EXAMPLES --------- */

.helpExample {
    margin-left: 5em;
}

/* --------- TABLES --------- */

th {
  text-align: left;
}

.tableScroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tableScroll table {
  width: max-content; /* table can be wider than viewport */
  border-collapse: collapse;
}

/* --------- CLOSE POPUP ICON --------- */

.closeHelp {
    display: inline-block;
    cursor: pointer;
    border: 1;
    padding: 0;
    background-color: transparent;
    appearance: none;
    border: none;
    background: none;
    float: right;
    margin-left: 1em;
    /*color: rgb(28, 63, 73);*/
}

.closeHelpToC {
    float: none;
    margin-left: 1em;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

/* --------- TABLE OF CONTENTS --------- */

.tableOfContents{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.LexinExplanations a:hover{
  background-color: #EBEEEF;
}

/* --------- UP BUTTON --------- */

.upButton {
    display: block;         /* horizontal centering */
    margin-left: auto;      /* horizontal centering */
    margin-right: auto;     /* horizontal centering */

    color: black;
    font: inherit;
    padding: 0.1em .5em 0.2em 0.5em;
    border: none;
    border-radius: 0.3em;
    cursor: pointer;
    background-color: #D7E9EC;
    margin-top: 35px;
}

/* --------- TEXT FORMATTING --------- */

.helpTextUpperSpace {
  display: inline-block;
  margin-top: 0.4em;
}

.helpTextIndent {
  display: inline-block;
  padding-left: 1em;
}

.helpTextIndentLarge {
  display: inline-block;
  padding-left: 2em;
}

/* --------- NO HOVER BUTTON COLOR ON PHONE (ELSE BUGGY) --------- */

@media (hover: hover) and (pointer: fine) {
    .upButton:hover {
        background-color: #3FD695;
    }
}

/* --------- HIGH CONTRAST MODE --------- */

@media (prefers-contrast: more) {
    .closeHelp {
        color: CanvasText;
    }
}

/* --------- DARK MODE --------- */

@media (prefers-color-scheme: dark) { 
    /* background + text */
    .LexinExplanations {
        background: #111b20;
        color: white;
    }

    /* links */

    .helpOpenMoreInfo, 
    .LexinExplanations a {
        color: #3FD695;
    }
    .LexinExplanations a {
        text-decoration-color: #3FD695;
    }
    .LexinExplanations a:hover,
    .helpOpenMoreInfo:hover {
        background-color: #324b5a;
    }
    /* icons */
    .closeHelp img {
        filter: invert(1);
    }
}


