/* -- page structure -- */
body
{
  background:#eee;
  margin:0 auto 16px auto;

  font-family: Roboto, "Segoe UI", Arial, "Noto Sans", sans-serif;
  font-size:16px;
  color: #444;

  line-height: 150%;

  text-align:center;

  min-width: 360px;
  max-width: 760px;
}

.container
{
  background:#fff;
  padding-bottom: 60px;
  margin:0 auto 0 auto;
  text-align:left;
  width:100%;
  min-height: calc(100vh - 120px);
  box-shadow: 0px 0px 20px 5px rgba(0,0,0,0.3);
}

.header
{
  display:block;
  background-color: #72C086;
  color: #eee;
  font-family: "Montserrat", Roboto, "Segoe UI", Arial, "Noto Sans", sans-serif;
  padding: 15px 10px 15px 10px;
  margin: 0 0 15px 0;
}
.header h1
{
  color: #eee;
  text-shadow: none;
  font-size: 1.75rem;
  font-weight:400;
  margin:2px 0 2px 0;
  white-space: nowrap;
}
.header .bysdr
{
  display: inline-block;
  margin-left: 10px;
  font-style: italic;
}

.bottom_bar
{
  width: max(360px, min(100%,760px));
  height: 50px;

  padding-top: 5px;
  padding-bottom: 5px;

  position: fixed;
  bottom: 0px;
  left: calc(50% - 0.5*max(340px, min(100%,760px)));

  color: #000;
  background-color: #fff; /*#efe;*/
  box-shadow: 0px 0px 20px 5px rgba(0,0,0,0.3);
}
.bottom_bar > .pageturner_buttons_left
{
  display: inline-block;

  margin: 0 0 0 0;
  padding: 0 0 0 0;
  position: absolute;
  
  left: 15px;
}
.bottom_bar > .pageturner_buttons_right
{
  display: inline-block;

  margin: 0 0 0 0;
  padding: 0 0 0 0;
  position: absolute;

  right: 15px;
}
.bottom_bar input
{
  width: 80px;
}


#configurationmode_warning
{
  background-color: #cc4444;
  color: #fff;
  display: none;
}

#plotly
{
  height: 400px;
}


/* image */
img
{
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 25px 0 15px 0;
}

/* styling of text */
h1
{
  font-size:160%;
  font-weight:800;
  margin:10px 0 10px 0;
  text-shadow: 2px 2px 2px #ddd;
}

h2
{
  padding-top: 10px;
  padding-bottom: 10px;
  border-top:2px dotted #ccc;
  border-bottom:2px dotted #ccc;
  font-size:140%;
  font-weight:400;
  margin:30px 0 10px 0;
}

h2.first
{
  margin-top: 0px; 
}

h3
{
  padding-top: 10px;
  font-size:120%;
  font-weight:400;
  margin:30px 0 10px 0;
}

h3.first
{
  margin-top: 0px;
}

p
{
  margin:10px 0 5px;
}

.textblock
{
  padding-bottom: 10px;
}

.vspace
{
  height: 20px;
  width: 1px;
  display: block;
}

/**** form ****/
form
{
  margin:0 10px 0 10px;
  padding:0 0 10px 0;
  width:auto;
}

form div
{
  margin:0 0 0 0;
}


/* item groups */
.group
{
  display: none;
  border-bottom: 2px dotted #ccc;
  padding-bottom: 10px;
}

.group.visible
{
  display: block;

}



/**** form inputs/labels ****/
.input_parameter
{
  display:block;
}

.input_parameter label
{
  border:none;
  color:#000;
  display:inline-block;
  width: 225px;
  padding:6px 0 2px;
  font-family: monospace;
  font-size: 14px;
}

.input_parameter input
{
  display:inline-block !important;
  width:50px !important;
  margin-right: 5px !important;
}


.input_item
{
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
}

label
{
  display: inline-block;
  padding: 6px 0 2px 0;
}

label.choice
{
  flex-grow: 1;	
  margin: 0 0 0 15px;
  padding: 0 0 15px 0;
}

label.checkbox
{
  flex-grow: 1;	
  margin: 0 0 0 15px;
  padding: 0 0 8px 0;
}

.smalltextbox
{
  width: 50px !important;
}

.touchbutton
{
  width: 50px;
  min-height: 50px;
  background-color: #eee;
  border: none;
  border-radius: 15px;
  font-weight: 800;
  font-size: 18px; 
}

input[type=text]
{
  width: 90%;
  margin: 2px 0 8px 0;
  padding: .25rem;	
}

input[type=submit]
{
  margin: 10px 0 5px 0;
  height: 40px;
}

input[type=button]
{
  margin: 5px 0 5px 0;
  height: 40px;
}

input[type=radio]
{
  margin: 0.33em 0 0 0;
}

input[type=checkbox]
{
  margin: 0.33em 0 0 0;
}


.button
{
  margin: 10px 0 5px 0;
  height: 40px;
}


.toggle
{
  display:flex !important;
  align-items: center;
  align-content: center;
}

.toggle .label
{
  flex-grow: 1;
  padding: 0;
}

.toggle .control {
  margin: 10px 5px 10px 5px;
  padding: 0;

  text-align: right;

  --width: 50px;
  --height: 25px;
  --border-radius: 10px;
}

.toggle__input {
  display: none;
}

.toggle__input:checked ~ .toggle__fill {
  background: #72C086;
}

.toggle__fill {
  position: relative;
  right: 0;
  margin-left: auto;
  
  width: var(--width);
  height: var(--height);
  border-radius: var(--border-radius);
  background: #ddd;
  transition: background 0.1s;
}

.toggle__fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  height: var(--height);
  width: var(--height);
  border-radius: var(--border-radius);

  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.1s;
}

.toggle__input:checked ~ .toggle__fill::after {
  transform: translateX(var(--height));
}


.circular-progress {
  --size: 100px;
  --half-size: calc(var(--size) / 2);
  --stroke-width: 20px;
  --radius: calc((var(--size) - var(--stroke-width)) / 2);
  --circumference: calc(var(--radius) * pi * 2);
  --dash: calc((var(--progress) * var(--circumference)) / 100);
  animation: progress-animation 45s linear 0s 1 forwards;
}

.circular-progress circle {
  cx: var(--half-size);
  cy: var(--half-size);
  r: var(--radius);
  stroke-width: var(--stroke-width);
  fill: none;
  stroke-linecap: round;
}

.circular-progress circle.bg {
  stroke: #ddd;
}

.circular-progress circle.fg {
  transform: rotate(-90deg);
  transform-origin: var(--half-size) var(--half-size);
  stroke-dasharray: var(--dash) calc(var(--circumference) - var(--dash));
  transition: stroke-dasharray 0.3s linear 0s;
  stroke: #72C086;
}

@property --progress {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

@keyframes progress-animation {
  from {
    --progress: 0;
  }
  to {
    --progress: 100;
  }
}