body {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  height: 100%;
  max-height: 100%;
  width: 100%;
  max-width: 100%;
  margin: auto;
}

h1 { 
  color: blue;
  text-align: center; 
}

#username {
  font-family: "Courier New","Courier","monospace";
  font-size: 18px;
  width: 70%;
  max-width: 640px;
  padding: 12px 20px;
  margin: 8px 0;
  border: 2px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

#datatable {
  font-family: "Courier New","Courier","monospace";
  border-collapse: collapse;
  width: 100%;
}

#datatable td, #datatable th {
  border: 1px solid #ddd;
  padding: 1px;
}

#datatable tr:nth-child(even){background-color: #f2f2f2;}

#datatable tr:hover {background-color: #ddd;}

#datatable th {
  padding-top: 4px;
  padding-bottom: 4px;
  text-align: left;
  background-color: blue;
  color: white;
}

.loading {
  display: block; 
  margin: auto; 
  width: 150px;
  height: 150px;
  opacity: 0.5;
}

.centertext {
  text-align: center;
}

.lefttext {
  text-align: left;
  margin-left: 20px;
  font-weight: bold;
}

.centerimage { 
  float: center;
  margin-left: 20px; 
  width: 100px;
  height: 100px;
}

.chartimage { 
  display: block;
  margin: 0 auto; 
}


.infoimage {
  float: right;
  width: 40px;
  height: 40px;
  top: 0px;
  margin-right: 20px;
}

.button {
  background-color: white;
  border: none;
  color: blue;
  border: 2px solid blue;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 12px;
  font-size: 18px;
  width: 70%;
  max-width: 640px;
  padding: 12px 20px;
  margin: 8px 0;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.lbutton {
  background-color: white;
  border: none;
  color: blue;
  border: 2px solid blue;
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  margin: 0px 5px;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
  display:block;
}


.button2 {
  background-color: white;
  border: none;
  color: blue;
  border: 2px solid green;
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  font-weight: bold;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 12px;
  width: 90%;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.button3 {
  background-color: white;
  border: none;
  color: blue;
  border: 2px solid red;
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  font-weight: bold;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 12px;
  width: 90%;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

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

.buttonarea {
  text-align: center;
}  

.debug {
  font-size: 7px;
  color: grey;
  margin-left: 20px;
}

.message {
  font-size: 28px;
  color: blue;
  text-align: center;
  font-weight: bold;
}

.footer {
  font-size: 8px;
  color: grey;
  text-align: center;
}  

#framecontainer {
   position:absolute;
   height:100%;
   width:100%;
}
#topframe {
   position:absolute;
   top:0px;
   left:0px;
   height:190px;
   width:100%;
   overflow:hidden;
   margin: 0px auto;
   border: none; 
}
#mainframe {
   position:absolute;
   top:195px;
   right:0px;
   height:100%;
   width:100%;
   overflow:hidden;
   margin: 0px auto;
   border: none; 
}


@media (prefers-color-scheme: dark) {
  body {
    background-color: #444;
    color: #e4e4e4;
  }
  a {
    color: #e39777;
  }
  img {
    filter: grayscale(30%);
  }
  h1 {
    color: white;
  }
  .graphimg {
    filter: invert(90%);
  }
  .chartimage {
    filter: invert(90%);
  }
  .button {
    background-color: grey;
    color: white;
  }
  .lbutton {
    background-color: grey;
    color: white;
  }
  .button2 {
    background-color: grey;
    color: white;
  }
  .button3 {
    background-color: grey;
    color: white;
  }
  .message {
    color: white;
  }
  #datatable th {
    background-color: #222222;
    color: white;
  }
  #datatable tr:nth-child(even) {
     background-color: #666666;
  }
  #datatable tr:hover {
     background-color: #111111;
  }

}

