@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;
}

.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;
}

.validation-message {
    color: 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;
}

/* 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;
}

.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: 50px 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.4s;
}

    .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_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.9, 0.9);
        box-shadow: 5px 5px 20px 15px rgba(0,0,0,0.25), -5px -5px 20px 15px rgba(0,0,0,0.22);
    }

.title-white {
    color: white;
}

.title-black {
    color: black;
}

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);
            }

/* 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;
}

.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;
}

    .chip img {
        float: left;
        margin: 0 10px 0 -25px;
        height: 50px;
        width: 50px;
        border-radius: 50%;
    }

    .chip:hover {
        color: dodgerblue;
        background-color:darkgray;
    }

@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;
    }

    .loginlarge {
        display: none;
    }

    .loginsmall {
        display: normal;
    }
}

@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;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .loginlarge {
        display: normal;
    }

    .loginsmall {
        display: none;
    }
}
