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

    font-family: 'Pangram Sans', Arial, Helvetica, sans-serif;
    font-size: 24px;
    line-height: 1.5em;
    background: #808080;
    overflow: hidden;
}

.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;
    border-radius: 16px;
}

#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: #E63C3C;
    background: white;
    border-radius: 16px;
}

#instruction,
#heart-rate {
    height: 1.5em;
    border-radius: 16px;
}

#canvas-wrapper {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    max-width: 400px; /* Narrower canvas wrapper */
}

#mxcanvas {
    height: 96vh;
    padding: 2vh 0;
    aspect-ratio: 480/894;
    border-radius: 16px;
}

#heart-rate:not(:empty)::before {
    content: "Heart rate: ";
}

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

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

#health-risks-factors {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
}

#compute-risks, #download-intervals {
    display: none;
    border-radius: 16px;
}
