/* @override  */
body {
    /* body width */
    grid-template-columns: 1fr min(64rem,90%) 1fr;
}

:root {
    --accent: #6db0dc;
    /*--marked:  #ffff3e;*/
    --marked:  #ffffc1;
    --e-message: #f30;
    --border-marked: #ffcccc;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #fff;
        --accent-bg: #f5f7ff;
        --text: #212121;
        --text-light: #585858;
        --border: #d8dae1;
        --accent: #6db0dc;
        --code: #d81b60;
        --preformatted: #444;
        --disabled: #efefef;
    }    
    img,
    video {
        opacity: initial;
    }
}

body {
    font-size: small;
}

body>footer {
    margin-top: 1rem;
}


[role="button"],
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
select {
    font-size: small;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 40%;
}

@media only screen and (max-width: 720px) {
    input[type="text"],
    input[type="email"],
    input[type="password"] {
        width: 100%;
    }
}

input[type="button"],
input[type="submit"] {
    /*padding-top: 0.5rem;*/
    padding: initial;
}

button,
input[type="button"],
input[type="submit"] {
    /*width: 100px;*/
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;

    min-width: 100px;
    width: auto;
    padding-left: 16px;
    padding-right: 16px;
}

a.btn {
    border: none;
    border-radius: 5px;
    background: var(--accent);
    font-size: 1rem;
    color: var(--bg);
    padding: 0.7rem 0.9rem;
    margin: 0.5rem 0;

    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 100px;
    width: auto;
    padding-left: 16px;
    padding-right: 16px;
}


[role=button]:focus,
[role=button]:not([aria-disabled=true]):hover,
button:enabled:hover,
button:focus,
input[type=button]:enabled:hover,
input[type=button]:focus,
input[type=reset]:enabled:hover,
input[type=reset]:focus,
input[type=submit]:enabled:hover,
input[type=submit]:focus,
header a:hover,
footer a:hover {
    filter: brightness(1.2);
}

.swal2-styled.swal2-confirm,
.swal2-styled.swal2-deny,
.swal2-styled.swal2-cancel {
    font-size: small !important;
}


.swal2-title {
    font-size: inherit !important;
}
.swal2-popup {
    font-family: var(--sans-font) !important;
}
.swal2-styled.swal2-confirm,
.swal2-styled.swal2-deny,
.swal2-styled.swal2-cancel {
    height: 34px !important;
}
input.swal2-file, input.swal2-input, input.swal2-textarea {
    width: auto;
    font-size: inherit;
}


input[type=checkbox]:checked::after {
    top: 0.15em;
    left: 0.28em;
}


/* add custom */

header a {
    cursor: pointer;
}

h4 {
    margin-top: 3rem;
}

h6 {
    float: right;
    font-size: 0.76rem;
}

.h6 {
    float: right;
}

.h6 span {
    float: left;
    padding-right: 1rem;
}

@media only screen and (max-width: 720px) {
    .h6 {
        float: none;
        margin-top: 1rem;
    }

    .h6 span {
        float: none;
        padding-right: 1rem;
    }
}


.bold {
    font-weight: bold;
}

article {
    margin: 30px auto;
}

.horizon {
    border-top: var(--border) 1px solid;
    margin: 20px auto;
}

td .line {
    height: 34px;
}

.input_text_label {
    width: 60px;
    height: 100%;
    float: left;
    display: flex;
    justify-content: right;
    align-items: center;
    padding-right: 10px;
}

td .line input {
    float: left;
}

label {
    display: block;
}

label input[type="radio"] {
    top: 6px;
}

.btn_area {
    margin-top: 20px;
    width: 100%;
    /*margin-right: auto;*/
    /*margin-left: auto;*/
}

.btn_area .double {
    text-align: center;
}

.btn_area .single input[type="submit"],
.btn_area .single input[type="button"] {
    margin: auto;
}

.btn_area .double input[type="submit"],
.btn_area .double input[type="button"] {
    margin-right: auto;
    margin-left: auto;
    display: inline-block;

}

footer {
}
footer button {
    margin-right: auto;
    margin-left: auto;
}

.copyright {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

header a,
footer a {
    text-decoration: none;
    width: 100px;
    height: 30px;
    background: var(--accent);
    padding: 0.7rem 0.9rem;
    border-radius: 5px;
}

header a, header a:visited,
footer a, footer a:visited {
    color: var(--bg);
}

.page_title {
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: var(--border) 1px solid;
    border-left: var(--accent) 5px solid;
    height: 36px;
}

.page_title h5 {
    padding-left: 0.5rem;
    height: 90%;
    display: flex;
    align-items: flex-end;
}

p.message {
    padding: 10px;
    margin: 0 0 20px 0;
    border: 3px solid var(--border-marked);
    font-weight: bold;
    color: var(--e-message);
}

p.e_message {
    display: block;
    background-color: var(--marked);
}

.alert {
    background-color: var(--marked);
    color: var(--e_message);
}
