html {
    height: 100vh;
}

* {
    font-family: "Ubuntu", sans-serif;
}

body {
    display: flow-root;
    height: 100%;
    max-width: 600px;
    margin: auto;
    padding: 0 10px;
}

h1, h2 {
    text-align: center;
}

button {
    font-size: 14px;
}
a.button {
    -webkit-appearance: button;
    -moz-appearance: button;
    appearance: button;

    text-decoration: none;
    color: initial;
    display: block;

    border: solid 1px #bcbcc5;
    background: #e9e9ed;
    border-radius: 2px;
}
a.button:hover {
    background: #d0d0d7;
}

.vertical-margins {
    margin-top: 30px;
    margin-bottom: 30px;
}
.flex-column {
    display: flex;
    flex-direction: column;
}
.flex-row {
    display: flex;
    flex-direction: row;
}
.space-gap {
    gap: 20px;
}
.space-around {
    justify-content: space-around;
}
.center-horizontal {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
}
.footer {
    margin-top: 10px;
    font-size: 17px;
}

.full-height {
    height: 100%;
}
.full-width {
    width: 100%;
}
.vert-small {
    height: 20%;
}
.flex-row-main {
    flex: 8;
}
.flex-row-alt {
    flex: 1 30px;
}

.msg-ok {
    background-color: #b8f3b6;
    color: #213e20;
    border: solid 1px #189814;
    text-align: center;
    margin: 10px 0;
    padding: 20px 0;
    border-radius: 5px;
}

.msg-fail {
    background-color: #f5a2a2;
    color: #6b0c0c;
    border: solid 1px #f5a2a2;
    text-align: center;
    margin: 10px 0;
    padding: 20px 0;
    border-radius: 5px;
}

table {
    border-collapse: collapse;
}
table.center {
    text-align: center;
    width: 100%;
}
tr {
    border-bottom: solid 1px lightgray;
}
td {
    padding: 2px 0;
    font-family: sans-serif;
}
td .button {
    margin-left: 3px;
}
.cell-date {
    white-space: nowrap;
    padding: 0 .2em;
}

/* ------------------------------------ */
/* Form centered with full screen input */

.form-big, .form-medium {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.form-big .number-main {
    height: 3em;
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
}
.form-big input, .form-big select {
    height: 2em;
    font-size: 1.5em;
    text-align: center;
}
.form-big input[type="submit"] {
    margin-top: 15px;
}
/* style radio as buttons */
.form-big .radios {
    display: flex;
    margin: 0;
    margin-top: 5px;
}
.form-big .radios label {
    width: 100%;
    height: 70px;
    border: solid grey 1px;
    border-radius: 5px;
}
.form-big .radios input[type="radio"] {
    appearance: none;
    height: 0;
    margin: 0;
    display: none;
}
.form-big .radios .outer {
    display: flex;
    height: 100%;
    /* offset-y / offset-x / blur-radius */
    box-shadow: 2px 2px 1px grey;
}
.form-big .radios .inner {
    margin: auto;
    text-align: center;
}
.form-big .radios input[type="radio"]:checked ~ div {
    background: lightgrey;
    box-shadow: unset;
}

.form-medium input[type="submit"] {
    height: 2em;
    font-size: 16px;
    margin-bottom: 20px;
}
.form-medium input {
    height: 1.8em;
    font-size: 18px;
    text-align: center;
}

.form-small {
    font-size: 1em;
    margin-bottom: 15px;
    display: flex;
    gap: 5px;
    /* justify-content: end; */
    align-items: center;
}

.form-small span {
    font-size: 14px;
    padding-top: 2px;
}
