@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    /*font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
    font-family: Arial, Helvetica, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-baseblue {
    display: inline-block;
    padding: 0.2em 0.8em;
    text-decoration: none;
    color: #fff;
    background-color: #3099c5;
    border-color: #3099c5;
    border-radius: 10px;
    font-weight: 600;
    transition: .4s;
}

    .btn-baseblue:hover {
        color: #fff;
        background-color: #0c6991;
    }

.btn-baseorange {
    display: inline-block;
    padding: 0.2em 0.8em;
    text-decoration: none;
    color: #fff;
    background-color: #ffa800;
    border-color: #ffa800;
    border-radius: 10px;
    font-weight: 600;
    transition: .4s;
}
    .btn-baseorange:hover {
        color: #fff;
        background-color: #DA9826;
    }

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 4.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

.main .top-row {
    background-color: #CDECFF;
    border-bottom: 1px solid #d6d5d5;
    /*justify-content: center;*/
    justify-content: flex-end;
}

.main .top-row > a {
    margin-left: 1.5rem;
}

.logo {
    background-color: white;
    width: 200px;
    height: 70px;
    object-fit: contain;
}

.mainlogin {
    height: 20vh;
    width: 90vw;
    max-width: 800px;
    padding: 0px;
    margin: 0px;
    background-color: transparent;
}

.logobig {
    height: 20vh;
    width: 90vw;
    max-width: 800px;
    object-fit: contain;
    padding: 0px;
    margin: 0px;
    background-color: transparent;
}

.region {
    height: 20vh;
    width: 80vw;
    max-width: 500px;
    object-fit: contain;
    padding: 0px;
    margin:0px;
    background-color: transparent;
}



