
:root {
  --index-htm-banner-bg: #2c3e50;       /* rgb(15, 57, 94); */
  --lighter-banner-color: #bdccdb;
  --index-htm-light-mustard-text-color: #fcf8e3;
  --index-htm-deep-mustard-text-color: #ddb167;
  --controls-color-light: #e6e6e6;
  --controls-color-dark: #bfbfbf;
  --graph-width: 95%;
  --graph-height: 200px;
  --font-family-sans: "Arial";
}

body {
  font-family: var(--font-family-sans);
  background-color: var(--index-htm-banner-bg);
}

* {
  margin: 0;
  box-sizing: border-box;
}

p {
  font-family:Arial;
  font-size: 16px;
  line-height: 22px;
}

a {
  color: #469cb9;
}

sub, sup  {
  line-height: 0;
 }

/* Light/Dark support */
.light {
  color: var(--index-htm-banner-bg);
  background-color: white;
}

.dark {
  color: var(--lighter-banner-color);
  background-color: var(--index-htm-banner-bg);
}

 /* Page Layout */

.container {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 0;
  margin:  0 0;
}

/* Buttons, links. Liked this as class link_button, but it worked to set a link inside li, not inside div. */
li {
  border: thick outset var(--controls-color-light);
  line-height: 1.4em;
  text-align: center;
  vertical-align: middle;
  padding: 10px;
  font-size: 0.9rem;
  font-weight: bold;
  font-stretch: condensed;
  cursor: pointer;
}

/* Header */
/* To display on top of scrolling content, header must be given a background color. */
.headerarea {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  z-index: 50;
  width: 100%;
  overflow: hidden;
  border-bottom: 12px solid var(--lighter-banner-color);
  margin-bottom: 2px;
}

.show_hide_div {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgb(15, 57, 94);
  margin-left: 16px;
  margin-top: 16px;
  cursor: pointer;
  background-color: var(--controls-color-light);
  padding: 4px;
  border-radius: 10px;
}

.showhideicon {
  width: 32px;
  height: 32px;
}

.arrow {
  -webkit-text-stroke: 1px rgb(15, 57, 94);
  color: transparent;
  font-size: 20px;
}

banner {
  color: var(--index-htm-deep-mustard-text-color);
  font-family: "Trebuchet MS" sans-serif;
  font-style: italic;
  font-size: 2.9rem;
  font-weight: bold;
  margin-top: 14px;
  margin-bottom: 8px;
  white-space: nowrap;
 }

/* Main Section */
.row {
  display: flex;
  flex-direction: row;
}

.main_scrolling_area {
  margin-left: 185px;
  z-index: 0;
  width: 84%;
}

/* Turn off selection of text in google charts */
.googlecharts{
  height: 230px;
  width: 100%;
  margin-top: 10px;
  margin-right: 20px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/*
.h2 {
    text-align:center;
    font-family: "Trebuchet MS" sans-serif;
    font-size: 2.1rem;
    color: rgb(15, 57, 94);
    margin-bottom: 14px;
}

.footer {
    text-align:center;
    margin-left:2px;
    font-family: "Arial";
    font-size:1.0em;
    color:#000000;
}

.spacer {
  overflow: hidden;
  width: 25px;
}
*/

.menutext {
  font-size: 16px;
  font-weight: bold;
}

.toggletext {
  font-size: 18px;
  font-style: italic;
  font-weight: bold;
}

/*-----------------------*/
/* Sidebar - providing a height % was key to getting the vertical scrollbar to show up. */
/*-----------------------*/
.sidebar {
  display: block;
  position: fixed;
  top: 86px;
  height: 100%;
  width: 174px;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: "Arial";
  font-size: 14px;
  padding: 8px;
  margin-left: 8px;
  margin-right: 10x;
  border-right: 6px solid var(--lighter-banner-color);
}

.sidebar ul {
  list-style-type: none;
  padding-left: 0;
}

.sidebar ul > li {
  padding: 4px 10px;
}


/*-----------------------*/
/* 'Combined' popup styles
/*-----------------------*/

.context-menu {
  position: absolute;
  display: none;
  z-index: 100;
  color: var(--index-htm-banner-bg);
  background-color: var(--controls-color-light);
  padding: 8px;
  box-shadow: 0 4px 5px 3px;
  border-radius: 4px;
  cursor: pointer;
  top: 5px;
  left: 5px;
}

.combined-popup {
  position: fixed;
  display: none;
  z-index: 200;
  width: 85%;
  top: 4%;
  left: 12%;
}

.popup-pane {
  width: var(--graph-width);
  height: 100%;
  border-style: outset;
  border-width: 14px;
  margin: 0;
  padding: 0;
}

.controls-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: 100%;
  border-style: outset;
  border-width: 16px;
  margin: 0;
  padding: 0;
}

.curve-select-button {
  cursor: pointer;
}

.curve-select-radio-form {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  overflow: auto;
  width: 99%;
  height: 100px;
  font-size: 14px;
  outline-style: solid;
}

fieldset input {
  margin-left: 6px;
  margin-right: 0px;
}

/*-----------------------*/
/* switch control styles */
/* Originated from NadeeshaEranjan via https://codepen.io/alvarotrigo/pen/jOaXGyq */
/*-----------------------*/

div.btn-container{
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

div.btn-container i{
    display: inline-block;
    position: relative;
    top: -9px;
}

.btn-ndays-switch{
    display: inline-block;
    margin: 0px;
    position: relative;
}

.btn-ndays-switch > label.btn-ndays-switch-inner{
    margin: 0px;
    width: 140px;
    height: 30px;
    background: #E0E0E0;
    border-radius: 26px;
    overflow: hidden;
    position: relative;
    display: block;
}

.btn-ndays-switch > label.btn-ndays-switch-inner:before{
    content: attr(data-on);
    position: absolute;
    font-size: 12px;
    font-weight: 500;
    top: 7px;
    right: 20px;

}

.btn-ndays-switch > label.btn-ndays-switch-inner:after{
    content: attr(data-off);
    width: 70px;
    height: 16px;
    background: var(--controls-color-light);
    border-radius: 26px;
    position: absolute;
    left: 2px;
    top: 2px;
    text-align: center;
    box-shadow: 0px 0px 6px -2px #111;
    padding: 5px 0px;
}

.btn-ndays-switch input[type="checkbox"]{
    -webkit-appearance : none;
    appearance         : none;
    cursor: pointer;
    width: 50px;
    height: 25px;
    opacity: 0;
    position: absolute;
    top: 0;
    z-index: 1;
    margin: 0px;
}


.btn-ndays-switch input[type="checkbox"]:checked + label.btn-ndays-switch-inner:after{
    content: attr(data-on);
    left: 68px;
    background: #fff;  /*3c3c3c;*/
    color: #424242;
}

.btn-ndays-switch input[type="checkbox"]:checked + label.btn-ndays-switch-inner:before{
    content: attr(data-off);
    right: auto;
    left: 20px;
}


p.by {

}

p.by a{
    text-decoration: none;
    color: #000;
}

.dark-preview p.by a{
    color: var(--controls-color-dark);
}

.white-preview p.by a{
    color: #000;
}