body {
    font-family: "Fira Sans Condensed", sans-serif;
    background-color: hsl(240deg, 100%, 95%);
}

main {
}

button {
    font-family: "Fira Sans Condensed", sans-serif;
    font-size: 14pt;
}

.functiontabcontainer {
    display: block;
    text-align: center;
}

.functiontab {
    display: inline-block;
    text-align: left;
}

nav.uppernavbar {
    position: absolute;
    right: 0;
    margin-right: 20px;
}

div.functionsection {
    vertical-align: top;
    margin-left: 20px;
    margin-right: 20px;
}

div.functionsection {
    display: inline-block;
}

table.calendar {
    border: 1px solid black;
    border-collapse: collapse;
    background-color: white;
    font-size: 14pt;
}

table.calendar th {
    border-bottom: 1px solid black;
    text-align: center;
}

table.calendar td {
    border: 1px solid silver;
    color: black;
}

tr.calendarweekdays td {
    text-align: center;
}

tr.calendarrow td {
    text-align: center;
    padding: 0;
}

button.calendardaylabel {
    border: none;
    background: none;
    color: black;
    height: 3ex;
    width: 2em;
    cursor: pointer;
}

td.calendardaylabel {
    height: 3ex;
    width: 2em;
}

button.calendardaylabel:hover:not([disabled]) {
    background-color: yellow;
    color: black;
}

.dayselected {
    background-color: blue !important;
    color: white !important;
}

button.dayselected:hover {
    background-color: blue;
    color: white;
}

input.intervalnumberinput {
    width: 5em;
}

div.intervalinput {
    position: relative;
    padding: 5px;
    font-size: 18pt;
}

div.intervalinput input {
    font-size: 18pt;
}

td.intervalunitcolumn {
    text-align: right;
    padding-right: 10px;
}

.resulttext {
    display: block;
    padding: 5px;
    font-size: 18pt;
    background-color: white;
}

div.datetodateresult {
    position: relative;
    margin: 5px;
    border: 1px solid black;
}

div.dateinputcontainer {
    position: relative;
    margin: 5px;
    border: 1px solid black;
}

input[type="date"] {
    font-size: 16pt;
}

input[type="radio"] {
    transform: scale(150%) translate(0, -15%);
}

fieldset {
    margin-bottom: 10px;
}

/* Dotted patch above each input/result which allows it to be dragged to an
 * input of the same type (date/interval). */
div.draghandle {
    height: 28px;
    width: 100%;
    background: transparent;
    background-image: radial-gradient(navy 1px, hsl(240deg, 100%, 90%) 0);
    background-size: 4px 4px;
    cursor: grab;
}

/* Displayed over all valid drop zones while dragging something, to indicate
 * that the dragged item can be dropped here. */
div.dragreceiveindicator {
    position: absolute;
    z-index: 1;
    border: 5px dashed white;
    transform: translate(-5px, -5px);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    background: rgba(0, 0, 0, 50%);
    text-align: center;
    vertical-align: middle;
}

div.dragreceiveindicatorlabel {
    position: relative;
    display: inline-block;
    text-align: center;
    top: 50%;
    transform: translate(0%, -50%);
    background-color: rgba(0, 0, 0, 90%);
    color: white;
    text-decoration: underline;
    padding: 10px;
    font-size: 24pt;
}

p.functioninfo {
    position: relative;
    color: #666666;
    font-size: 10pt;
    bottom: 0;

}

footer {
    color: #666666;
}
