/* Global - Start */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --white: #fff;
  /* --mainContentMaxWidth: 960px; */
  --mainContentMaxWidth: 1250px;
  --topSearcBarMaxWidth: 400px;
  --popUpTop: 50px;
  --headerPadding: 0.2rem;
  box-sizing: border-box;
  scroll-behavior: smooth;

  /* --lrgScreenMinWidth is set by js in doOnLoad so that both the js and css can access the value*/
  /* document.documentElement.style.setProperty('--lrgScreenMinWidth', '825px'); */
}

*:focus {
  outline: 0 !important;
}

body {
  font-family: "Arial", sans-serif;
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  background-color: var(--lightBackground, white);
}
@media (min-width: 550px) {
  body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
  }
} /* end of @media (min-width: 550px) */


#elemContent {
  background-color: var(--lightBackground, white);
}
@media (min-width: 550px) {
  #elemContent {
    display: flex;
    flex-direction: row;
  }

  #elemMainContent {
    overflow: auto;
    display: flex;
    position: relative;
    padding: 16px;
    flex-grow: 2;
    flex-direction: row;
    justify-content: flex-start;
    flex-flow: wrap;
    align-items: flex-start;
    z-index: 1;
  }
} /* end of @media (min-width: 550px) */  

/* elemContentLeft is hidden on small screens
   and used as left nav area on large screens
*/
#elemContentLeft {
  display: none;
}
@media (min-width: 550px) {
    
  #elemContentLeft {
    display: flex;
    flex-direction: column;
    /* height: 100vh;
    width: 250px; */
    flex-shrink: 0; /* prevents width from shrinking on spat view when chart is enlarged */
    white-space: nowrap;
    top: 0; /* this is required for "sticky" to work */
    position: sticky;
    width:15vw;
  }

  #elemContentLeft .closebtn {
    font-size: 36px;
    margin-left: 70%;
    margin-top: 40px;
    margin-bottom: -10px;
  }

  #elemContentLeft a {
    padding: 8px 8px 8px 15px;
    text-decoration: none;
    color: var(--darkText);
    display: block;
    transition: 0.3s;
    display: flex;
    font-size: 1rem;
  }
  #elemContentLeft div {
    color: var(--darkText);
    font-size: 1.1rem;
  }

  #elemContentLeft a:hover {
    color: var(--highlightText);
    cursor: pointer;
  }
} /* end of @media (min-width: 550px) */

/* elemContentRight is hidden on small screens
   and used as left nav area on large screens
*/
#elemContentRight {
  display: none;
}
@media (min-width: 550px) {
    /* 
      elemContentRight is hidden on small screens
      and used as left nav area on large screens
    */
  #elemContentRight {
    display: flex;
    width:15vw;
  }
} /* end of @media (min-width: 550px) */

.main_content {
  position: relative;
  padding: 16px;
  margin-left: auto;
  margin-right: auto;
  width: auto;
  max-width: var(--mainContentMaxWidth);
  display: block;
  overflow-y: visible;
  z-index: 1;
  margin-top: 125px; /* top margin is needed so it won't disappear under the header */
}

.main_content > section {
  position: relative;
  display: none;
  width: auto;
  /* max-width: var(--mainContentMaxWidth); */
  transition: 0.5s;
}
@media (min-width: 550px) {
  .main_content > section {
    position: relative;
    display: none;
    transition: 0.5s;
  }
} /* end of @media (min-width: 550px) */  

#elemOverlay {
  position: fixed; /* Sit on top of the page content */
  display: none; /* Hidden by default */
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
  z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
  cursor: pointer; /* Add a pointer on hover */
}

.nav-up {
  top: -40px;
}

.hidden {
  display: none;
}

.btn_submit_cancel {
  font-size: 1rem;
  padding: 0.3rem 0.8rem;
  margin: 5px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  background-color: var(--darkBackground);
  color: var(--lightText);
  border: 2px solid black;
  border-radius: 80px; /*10px;*/
  letter-spacing: 1px;
  width: 130px;
  display: flex;
}

.btn_submit_cancel:hover {
  cursor: pointer;
  border: 2px solid var(--highlightElem);
  background-color: var(--popupBkground);
  color: black;
}

