:root {
    --darkblue: #0037ff;
    --mediumblue: #546dea;
    --regularblue: #7d8de2;
    --lightblue: #b3c1f1;
    --darkgray: #495454;
    --lightgray: #99a5a5;
    --background: #fafaff;
}

body{
  margin: 0;
  background-color: var(--background);
  font-family: 'Roboto', 'sans-serif';
  line-height: 1.15;
  font-size: 12px;
  margin: 0;
  color: var(--darkgray);
}

h1{
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
  margin: 0;
  color: var(--darkblue)
}

h2 {
  font-weight: 300;
  font-size: 24px;
  line-height: 1;
  margin: 0;
}

h4 {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  color: var(--mediumblue);
}

h5 {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  color: var(--mediumblue);
}

h6 {
  font-size: 9px;
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

p {
  font-size: 12px;
  line-height: 1.15;
  margin: 0;
  color: var(--darkgray)
}

.light {
  font-weight: 200;
}

.bold {
  font-weight: 500;
  color: var(--mediumblue);
}

a {
  text-decoration: none;
  color: inherit;
  border-color: inherit;
  border-width: 0;
  border-style: solid;
  cursor: pointer;
  transition: all 0.5s;
}
a:hover {
  border-width: 0 0 1.7px 0;
}

.inputfile {
  width: 0.5px;
  height: 0.5px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

button, label {
  border: none;
  border-radius: 5px;
  font-family: 'Roboto', 'sans-serif';
  line-height: 1.15;
  font-size: 12px;
  cursor: pointer; 
  padding: 5px 10px 5px 10px;
  margin: 1px;
  transition: all 0.5s;
}
button:hover, label:hover {
  margin: 2px 0 0 2px;
}

.button_regular {
  background-color: var(--background);
  color: var(--regularblue);
  box-shadow: 2px 2px 4.5px var(--lightblue);
}
.button_regular:hover {
  color: var(--mediumblue);
  box-shadow: 0 0 1px var(--mediumblue), inset 0 0 4px var(--lightblue);
}

.button_dark {
  background-color: var(--mediumblue);
  color: white;
  box-shadow: 2px 2px 4.5px var(--lightblue);
}
.button_dark:hover {
  background-color: var(--darkblue);
  box-shadow: 0 0 1px var(--mediumblue), inset 0 0 4px var(--lightblue);
}

.button_regular_active {
  color: white;
  background-color: var(--darkblue);
  box-shadow: 0 0 1px var(--mediumblue), inset 0 0 4px var(--lightblue);
}

.icon {
  cursor: pointer;
  transition: color 0.5s;
}
.icon:hover {
  box-shadow: 0 0 5px var(--darkblue);
}

.imgLink:hover {
  border-width: 0;
  opacity: 0.5;
}

/* Header */

#header {
  position: fixed;
  top: 0;
  width: 100%;
}

#h_main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--darkblue);
}

#h_logos {
  display: flex;
}

#h_finngen {
  display: flex;
  align-items: center;
  padding: 0 4px 0 4px;
  background-color: black;
}

#h_logo {
  margin: 9px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: opacity 1s;
}
#h_logo:hover {
  opacity: 0.5;
}

#h_menu {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 9px 20px 9px 20px;
}

.h_menu {
  color: white;
}

#h_upload {
  display: flex;
  height: 14px;
}

.alert {
  position: fixed;
  top: 40px;
  right: 10px;
  display: none;
  background-color: var(--mediumblue);
  padding: 5px;
  border-radius: 5px;
  color: white;
  opacity: 0;
  cursor: pointer;
  transition: background-color 1s;
  z-index: 2;
}
.alert:hover {
  background-color: var(--darkgray);
}

#h_download_sample {
  display: none;
}

/* Opener */

#opener {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#o_inner {
  max-width: 1000px;
  margin: 20px;
}

#o_header {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
  align-items: flex-end;
  margin: 0 0 30px 0;
}

#o_title {
  max-width: 500px;
}

