/*Handles the style of the tools etc.*/

.tools {
  width: auto;
  height: 50px;
  position: relative;
  display: flex;
  cursor: pointer;
  -webkit-transition-duration: 0.4s;
  /* Safari */
  transition-duration: 0.4s;
  border: 1.5px solid white;
}

#summarytool {
  border-radius: 3px 3px 0px 0px;
}

#statistictool {
  border-radius: 0px 0px 3px 3px;
}

.tools .tooltip {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  /* Position the tooltip */
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 115%;
}

/*This creates the arrow in the tooltip*/

.tools .tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent white transparent transparent;
}

.originaltext {
  background: green;
  border: 1px solid darkgreen;
  border-radius: 14px;
}

.tools:hover .tooltip {
  visibility: visible;
}

.tools:hover {
  box-shadow: 5px 0px 8px -4px rgba(0, 0, 0, 0.24), -5px 0px 8px -4px rgba(0, 0, 0, 0.19);
}

.activetool {
  border: 1.5px solid black;
  box-shadow: 5px 0px 8px -4px rgba(0, 0, 0, 0.24), -5px 0px 8px -4px rgba(0, 0, 0, 0.19);
}

.tools img {
  margin: auto;
}

.wordtooltip {
  visibility: hidden;
  width: 170px;
  background-color: white;
  color: black;
  font-size: 10pt;
  border-radius: 4px;
  height: auto;
  box-shadow: 5px 5px 5px grey;
  /* Position the tooltip text - see examples below! */
  position: absolute;
  z-index: 1;
  top: 100%;
  left: 50%;
  margin-left: -40px;
  font-size: 16px;
}

.wordtooltop:hover {
  visibility: visible;
}

.synonyms {
  border-bottom: 2px solid #FFD700;
  position: relative;
}

.synonyms:hover {
  background-color: #FFD700;
  /*-webkit-transition-duration: 0.4s;
  transition-duration: 0.4s;*/
}

.synonyms:hover .wordtooltip {
  visibility: visible;
}

.word-wrapper {
  width: 100%;
  height: 45px;
  padding: 10px;
}

.word-wrapper:hover {
  background-color: #eee;
  color: #FFD700;
  cursor: pointer;
}