html {
    font-size: 62.5%;
    position: relative;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Helvetica, Verdana, sans-serif;
    font-size: 1.6rem;
    color: #444;
    margin: 0 0 50px;
    background: #f8f8f8;
}

body#home {
    margin: 0;
}

#home p, #home .spaced_bulleted_list li, #home .content ul {
    margin-bottom: 1.6rem;
}

#home .content ul {
    padding-left: 3rem;
}

#home .container-fluid {
    padding-bottom: 60px;
}

#home .navbar-collapse {
   background: white;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    line-height: 60px;
    background-color: #343a40;
}

.footer p {
    margin: 0 !important;
}

b, strong {
    font-weight: 500 !important;
}

a {
    text-decoration: none !important;
}

a:visited {
    text-decoration: none;
    color: #0366d6;
}

.form_field {
    margin: 0.25em 0 1.5em;
}

input[type=text], input[type=password], textarea {
    padding: 8px 10px;
    vertical-align: top;
}

select {
    padding: 9px 10px 10px 10px;
    vertical-align: top;
}

.editable select {
    border-width: 1px;
    padding: 2px 8px 3px 7px;
    min-height: 45px;
}

.form_field input[type=text], .form_field input[type=password], .form_field textarea, #split_percent_train {
    width: 500px;
}

.form_field .numeric, .form_field .temporal {
    width: 200px !important;
}

.editable input[type=text], .editable input[type=password], .editable textarea {
    width: 100%;
}

.editable td {
    padding: 0;
}

.editable td span {
    width: 100%;
    padding: 10px 12px;
    display: inline-block;
}

input, textarea, select, button {
    box-sizing: border-box;
    font-family: inherit;
}

input, textarea, select {
    display: block;
}

td input, td textarea, td select {
    width: 100%;
}

input[type=checkbox], input[type=radio] {
    display: inline-block;
    margin-right: 6px;
    vertical-align: bottom;
    width: 17px;
    height: 17px;
    position: relative;
    top: -8px;
    cursor: pointer;
}

.form_checkbox label {
    cursor: pointer;
}

/*.text_editor {
    padding: 4px 8px;
    background-color: #fff;
    text-align: left;
}*/

.dropdown_inline {
    display: inline-block;
    padding: 1px;
}

input[type=submit], button {
    background-color: #5d9cec;
    padding: 8px 16px;
    border: 0;
    border-radius: 3px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type=submit]:hover, button:hover {
    background-color: #2e7cde;
    color: #fff;
}

input[type=submit][disabled], button[disabled] {
    background-color: gray;
}

input[type=submit][disabled]:hover, button[disabled]:hover {
    cursor: default;
}

/* Over-rides Bootstrap default background colour for secondary button */
.btn-secondary {
    background-color: #888;
}

.btn-secondary:hover {
    background-color: #666;
}

h1, h2, h3, h4, h5, h6 {
    color: #374249;
    /*color: #505458;*/
    line-height: 1;
}

h1 {
    font-weight: 300;
    font-size: 2.4rem;
    line-height: 24px;
    font-family: Ubuntu, Arial, sans-serif;
    /*font-size: 3rem !important;*/
    margin-bottom: 2rem;
}

h2 {
    font-weight: 400;
    font-size: 4rem;
    margin-bottom: 5rem !important;
    font-family: Ubuntu, Arial, sans-serif;
}

h3 {
    font-family: Ubuntu, Arial, sans-serif;
    font-weight: 400;
    font-size: 2.4rem;
    line-height: 3.2rem;
    margin-bottom: 2.5rem !important;
}

#home h3 {
    font-size: 2rem;
    line-height: 1rem;
    margin-bottom: 2rem !important;
}

h4 {
    font-size: 1.6rem;
    margin-bottom: 1.6rem;
    font-family: Ubuntu, Arial, sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

#home h4:not(:first-child) {
    margin-top: 3.2rem;
}

pre {
    font-size: 1.6rem !important;
}

/* Make bullet points in body content sections square */
/* #home .content li, .section li { */
.content li, .section li {
    list-style-type: square;
}


/* Tables - use standard HTML table tags but use flex-box so we can animate rows */

table {
    width: 100%;
    margin-bottom: 50px;
    overflow-x: visible;
}

/*table#features {
    display: flex;
    flex-direction: column;
}*/