#o_instructions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  border: var(--lightblue) 1px solid;
  border-radius: 8px;
  padding: 15px;
  justify-content: space-around;
}

.o_instruction {
  max-width: 150px;
}
.o_number {
  color: var(--darktgray)
}
.o_subtitle {
  margin: 4px 0 12px;
}
.o_text {
  margin: 0 0 10px 0;
}

#o_buttons {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* Samples and Exports */ 

#samples,
#exports {
  background-color: var(--mediumblue);
  width: 100vw;
  height: 100vh;
  z-index: 3;
  display: none;
  position: fixed;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
}

#samples_inner,
#exports_inner {
  padding: 20px;
}

#samples_header,
#exports_header {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  color: white;
  padding: 0 0 10px 0;
  margin: 0 0 25px 0;
  border-color: white;
  border-width: 0 0 1px 0;
  border-style: solid;
}

#samples_options,
#exports_options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#samples_close,
#exports_close {
  color: white;
}

.card {
  background-color: white;
  border-radius: 5px;
  padding: 10px;
  box-shadow: 2px 2px 10px var(--darkblue);
  width: 200px;
  transition: all 0.5s;
  margin: 1px;
  cursor: pointer;
}
.card:hover {
  margin: 2px 0 0 2px;
  box-shadow: 0px 0px 2px var(--darkblue), inset 0 0 4px var(--lightblue);
}

.nohover:hover {
  border-width: 0;
}

.export {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sample_title {
  color: var(--mediumblue);
  margin: 0 0 10px 0;
}

.sample_text {
  margin: 0 0 10px 0;
}

/* Panel */

#panel {
  display: none;
  padding: 45px 20px 20px 20px;
  gap: 8px;
  justify-content: space-between;
}

/* Legenda */

#legenda {
  border: var(--lightblue) 1px solid;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
}

#l_inner {
  display: flex;
  padding: 8px 8px 10px 8px;
}

#l_compress {
  padding: 1px 5px 0 0;
  cursor: pointer;
}

.l_title {
  margin: 0 0 10px 0;
}

.l_category {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 1px 0 1px 0;
  cursor: pointer;
}

.l_category_circle {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* Chart */

#chart {
  flex-grow: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: space-between;
}

#chart_viz {
  margin: 10px 0 5px 0;
}

.tick {
  transition: opacity 0.5s;
}

.dot_core {
  transition: all 0.5s;
  cursor: pointer;
}
.dot_core:hover{
  opacity: 1 !important;
  r: 6px;
}

.dot_halo {
  transition: all 0.5s;
}

#chart_buttons {
  gap: 8px;
  padding: 8px 0 8px 0;
  border-width: 1px 0 1px 0;
  border-color: var(--lightblue);
  border-style: solid;
  display: flex;
  width: 100%;
}

.domain {
  display: none;
}

.label {
  cursor: grab;
}

.close {
  opacity: 1;
  transition: all 1s;
}

.editoricon {
  opacity: 0.6;
  margin-left: 4px;
}

#chart_inspection {
  background-color: white;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 2px 2px 4.5px var(--lightblue);
  position: absolute;
  display: none;
  z-index: 3;
}

#i_title {
  font-weight: 500;
  color: var(--mediumblue);
  margin: 0 0 12px 0;
  max-width: 220px;
}

.i_row {
  display: flex;
  padding: 3px 0 2px 0;
  border-color: var(--lightblue);
  border-width: 1px 0 0 0;
  border-style: solid;
}

.i_key {
  width: 80px;
}

.i_value {
  display: flex;
  gap: 5px;
  width: 160px;
  align-items: center;
}

#chart_editors {
  border: var(--lightblue) 1px solid;
  border-radius: 8px;
  padding: 8px;
  width: 100%;
}

#e_add,
#e_filter {
  display: flex;
  align-items: center;
  padding: 0 0 8px 0;
  margin: 0 0 8px 0;
  border-color: var(--lightblue);
  border-style: solid;
  border-width: 0 0 1px 0;
  height: 27px;
} 

