@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@100;200;300;400;800&display=swap');

header {
    display: none;
}

/* ========================================================================= */
/*                                Grid layout                                */
/* ========================================================================= */

#content {
    display: grid;
    grid-template-columns: 1fr 4fr;
    grid-template-rows: auto;
    gap: 10px;
    grid-template-areas:
      "left_col plots"
      "left_col plots"
      "left_col plots";
    height: 100vh !important;
}

#div_left_col {
    grid-area: left_col;
    display: flex;
    flex-direction: column;
}
#div_table {
    min-width: 300px;
    min-height: 0px;
    height: calc(100vh - 70px - 350px);
    text-align: center;
}
#div_heightfield {
    height: 300px;
}

#plots {
    grid-area: plots;
    min-width: 0px;
    min-height: 0px;
    text-align: center;
}

/* ========================================================================= */
/*                            Loading (at center)                            */
/* ========================================================================= */

#loading {
    background-color: rgba(255, 255, 255, 0.2);
    position: absolute;
    top: 0vh;
    left: 0vw;
    width: 100%;
    height: 100vh;
    z-index: 100;
}
#loading span {
    position: fixed;
    top: 10px;
    right: 10px;

    font-size: xx-large;
    font-weight: bold;
}
#loading i {
    margin-right: 15px;
    animation: rotation 2s infinite linear;
}
@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(359deg);
    }
}

#scrollToTop_button {
    display: none;
}

/* ========================================================================= */
/*                                  Titles                                   */
/* ========================================================================= */

h1 {
    text-align: center;
    border-bottom: 4px solid var(--dark-color);
    margin: 0 50px 30px;
    padding-bottom: 20px;
}


/* ========================================================================= */
/*                                  Tooltips                                 */
/* ========================================================================= */

.tooltip {
    position: relative;
}

.tooltip .help {
    vertical-align: center;
    font-weight: normal;
    font-size: medium;
    cursor: help;
    color: var(--dark-color);
}

.tooltip .help + div {
    visibility: hidden;
    position: fixed;
    z-index: 3;
    
    bottom: 0;
    right: 0;
    padding: 15px;
    
    max-width: 300px;
    
    background: var(--dark-color);
    color: var(--light-color);
    box-shadow: rgba(0, 0, 0, 0.7) 0px 0px 50px;
    
    font-weight: 200;
    font-size: medium;
    text-align: center;
    
    opacity: 0;
    transition: visibility 0s, opacity 0.2s linear;
}
.tooltip .help + div:before {
    content: "?";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    transform: translateX(-50%) translateY(-50%);
    background-color: black;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    border: 3px solid white;
    font-weight: bold;
}
.tooltip .help:hover + div {
    visibility: visible;
    opacity: 1;
}

.tooltip .help + div h3 {
    margin: 0;
}


/* ========================================================================= */
/*                                   Logos                                   */
/* ========================================================================= */

#logos {
    padding: 50px;
}

#logos img {
    width: 100%;
    margin: 10px;
    display: block;
}

/* ========================================================================= */
/*                                Heightfield                                */
/* ========================================================================= */

#div_heightfield {
    text-align: center;
}
figcaption {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: large;
    font-weight: 800;
}


/* ========================================================================= */
/*                            Correlation matrix                             */
/* ========================================================================= */

#features_choice {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

#features_choice label {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 5px;
    border-radius: 5px;
}
#features_choice label.active {
    background-color: var(--xlim-color);
}

#img_corr_mat {
    width: 100%;
}

/* ========================================================================= */
/*                                   Plots                                   */
/* ========================================================================= */

.plot_section {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
}
.plot_section  > div {
    position: relative;
    align-self: center;
}

.title-y {
    display: none;
    position: absolute;
    z-index: -1;
    top: 20px;
    left: 70px;
    background: #8080807d;
    color: var(--xlim-color);
    padding: 7px 15px;
    border: 1px solid var(--dark-color);
    border-radius: 5px;
    font-weight: 300;
}

.r2 {
    position: absolute;
    z-index: -1;
    bottom: 25px;
    right: 10px;
    padding: 5px;
    font-weight: 300;
    font-size: small;
}

.d3-tip {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    color: white;
}

.d3-tip td {
    padding: 5px 10px;
    border: 0;
}

.d3-tip td:first-of-type {
    text-align: right;
    font-weight: bold;
}

/* ========================================================================= */
/*                            Interactive inputs                             */
/* ========================================================================= */

#div_adaptative {
    border: 1px solid black;
    border-radius: 10px;
    padding: 10px;
    margin: 15px;
    min-width: 400px;
    max-width: 400px;
    align-self: start;
}