table#data_table {
    width: unset;
    min-width: 100%;
    table-layout: fixed;
}

tr {
    background: #fff;
}

thead > tr {
    /*text-align: left;*/
    /*background-color: #bdf;*/
    white-space: nowrap;
    vertical-align: bottom;
}

tbody > tr:first-child td {
    border-top: 0;
    margin-top: 0;
}

th, td {
    padding: 10px 12px;
    /*word-break: break-word;*/
    background-color: #fff;
    vertical-align: top;
}

th {
    font-weight: 500;
    /*text-align: left;*/
    /*background-color: #bdf;*/
    border-bottom: 1px solid #999;
    white-space: nowrap;
    vertical-align: bottom;
    width: 1%;
}

#features_data_type_id {
    min-width: 180px;
}

td {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin-top: -1px;
}

.loading td {
    opacity: 0.6;
}

.loading a {
    pointer-events: none;
}

.tab-content > .tab-pane {
    /*Disable Bootstrap dynamic tabbing*/
    display: block;
}

.row_selected {
    z-index: 1;
}

.row-move {
    transition: transform 0.75s;
}

.row-enter-active, .row-leave-active {
    transition: all .75s;
}
.row-enter, .row-leave-to {
    opacity: 0;
}

.fixed-right-col {
    position: sticky;
    right: 0px;
    margin-right: 50px;
}

.actions {
    min-width: 125px !important;
    width: 0.1%;
}

#features th:nth-child(4), #features td:nth-child(4) {
    flex-basis: 200px;
}

.percentage {
    width: 5.5rem;
    display: inline-block;
    text-align: right;
}

.percentage_standard {
    color: #009900;
}

.percentage_problem {
    color: #ff0000;
}

.tab-content {
    padding: 50px;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background: #fff;
}

.card-body {
    padding: 50px;    
}

/*  Information button (unhovered) - Silver */
.info {
    display: block;
    width: 22px;
    height: 22px;
    font-size: 12px;
    /*line-height: 20px;*/
    border: 1px solid #aaa;
    border-radius: 50%;
    color: #888;
    background-color: #eee;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.8rem;
    margin-top: 1px;
}

.info::before {
    content: "i";
}

.info:hover {
    background-color: #69f;
    color: #fff;
}

.section, .pagination {
    margin-bottom: 50px;
}

.section:last-child {
    margin-bottom: 0;
}

.pagination_info {
    text-align: right;
    margin-bottom: 30px;
}

.pagination_info label {
    margin-right: 10px;
}

#data_table_section {
    overflow-x: auto;
}

.page-link {
    padding: 0.8rem 1.2rem;
}

.page-item.active .page-link {
    background-color: #5d9cec;
    border-color: #5d9cec;
}

.filter_options label {
    cursor: pointer;
}

.pagination a:visited {
    color: #444;
}

.badge-danger {
    background: #ff3333;
}

nav {
    margin-bottom: 25px;
}

#home nav {
    margin-bottom: 0;
}

#home .col-12, #home .col-md-2, #home .col-md-4, #home .col-md-6, #home .col-md-8, #home .col-lg-2, #home .col-lg-4, #home .col-lg-6, #home .col-lg-8 {
    padding-top: 2.5rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    padding-bottom: 0;
}

#homepage_banner {
    background-image: url('https://neuroactive.ai/static/images/homepage_banner_1150x400.png');
    background-repeat: no-repeat;
    background-position: -250px 0;
    background-size: 575px 200px;
    height: 200px;
    background-color: #000;
}
#homepage_banner_text {
    padding-top: 2.5rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}
#homepage_banner_text h1 {
     font-family: Ubuntu;
     color: #fff;
     line-height: 1;
     /*font-size: 3.2rem;*/
}
#homepage_banner_text p {
    font-family: 'Segoe UI';
    color: #fff;
    letter-spacing: 0.5px;
    font-weight: 300;
}
/* Disable the <br> tags on mobile screens only. See: https://stackoverflow.com/questions/7596647/ignore-br-with-css/18040142#18040142 */
#homepage_banner_text br {
   content: " ";
}

#print-nav {
    display: none;
}

.bg-inverse {
    background-color: #000 !important;
}

.navbar {
    padding: 0;
    height: 57px;
}

#home .navbar {
    height: 70px;
    /*background: #f2f2f2 !important;*/
    background: #fff !important;
    border-bottom: 1px solid #aaa;
}

