/**
 *  Elegant Tip v1.1.2
 *  Copyright (c) 2017 Guan-Wen CHEN  <imgw19@gmail.com>
 *
 *  A simple and elegant tooltip with pure CSS implementation.
 *
 *  * Usage *
 *
 *  [Necessary]
 *  Classes added into tag:
 *      et: the tag you want to show elegant tip.
 *
 *  (e.g. <div class='et'>...</div>)
 *
 *  Then create <span></span> inside the tag which has class 'et',
 *  (e.g. <div class='et'>...<span>..</span></div>),
 *   and one of the following tag is necessary to added in <span> tag,
 *
 *      et-bottom: show tooltip on bottom,
 *      et-top,
 *      et-left,
 *      et-right,
 *      et-left-bottom,
 *      et-left-top,
 *      et-right-bottom,
 *      et-right-top
 *
 *  (e.g. <div class='et'>...<span class='et-top'>..</span></div>,
 *   will show tooltip on top of div.)
 *
 *  [optional]
 *  1. arrow:
 *      et-arrow: show arrow of tooltip
 *
 *  (e.g. <div class='et'>...<span class='et-top et-arrow'>..</span></div>)
 *
 *  2. other styles:
 *      et-style-night
 *      et-style-warn
 *
 *  (e.g. <div class='et'>...<span class='et-top et-arrow et-style-night'>..</span></div>)
 *
 *  3. tooltip block width:
 *      et-narrow: make tooltip block narrow (used in mobile)
 *      et-wide: make tooltip block narrow
 *
 *  (e.g. <div class='et'>...
 *          <span class='et-top et-arrow et-style-night et-narrow'>
 *            ......
 *          </span>
 *        </div>
 *  )
 */

/* Avoid exceeding the boundaries */
* {
  box-sizing: border-box;
}
.et {
  /*display: inline-block; */
  display: inline; 
  position: relative;
  color: #0f0393;
      cursor: pointer;
}

/* ==========================================================================
   Increase pointer-events successful area
   ========================================================================== */
.et::after {
  /*background-color: black;  !* only when testing *!*/
  content: '';
  cursor: inherit;
  min-height: calc(100% + 30px);
  min-width: calc(100% + 30px);
  pointer-events: none;
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
}
.et:hover::after,
.et:focus::after {
  pointer-events: auto;
}

/* ==========================================================================
   Common attributes for all tip-block
   ========================================================================== */
.et .et-bottom,
.et .et-top,
.et .et-left,
.et .et-right,
.et .et-left-top,
.et .et-right-top,
.et .et-left-bottom,
.et .et-right-bottom {
  display: inline-block;
  background-color: #effcff;
  border: 2px solid #367abd;
  border-radius: 6px;
  color: #454545;
  cursor: default;
  font-size: 13px;
  font-weight: bold;
  height: auto;
  max-width: 400px;
  padding: 5px 8px;
  pointer-events: none;
  position: absolute;
  text-align: left;
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0;  /* comment only when testing */
  z-index: 999999;
}

/* ==========================================================================
   Common attributes for all tip-arrow
   ========================================================================== */
.et .et-arrow::after {
  border: 12px solid transparent;
  content: '';
  position: absolute;
  z-index: 999999;
}
.et .et-arrow::before {
  border: 16px solid transparent;
  content: '';
  position: absolute;
  z-index: 999999;
}
.et .et-left.et-arrow::after,
.et .et-right.et-arrow::after {
  border: 8px solid transparent;
}
.et .et-left.et-arrow::before,
.et .et-right.et-arrow::before {
  border: 12px solid transparent;
}

/* ==========================================================================
   Bottom tip-block
   ========================================================================== */
