:root {
    --footer-height: 200px;
    --border-color: #505050;

    --brand-a-bg: #3094ff;
    --brand-a-hilite: #1662b3;

    --brand-b-bg: #5eb843;
    --brand-b-hilite: #3a7e26;
    --brand-b-color: #fff;

    --generic-btn-bg: #aaa;
    --generic-btn-hilite: #777;
    --generic-btn-color: #000;
    --generic-hover-color: #fff;

    /* set some standards so everything lines up properly without a lot of fiddling */
    --standard-padding: 0 1em;
}

body, html {
    padding: 0;
    margin: 0;
    height: 100%;
    /* overflow-x: hidden; */
    font-size: 16px;
    box-sizing: border-box;
}
* {
    box-sizing: inherit;
}

hr {
    width: 100%;
}

#MainContainer {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    padding: 0;
}

#content {
    flex: 1;
}

.loginbg {
    background-image: url(../../admin/images/blueembossedwater.jpg);
    background-size: contain;
}

/* The following is for the accordion effect */
details.mce-accordion {
    overflow: hidden;
}

details.mce-accordion > *:not(summary) {
    opacity: 0;
    transition: opacity 0.5s ease;
}

details.mce-accordion[open] > *:not(summary) {
    opacity: 1;
}
/* End accordion effect */

form, form.login {
    /* display: flex;
    flex-direction: column; */
    color: #262626;
    /*background: #3094ff;*/
    background: #aaa;
    padding: 1em 2em;
    border-radius: 6px;
    margin: 1em;
}

form.login {
    width: max-content;
}

.clear {
    display: block;
    clear: both;
    height: 1.2em;
}

header {
    display: flex;
    justify-content: space-between;
    background-color: var(--brand-a-bg);
    padding: var(--standard-padding);
    flex-direction: column;
    align-items: center;
}

header #header-columns {
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-direction: row;
    align-items: center;
}

header #header-columns .header-logo, .width25 {
    width: 25%;
}

header #header-columns .header-mid {
    width: 20%;
    display: flex;
    justify-content: right;
    align-items: center;
}

header #header-columns .header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.header-right .header-right-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;

}

footer {
    display: flex;
    justify-content: space-between;
    padding: var(--standard-padding);
    height: var(--footer-height);
    width: 100%;
    background-color: var(--brand-a-bg);
    flex-direction: row;
    align-items: center;
}

/** */
.flex {
    display: flex;
}
.flex-wrap-wrap {
    flex-wrap: wrap;
}
.row {
    flex-direction: row;
}
.column {
    flex-direction: column;
}
.space-between {
    justify-content: space-between;
}
.space-around {
    justify-content: space-around;
}
.space-evenly {
    justify-content: space-evenly;
}
.justify-flex-start {
    justify-content: flex-start;
}
.justify-flex-end {
    justify-content: flex-end;
}
.align-items-center {
    align-items: center;
}
.align-items-start {
    align-items: flex-start;
}
.justify-center {
    justify-content: center;
    text-align: center;
}

/* flex item spacing */
.gap-10-20 {
    gap: 10px 20px;
}
.gap-20 {
    gap: 20px;
}
.gap-10 {
    gap: 10px;
}
.gap-1em {
    gap: 1em;
}

.touch {
    cursor: pointer;
}

.card {
    flex: 1;
    border: 1px solid #464646;
    padding: .5em;
    border-radius: 6px;
    margin: 1em;
    height: max-content;
}
.card-title {
    background-color: var(--brand-a-bg);
    color: var(--brand-b-color);
    margin-top: -.5em;
    margin-left: -.5em;
    margin-right: -.5em;
    margin-bottom: .5em;
    padding: .5em;
    font-weight: 600;
}
.full-width, .half-width {
    width: 100%;
}
.full-width.colwrap {
    width: 100%;
}

.content-width {
    width: max-content;
}
.max-width-25 {
    max-width: 100%;
}
.max-width-50 {
    max-width: 100%;
}
.max-height-25 {
    max-height: 25%;
}

.content-height {
    height: max-content;
}