.navbar-brand {
    margin-right: 50px;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    padding-top: 0;
    padding-bottom: 0;
}

#home .navbar-brand {
    margin-left: 0.4rem;
    margin-right: 0.4rem;
}

.navbar-toggler {
    margin-right: 2.5rem;
}

#header_logo {
    width: 223px;
    height: 67px;
    margin-bottom: 3px;
}

.navbar .navbar-nav .nav-link {
    color: #777;
    transition: all 0.2s ease;
}

.navbar .navbar-nav .nav-link:hover {
    color: #222;
}

#home .navbar-nav .nav-link {
    font-size: 2rem;
    padding-top: 2.5rem;
    padding-bottom: 0rem;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
}
#home .navbar-nav .nav-item:last-child {
    padding-bottom: 2.5rem;
}

#home .show .navbar-nav .nav-item:last-child, #home .collapsing .navbar-nav .nav-item:last-child {
    border-bottom: 1px solid #aaa;
}

.navbar-inverse .navbar-nav .nav-link {
    color: rgba(255, 255, 255, .8);
    transition: all 0.2s ease;
}

.navbar-inverse .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.95);
}

a.nav-link, a.page-link {
    color: #464a4c;
}

#log_in, #log_out {
    padding-right: 0 !important;
}

.form-inline {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.form-control {
    font-size: 1.6rem;
}

#outer-col {
    margin-top: 42px;
}

#outer-col .card {
    padding: 50px;
}

#outer-col .card-block {
    padding: 0;
}

.alert ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.data_quality_table {
    min-width: 100%;
    /*table-layout: fixed;*/
}

.data_quality_table th, .data_quality_table td {
    /*flex-basis: 120px;*/
    /*width: 120px;*/
}

.data_quality_table th:first-child, .data_quality_table td:first-child {
    /*flex: 0 0 200px;*/
    min-width: 160px;
}

.data_quality_table th:nth-child(n+2):nth-child(-n+4), .data_quality_table td:nth-child(n+2):nth-child(-n+4) {
    /*flex: 0 0 150px;*/
    min-width: 120px;
}

.data_quality_table th:last-child, .data_quality_table td:last-child {
    min-width: 124px;
}

#data_quality_continuous th:nth-child(n+2):nth-child(-n+11),
#data_quality_continuous td:nth-child(n+2):nth-child(-n+11),
#data_quality_geographic th:nth-child(n+2):nth-child(-n+11),
#data_quality_geographic td:nth-child(n+2):nth-child(-n+11) {
    text-align: right;
}

#data_quality_categorical th:nth-child(n+2):nth-child(-n+4),
#data_quality_categorical th:nth-child(6),
#data_quality_categorical th:nth-child(8),
#data_quality_categorical td:nth-child(n+2):nth-child(-n+4),
#data_quality_categorical td:nth-child(6),
#data_quality_categorical td:nth-child(8) {
    text-align: right;
}

#data_quality_textual th:nth-child(n+2):nth-child(-n+7), 
#data_quality_textual td:nth-child(n+2):nth-child(-n+7) {
    text-align: right;
}

.attention {
    background-color: #ffddee;
}

.attention .icon {
    float: right;
}

.attention .icon svg {
    fill: #cc0033;
}

.problem {
    background-color: #ff4040;
}

th.numeric {
    text-align: right;
    width: 1%;
    min-width: 150px;
}

span.numeric {
    text-align: right;
}

th.categorical {
    width: 1%;
    min-width: 150px;
}

th.temporal {
    width: 1%;
    min-width: 150px;
}

th.textual {
    width: 1%;
    min-width: 150px;
}

#features_table {
    min-width: 100%;
}

/* Use the "pointer" cursor over editable table cells */
#features_table td:nth-child(n+1):nth-child(-n+2), 
#features_table td:nth-child(n+4):nth-child(-n+8) {
    cursor: pointer;
}

#data_table td:nth-last-child(n+2) {
    cursor: pointer;
}

#classes_nominal_table td:nth-child(1) {
    cursor: pointer;
}

#classes_other_table td:nth-child(2) {
    cursor: pointer;
}

#algorithms_table th:nth-child(n+5):nth-child(-n+8), 
#algorithms_table td:nth-child(n+5):nth-child(-n+8) {
    text-align: right;
}

.hidden {
    visibility: hidden;
}

