/* Full page */
html, body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 0;
  margin: 0;
  font-family: sans-serif;
  overflow: hidden;
}
.canvas-wrapper {
  margin: 0 auto;
}

/* Overlay elements */
.tooltip, #welcome-dialog {
  position: absolute;
  pointer-events: none;
  background: #ffffff;
  border: 1px solid #f0f0f0;
  box-shadow: 3px 3px 7px 1px rgba(0,0,0,0.15);
  -webkit-box-shadow: 3px 3px 7px 1px rgba(0,0,0,0.15);
  -moz-box-shadow: 3px 3px 7px 1px rgba(0,0,0,0.15);
  -webkit-border-radius: 0.2em;border-radius: 0.2em;
}
#tooltip-wrapper .tooltip {
  max-height: 100%;
  overflow-y: scroll;
}
.tooltip-title {
  font-weight: bold;
  /* font-size: 80%; */
  color: #a0a0a0;
  margin-top: 20px;
}
.tooltip table {
  width: 100%;
  padding: 10px;
}
.tooltip table tr, .tooltip table td, .tooltip table p {
  padding: 0;
  margin: 0;
  border-spacing: 0;
}
.tooltip table td a {
  text-decoration: none;
  font-weight: bold;
  text-transform: lowercase;
  /* font-size: 80%; */
}
.tooltip-close-button, #intro-close-button {
  position: absolute;
  right: 10px;
  top: 10px;
  /* font-size: 138%; */
  font-family: arial;
  cursor: pointer;
}
.tooltip-bottom-note {
  color: #a0a0a0;
  /* font-size: 80%; */
  margin-bottom: 5px;
}

/* Standard Buttons */
.button-row {
  display: flex;
  justify-content: center;
  align-items: center;
}
.button {
  padding: 10px 10px;
  width: calc(50% - 5px);
  border: none;
  border-radius: 100px;
  font-size: 100%;
  font-weight: bold;
  color: white;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.30), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
}

/* Green */
.button-default {
  color: white;
  background-color: #4CAF50;
}
.button-default:hover {
  background-color: #3e8e41;
}

/* Grey */
.button-simplified {
  color: white;
  background-color: #a0a0a0;
}
.button-simplified:hover {
  background-color: #909090;
}

/* Controls - left-hand menu on visualisation */
#controls-wrapper {
  position: absolute;
  width: 220px;
}
#controls-dropdown-wrapper {
  width: fit-content;
  background-color: #ffffff;
  border: 2px solid #e0e0e0;
  padding: 10px 10px 10px 10px;
}
#controls-wrapper span {
  /* font-size: 90%; */
  line-height: 20px;
  margin-left: 5px;
}
#search {
  width: calc(100% - 12px);
}
#search, #tab-search-input, #viz-select, #preset-select {
  background: #ffffff;
  border: 1px solid #a0a0a0;
  -webkit-border-radius: 0.2em;border-radius: 0.2em;
  padding: 5px;
  margin-top: 10px;
}
#tab-search-input {
  min-width: 150px;
  width: 80%;
  max-width: 500px; 
  margin-left: 30px;
}
input {
  font-family: sans-serif;
}

/* List view */
#tabs-wrapper .tabs-left .tab p {
  background: #ffffff;
  color: #202020;
}
#tabs-wrapper .tabs-left .tab:hover p {
  background: #f0f0f0;
}
#tabs-wrapper .tabs-left .tab:selected {
  background: #f8f8f8;
}
#tabs-wrapper .tab-view-header {
  width: 100%;
  height: 110px;
  line-height: 110px;
  padding-bottom: 20px;
  vertical-align: middle;
}
#tabs-wrapper .tab-view-header img {
  float: left;
  height: 110px;
  margin-right: 15px;
}

@media screen and (max-width: 768px) {
  #tabs-wrapper .tab-view-header {
    height: 60px;
    line-height: 60px;
    padding-bottom: 15px;
  }

  #tabs-wrapper .tab-view-header img {
    float: right;
    height: 50px;
  }
}

#tabs-wrapper .tab-view-header span {
  float: left;
  font-weight: bold;
  font-size: 150%;
  margin-left: 15px;
}

/* Visualisation */
svg text, svg circle {
  paint-order: stroke;
}

/* Dynamically created elements */
@media screen and (max-width: 768px) {
  body {
    overflow-y: scroll;
  }
}

#twist-circle-small-triangle {
  fill: transparent;
  fill: none;
  stroke: #e0e0e0;
  stroke-width: 10px;
}

#twist-circle-small {
  fill: none;
  stroke: #e0e0e0;
  stroke-width: 10px;
  cursor: grab;
}

.node-text, .node-highlight {
  paint-order: stroke;
}

h1 {
  font-size: 117%;
}