.pad-1 {
    padding: 1em;
}
.pad-top-1 {
    padding-top: 1em;
}
.pad-top-2 {
    padding-top: 2em;
}
.pad-bottom-1 {
    padding-bottom: 1em;
}
.pad-left-1 {
    padding-left: 1em;
}
.pad-right-1 {
    padding-right: 1em;
}
.pad-left-2 {
    padding-left: 2em;
}
.pad-right-2 {
    padding-right: 2em;
}

.border-1 {
    border: 1px solid var(--border-color);
}
.border-2 {
    border: 2px solid var(--border-color);
}

.border-top-1 {
    border-top: 1px solid var(--border-color);
}
.border-bottom-1 {
    border-bottom: 1px solid var(--border-color);
}
.margin-top-half {
    margin-top: .5em;
}
.margin-top-1 {
    margin-top: 1em;
}
.margin-top-2 {
    margin-top: 2em;
}
.margin-bottom-half {
    margin-bottom: .5em;
}
.margin-bottom-1 {
    margin-bottom: 1em;
}
.margin-bottom-2 {
    margin-bottom: 2em;
}
.margin-left-half {
    margin-left: .5em;
}
.margin-left-1 {
    margin-left: 1em;
}
.margin-left-2 {
    margin-left: 2em;
}
.margin-right-half {
    margin-right: .5em;
}
.margin-right-1 {
    margin-right: 1em;
}
.margin-right-2 {
    margin-right: 2em;
}

/* Messages */
#sysmsg {
    width: 100%;
}
svg.error {
    color: #ff0000;
}
svg.success {
    color: #008000;
}
svg.info {
    color: #3094ff;
}
.sysMessage {
    font-size: 1.25rem;
    padding: 6px 10px;
    margin-bottom: 1em;
}
.msg_error {
    border: 2px solid #ff0000;
    border-radius: 6px;
}
.msg_success {
    border: 2px solid #008000;
    border-radius: 6px;
}
.msg_info {
    border: 2px solid #3094ff;
    border-radius: 6px;
}

/* html dialog */
dialog[open] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px 20px;
    padding: 2em;
}

dialog .fa-circle-xmark {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
}
dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

/* The Modal: this pertains to the Modal javascript class object created by ngn/js/modal.js */
.modal {
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: hidden; 
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    display: flex; /* Flexbox to center the modal content */
    align-items: center; /* Align on cross axis */
    justify-content: center; /* Align on main axis */
    padding: 10%;
}

/* Modal Content/Box */
.modal-content {
    background-color: transparent;
    padding: 12%;
    border: none;
    width: 100%; /* Could be more or less, depending on screen size */
    position: relative;
    display: flex;
    justify-content: center;
}

.modal-content img, .modal-content p {
    width: 80%;
    height: auto;
    margin: 5% auto;
}



/* The Buttons */
.modalUI {
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    position: absolute;
    top: 1em;
    right: 1em;
    padding: 10px;
    background: #000;
    border: 2px solid #ccc;
    border-radius: 6px;
    display: flex;
    flex-direction: row-reverse;
}

.modalUI i {
    margin: 0 10px;
}

.modalUI i:hover,
.modalUI i:focus {
    color: #aaa;
    text-decoration: none;
    cursor: pointer;
}

/** Modal Styles **/

.modal-content.dialog, .modal-content.prompt, .modal-content.alert, .modal-content.confirm, .modal-content.html {
    background-color: #fff;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    padding: 1em;
}

.modal-content.html {
    display: block;
    padding: 1em;
}


/* Modal JS Class ends */

/* applies to larger screens */
@media screen and (min-width: 1280px) {
    .full-width {
        width: 100%;
    }
    .half-width {
        width: 50%;
    }
    .full-width.colwrap {
        width: 30% !important;
    }
}
@media screen and (min-width: 800px) {
    #content {
        padding: var(--standard-padding);
    }
    .max-width-25 {
        max-width: 25%;
    }
    .max-width-50 {
        max-width: 50%;
    }
    .full-width.colwrap {
        width: 45%;
    }
}