#source_selection {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}
#source_selection button {
    font-weight: 400;
    border-radius: 8px;
}

#div_adaptative input[type="checkbox"] {
    vertical-align: text-top;
}
#div_adaptative input[type="radio"] {
    vertical-align: text-top;
}

#training {
    font-weight: 400;
}

/* ========================================================================= */
/*                            Prediction formula                             */
/* ========================================================================= */

#prediction_formula {
    display: inline-block;
    border: red 3px solid;
    border-radius: 10px;
    padding: 10px;
    margin: 15px;
}

.eq_par {
    color: red;
    font-size: x-large;
}


/* ========================================================================= */
/*                             Prediction table                              */
/* ========================================================================= */

.pred_table {
    border-collapse: collapse;
    border: 2px solid black;
    width: 100%;
    margin: 10px auto;

    display: none;
}

.pred_table thead {
    border-bottom: 2px solid black;
}

.pred_table tr {
    border-bottom: 1px solid black;
}

.pred_table th[colspan='3'],
.pred_table th:nth-child(3),
.pred_table td:nth-child(3) {
    border-right: 2px solid black;
}


/* ========================================================================= */
/*                              Table sortable                               */
/* ========================================================================= */

#searchField {
    margin-bottom: 10px;
}

#table-sortable {
    overflow: scroll;
    height: 100%;
}
#table-sortable table {
    border-collapse: separate;
    border-spacing: 0px;
}
#table-sortable thead {
    border-bottom: 3px solid black;
}
#table-sortable td, #table-sortable th {
    padding: 5px;
    border: 1px solid black;
}
#table-sortable thead th,
#table-sortable tbody td:first-child {
    position: -webkit-sticky; /* for Safari */
    position: sticky;
    font-weight: 400;
    background-color: var(--dark-color);
    color: var(--xlim-color);
}
#table-sortable tbody td:first-child a {
    color: var(--xlim-color);
}
#table-sortable thead th {
    top: 0;
}
#table-sortable thead th:first-child {
    z-index: 1;
    left: 0;
}
#table-sortable tbody td:first-child {
    left: 0;
}
#table-sortable tbody tr:nth-of-type(odd),
#table-sortable tbody tr:nth-of-type(odd) {
    background-color: var(--light-color);
}
#table-sortable tbody tr:nth-of-type(even),
#table-sortable tbody tr:nth-of-type(even) {
    background-color: rgb(180, 180, 180);
}

#table-sortable tbody tr:hover td:first-child,
#table-sortable tbody tr.hover td:first-child {
    background: var(--orange);
}
#table-sortable tbody tr:hover td:first-child a,
#table-sortable tbody tr.hover td:first-child a {
    color: var(--blue);
}
#table-sortable tbody tr:hover,
#table-sortable tbody tr.hover {
    background: var(--light-orange);
}

.gs-pagination {
    display: none;
}


/* ========================================================================= */
/*                               Keyboard Ctrl                               */
/* ========================================================================= */

.keyboard {
    position: fixed;
    z-index: 1;
    bottom: 10px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.575);
    padding: 5px;
    border-radius: 5px;
}
.keyboard .key {
    border-radius: 9px;
    color: #000;
    display: inline-block;
    padding: 8px;
    background: #fff;
    font-family: monospace;
    cursor: pointer;
    width: 75px;
    border: 5px outset #aaa;
    border-radius: 5px;
    border-top: 0;
    opacity: 0.7;
    color: rgb(102, 102, 102)
}
.keyboard .key:hover {
    background: #eee;
}
.keyboard .key.active {
    -webkit-box-shadow: inset 0 0 20px #b9b9b9;
    -moz-box-shadow: inset 0 0 20px #b9b9b9;
    -o-box-shadow: inset 0 0 20px #b9b9b9;
    -ms-box-shadow: inset 0 0 20px #b9b9b9;
    box-shadow: inset 0 0 20px #b9b9b9;
    border-style: inset;
    background-color: rgb(198, 241, 198);
    color: black;
    opacity: 1;
}
.keyboard p {
    padding-top: 10px;
    background: #fff;
    line-height: 34px;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}
.keyboard kbd {
    display: inline-block;
    margin: 1px;
    padding: 1px 4px;
    font-size: 11px;
    line-height: 1.4;
    color: #242729;
    text-shadow: 0 1px 0 #fff;
    background-color: #e1e3e5;
    border: 1px solid #adb3b9;
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(12, 13, 14, 0.2), 0 0 0 2px #fff inset;
    white-space: nowrap;
    position: relative;
    top: -3px;
}
@media (max-width: 980px) {
    .keyboard {
        opacity: 0;
    }
}