/* extends base.css
 needs :root from base.css */

input, .input, textarea {
    border: none;
    border-radius: 0.5rem;
    padding: 0.25rem;
    width: 100%;
    margin: .25rem 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
    text-decoration: none;
    height: 2rem;
    background-color: var(--button-color);
    color: var(--font-color);
}

textarea {
    min-height: 5rem;
}

select {
    border: none;
    border-radius: 0.5rem;
    padding: 0.25rem;
    width: 100%;
    margin: .25rem 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
    text-decoration: none;
    height: 2rem;
    background-color: var(--button-color);
    color: var(--font-color);
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: .8rem;
    height: .8rem;
    background-color: var(--button-color);
    color: var(--font-color);
    border: 1px solid #000;
    box-shadow: inset 0 0 0.08rem rgb(0, 0, 0);
    border-radius: 4px;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
}

input[type="checkbox"]:checked {
    background-color: var(--submit-button-color);
    border-color: var(--submit-button-color);
}

input[type="checkbox"]:checked::after {
    content: '';
    display: block;
    position: absolute;
    left: 0.25rem;
    top: 0.15rem;
    width: 0.15rem;
    height: 0.3rem;
    border: solid var(--submit-font-color);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: .25rem;
}

.custom-checkbox {
    width: 1rem;
    height: 1rem;
    border: 1px solid #000;
    border-radius: 4px;
    background: var(--submit-font-color);
    display: inline-block;
    position: relative;
}

.custom-checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
    background: var(--submit-button-color);
    border-color: var(--submit-button-color);
}

.custom-checkbox-label input[type="checkbox"]:checked + .custom-checkbox::after {
    content: '';
    position: absolute;
    left: .32rem;
    top: .1rem;
    width: .25rem;
    height: .5rem;
    border: solid var(--submit-font-color);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type=submit], .button {
    border: none;
    border-radius: 0.5rem;
    padding: 0.25rem;
    width: 100%;
    margin: .25rem 0;
    display: inline-block;
    box-sizing: border-box;
    text-decoration: none;
    height: 2rem;
    cursor: pointer;
    background-color: var(--submit-button-color);
    color: var(--submit-font-color);
    text-align: center;
    align-content: center;
    min-width: max-content;
}

input[type=submit]:hover, .button:hover {
    background-color: var(--button-color-hover);
}

.inline-button {
    text-align: center;
    height: unset;
    background-color: var(--button-color);
    color: var(--font-color);
    border: 1px solid black !important;
    /*background-color: white; *//* Too neo-brutalistic for now... might be something for the future*/
}

select[disabled] {
    color: var(--disabled-font-color);
}