body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.5em;
    color: #333;
    background-color: #fff;
}

body.dark-mode {
    background-color: #222;
    color: #fff;
}

#container {
    align-items: center;
    justify-content: center;
    display: flex;
    height: 100%;
    overflow: auto;
    padding: 0 1rem;
}

#form {
    width: 100%;
    padding-top: .5em;
}

#error {
    font-size: 12px;
    background-color: #c0392b;
    color: #fff;
    padding: 4px 22px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: none;
}
#error.show {
    display: block;
}

#header {
    max-width: 100%;
    max-height: 100%;
    margin-bottom: .3em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.3rem;
}

#description {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    opacity: 0.6;
}

#data-container {
    margin: 1rem 0;
    margin-bottom: 1.5rem;
}

#data-container .form-group {
    margin-bottom: 0.5rem;
}

#data-container .form-group label {
    opacity: 0.5;
    font-size: 0.8rem;
}

#data-container .form-group .form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

body.dark-mode #data-container .form-group .form-control {
    background-color: transparent;
    border-color: #888;
    color: #fff;
}

#buttons {
    text-align: right;
}

#buttons > button,
#buttons > input[type=submit] {
    border-radius: 2px;
    border: 0;
    margin: 0 0 0 .5em;
    font-size: .8em;
    line-height: 1em;
    padding: .8em 1.2em
}

#ok {
    background-color: #3879D9;
    color: white;
}

#cancel {
    background-color: #DDD;
    color: black;
}
