h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0!important;
}

hr {
    margin: 0px;
    margin-bottom: 1.5rem;
}

#api_view, #api_endpoints, #alist, #alist-cur, .fix-over {
	scrollbar-width: thin;
	scrollbar-color: #d50000 white;
}

#api_view::-webkit-scrollbar, #alist::-webkit-scrollbar, #alist-cur::-webkit-scrollbar, .fix-over::-webkit-scrollbar {
	scrollbar-width: thin;
	scrollbar-color: #d50000 white;
	width: 12px;
}

#api_view::-webkit-scrollbar-track, #alist::-webkit-scrollbar-track, #alist-cur::-webkit-scrollbar-track, .fix-over::-webkit-scrollbar-track {
	scrollbar-width: thin;
	scrollbar-color: #d50000 white;
	background: white;
}

#api_view::-webkit-scrollbar-thumb, #alist::-webkit-scrollbar-thumb, #alist-cur::-webkit-scrollbar-thumb, .fix-over::-webkit-scrollbar-thumb {
	scrollbar-width: thin;
	scrollbar-color: #d50000 white;
	background-color: #d50000;
	border-radius: 20px;
	border: 1px solid white;
}

#back {
    background: linear-gradient(-45deg, #878786, #878786, #e1e1e1, #e31210, #e31210);
    background-size: auto;
    background-size: 400% 400%;
    animation: login-back 60s ease infinite;
    position: fixed;
    top: 0px;
    height: 100%;
    width: 100%;
    z-index: -1;
}

.wrapper {
    position: relative;
    min-height: calc(100vh - 75px);
    padding-top: 2rem;
    margin-bottom: 5vh;
}

.login-wrapper {
    position: relative;
    min-height: 100vh;
}

.navbar {
    position: relative;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: #d50000!important;
}

.form-switch .form-check-input:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e")!important;
}

.login-block {
    background-color: #ffffff;
    position: relative;
    width: 20%;
    min-width: 300px !important;
    border-radius: 5px;
    -webkit-box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -7px rgba(0, 0, 0, 0.2);
    box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -7px rgba(0, 0, 0, 0.2);
}

.file-upload-wrapper {
    background-color: rgba(213, 0, 0,0.7);
}

.login-block i {
    color: grey;
    font-size: 1.2rem;
}

.logo {
    position: relative;
    width: 80%;
    margin-bottom: 30px;
    padding: 15px;
    left: 10%;
}

.login-badge {
    position: relative;
    width: 60%;
    left: 20%;
    padding: 30px;
    margin-bottom: 30px;
    padding: 10px;
}
.input-sec {
    width: 80%;
    left: 10%;
    position: relative;
}

.hover-dark:hover {
    background-color: #fd6865!important;
}

.endpoint_input {
    position: relative;
    width: 70%;
    left: 15%;
}

.uploader {
    opacity: 0;
    position: absolute;
    z-index: -1000;
}

#alist, #alist-cur{
    max-height: 300px;
    overflow-y: auto;
}

.nav-logo {
    height: 40px;
}

.pointer {
    cursor: pointer;
}

.table-header {
    border-bottom: 1px solid #c6c7c8;
}

#content_view {
    border-bottom: 1px solid #c6c7c8;
}

.l-width {
    min-width: 100px;
}

.swal2-styled.swal2-confirm {
    background-color: #d50000!important;
}

.nav-sticker {
    position: fixed;
    z-index: 100;
    top: 0px;
    height: 63px;
}

.navbar-light .navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: none;
}

.navbar {
    margin-bottom: 3rem;
}

#disabled {
    height: 25px;
    width: 40px;
    background-color: #d50000;
    border: none;
    color: white;
    outline: none;
}

#disabled:focus, #disabled:active {
    color: white;
    outline: none;
    box-shadow: none;
}

.text-left-force {
    text-align: left!important;
}

.welcomer {
    vertical-align: middle;
    position: relative;
    height: 100%;
}

.row-back:not(#add_row):not(.newrow) {
    transition: all .5s ease;
    min-height: 100px;
    border-bottom: 1px solid #c6c7c8;
}


.newrow-body {
    background-color: #FF9694 !important;
}

