/* ALL ABOVE FROM ADMIN; ALL BELOW CUSTOM */

:root{
    --border-radius: 3px;
}

.overlay{
    background-color: rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    top:0px;
    left:0px;
    overflow: scroll;
    z-index:50;
}
.overlay.shown{
    display: flex;
    align-items: center; /* vertically center */
}

 .overlayContainer{
    max-width: 600px;
    width:100%;
    background-color: white;
    border: 3px solid black;
    border-radius: 0.25rem;
    /* margin-left: auto; */
    margin: auto; /* horizontally center */
    padding: .375rem .75rem;
}
.overlayContainerWide{
    /*width: 100%;*/
    /* max-width: 600px; */
    background-color: white;
    border: 3px solid black;
    border-radius: 0.25rem;
    /* margin-left: auto; */
    margin: auto; /* horizontally center */
    padding: .375rem .75rem; 
}
.overlayTitle {
    font-weight: bold;
}

.centerContainer {
    display: flex;
    justify-content: center;
    min-width: min-content;
    overflow: auto;
}

/**
* ON / OFF switch
**/
.onoffswitch {
    position: relative; width: 70px;
    -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
} 
.onoffswitch-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.onoffswitch-label {
    display: block; overflow: hidden; cursor: pointer;
    border: 0px solid #999999; border-radius: var(--border-radius, 4px);
    margin: 0px; /*only needed to overrule bootstrap, as long as in use */
}
.onoffswitch-inner {
    display: block; width: 200%; margin-left: -100%; 
    transition: margin 0.3s ease-in 0s;
}
.onoffswitch-inner:before, .onoffswitch-inner:after {
    display: block; float: left; width: 50%; height: 30px; padding: 0; line-height: 30px;
    /* font-size: 14px;  */
    color: white; 
    /* font-family: Trebuchet, Arial, sans-serif; font-weight: bold; */
    box-sizing: border-box;
}
.onoffswitch-inner:before {
    content: "ON"; /* eventually remove the 'inner' part (no text at all) and instead change the background color */
    padding-left: 10px;
    background-color: #007BFF; color: #FFFFFF;
}
.onoffswitch-inner:after {
    content: "OFF"; /* eventually remove the 'inner' part (no text at all) and instead change the background color OR simply pass the styling through the ejs-translation-renderer */
    padding-right: 10px;
    background-color: #6C757D; color: #FFFFFF;
    text-align: right;
}
.onoffswitch-switch {
    display: block; width: 18px; margin: 6px;
    background: #FFFFFF;
    position: absolute; top: 0; bottom: 0;
    right: 36px;
    border: 2px solid #999999; border-radius: var(--border-radius, 4px);
    transition: all 0.3s ease-in 0s; 
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
    right: 0px; 
}
.btn:disabled, button.btn:disabled:hover{
    cursor: default;
    /*cursor: not-allowed;
    background-color: #6c757d;*/
    color: rgba(16, 16, 16, 0.3);
    background-color: rgba(239, 239, 239, 0.3);
    border-color: rgba(118, 118, 118, 0.3);
}

.btn{
    padding: 6px 12px;
    border-radius: var(--border-radius, 4px);
    cursor: pointer;
    font: inherit; /* also sets the line height to 24px */
}
.btnGrey{
    background-color: #6c757d;
    color: white;
    border: 1px solid #6c757d;
    font:inherit;
}
.btnGrey:hover,
.btnGrey:focus{
    background-color: #5a6268;
    border-color: #5a6268;
}
.btnRed{
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
    font:inherit;
}
.btnRed:hover,
.btnRed:focus{
    background-color: #bd2130;
    border-color: #bd2130;
}
.btnGreen{
    background-color: #28a745;
    color: white;
    border: 1px solid #28a745;
    font:inherit;
}
.btnGreen:hover,
.btnGreen:focus{
    background-color: #218838;
    border-color: #218838;
}

th{
    padding: 2px 4px;
}
td{
    padding: 2px 4px;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

details{
    border: 1px solid black;
    border-radius: 2px;
    background-color: lightgrey;
    padding: 3px;
}
.information, .informationGreen{
    /* information shortcut */
    background-color: #3b8de6;
    display: inline-block;
    text-align: center;
    border-radius: 0.75rem;
    border: 0px solid #3b8de6;;
    font-family: "Consolas", "Courier New", "Courier", serif;
    font-style: normal;
    font-size: 1rem;
    width: 1.5rem;
    height:1.5rem;
    color: white;
    cursor: pointer;
}

.informationGreen{
    background-color:rgb(88, 212, 49) !important;
    border: 0px solid rgb(88, 212, 49) !important;
}

footer {
    background-color: var(--secondary);
    padding: 0px 40px;
}

footer > a {
    margin-right: 40px;
}
.marginTop{
    margin-top: 0.375rem;
}
.marginBottom{
    margin-bottom: 0.375rem;
}
.marginRight{
    margin-right: 0.375rem;
}
.marginLeft{
    margin-left: 0.375rem;
}
.margin{
    margin: 0.375rem;
}
.marginS{
    margin: .1875rem;
}

@media (max-width: 1024px) {
    footer {
        padding: 0px 20px;
    }
}