form {
    width: 100%;
}

.btn,
.button,
button,
input[type="submit"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="submit"],
input[type="tel"],
input[type="text"],
input[type="url"],
input[type="date"],
input[type="time"],
select,
textarea {
    box-sizing: border-box;
    color: inherit;
    display: block;
    padding: 1em;
    font-size: 1rem;
    transition: all 0.25s;
}

.btn,
.button,
button,
input[type="submit"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="tel"],
input[type="text"],
input[type="url"],
input[type="date"],
input[type="time"],
select,
textarea {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: var(--small-radius);
    border: none;
    margin: 0 auto 1em;
    width: 100%;
}

input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="submit"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
select:focus,
textarea:focus {
    background-color: rgba(0, 0, 0, 0.2);
    outline: none;
}

select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-repeat: no-repeat;
    background-image: url(http://cdn1.iconfinder.com/data/icons/cc_mono_icon_set/blacks/16x16/br_down.png);
    background-position: calc(100% - 1em) 1.25em;
    background-size: 0.75em 0.75em;
    padding-right: 2em;
}

select::-ms-expand {
    display: none;
}

.btn,
.button,
button,
input[type="submit"] {
    color: var(--system-white);
    background: var(--system-green-200);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    text-align: center;
    margin: 1em 0;
    border: none;
    transition: 0.5s;
    padding: 0.75em 1em;
    border-radius: 0.5em;
    max-width: max-content;
    font-weight: 600;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.btn:hover,
.button:hover,
button:hover,
input[type="submit"]:hover,
.btn:focus,
.button:focus,
button:focus,
input[type="submit"]:focus {
    background: var(--system-green-300);
}

.btn-redirect {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--system-coal-300);
    background: var(--system-green-200);
    text-align: center;
    padding: 0.75em 1em;
    border-radius: 0.5em;
    font-weight: 600;
}

.btn-redirect:hover {
    background: var(--system-green-300);
}

input[type="submit"] {
    width: 100%;
    padding: 1em;
    max-width: unset;
}

input[readonly] {
    opacity: 50%;
    cursor: not-allowed;
    pointer-events: none;
}

.btn,
.button,
button {
    font-weight: 600;
    color: var(--system-white);
    background-color: var(--system-coal-200);
    border: 1px solid var(--system-gray-300);
}

.btn:hover,
.button:hover,
button:hover,
.btn:focus,
.button:focus,
button:focus {
    background-color: var(--system-coal-300);
}

.fieldset-add-form,
.btn-secondary {
    color: var(--system-coal-200);
    background-color: var(--system-gray-300);
    border: 1px solid var(--system-gray-400);
}

.fieldset-add-form:hover,
.fieldset-add-form:focus,
.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--system-gray-400);
}

.button--green {
    background-color: var(--system-green-200);
    color: var(--system-coal-300);
    font-weight: 600;
    padding: 0.625em 1em;
    border-radius: 0.5rem;
}

.button--green:hover,
.button--green:focus {
    background-color: var(--system-green-300);
}

.button-group {
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
}

.button--view {
    display: inline-block;
    color: var(--system-coal-300);
    font-weight: 700;
    padding: 1.5em;
}

.handle-cancel {
    margin: 1.5em;
}

.password-visibility {
    position: absolute;
    background-color: transparent;
    padding-right: 0.75rem;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    line-height: 1.25rem;
    top: 0;
    bottom: 0;
    right: 0;
}

.password-visibility:hover,
.password-visibility:focus,
.password-visibility:active {
    background-color: transparent;
}

.button.expand {
    display: flex;
    max-width: unset;
    align-items: center;
    justify-content: center;
}

label,
form details {
    cursor: pointer;
    display: block;
    margin: 1em 0 0.25em;
}

.checkbox li {
    list-style: none;
}

.errorlist {
    --border-size: 2px;
    padding: calc(1em - var(--border-size));
    border-left: var(--border-size) solid currentColor;
    margin: 0 0 2em;
}

.errorlist li:only-child {
    list-style: none;
}

header input[name="search"] {
    margin: 1em 0;
    max-width: 100%;
}

menu select[name="filter"] {
    width: initial;
    margin: unset;
    padding: 0.5em 2em 0.5em 0.5em;
}

@media (min-width: 48rem) {
    .button.expand {
        max-width: fit-content;
    }
}

#home-headline .btn,
#home-headline button,
#home-headline .button {
  margin-bottom: 0;
  height: fit-content;
  width: fit-content;
}

#card-row .btn,
#card-row button,
#card-row .button {
  margin-top: 0;
}

.helper-text {
    font-size: 13px;
    color: var(--system-gray-400);
}

.modal-card {
    background-color: var(--system-white);
    border-radius: 1rem;
    margin: 1rem;
    padding: 1.5rem;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-overlay:target {
    display: flex;
}

hr {
  margin: 2em 0 2em;
  border: 0;
  border-top: 1px solid var(--system-gray-400);
}

hr, form > fieldset, form > table {
  border: 0;
  border-top: 1px solid var(--system-gray-400);
}

form > fieldset {
  margin: 1rem 0;
  transition: all 0.3s ease-in-out;
}

form > table caption,
form > fieldset > legend {
  font-weight: bold;
  font-size: 1.5rem;
  margin: 1rem 0 0 0rem;
}

.help-block, .helptext {
  font-size: 0.75em;
  opacity: 0.75;
  line-height: 2;
  margin-top: 0.25em;
  display: block;
}