.et .et-bottom {
  margin: 10px -400px 0 0;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(-2px -2px 3px rgba(0, 0, 0, 0.7));
}
.et .et-bottom.et-arrow::after {
  border-bottom-color: #fff8c2;
  bottom: 100%;
  left: 50%;
  margin-left: -12px;
}
.et .et-bottom.et-arrow::before {
  border-bottom-color: #367abd;
  bottom: 100%;
  left: 50%;
  margin-left: -16px;
}

/* ==========================================================================
   Top tip-block
   ========================================================================== */
.et .et-top {
  margin: 0 -400px 10px 0;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(-2px 2px 3px rgba(0, 0, 0, 0.7));
  word-wrap:break-word;
}
.et .et-top.et-arrow::after {
  border-top-color: #fff8c2;
  top: 100%;
  left: 50%;
  margin-left: -12px;
}
.et .et-top.et-arrow::before {
  border-top-color: #367abd;
  top: 100%;
  left: 50%;
  margin-left: -16px;
}

/* ==========================================================================
   Left tip-block
   ========================================================================== */
.et .et-left {
  margin: 0 10px 0 -400px;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.7));
}
.et .et-left.et-arrow::after {
  border-left-color: #fff8c2;
  top: 50%;
  left: 100%;
  margin-top: -8px;
}
.et .et-left.et-arrow::before {
  border-left-color: #367abd;
  top: 50%;
  left: 100%;
  margin-top: -12px;
}

/* ==========================================================================
   Right tip-block
   ========================================================================== */
.et .et-right {
  margin: 0 -400px 0 10px;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  filter: drop-shadow(-2px 2px 3px rgba(0, 0, 0, 0.7));
}
.et .et-right.et-arrow::after {
  border-right-color: #fff8c2;
  top: 50%;
  right: 100%;
  margin-top: -8px;
}
.et .et-right.et-arrow::before {
  border-right-color: #367abd;
  top: 50%;
  right: 100%;
  margin-top: -12px;
}

/* ==========================================================================
   Left-top tip-block
   ========================================================================== */
.et .et-left-top {
  margin: 0 0 0 -400px;
  bottom: 100%;
  right: 100%;
  filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.7));
}
.et .et-left-top.et-arrow::after {
  border-radius: 6px;
  border-right: 12px solid #fff795;
  top: calc(100% - 2px);
  left: calc(100% - 10px);
  margin-top: -8px;
  transform: rotate(45deg);
}

/* ==========================================================================
   Right-top tip-block
   ========================================================================== */
.et .et-right-top {
  margin: 0 -400px 0 0;
  bottom: 100%;
  left: 100%;
  filter: drop-shadow(-2px 2px 3px rgba(0, 0, 0, 0.7));
}
.et .et-right-top.et-arrow::after {
  border-radius: 6px;
  border-left: 12px solid #fff795;
  top: calc(100% - 18px);
  right: calc(100% - 10px);
  margin-top: 8px;
  transform: rotate(-45deg);
}

/* ==========================================================================
   Left-bottom tip-block
   ========================================================================== */
.et .et-left-bottom {
  margin: 0 0 0 -400px;
  top: 100%;
  right: 100%;
  filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.7));
}
.et .et-left-bottom.et-arrow::after {
  border-radius: 6px;
  border-right: 12px solid #fff795;
  bottom: calc(100% - 10px);
  left: calc(100% - 10px);
  margin-top: 8px;
  transform: rotate(-45deg);
}

/* ==========================================================================
   Right-bottom tip-block
   ========================================================================== */
.et .et-right-bottom {
  margin: 0 -400px 0 0;
  top: 100%;
  left: 100%;
  filter: drop-shadow(-2px 2px 3px rgba(0, 0, 0, 0.7));
}
.et .et-right-bottom.et-arrow::after {
  border-radius: 6px;
  border-left: 12px solid #fff795;
  bottom: calc(100% - 10px);
  right: calc(100% - 10px);
  margin-top: 8px;
  transform: rotate(45deg);
}

/* ==========================================================================
   .et hover & focus events
   ========================================================================== */
