html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-size: 1.5em;
}

a {
    color: #FFA41D !important;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

input, textarea, .form-line select {
    border: solid #FFA41D 1px;
    border-radius: 10px;
    padding: 5px;
}

.navbar-brand {
    background: url(../images/logo.png) no-repeat;
    background-size: contain;
    padding-left: 5em;
    margin-left: 0.5em;
    cursor: pointer;
}

.navbar-after {
    float: right;
    margin-right: 0.5em;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 1.5em;
    text-decoration: none;
    cursor: pointer;
}

.nav-container {
    width: 100%;
}

.navbar-signout {
    background-image: url('../images/signout.png');
}

.navbar-project {
    background-image: url('../images/switch.png');
}

.home-btn-container .btn.btn--action {
    width: 100%;
    padding: 0.5em;
    font-size: 2em;
    margin-top: 0.2em;
    margin-left: 0;
}

.page-footer {
    margin-top: 2em;
    text-align: center;
}

    .page-footer a {
        text-transform: lowercase;
    }

.template-root {
    max-width: 600px;
    margin: 0 auto;
}

.form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border: solid 2px rgba(255,164,29,0.40);
}

.form__info-line {
    color: black;
    font-weight: bold;
    min-height: 2em;
    margin: 0;
}

.form-line {
    margin-bottom: 0.4em;
    min-height: 2em;
    clear: both;
}

.form-input, .form-textbox, .form-select {
    max-width: 50%;
    float: right;
}

.form-select {
    line-height: 36px;
    font-size: 1em;
}

.form-input.form-input--file {
    background-color: #FFF0E0;
    cursor: pointer;
    text-align: center;
}

.form-line.form-line--checkbox .form-input {
    height: 1em;
    width: 50%;
    margin-top: 0.5em;
}

.form-line.form-line--textbox {
    display: flex;
    justify-content: space-between;
}

.form-line--invalid input, .form-line--invalid:active input {
    border-color: red !important;
}

.form-line__errormessage {
    color: red;
    font-size: 0.7em;
    clear: both;
}

.form-label {
    vertical-align: top;
    width: 40%;
    margin-bottom: 0;
    margin-top: 0.25em;
}

.form-input-autocomplete-list-container {
    position: relative;
    z-index: 200;
}

.form-input-autocomplete-list {
    padding: 0;
    margin: 0;
    border: 1px solid darkgray;
    height: auto;
    min-height: 1em;
    max-height: 6em;
    min-width: 50%;
    overflow: auto;
    border-radius: 12px;
    position: absolute;
    left: 50%;
}

    .form-input-autocomplete-list li {
        list-style: none;
        background-color: white;
        padding: 4px 8px;
        cursor: pointer;
    }

        .form-input-autocomplete-list li:hover {
            background-color: #FFF0E0;
            color: black;
        }

.form-line-value-image-container {
    clear: both;
    text-align: center;
    padding-top: 0.25em;
}

.form-fieldset {
    border: solid 2px rgba(255,164,29,0.40);
    padding: 0.4em;
    margin: 0.2em 0;
}

.form-fieldset__label {
    color: gray;
}

.form.form--login {
    max-width: 600px;
    margin: 0 auto;
}

    .form.form--login table {
        margin: 0 auto;
    }

        .form.form--login table h1 {
            margin: 0.5em 0;
            text-align: center;
        }

        .form.form--login table td {
            padding: 4px 16px 4px 0;
        }

        .form.form--login table tr {
            padding-top: 0.2em;
        }

.form-lookup-btn {
    background-image: url('../images/pulldownarrow.png');
    width: 1.5em;
    height: 1.5em;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    margin-top: 0.25em;
    margin-left: -1.8em;
    margin-right: 0.1em;
    z-index: 1;
    float: right;
    position: relative;
}

.form-helptext-btn {
    background-image: url('../images/info.png');
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    margin-top: 0.25em;
}

.form-helptext {
    color: gray;
    clear: both;
}

.form-saving-message {
    text-align: right;
    font-weight: bold;
    color: gray;
    padding: 0.4em;
    margin: 0.2em 0;
}

.form__btn-container {
    padding-top: 0.5em;
    text-align: right;
    clear: both;
}

.btn {
    margin-left: 8px;
    padding: 8px 8px;
}

.btn.btn--action {
    background-color: darkgray;
    color: white;
    border-radius: 8px;
    font-weight: bold;
}

@media only screen and (max-width: 600px) {
    .form-label {
        width: auto;
        max-width: 100%;
        display: block;
    }

    .form-input, .form-textbox, .form-select {
        width: 100%;
        max-width: 100%;
        float: none;
    }

    .form-input-autocomplete-list {
        width: 100%;
        left: 0;
    }

    .form-helptext-btn {
        float: right;
        margin-top: -1.5em;
    }

    .form-line.form-line--textbox {
        display: block;
        margin-bottom: 0;
    }

    .form-line.form-line--checkbox .form-input {
        width: 100%;
    }
}