/* this is used for the pop-up screens like "Choose Synonyms" and "Sign in" */
.div_options {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  flex-grow: 0;
  flex-shrink: 1;
  height: fit-content;
  min-width: 362px;
  margin: auto;
  border: black solid 1px;
  align-self: center;
  align-items: center;
  background-color: var(--popupBkground);
  overflow-x: auto;
  width: 100vw;
}

@media (min-width: 550px) {
  .div_options {
    display: flex;
    flex-direction: column;
    flex-grow: 0;
    flex-shrink: 1;
    height: fit-content;
    width: fit-content;
    align-self: center;
    padding-top: 20px;
    border: black solid 1px;
    width: auto;
    background-color: var(--popupBkground);
  }
} /* end of @media (min-width: 550px) */

.div_options_header {
  font-size: 1.55rem;
  font-weight: bold;
}

.div_options_col_header {
  font-weight: bold;
  font-size: 1.18rem;
  padding-top: 15px;
}

.must_sign_in_msg {
  font-size: 1.2rem;
}

#divConfErrMsgText {
  padding: 40px 3px;
  text-decoration: none;
  font-size: 1.3rem;
  color: var(--darkText);
}

#hrefCloseConfErrMsg {
  font-size: 2.5rem;
  position: absolute;
  right: 10px;
  top: 2px;
  text-decoration: none;
  color: black;
  cursor: pointer;
}

#hrefCloseConfErrMsg:hover {
  color: var(--highlightText);
}

.center_in_visible_area {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#divHelp {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
  flex-shrink: 1;
  height: fit-content;
  width: fit-content;
  align-self: center;
  padding: 20px;
  border: black solid 1px;
  width: auto;
  background-color: var(--popupBkground);
  line-height: 1.5;
}

.div_Help_Title {
  font-weight: bold;
  display: flex;
  font-size: 1.15rem;
  padding-bottom: 12px;
}


.div_Help_Subheader {
  text-decoration: none;
  font-size: 1rem;
  color: var(--darkText);
  display: flex;
  font-weight: bold;
  /* white-space:nowrap; cz Feb 17, 2023 will set this as needed in appHelp.js*/
}

.div_Help_Text {
  text-decoration: none;
  font-size: 1rem;
  color: var(--darkText);
  display: flex;
  flex-direction: column;
  padding-bottom: 5px;
}

#hrefCloseHelp {
  font-size: 2.5rem;
  position: absolute;
  right: 10px;
  top: 2px;
  text-decoration: none;
  color: black;
  cursor: pointer;
}

#hrefCloseHelp:hover {
  color: var(--highlightText);
}

@media (min-width: 550px) {
  #elemBetaMsg {
    display: none; /* flex; removing this Sept 18, 2022*/
    width: 50%;
  }
} /* end of @media (min-width: 550px) */  

.beta_href {
  margin-left: auto;
  text-decoration: none;
  color: var(--highlightText);
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
}

#elemBetaMsg a {
  display: flex;
  margin-left: auto;
  text-decoration: none;
  color: var(--highlightText);
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
}


.section_about {
  line-height: 1.2rem;
}

.about_img {
  position: relative;
  width: 90%;
}
@media (min-width: 400px) {
  .about_img {
    position: relative;
    width: fit-content;
  }
}

.section_about_subheading {
  font-weight: bold;
  font-size: 1.5rem;
  padding-top: 50px;
  padding-bottom: 8px;
  padding-left: 12px;
  letter-spacing: 0.03rem;
  line-height: 1.8rem;
}

.section_about p {
  padding: 12px;
  line-height: 1.75rem;
  font-size: 1.2rem;
}

.section_about a {
  text-decoration: none;
  color: var(--highlightText);
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
}

#formContact {
  display: flex;
  flex-direction: column;
  margin: auto;
  width: 90vw;
  padding: 5px;
}

@media (min-width: 550px) {
  #formContact {
    width: 50vw;
    padding: 20px;
  }
} /* end of @media (min-width: 550px) */