#e_tip {
  background-color: var(--regularblue);
  height: 18px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px 0 5px;
  margin: 0 0 8px 0;
  opacity: 0.2;
  transition: opacity 0.7s;
}

#e_tip_content {
  color: white;
  transition: opacity 0.7s;
}

#e_label  {
  display: flex;
  align-items: center;
  height: 27px;
}

.e_container {
  display: flex;
  align-items: center;
  gap: 4px;
}

.e_type {
  width: 70px;
}

/* Table */

#table {
  border-radius: 8px;
  padding: 0;
  margin: 8px 0 0 0;
  overflow: hidden;
  border: var(--lightblue) 1px solid;
}

#t_buttons {
  padding: 8px 8px 12px 8px;
}

#t_header {
  display: flex;
  padding: 0 8px 6px 8px;
  gap: 8px;
  border-color: var(--lightblue);
  border-width: 0 0 1px 0;
  border-style: solid;
}

.t_header {
  cursor: pointer;
}

#t_placeholder {
  display: flex;
  margin: 20px 0 0 0;
  width: 100%;
  align-items: center;
  justify-content: center;
}

#t_rows {
  overflow-y: scroll;
}

.row {
  display: flex;
  gap: 8px;
  padding: 3px 8px 3px 8px;
  cursor: pointer;
  transition: all 0.5s;
  min-height: 27px;
}
.row:hover {
  min-height: 80px;
}

.t_category_circle,
.t_beta_circle {
  width: 10px;
  height: 9px;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 800;
  padding: 0 0 1px 0;
  color: white;
  display: flex;
  justify-content: center;
}

.t_cell_L {
  width: 200px;
  display: flex;
  align-items: center;
}
.t_cell_M {
  width: 130px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.t_cell_S {
  width: 60px;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: end;
}
.t_cell_B {
  width: 40px;
  padding-left: 20px;
  display: flex;
  gap: 5px;
  align-items: center;
}

#t_sums {
  background-color: white;
  display: flex;
  gap: 8px;
  border-radius: 0 0 8px 8px;
  padding: 8px;
  box-shadow: 0 0 6px var(--lightblue);
}

.t_sum_header {
  border-width: 0 0 1px 0;
  border-color: var(--lightblue);
  border-style: solid;
  padding: 0 0 4px 0;
  margin: 0 0 4px 0;
}

#t_sum_averages {
  display: flex;
  gap: 8px;
}

/* Documentation */

#documentation {
  padding: 100px 20px 60px 20px;
  display: flex;
  justify-content: center;;
}

#doc_inner {
  max-width: 700px;
}

.doc_section {
  margin: 20px 0 0 0;
  padding: 20px 0 0 0;
  border-width: 1px 0 0 0;
  border-color: var(--lightblue);
  border-style: solid;
}

.doc_title {
  margin: 0 0 10px 0;
}

.doc_paragraph {
  margin: 10px 0 0 0;
}

table {
  border: var(--lightblue) 1px solid;
  border-radius: 8px;
  padding: 0 8px 0 8px;
  margin: 10px 0 0 0;
}

th {
  font-family: 'Roboto', 'sans-serif';
  font-weight: 400;
  font-size: 14px;
  min-width: 100px;
  color: var(--mediumblue);
  text-align: left;
  padding: 8px 4px 8px 0;
}

td {
  font-family: 'Roboto', 'sans-serif';
  font-size: 10px;
  min-width: 100px;
  max-width: 200px;
  color: var(--darkgray);
  padding: 4px 4px 4px 0;
  margin: 0;
  /* background-color: white; */
  border-width: 1px 0 0 0;
  border-color: var(--lightblue);
  border-style: solid;
}

/* Media queries */

@media(max-width: 900px) {
  #opener {
    height: auto;
    margin: 80px 0 0 0;
  }

  #o_instructions {
    justify-content: center;
  }
  
  .o_instruction {
    max-width: 100%;
  }

  .o_text {
    margin: 0;
    max-width: 500px;
  }

  .sample {
    width: 100%;
  }
}