.action_icons .icon {
    margin-right: 10px;
}

.action_icons .icon:last-child {
    margin-right: 0;
}

.icon {
    display: inline-block;
}

.icon svg {
    vertical-align: middle;
    margin-bottom: 2px;
    fill: #555;
    transition: all 0.3s ease;
}

.icon svg:hover {
    fill: #5d9cec;
}

.delete svg:hover {
    fill: #e00909 !important;
}

select, .link {
    cursor: pointer !important;
}

/* Used to grey out entries in the tables to be edited which have been inserted by the system */
.placeholder {
    color: #999;
}

.placeholder span::before {
    content: "\2014";
}

.badge {
    padding: 0.3rem 0.6rem;
    color: #fff;
    font-family: 'Open sans';
    text-transform: uppercase;
    letter-spacing: 0.75px;
    margin-top: 0.5rem;
    margin-left: 1rem;
    font-size: 12px;
    font-weight: 400;
    background: steelblue;
    vertical-align: top;
    margin-top: 0.6rem;
}

/* Modals */
.modal-content {
    padding: 0;
}

.modal-body {
    padding: 50px;
}

.modal-body h1 {
    line-height: 1;
    margin-bottom: 3.2rem;
}

.modal-footer {
    padding: 50px;
    border-top: 0;
}

.modal-footer>:not(:last-child) {
    margin-right: 25px;
}


/* Visualisations */
.mini_chart {
    line-height: 0;
}

.progress-bar {
    background-color: steelblue !important;
}

.chart {
    width: 100%;
    height: 500px;
    margin-bottom: 50px;
}

/* TODO: Set aspect ratio of chart using techniques described here: https://css-tricks.com/aspect-ratio-boxes/ */

/*.chart_16_9 {
    height: calc(100vw * 0.5625);
}

.chart_4_3 {
    height: calc(100vw * 0.75);
}
*/

/* Hide elements until compiled by Vue.js */
[v-cloak] {
    display: none;
}



/* Media queries */

/* Small devices (landscape phones, 576px wide and up) */
/* Nav menu is in header (i.e. not collapsed) from the breakpoint and wider */
@media (min-width: 576px) {
    .form-control {
        width: 100% !important;
    }

    #home .col-12, #home .col-md-2, #home .col-md-4, #home .col-md-6, #home .col-md-8, #home .col-lg-2, #home .col-lg-4, #home .col-lg-6, #home .col-lg-8 {
        padding-top: 4rem;
        padding-left: 4rem;
        padding-right: 4rem;
    }

    #home .navbar {
        height: 65px;
    }

    #home .navbar-brand {
        margin-left: 2rem;
    }

    #header_logo {
        width: 207px;
        height: 62px;
        margin-bottom: 3px;
    }

    #home .navbar-collapse {
       background: unset;
    }

    #home .navbar-nav .nav-link {
        font-size: 1.5rem;
        letter-spacing: 0;
        text-align: left;
    }

    .navbar-nav .nav-link {
        padding-right: 25px !important;
        padding-left: 0 !important;
        font-size: 1.5rem;
        letter-spacing: 0.75px;
        text-transform: uppercase;
        font-family: Ubuntu, sans-serif;
    }

    #homepage_banner {
        background-position: -120px 0;
    }
    #homepage_banner_text {
        padding-top: 50px;
        padding-left: 140px
    }
    #homepage_banner_text br {
       content: unset;
       /*float: unset;*/
    }
}

/* Medium devices (tablets, 768px wide and up) */
@media (min-width: 768px) {
    body#home, #home h4 {
        font-size: 1.7rem;
        margin-bottom: 1.7rem;
    }

    #home h4:not(:first-child) {
        margin-top: 3.4rem;
    }

    #home p, #home .spaced_bulleted_list li, #home .content ul {
        margin-bottom: 1.7rem;
    }

    #home .navbar {
        height: 80px;
    }

    #home .navbar-brand {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }

    #header_logo {
        width: 255px;
        height: 77px;
        margin-bottom: 3px;
    }

    #home .navbar-nav .nav-link {
        font-size: 1.7rem;
        letter-spacing: 0.75px;
    }

    h1 {
        font-size: 2.8rem;
        line-height: 36px;
    }

    #home h3 {
        font-size: 2.4rem;
        margin-bottom: 2.4rem !important;
    }

    #homepage_banner {
        background-position: -170px 0;
        background-size: 1150px 400px;
        height: 400px;
    }
    #homepage_banner_text {
        padding-top: 150px;
        padding-left: 300px
    }
}

