html,
body {
    border: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    line-height: 1.5em;
}

.hidden {
    display: none !important;
}

#stage {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#stage.state-loading::after {
    content: "Loading ...";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    line-height: 100vh;
    text-align: center;
    color: white;
    background: gray;
}

#stage.state-error::after {
    content: "Error";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    line-height: 100vh;
    text-align: center;
    color: red;
    background: white;
}


#instruction,
#heart-rate {
    height: 1.5em;
}

#canvas-wrapper {
    flex: 1;
}

#mxcanvas {
    height: 100%;
    max-height: 80vh;
    aspect-ratio: 480/894;
}

#heart-rate:not(:empty)::before {
    content: "Heart rate: ";
}
.div-loading{
  font-size: .7rem;
}
#progressbar label{
  font-size: .7rem;
}
#progressbar.div-loading{
  font-size: .7rem;
}
#progressbar progress{

  font-size: .8rem;
  margin-right:30px;
}


table,
th,
td {
  border: 1px solid black;
  border-collapse: collapse;
}

th,
td {
  padding: 5px;
  text-align: left;
}

#health-risks-factors {
    display: flex;
    flex-direction: column;
}
label {
  padding-right: 10px;
  font-size: 1rem;
}
#progress{
    text-align: center;
}

progress[value]::-webkit-progress-bar {
  background-color: #eee;
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset;
}

progress[value]::-webkit-progress-value {
  background-image:
	   -webkit-linear-gradient(-45deg, 
	                           transparent 33%, rgba(0, 0, 0, .1) 33%, 
	                           rgba(0,0, 0, .1) 66%, transparent 66%),
	   -webkit-linear-gradient(top, 
	                           rgba(255, 255, 255, .25), 
	                           rgba(0, 0, 0, .25)),
	   -webkit-linear-gradient(left, #09c, #f44);
    border-radius: 2px; 
    background-size: 35px 20px, 100% 100%, 100% 100%;
}
/* For Webkit/Blink browsers (Chrome, Safari, Edge) */
progress::-webkit-progress-bar {
  background: lightgray;
  border-radius: 10px;
}

progress::-webkit-progress-value {
  background: #06c; /* The progress color */
  border-radius: 10px;
  /* Add a transition for smooth updates via JavaScript */
  transition: width 0.5s ease-in-out;
}

/* For Firefox */
progress::-moz-progress-bar {
  background: #06c;
  border-radius: 10px;
}