/*
Tooltip from css

Tooltip from trimble css

Markup:
<div class="tooltip">Hover over me - Left tooltip
  <span class="tooltip-text">Tooltip text</span>
</div><br/>
<div class="tooltip">Hover over me - Right tooltip
  <span class="tooltip-text right">Tooltip text</span>
</div><br/>
<div class="tooltip-container">
  <input type="text" value="error field" style="width:200px;"/>
  <span class="tooltip-text">Tooltip text</span>
</div>

Styleguide UI Elements.tooltip
*/
h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
}

h1 {
  margin: 1rem 0;
  font-size: 1.5rem;
  font-weight: 300;
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1rem;
}

h4, p {
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}

h5 {
  font-size: 0.75rem;
}

h4 {
  font-weight: 600;
}

/* @import url('https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800'); */
/* @mixin border-radius{
  border-radius: 2px;
} */
/* box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2); */
.end {
  display: flex;
  justify-content: flex-end;
}

.align-center {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
}

.tooltip-text {
  visibility: hidden;
  width: 140px;
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -ms-border-radius: 6px;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  right: -130px;
}

.tooltip-text.right {
  right: 0;
  left: -10px;
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent #000000 transparent transparent;
}

.tooltip-text.right::after {
  left: 100%;
  right: 0;
  border-color: transparent transparent transparent #000000;
}

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted #000000;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
}