/* Large devices (desktops, 992px wide and up) */
@media (min-width: 992px) {
    body#home, #home h4 {
        font-size: 1.8rem;
        margin-bottom: 1.8rem;
    }

    #home h4:not(:first-child) {
        margin-top: 4rem;
    }

    #home p, #home .spaced_bulleted_list li, #home .content ul {
        margin-bottom: 1.8rem;
    }

    #home .navbar {
        height: 81px;
    }

    .navbar-nav .nav-link {
        font-size: 1.5rem;
    }

    #header_logo {
        width: 270px;
        height: 81px;
        margin-bottom: 4px;
    }

    #home .navbar-nav .nav-link {
        font-size: 1.8rem;
    }

    #home .row {
        margin-left: 0;
        margin-right: 0;
    }

    #home .col-12, #home .col-md-2, #home .col-md-4, #home .col-md-6, #home .col-md-8, #home .col-lg-2, #home .col-lg-4, #home .col-lg-6, #home .col-lg-8 {
        padding: 4rem;
    }

    #home .container-fluid {
        padding-right: 0;
        padding-left: 0;
    }

    h1 {
        font-size: 3.2rem;
        line-height: 48px;
    }

    #home h3 {
        font-size: 2.8rem;
        margin-bottom: 2.8rem !important;
    }

    #homepage_banner {
        background-position: -130px 0;
    }
    #homepage_banner_text {
        padding-left: 400px
    }
}

/* Extra large devices (large desktops, 1200px wide and up) */
@media (min-width: 1200px) {
    body#home, #home h4 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    #home h4:not(:first-child) {
        margin-top: 5rem;
    }

    #home p, #home .spaced_bulleted_list li, #home .content ul {
        margin-bottom: 2rem;
    }

/*    #home .navbar {
        height: 90px;
    }

    #header_logo {
        width: 300px;
        height: 90px;
        margin-bottom: 7px;
    }*/

    #home .navbar-nav .nav-link {
        font-size: 1.8rem;
    }

/*    #home .row {
        margin-left: 0;
        margin-right: 0;
    }
*/
    #home .col-12, #home .col-md-2, #home .col-md-4, #home .col-md-6, #home .col-md-8, #home .col-lg-2, #home .col-lg-4, #home .col-lg-6, #home .col-lg-8 {
        padding: 5rem;
    }

    .col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9 {
        padding-right: 25px;
        padding-left: 25px;
    }
    .container-fluid {
        padding-right: 50px;
        padding-left: 50px;
    }
    .row {
        margin-right: -25px;
        margin-left: -25px;
    }
}


/* Print styles */
@media print {
    body {
        background: #fff;
    }

    #print-nav {
        display: block;
        width: 350px;
        height: 180px;
        position: relative;
        top: -40px;
        left: -45px;
        margin-bottom: -45px;
    }

    #print-logo {
        width: 350px;
        height: 180px;
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
        /*margin-bottom: -20px;*/
        /*margin: 50px;*/
 /*       margin-top: 10px;
        margin-left: 10px;
        padding: 0;*/
/*        position: relative;
        top: -40px;
        left: 0;
*/    }

    .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }

    .col {
        padding-left: 0;
        padding-right: 0;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .nav-tabs {
        border-bottom: 0;
    }

    li.nav-item > a.nav-link.active {
        font-family: Ubuntu, Arial, sans-serif;
        font-weight: 300;
        font-size: 2.8rem;
        line-height: 2.8rem;
        margin-bottom: 2.5rem !important;
        border: 0;
        padding: 0;
    }

    li.nav-item > a.nav-link:not(.active) {
        display: none;
    }

    .tab-content {
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        padding: 0;
    }

    .badge {
        background: #fff;
        color: #444;
        border: 0;
    }

    /* Hide "Actions" column in "Dataset - Features" table */
    #features_table th:nth-child(9), #features_table td:nth-child(9) {
        display: none;
    }

    /* Hide "Actions" column in "Model - Algorithms" table */
    #algorithms_table th:nth-child(7), #algorithms_table td:nth-child(7) {
        display: none;
    }

    /* Hide "Create experiment" button section */
    #create_experiment_button_section {
        display: none;
    }
}
