/*! HTML5 Boilerplate v7.2.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 12pt;
  line-height: 1.4;
  font-family: 'Roboto', sans-serif;
  height: 100%;
}

body {
  height: 100%;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.hidden {
  display: none !important;
}

p {
  margin: 0;
}

#header {
  background-color: #555555;
  width: 100%;
  height: 4rem;
}

#header h1 {
  margin: 0;
  font-size: 2rem;
  color: #fff;
  margin-left: 1rem;
  line-height: 4rem;
}

.visualization {
  display: flex;
  flex-direction: row;
  background-color: #ddd;
  height: 100%;
}

#vis {
  width: 100%;
  height: calc(100vh - 100px);
}

#vis.loading {
  height: 0;
}

#loader{
  background-color: #ddd;
  z-index: 9999;
  width: 100%;
  height: calc(100vh - 100px);
}

#loader.notloading{
  height: 0;
  display: none;
}


#selectiontools {
  position: absolute;
  left: calc(50% - 4rem);
  width: 9rem;
  display: flex;
  justify-content: space-between;
  top: -4em;
  transition: top .17s ease-in-out 0s;
}

#selectiontools button {
  width: 4rem;
  height: 4rem;
  font-size: 2rem;
  border: solid 1px rgba(0, 0, 0, .5);
}

#matrixButton {
  background-color: #43c64a;
}

#unselectButton {
  background-color: #c9535a;
}

canvas {
  width: 100%;
  height: 100%;
}

aside {
  color: rgba(0,0,0,.87);
  display: flex;
  align-items: stretch;
  flex-direction: column;
  height: 100%;
  background-color: #fff;
  width: 30rem;
}

main {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

svg {
  max-height: calc(100vh - 100px);
}

footer {
  width: 100%;
  height: 100px;
  position: relative;
  display: flex;
  flex-direction: row;
}

.row {
  display: flex;
  flex-direction: row;
}

.col {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  justify-content: space-between;
}

.col > form {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;

}

.radiogroups {
  background-color: #fff;
  padding: 1rem;
  box-sizing: border-box;
  margin-bottom: .2rem;
}

.radiogroup {
  justify-content: space-between;
}

.radiogroup label {
  margin-left: .5rem;
  margin-right: .5rem;
  font-weight: 300;
  font-size: .8rem;
  flex-grow: 1;
}

.group {
  padding: 0;
}

.astart {
  align-items: flex-start;
}

.aend {
  align-items: flex-end;
}

.acenter {
  align-items: center;
}

.jright {
  justify-content: right;
}

.jcenter {
  justify-content: center;
}

.jspaceevenly {
  justify-content: space-evenly;
}

.border-bottom {
  border-bottom: 2px solid #d4d4d4;
}

.viscontainer {
  width: 100%;
  height: 100%;
}

#nodetrix-spinner {
  position: relative;
  width: 100%;
  height: 80%;
}

#nodetrix {
  position: relative;
  width: 100%;
  height: 100%;
}

#timeline-buttons-container {
  display: flex;
  flex-direction: column;
  width: 40rem;
  padding: 0.5rem 1rem;
  box-sizing:border-box;
  background-color: #fff;
  border-right: 1px solid rgb(0, 0, 0, .4);
}


#timeline-buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  gap: 3px;
}


#timeline-container {
  width: 100%;
  overflow: hidden;
}

#timeline {
  background-color: #fff;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  overflow-x: scroll;
  scrollbar-gutter: stable;
  align-content: center;
}

#timeline-buttons button {
  width: 7rem;
  height: 80%;
  border-radius: .5rem;
  border: solid 2px rgb(0, 0, 0, .6);
}

.timeslice {
  height: 100%;
  width: 100%;
  min-width: 140px;
  max-width: 260px;
  background-color: #fff;
  border-right: 1px solid rgb(0, 0, 0, .4);
  align-self: center;
  text-align: center;
  font-size: 22pt;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeslice:hover {
  background-color: #ccc;
}

.active {
  background-color: #555;
  color: #fff;
}

.background {
  stroke: transparent;
  stroke-width: 1px;
  fill: white;
}

.brush {
  fill: transparent;
  stroke: gray;
  stroke-width: 1px;
}

#filterContainer {
  display: flex;
  justify-content: center;
}

#filterText {
  width: 100%;
  margin: 1rem 1rem 1rem 1rem;
  border-radius: 2px;
  border: 1px rgba(0, 0, 0, .87) solid;
  height: 1.5rem;
}

#labelsContainer {
  width: 100%;
  display: flex;
  flex-direction: row;
}

#labelsContainer div{
  width: 50%;
}

#clusterslabel {
  padding-left: 1rem;
}
#nodeslabel {
  padding-left: 1rem;
}

#colorscale {
  height: 100%;
  display: flex;
  flex-direction: row;
  overflow: hidden;

}

#clusterslist {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
  overflow-x: scroll;
}

#nodeslist {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
  overflow-x: scroll;
}

#colorscale .colorscale-wrapper {
  width: 40rem;
  display: flex;
  height: 2.5rem;
  justify-content: left;
  align-items: center;
  padding: 0;
  box-sizing: border-box;

}

#colorscale .colorscale-item {

  height: 2.5rem;
  padding: 0;
  border: #fff solid 3px;
  border-radius: 2px;
  flex-grow: 1;
  display: flex;
  align-items: center;
}


#colorscale .colorscale-item.hover {
  background-color: #dadada;
}

#colorscale button {

}


#colorscale span {
  height: 1.3rem;
  background-color: #f1f1f1;
  margin-left: .5rem;
  padding-left: 3px;
  width: 100%;
  overflow: hidden;
  line-height: 1.2rem;
  border-radius: 2px;
  display: inline-block;
}

#colorscale span.members {
  width: auto;
  min-width: 1.8rem;
  height: 1.3rem;
  border-radius: 2px;
  text-align: center;
  padding: 0;
}

.label {
  pointer-events: none;
  font: 16px sans-serif;
  color: rgba(0, 0, 0, .87);
  text-shadow: 0 2px 1px #fff, 2px 0 1px #fff, 0 -2px 1px #fff, -2px 0 1px #fff;

}

.sidebarsection {
  border-bottom: 1px solid rgba(0, 0, 0, .5);
}

#util {
  width: 100%;
  display: flex;
  flex-direction: column;
}

#highlight div {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 1.4rem;
  line-height: 1.4rem;
}

.utility-button-container {

  background-color: #fff;
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.util-container {

  background-color: #fff;
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-left: 0;
  padding-right: 0;
  justify-content: space-between;
}

.util-container .label-like{
  margin-right: 2rem;
}

.util-container div{
  flex-grow: 1;
}

.utility-button-container label {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  font-weight: 300;
  font-size: .8rem;
  flex-grow: 1;
}

#toolbar {
  padding-top: .1rem;
  justify-content: left;
  align-items: center;
  flex-direction: row;
  display: flex;
}

#toolbar button{
  margin-right: 1rem;
  width: 7rem;
}

.color-box {
  height: 25px;
  width: 25px;
  cursor: pointer;
  border: solid 1px #555;
  border-radius: 4px;
  margin-bottom: 2px;
}
.color-picker-modal {
  background-color: #fff;
  padding: 0;
margin-left: 2rem;
  z-index: 999;

}

#color-picker {
  display: flex;
  width: 110px;
  flex-wrap: wrap;
  justify-content: space-between;
}

#colorpicker-container{
  background-color: #43c64a;
}

#data-chooser-container {
  background-color: #fff;
  display: flex;
  flex-direction: row;
  padding: .5rem 1rem;
}

#resetColorsButton {
  margin-left: 1rem;
}

#data-chooser-container select {
  margin-left: 1rem;
}

#files {
  margin-bottom: .5rem;
}

#datasets {
  width: 100%;
}

label {
  font-size: 1rem;
  font-weight: 700;
}

.label-like {
  font-size: 1rem;
  font-weight: 700;
}

.create-active {
  background-color: #a3a3a3;
}



.tooltip .tooltiptext {
  visibility: hidden;
  /* width: 120px; */
  background-color: #fff;
  border: solid 1px #aaa;
  text-align: center;
  padding: 2px 1rem;
  border-radius: 2px;
  margin-left: .5rem;
  display: inline-block;
  position: absolute;
  z-index: 1;
  max-width: 300px;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.help {
  font-size: 0.8rem;
  margin-left: 2rem;
  margin-top: 1rem;
  position: absolute;
}

.help:nth-child(2) {
  top: 1.5rem;
}

.help:nth-child(3) {
  top: 3rem;
}


.ring
{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:150px;
  height:150px;
  border-radius:50%;
  text-align:center;
  line-height:150px;
  font-size:20px;
  color:#000;
}

.ring span
{
  display:block;
  position:absolute;
  top:calc(50% - 2px);
  left:50%;
  width:50%;
  height:4px;
  background:transparent;
  transform-origin:left;
  animation:animate 2s linear infinite;
}
.ring span:before
{
  content:'';
  position:absolute;
  width:22px;
  height:22px;
  border-radius:50%;
  background-color: #a6cee3;
  border: solid 1px rgba(0, 0, 0, 0.87);
  top:-6px;
  right:-8px;
}

@keyframes animate
{
  0%
  {
    transform:rotate(0deg);
  }
  100%
  {
    transform:rotate(360deg);
  }
}