.sidebar {
    background-color: #1277D9;
    /*background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);*/
}

    .sidebar .top-row {
        /*background-color: rgba(0,0,0,0.4);*/
        background-color: white;
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

.sidebar .oi {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

.nav-item:first-of-type {
    padding-top: 1rem;
}

.nav-item:last-of-type {
    padding-bottom: 1rem;
}

.nav-item a {
    /*color: #d7d7d7;*/
    color:white;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
}

.nav-item a.active {
    /*background-color: rgba(255,255,255,0.25);*/
    background-color: #124E73;
    color: white;
}

.nav-item a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}


p.normal {
    font-weight: normal;
}

p.light {
    font-weight: lighter;
}

p.thick {
    font-weight: 600;
    font-stretch: expanded;
    color: dimgray;
}

p.thicker {
    font-weight: 900;
}

p.big {
    font-weight: 500;
    font-stretch: expanded;
    color: dimgray;
    font-size:28px;
    margin-top:0px;
    margin-bottom:10px;
}

/* Style the list */
ul.breadcrumb {
    /*padding: 10px 16px;*/
    list-style: none;
    /*background-color: white/*/
}

/* Display list items side by side */
ul.breadcrumb li {
    display: inline;
    font-size: 12px;
    font-weight: 600;
    font-stretch: semi-expanded;
}

/* Add a slash symbol (/) before/behind each list item */
ul.breadcrumb li + li:before {
    padding: 8px;
    color: black;
    content: "/\00a0";
}

/* Add a color to all links inside the list */
    ul.breadcrumb li a {
        color: #1277D9;
        text-decoration: none;
    }

/* Add a color on mouse-over */
ul.breadcrumb li a:hover {
    color: #01447e;
    text-decoration: underline;
}

.round-lg {
    line-height: 75px;
    width: 70px;
    height: 70px;
    font-size: 34px;
    padding:0;
    margin:0;
}

.text-white {
    color: #fff !important;
}

.text-center {
    text-align: center !important;
}

.d-inline-block {
    display: inline-block !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

.text-extrasmall {
    color: lightgray;
    font-size: 8px;
}
.cardtext {
    margin: 0;
    padding: 0;
    text-align:right;
    font-size: 42px;
    font-stretch: expanded;
}

.cardheadertext {
    font-size: 15px;
    font-stretch: narrower;
    font-family: Arial, Helvetica, sans-serif;
    color: dimgray;
    background-color: white;
    border-bottom-width: 0;
    padding-bottom: 0;
    margin-bottom:0;
}

.cardheaderwithrefresh {
    font-size: 20px;
    font-stretch: narrower;
    font-family: Arial, Helvetica, sans-serif;
    color: dimgray;
    background-color: white;
}

.cardsubtext {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-stretch: narrower;
    font-family: Arial, Helvetica, sans-serif;
    color: dimgray;
}

.font-weight-light {
    font-weight: 300 !important;
}

.text-muted {
    color: #99abb4 !important;
}

.chart-container {
    /*width: 1000px;*/
    height: 300px
}

.btn-group button {
    background-color: white; /* background */
    border: 2px solid blue; /* border */
    color: black; /* White text */
    padding: 30px 24px; /* Some padding */
    margin: 10px;
    cursor: pointer; /* Pointer/hand icon */
    float: left; /* Float the buttons side by side */
}

/* Clear floats (clearfix hack) */
.btn-group:after {
    content: "";
    clear: both;
    display: table;
}

.btn-group button:not(:last-child) {
    border-right: none; /* Prevent double borders */
}

/* Add a background color on hover */
.btn-group button:hover {
    background-color: dimgray;
}

.cards-list {
    z-index: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.cardbutton {
    margin: 20px 30px;
    width: 250px;
    height: 200px;
    border-radius: 20px;
    border: 2px solid gray; /* border */
    /*box-shadow: 5px 5px 30px 7px rgba(0,0,0,0.25), -5px -5px 30px 7px rgba(0,0,0,0.22);*/
    cursor: pointer;
    transition: 0.2s;
}

    .cardbutton .card_image {
        width: inherit;
        height: inherit;
        border-radius: 20px;
    }

        .cardbutton .card_image img {
            width: inherit;
            height: inherit;
            border-radius: 20px;
            object-fit: contain;
        }

        .cardbutton .card_image .loader {
            display: none;
            animation: spin .75s infinite linear;
            border: solid 2vmin transparent;
            border-radius: 50%;
            border-right-color: #09f;
            border-top-color: #09f;
            box-sizing: border-box;
            margin: 0 auto;
            position: absolute;
            height: 20vmin;
            top: calc(50% - 12vmin);
            left: calc(50% - 10vmin);
            width: 20vmin;
            z-index: 1;
        }

            .cardbutton .card_image .loader:before {
                animation: spin 1.5s infinite linear;
                border: solid 2vmin transparent;
                border-radius: 50%;
                border-right-color: #3cf;
                border-top-color: #3cf;
                box-sizing: border-box;
                content: "";
                height: 16vmin;
                left: 0;
                position: absolute;
                top: 0;
                width: 16vmin;
            }

            .cardbutton .card_image .loader:after {
                animation: spin 3s infinite linear;
                border: solid 2vmin transparent;
                border-radius: 50%;
                border-right-color: #6ff;
                border-top-color: #6ff;
                box-sizing: border-box;
                content: "";
                height: 12vmin;
                left: 2vmin;
                position: absolute;
                top: 2vmin;
                width: 12vmin;
            }

        .cardbutton .card_image .loader_out {
            display: none;
            animation: spin .75s infinite linear;
            border: solid 2vmin transparent;
            border-radius: 50%;
            border-right-color: #3BB4A4;
            border-top-color: #3BB4A4;
            box-sizing: border-box;
            margin: 0 auto;
            position: absolute;
            height: 20vmin;
            top: calc(50% - 12vmin);
            left: calc(50% - 10vmin);
            width: 20vmin;
            z-index: 1;
        }

            .cardbutton .card_image .loader_out:before {
                animation: spin 1.5s infinite linear;
                border: solid 2vmin transparent;
                border-radius: 50%;
                border-right-color: #9DE8E1;
                border-top-color: #9DE8E1;
                box-sizing: border-box;
                content: "";
                height: 16vmin;
                left: 0;
                position: absolute;
                top: 0;
                width: 16vmin;
            }

            .cardbutton .card_image .loader_out:after {
                animation: spin 3s infinite linear;
                border: solid 2vmin transparent;
                border-radius: 50%;
                border-right-color: #3ED1C2;
                border-top-color: #3ED1C2;
                box-sizing: border-box;
                content: "";
                height: 12vmin;
                left: 2vmin;
                position: absolute;
                top: 2vmin;
                width: 12vmin;
            }

    .cardbutton .card_title {
        text-align: center;
        border-radius: 0px 0px 20px 20px;
        font-family: sans-serif;
        font-weight: bold;
        font-size: 20px;
        margin-bottom: 0px;
        /*height: 40px;*/
    }

    .cardbutton .card_text {
        text-align: left;
        border-radius: 0px 0px 20px 20px;
        font-family: sans-serif;
        font-size: 14px;
        margin-top: -5px;
        flex-wrap: wrap;
    }

     .cardbutton:hover {
        transform: scale(0.8, 0.8);
        box-shadow: 5px 5px 20px 15px rgba(0,0,0,0.25), -5px -5px 20px 15px rgba(0,0,0,0.22);
    }

    .cardbutton.disabled {
        cursor: not-allowed;
        pointer-events: none;
        /*border: 6px solid black;*/
        /*transform: scale(1.3, 1.3);*/
        box-shadow: none;
    }

        .cardbutton.disabled .card_image img{
            display: none;
        }
        .cardbutton.disabled .card_image .loader {
            display: block;
        }

        .cardbutton.disabled .card_image .loader_out {
            display: block;
        }

.cardimage {
    width: 250px;
    height: 200px;
    border: none; /* border */
    cursor: pointer;
    transition: 0.4s;
}

    .cardimage .card_image {
        width: inherit;
        height: inherit;
        border-radius: 20px;
    }

        .cardimage .card_image img {
            width: inherit;
            height: inherit;
            border-radius: 20px;
            object-fit: contain;
        }

    .cardimage .card_title {
        text-align: center;
        border-radius: 0px 0px 20px 20px;
        font-family: sans-serif;
        font-weight: bold;
        font-size: 20px;
        margin-bottom: 0px;
        /*height: 40px;*/
    }

    .cardimage .card_text {
        text-align: left;
        border-radius: 0px 0px 20px 20px;
        font-family: sans-serif;
        font-size: 14px;
        margin-top: -5px;
        flex-wrap: wrap;
    }

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.title-white {
    color: white;
}

.title-black {
    color: black;
}

.ctn {
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    height: 100%;
    min-height: 100%;
}

#check {
    display: none;
}

.btn-label {
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    background-color: #ff6347;
    border: none;
    font-size: 30px;
    color: #fffeee;
    margin-top: 20%;
    height: 50px;
    width: 200px;
}

.btn-text {
    font-size: 30px;
    color: #fffeee;
}

.load {
    display: none;
    width: 20px;
    height: 20px;
    border: 5px solid #fff;
    border-radius: 100%;
}

.open {
    border-top: 5px solid transparent;
    -webkit-animation: load-animate infinite linear 1s;
    animation: load-animate infinite linear 1s;
}

#check:checked ~ .btn-label > .btn-text {
    display: none;
}

#check:checked ~ .btn-label > .load {
    display: inline-block;
}

