* {
  box-sizing: border-box;
}
html, body {
    font-family: sans-serif;
    margin: 0;
    height: 100%;
}
.wrapper {
    display: grid;
    height: 100%;
    background-color: #f1edee;
    grid-template-rows: auto 1fr auto;
    grid-row-gap: 10px;
}
header {
    grid-column: 1 / -1;
    background-color: #db5461;
    width: 100%;
}
header div {
    width: 100%;
    display: inline-block;
}
header div div {
    width: 48%;
}
header h1 {
    text-align: left;
    margin-left: 12pt;
}
header a {
    color: black;
    font-weight: bold;
    float: right;
    margin-left: 12pt;
    text-align: right;
}
main {
    overflow: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 10px;
}
@media only screen and (max-width: 800px) {
    main {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }
}
footer {
    grid-column: 1 / -1;
    background-color: #db5461;
}
footer ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden
}
footer li {float: right}
footer li a {
    color: black;
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 10px
}


.card {
    border: 1px solid #d7cccf;
    position: relative;
    border-radius: 10px;
    background-color: #f1edee;
    margin: 0 10px;
    padding: 10px;
}

.card > div{
    display: inline-block;
    width: 100%;
}
.card h3 {
    background-color: #8aa29e;
    padding: 5px;
    border-radius: 5px;
    margin-top: 0;
}
.card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.card li + li {
    margin-top: 1em;
}
.card fieldset {
    border: 1px solid #d7cccf;
}
.card fieldset li + li {
    margin-top: 0.5em;
}

label {
    display: inline-block;
    text-align: left;
    width: 40%;
    min-width: 10em;
}
input,
select {
    display: inline-block;
    width: 50%;
    min-width: 15em;
}
button {
    display: inline-block;
    font-size: 100%;
    background-color: #8aa29e;
    color: black;
    border: 2px solid #8aa29e;
    text-decoration: none;
    border-radius: 5px;
    transition-duration: 0.25s;
}
button:hover {
    background-color: white;
}
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.combobox {position: relative; display: inline-block}
.combobox select {display: inline}
.combobox input {position: absolute; min-width: calc(100% - 1.5em)}

#results {
    background: #2d2e2f;
    grid-column: 1 / -1;
}

#output {
    font-size: 150%;
    color: white;
    font-family: monospace;
}

#figure{
    display: block;
    width: 90%;
    height: 90%;
    margin: 0 auto;
}

canvas {
    width: 100%;
    height: 100%;
    min-height: 200px;
    min-width: 200px;
    margin: 0;
}

button#report {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

#usage{
    grid-column: 1/ -1;
}
#usage li {
    margin: 0.5em;
}