#formContact label {
  font-weight: bold;
  font-size: 1.1rem;
  padding-top: 20px;
  padding-bottom: 10px;
}

#fcFromEml {
  display: flex;
  width: 250px;
  margin-top: 10px;
}

#fcFromEmlErrorMsg {
  display: flex;
  visibility: hidden;
  color: red;
}

#fcSubject {
  display: flex;
  width: 250px;
}

#fcMsg {
  display: flex;
}

#btnContactSubmit {
  margin-top: 20px;
}

.section_subheading {
  font-size: 1.05rem;
  font-style: italic;
  padding-bottom: 15px;
  padding-left: 25px;
  letter-spacing: 0.03rem;
  line-height: 1.8rem;
}

.section_subheading a {
  padding: 0px;
  text-decoration: none;
  color: var(--darkText);
  transition: 0.3s;
  margin-left: 0px;
  margin-right: 0px;
}

.section_subheading a:hover {
  color: var(--highlightText);
  cursor: pointer;
}

.full_width {
  width: 100%;
  max-width: 100%;
}

.eighty_width {
  width: 80%;
  max-width: 80%;
} 

.editor_label {
  width: 160px;
  /* background-color: pink; */
  display: flex;
}
.editor_widgets {
  /* background-color: palegreen; */
  display: flex;
}

.editor_widgets input {
  margin-right: 5px;
}

.editor_widgets label {
  margin-right: 5px;
}

.editor_text {
  text-decoration: none;
  font-size: 1.1rem;
  color: black;
  line-height: 1.5rem;
  list-style-type: none;
  width: 80%;
  margin-bottom: 10px;
}

#txtAreaPatternTextEditor {
  display: flex;
  flex-grow: 1;
  flex-shrink: 1;
  max-height: calc(100vh - 150px);
  width: 80%;
  height: 200px;
  font-size: 1rem;
}

.attr_row {
  display: "flex";
  flex-direction: row;
  padding-top: 12px;
}

.editor_section {
  display: flex;
  flex-direction: row;
  width: 80%;
  /* padding-bottom: 2px; */
}

.loading_container {
  position: fixed;
  display: flex;
}

.loading_logo_border {
    /* background-color:  var(--popupBkground, white); */
    background-image: radial-gradient(var(--popupBkground, white), var(--darkBackground,black));
    opacity: 90%;
    position: absolute;
    display: flex;
    z-index: 2;
    width: 95px;
    height: 95px;
    font-size: 90px;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: round 1.7s infinite ease; 
     animation: round 1.7s infinite ease;
}

.loading_logo {
  position: absolute;
  display: flex;
  z-index: 4;
  width: 95px;
  height: 75px;
  border-radius: 50%;
  padding-top: 5px;
  opacity: 90%;
}

@-webkit-keyframes round {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes round {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.search_result_header {
  display: flex;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  font-weight: bold;
  margin-right: auto;
  line-height: 1.8rem;
}

.search_result_header a {
  padding: 0px;
  text-decoration: none;
  color: var(--darkText);
  transition: 0.3s;
  margin-left: 0px;
  margin-right: 0px;
}

.search_result_header a:hover {
  color: var(--highlightText);
  cursor: pointer;
}

#divCookieMsg {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  bottom: 0px;
  width: fit-content;
  padding: 15px;
  z-index: 550;
  background-color: var(--popupBkground);  
  border-style: solid;
}

.policiesHref {
  display: flex;
  justify-content: center;
  font-size: .9rem;
  color: red;
  font-style: italic;	
  cursor: pointer;
  padding: 5px;
}

.btn_accept {
  width: fit-content;
  height: fit-content;
  padding: 3px 8px;
  border: 2px solid black;
  border-radius: 80px;
  background-color: var(--darkBackground);
  color: var(--lightText);
  align-self: center;
  font-weight: normal;
  font-size: 1.02rem;
  letter-spacing: 1px;
}

.btn_accept:hover{
  background-color: var(--lightBackground);
  color: var(--darkText);
  cursor: pointer;
} 

@media (min-width: 550px) {
  #divCookieMsg {
    left: 30%;
  }
} /* end of @media (min-width: 550px) */  
