body {
    font-size:16px;
    font-family: Arial;
    font-weight: 400;
    color: #556d7d;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

input { accent-color: #ECE8E4; }  /* 7b1e1f */

button {
  display: inline;
  position: relative;
  margin: 0.25em;
  padding: 0.4375 0;
  width: 128px;
  height: 2.25em;
  line-height: 1.25em;
  border: 0.0625em outset #999;
  border-radius: 5px;
  vertical-align: middle;
  
  background: #eee;
  color: black;
  cursor: pointer;

  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  text-transform: none;
  font-size: inherit;
  
  overflow: hidden;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

button:active {
  border: 0.0625em inset #999;
}

button:active span {
  position: relative;
  top: 1px;
  left: 1px;  
}

button:hover { background: white; }

button.selected { background: #ffc060; cursor: default; }

button:disabled { opacity: 0.5; }

button i {
  font-size: 1.25em;
  line-height: 1em;
  vertical-align: top;
}


button  { background: #eee; }
.button { background: #eee; }
button:hover  { background: white; }
.button:hover { background: white; }

button  { color:white; background: #ff4438; height:3em; border-radius:05em; border:none; }
.button { color:white; background: #ff4438; height:3em; border-radius:05em; border:none; }
button:hover  { background: #064296; }
.button:hover { background: #064296; }


.activeOption {
  border-bottom: 0.25em solid #1652B6;
}

input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active { 
  backgound-color: white !important;
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}

.formbox { margin: 0.25em; padding: 0.25em; border:1px solid #E4E8F0; background: white; }

.formfield { border: none; background: inherit; }



/* Night mode ---------------------------------------------- */

body.night { background: white; color: black; }

body.night #header { background: white; color: #064296; font-weight: bold; }

body.night #login { width: 480px; height: 640px; max-width: 80%; max-height: 80%; color: black; background: #f4f8fc; border: 1px solid #e4e8ec; border-radius: 0; }

body.night #toolbar { background: #34383C; border-bottom: 1px solid #333; }

body.night .popupMenu { background: #54585C; }

body.night .menuOption { color: #ccc; }
body.night .menuOption:hover { background: #678; color:black !important; }
body.night .menuOption > i { color: white; }
body.night .menuOption > img { border-style: solid; border-color: white; }

body.night .box { background: #222; border-radius: 0.5em; overflow:hidden; }

body.night hr { height: 1px; border: 0; background: #666; }

body.night .backColor1 { background: #222428; }
body.night .backColor2 { background: #34383C; }
body.night .backColor3 { background: #D4D8DC; }

body.night .textColor1 { color: #FFFFFF; }
body.night .textColor2 { color: #CCCCCC; }
body.night .textColor3 { color: #000; }


/* Light mode ---------------------------------------------- */

body.light { background: white; color: black; }  /* #E4E8EC  */

body.light #header { background: white; color: #064296; font-weight: bold; }

body.light #login { width: 480px; height: 640px; max-width: 80%; max-height: 80%; color: black; background: #f4f8fc; border: 1px solid #e4e8ec; border-radius: 0; }

body.light #toolbar { background: #ccc; }

body.light .popupMenu { background: white; }

body.light .menuOption { color: #444; }
body.light .menuOption:hover { background: #cde; color:black !important; }
body.light .menuOption > i { color: black; }
body.light .menuOption > img { border-style: solid; border-color: black; }

body.light .box { background: white; border-radius: 0.5em; overflow: hidden; }

body.light hr { height: 1px; border: 0; background: #aaa; }

body.light .backColor1 { background: #f6f7fb; }
body.light .backColor2 { background: white; }
body.light .backColor3 { background: #34383C; }

body.light .textColor1 { color: #000000; }
body.light .textColor2 { color: #444444; }
body.light .textColor3 { color: #FFF; }
