html, body {
  font-family: 'RobotoRegular', 'Droid Sans', sans-serif;
  font-size: 14px;
  padding: 0px;
  margin: 0px;
  width: 100%;
  height: 100%;
  background-color: black;
  color: white;
  /* disable pull-down to refresh guesture */
  overscroll-behavior: contain;
}

/* -------------------- */

.icon {
    display: inline-flex;
    align-self: center;
}

.icon svg, .icon img {
    height: 1em;
    width: 1em;
    fill: currentColor;
}

.icon.baseline svg, .icon img {
    top: .125em;
    position: relative;
    fill: currentColor;
}

/* -------------------- */

a.pagemenu:after {
  content: ""; 
  position: absolute; 
  top: 0; 
  right: 0; 
  bottom: 0; 
  left: 0;
}

.pagemenu {
  background-color: #333;
  color: white;
  padding: 12px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  position: fixed;
  top: 0;
  right:0;
  z-index: 100;
  /* disable blue highlight on touch event */
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-tap-highlight-color: transparent;
}

.pagemenu:hover, .pagemenu:focus {
  background-color: #666;
}

/* -------------------- */

.dropdown-content {
  display: none;
  position: absolute;
  min-width: 150px;
  overflow: auto;
  top: 40px;  /* font-size=16 + 2 * padding=2 */
  right:0;
  z-index: 101;
}

.dropdown-content a {
  color: white;
  background-color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  border: none;
}

.dropdown-content a:hover {
  background-color: #666;
}

.show {display: block;}

/* -------------------- */

.pagecontent {
  overflow: hidden;
  display: none;
  padding: 12px 12px 12px 12px;
  border: 0px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
}

/* -------------------- */

.hlabel {
  display: inline-block;
  width: 100px;
  padding: 0px 6px;
  text-align: right;
}

.vlabel {
  display: inline-block;
  padding: 6px 0px;
  text-align: center;
}

/* -------------------- */

/* TODO: styling the options does not work
 * https://stackoverflow.com/questions/7208786/how-to-style-the-option-of-an-html-select-element
 */
select, select option {
  background-color: #333;
  color: white;
  padding: 12px;
  border: none;
  /* disable focus frame */
  outline: none;
  /* disable blue highlight on touch event */
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-tap-highlight-color: transparent;
}

select option:before {
  padding: 12px;
  border: none;
}

/* -------------------- */

.hslider {
  -webkit-appearance: none;
  height: 40px;
  margin: 0px 12px;
  background: #aaa;
  outline: none;
}

.hslider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 40px;
  height: 40px;
  background: #333;
  cursor: pointer;
  /* disable blue highlight on touch event */
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-tap-highlight-color: transparent;
}

.hslider::-moz-range-thumb {
  width: 40px;
  height: 40px;
  background: #333;
  cursor: pointer;
  /* disable blue highlight on touch event */
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-tap-highlight-color: transparent;
}


.vslider {
  -webkit-appearance: none;
  height: 40px;
  transform: rotate(270deg) translateY(-50%);
  background: #aaa;
  outline: none;
  position: absolute;
}

.vslider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 40px;
  height: 40px;
  background-color: #333;
  cursor: pointer;
  /* disable blue highlight on touch event */
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-tap-highlight-color: transparent;
}

.vslider::-moz-range-thumb {
  width: 40px;
  height: 40px;
  background-color: #333;
  cursor: pointer;
  /* disable blue highlight on touch event */
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-tap-highlight-color: transparent;
}

/* -------------------- */

.btn {
  background-color: #333;
  color: white;
  padding: 12px;
  margin: 0px 6px;
  border: none;
  cursor: pointer;
  /* disable focus frame */
  outline: none;
  /* disable blue highlight on touch event */
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  background-color: #666;
}

/* -------------------- */

.keyboard-options {
  margin: 10px auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: stretch;
  float: top;
}

.keyboard-option {
  display: flex;
  flex-direction: column;
  padding: 0px 12px;
}

.keyboard-wheels {
  float: left;
  height: 100%;
}

.keyboard-keys {
  height: 100%;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
}

.key {
  position: absolute;
  font-weight: 75;
  font-size: 10px;
  border: 1px solid rgba(32, 32, 32, 0.2);
  border-radius: 0px 0px 5px 5px;
  cursor: pointer;
  box-shadow: 0px 5px 1px rgba(32, 32, 32, 0.2);
  -webkit-transition: margin 0.05s ease, background-color 0.05s ease, box-shadow 0.05s ease;
  /* disable blue highlight on touch event */
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-tap-highlight-color: transparent;
}

.key .label {
  position: absolute;
  bottom: 5px;
  text-align: center;
  left: 0px;
  right: 0px;
}

.black {
  background-color: rgb(32, 32, 32);
  color: #ffffff;
  z-index: 1;
  text-shadow: 0px -1px 1px rgba(255, 255, 255, 0.5);
}

.white {
  background-color: #ffffff;
  color: rgb(32, 32, 32);
  z-index: 0;
  text-shadow: 0px 1px 1px rgba(32, 32, 32, 0.5);
}

/* -------------------- */