.fix-over {
    max-height: 80px;
    overflow-x: auto;
    word-wrap: unset;
    word-break: unset;
}

.middle {
    vertical-align: middle;
}

.selector {
    position: relative;
    height: 20px;
    width: 20px;
    vertical-align: middle;
}

.inactive {
    background-color: #FF9694!important;
}

.width-fix {
    min-width: 200px;
}

/* .row-back .col-1, .row-back .col-2, .row-back .col-3, .row-back .col-4, .row-back .col-5, .row-back .col-6, .row-back .col-7, .row-back .col-8, .row-back .col-9, .row-back .col-10, .row-back .col-11, .row-back .col-12  {
    FOR THE CELLS INSIDE THE API TABLES
} */

.row-back:nth-child(even) {
    background-color: #ebebeb;
}

.row-back:nth-child(odd) {
    background-color: #f3f3f3;
}

.row-back-light {
    background-color: #f3f3f3!important;
    transition: all .5s ease;
    min-height: 100px;
    border-bottom: 1px solid #c6c7c8;
}

.row-back:not(.newrow):hover {
    box-shadow: -5px 0px 0px 0px #d50000 inset, 5px 0px 0px 0px #d50000 inset;
}

.form-control {
    border: none;
    border-bottom: 1px #808080 solid;
    border-radius: 0px;
}

.form-control:active, .form-control:focus {
    outline: none;
    border: none;
    border-bottom: 2px #3a3a3a solid;
    box-shadow: none;
}

#uploader .btn-main {
    left: auto!important;
    width: auto!important;
}

.btn-main {
    position: relative;
    left: 10%;
    width: 80%;
    background: #d50000;
    border: none;
    border-radius: 2px;
    text-decoration: none;
    cursor: pointer;
    color: white;
    -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
}

.btn-main:hover {
    -webkit-box-shadow: 0 3px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 3px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
    color: white;
}

#api_view{
    max-height: 66vh;
    overflow-y: auto;
}

#api_endpoints {
    overflow: auto;
}

.btn-main-nopos:not(.view_api) {
    word-wrap: anywhere;
}

.btn-main-nopos {
    position: relative;
    background: #d50000;
    border: none;
    border-radius: 2px;
    text-decoration: none;
    cursor: pointer;
    color: white;
    -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
}

.updated {
    color: #d50000;
}

.btn-main-nopos:hover {
    -webkit-box-shadow: 0 3px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 3px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
    color: white;
}

.card-back {
    background-color: #ffffff;
    border-radius: 5px;
    -webkit-box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -7px rgba(0, 0, 0, 0.2);
    box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -7px rgba(0, 0, 0, 0.2);
}

/* charts */

.card-back canvas {
    position: relative;
    width: 50%!important;
    height: 50%!important;
    left: 25%;
}

.card-back .chart-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
}

.card-back .title {
    position: relative;
    top: -5vh;
    font-size: 1.5rem;
}

/* ANIMATIONS */

@-webkit-keyframes login-back {
    0%{background-position:94% 0%}
    50%{background-position:7% 100%}
    100%{background-position:94% 0%}
}
@-moz-keyframes login-back {
    0%{background-position:94% 0%}
    50%{background-position:7% 100%}
    100%{background-position:94% 0%}
}
@-o-keyframes login-back {
    0%{background-position:94% 0%}
    50%{background-position:7% 100%}
    100%{background-position:94% 0%}
}
@keyframes login-back {
    0%{background-position:94% 0%}
    50%{background-position:7% 100%}
    100%{background-position:94% 0%}
}

/* Responsive behaviours */

@media only screen and (max-height: 670px) {
    .wrapper {
        margin-top: 1vh!important;
    }
}

@media only screen and (max-width: 992px) {
    #welcomer {
        display: none;
        visibility: hidden;
    }
}

@media only screen and (max-width: 900px) {
    .card-back .title {
        font-size: 1.2rem!important;
    }
}

@media only screen and (max-width: 768px) {
    .wrapper {
        margin-top: 1vh!important;
    }
    .card-back {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
}

@media only screen and (max-width: 600px) {
    .nav-logo {
        display: none;
        visibility: hidden;
    }
    .nav-sticker {
            height: unset;
    }
}