@-webkit-keyframes load-animate {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    50% {
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
        opacity: 0.35;
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes load-animate {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    50% {
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
        opacity: 0.35;
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}


span.field-icon {
    position: absolute;
    display: inline-block;
    cursor: pointer;
    right: 1.9rem;
    top: 0.7rem;
    color: dimgray;
    z-index: 2;
}

.form-switch {
    display: inline-block;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

    .form-switch i {
        position: relative;
        display: inline-block;
        margin-right: .5rem;
        width: 46px;
        height: 26px;
        background-color: #e6e6e6;
        border-radius: 23px;
        vertical-align: text-bottom;
        transition: all 0.3s linear;
    }

        .form-switch i::before {
            content: "";
            position: absolute;
            left: 0;
            width: 42px;
            height: 22px;
            background-color: #fff;
            border-radius: 11px;
            transform: translate3d(2px, 2px, 0) scale3d(1, 1, 1);
            transition: all 0.25s linear;
        }

        .form-switch i::after {
            content: "";
            position: absolute;
            left: 0;
            width: 22px;
            height: 22px;
            background-color: #fff;
            border-radius: 11px;
            box-shadow: 0 2px 2px rgba(0, 0, 0, 0.24);
            transform: translate3d(2px, 2px, 0);
            transition: all 0.2s ease-in-out;
        }

    .form-switch:active i::after {
        width: 28px;
        transform: translate3d(2px, 2px, 0);
    }

    .form-switch:active input:checked + i::after {
        transform: translate3d(16px, 2px, 0);
    }

    .form-switch input {
        display: none;
    }

        .form-switch input:checked + i {
            background-color: #4BD763;
        }

            .form-switch input:checked + i::before {
                transform: translate3d(18px, 2px, 0) scale3d(0, 0, 0);
            }

            .form-switch input:checked + i::after {
                transform: translate3d(22px, 2px, 0);
            }


.form-control.invalid {
    border-color: #dc3545;
}

.form-control.valid {
    border-color: #28a745;
}

.validation-message {
    width: 100%;
    margin-top: .25rem;
    font-size: 110%;
    color: #dc3545;
    font-weight: 500;
    font-stretch:semi-expanded;
}



/* The Modal (background) */
.modal {
    display: block; /*  */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    -webkit-animation-name: fadeIn; /* Fade in the background */
    -webkit-animation-duration: 0.4s;
    animation-name: fadeIn;
    animation-duration: 0.4s
}

/* Modal Content */
.modal-content {
    position: fixed;
    border-radius: 15px;
    bottom: 0;
    background-color: #fefefe;
    width: 100%;
    font-size: 28px;
    -webkit-animation-name: slideIn;
    -webkit-animation-duration: 0.4s;
    animation-name: slideIn;
    animation-duration: 0.4s
}

/* The Close Button */
.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

    .close:hover,
    .close:focus {
        color: #000;
        text-decoration: none;
        cursor: pointer;
    }

.modal-header {
    padding: 2px 16px;
    background-color: #5cb85c;
    color: white;
}

.modal-body {
    padding: 40px 16px;
}

.modal-footer {
    padding: 2px 16px;
    background-color: #5cb85c;
    color: white;
}

/* Add Animation */
@-webkit-keyframes slideIn {
    from {
        bottom: -300px;
        opacity: 0
    }

    to {
        bottom: 0;
        opacity: 1
    }
}

@keyframes slideIn {
    from {
        bottom: -300px;
        opacity: 0
    }

    to {
        bottom: 0;
        opacity: 1
    }
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

/* The message box */
.message {
    padding: 20px;
    margin-bottom: 15px;
}

/* The message box */
.locationmessage {
    padding: 5px;
    margin-top: -30px;
    margin-bottom: 15px;
}

.square_btn {
    display: inline-block;
    padding: 0.5em 0.5em;
    text-decoration: none;
    color: #3099c5;
    border: solid 1px #3099c5;
    background: transparent;
    border-radius: 10px;
    transition: .4s;
}

    .square_btn:hover {
        color: #ffa800;
    }

    .square_btn.disabled {
        cursor: not-allowed;
        pointer-events: none;
        border: 1px solid #999999;
        background-color: #cccccc;
        color: #edf1f2;
    }

.chip {
    display: inline-block;
    padding: 0 25px;
    height: 50px;
    font-size: 16px;
    line-height: 50px;
    border-radius: 25px;
    background-color: #f1f1f1;
    cursor: pointer;
}

    .chip img {
        float: left;
        margin: 0 10px 0 -25px;
        height: 50px;
        width: 50px;
        border-radius: 50%;
    }

    .chip:hover {
        color: dodgerblue;
        background-color:darkgray;
    }

.logout {

}

.dropdown-container {
    width: 450px;
    margin-right:50px;
    position: relative;
}

.selectzone {
    width: 100%;
    height: 50px;
    font-size: 100%;
    /*font-weight: bold;*/
    cursor: pointer;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.00);
    border: 1px solid dimgray;
    color: dimgray;
    padding: 10px;
    padding-right: 40px;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: color 0.3s ease, background-color 0.3s ease, border-bottom-color 0.3s ease;
}

    /* For IE <= 11 */
    .selectzone::-ms-expand {
        display: none;
    }

.select-icon {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 30px;
    height: 36px;
    pointer-events: none;
    border: none;
    padding-left: 0px;
    color: dimgray;
    font-size: 30px;
}

    .select-icon svg.icon {
        transition: fill 0.3s ease;
        fill: white;
    }

.selectzone:hover,
.selectzone:focus {
    color: black;
    background-color: white;
}

    .selectzone:hover ~ .select-icon,
    .selectzone:focus ~ .select-icon {
        color: black;
    }

    .select-css:disabled:hover, .select-css[aria-disabled=true] {
        border-color: #aaa;
    }

.copyright {
    color: dimgray;
    float: right;
    margin-right: 10px;
    font-size: small;
}

@media all and (max-width: 500px) {
    .card-list {
        /* On small screens, we are no longer using row direction but column */
        flex-direction: column;
    }
}


@media (max-width: 767.98px) {
        .main .top-row {
            display: none;
        }

        .logo {
            display: none;
        }


        .logout {
            position: sticky;
            top: 0;
        }

        .logobig {
            height: 15vh;
            width: 80vw;
            margin-top: -20px;
        }

        .region {
            height: 10vh;
            width: 65vw;
        }

        p.big {
            margin-top:-20px;
        }
 }

@media (min-width: 768px) {
        app {
            flex-direction: row;
        }

        .sidebar {
            width: 250px;
            height: 100vh;
            position: sticky;
            top: 0;
        }

        .main .top-row {
            position: sticky;
            top: 0;
        }

        .main > div {
            padding-left: 2rem !important;
            padding-right: 1.5rem !important;
        }

        .logo {
            position: sticky;
            top: 0;
        }

        .logout {
            display: none;
        }


        .navbar-toggler {
            display: none;
        }

        .sidebar .collapse {
            /* Never collapse the sidebar for wide screens */
            display: block;
        }
 }
.spninner{
    border: 16px solid silver;
    border-top: 16px solid #337ab7;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 700ms linear infinite;
    top: 40%;
    left: 55%;
    position: absolute;
}

@keyframes spin {
    0%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(360deg);
    }
    
}