.et:hover .et-bottom,
.et:focus .et-bottom {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 6px);
}
.et:hover .et-top,
.et:focus .et-top {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -6px);
}
.et:hover .et-left,
.et:focus .et-left {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-6px, -50%);
}
.et:hover .et-right,
.et:focus .et-right {
  opacity: 1;
  pointer-events: auto;
  transform: translate(6px, -50%);
}
.et:hover .et-left-top,
.et:focus .et-left-top {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-10px, -10px);
}
.et:hover .et-right-top,
.et:focus .et-right-top {
  opacity: 1;
  pointer-events: auto;
  transform: translate(10px, -10px);
}
.et:hover .et-left-bottom,
.et:focus .et-left-bottom {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-10px, 10px);
}
.et:hover .et-right-bottom,
.et:focus .et-right-bottom {
  opacity: 1;
  pointer-events: auto;
  transform: translate(10px, 10px);
}

/* ==========================================================================
   Different styles, design your style here.
   ========================================================================== */
/*  ------ Night style ------  */
.et .et-style-night {
  background-color: #242d42;
  border: 0;
  border-radius: 0;
  color: #fff795;
  filter: drop-shadow(-2px -2px 3px rgba(0, 0, 0, 0.7));
  padding: 10px 20px;
  transition: opacity 0.5s, transform 0.5s;
}
.et .et-bottom.et-style-night::after,
.et .et-bottom.et-style-night::before {
  border-bottom-color: #242d42;
}
.et .et-top.et-style-night::after,
.et .et-top.et-style-night::before {
  border-top-color: #242d42;
}
.et .et-left.et-style-night::after,
.et .et-left.et-style-night::before {
  border-left-color: #242d42;
}
.et .et-right.et-style-night::after,
.et .et-right.et-style-night::before {
  border-right-color: #242d42;
}
.et .et-left-bottom.et-style-night::after,
.et .et-left-top.et-style-night::after {
  border-right-color: #454545;
}
.et .et-right-bottom.et-style-night::after,
.et .et-right-top.et-style-night::after {
  border-left-color: #454545;
}

/*  ------ Warning style ------  */
.et .et-style-warn {
  background-color: #E64945;
  border: 2px solid #fff795;
  border-radius: 0;
  color: #fffff2;
  filter: drop-shadow(-2px -2px 3px rgba(0, 0, 0, 0.7));
  padding: 10px 20px;
  transition: opacity 0.1s, transform 0.5s;
}
.et .et-bottom.et-style-warn::after {
  border-bottom-color: #E64945;
}
.et .et-bottom.et-style-warn::before {
  border-bottom-color: #fff795;
}
.et .et-top.et-style-warn::after {
  border-top-color: #E64945;
}
.et .et-top.et-style-warn::before {
  border-top-color: #fff795;
}
.et .et-left.et-style-warn::after {
  border-left-color: #E64945;
}
.et .et-left.et-style-warn::before {
  border-left-color: #fff795;
}
.et .et-right.et-style-warn::after {
  border-right-color: #E64945;
}
.et .et-right.et-style-warn::before {
  border-right-color: #fff795;
}
.et .et-left-bottom.et-style-warn::after,
.et .et-left-top.et-style-warn::after {
  border-right-color: #e62b27;
}
.et .et-right-bottom.et-style-warn::after,
.et .et-right-top.et-style-warn::after {
  border-left-color: #e62b27;
}

/* ==========================================================================
   Tip block max-width definition
   ========================================================================== */
.et .et-narrow {
  max-width: 260px;
}
.et .et-wide {
  max-width: 660px;
}
@media (min-width: 300px) and (max-width: 480px) {
  .et .et-top {
	  margin: 0px auto;
	  width: 210px;
	  bottom: 100%;
	  left: 70%;
	  transform: translateX(-50%);
	  filter: drop-shadow(-2px 2px 3px rgba(0, 0, 0, 0.7));
	}
}