.anaylzer-box {
  background: $black-transparent-50;
  padding: 2em;
  z-index: 1;
  position: relative;
  border-radius: $base-border-radius;
  h3 {
    margin-bottom: 1.4em;
  }
}

form.analyzer-bar {
z-index: 2;
  position: relative;
  height: 4em;
  overflow: hidden;

  input[type=text] {
    @include appearance(none);
    @include box-sizing(border-box);
    @include transition(border-color);
    background-color: white;
    border-radius: $base-border-radius;
    border: 1px solid $base-border-color;
    display: block;
    overflow: hidden;
    font-size: 1em;
    font-style: italic;
    margin: 0;
    padding: 1.25em;
    position: relative;
    width: 100%;
    height: 100%;
  }

  .button {
    position: absolute;
    top: 0;
    right: 0;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    outline: none;
    padding: 0 2em;
    margin: 0 !important;
    height: 4em;
  }
}

.headline-tool-wrapper {
  opacity: 0;
  height: 0px;
  @include transition(all .25s ease-in-out);
  section.one-column, section.two-columns {
    height: 0px;
  }
  &.toolvisible {
    opacity: 1;
    height: auto;
    section.one-column, section.two-columns {
      height: auto;
    }
  }
}

.tool-history {
  width: 80%;
  text-align: center;
  margin: 10px auto 0 auto;
  font-size: 0.7em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  @include transition(all .25s ease-in-out);
&.historyvisible {
  opacity: 1;
}
}

.headline-tool-page {
  .headline-tool-header {
    height: 20px;
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    .headline-tool-line {
      position: absolute;
      width: 100%;
      top: 9px;
      left: 0px;
      height: 1px;
      background: $salescrowd-warm-light-gray;
    }
    h3 {
      height: 20px;
      line-height: 20px;
      letter-spacing: 3px;
      span {
        background: $white;
        position: relative;
        padding: 0 30px;
      }
    }
  }
}

ul.doughnut-legend {
  margin: 0;
  padding: 0;
  li {
    list-style: none;
    margin: 0 !important;
    width: 50%;
    height: 225px;
    float: left;
    padding: 20px;
    position: relative;
    .chart-container {
      width: 70px;
      height: 70px;
      float: right;
      margin-left: 10px;
      margin-bottom: 10px;
      position: relative;
    }
    .legend-data {
      width: 65px;
      height: 65px;
      float: right;
      //margin-left: 10px;
      //margin-bottom: 10px;
      position: absolute;
      right: 0px;
    }
    .legend-percentage {
      width: 70px;
      height: 70px;
      line-height: 70px;
      text-align: center;
      color: $white;
      font-weight: 900;
      font-size: 1.1em;
      &.singledigit {
        margin-left: 5px;
      }
    }
    h3 {
      color: $white;
      font-weight: 900;
      font-size: 1.1em;
    }
    p {
      color: $white;
      font-size: 0.8em !important;
      font-weight: 600;
    }
  }
}

#canvas-holder {
  width: 60%;
  margin: 0 auto 40px auto;
  @include transition(all .25s ease-in-out);
}

.canvas-holder {
  position: relative;
}

#rating {
  width: 180px;
  height: 180px;
  position: absolute;
  top: 60px;
  z-index: -1;
  background: $salescrowd-warm-gray;
 border-radius: 100%;
  left: 160px;
  text-align: center;
  padding: 20px;
.rating-score {
  font-weight: 900;
  font-size: 3em;
  margin-bottom: 0px;
}
  .rating-summary {
    font-size: 0.7em;
    font-weight: 500;
  }
}
//.scoretotal {
//  width: 100%;
//  height: 100px;
//  position: absolute;
//  font-size: 1.8em;
//  font-weight: 900;
//  color: $salescrowd-green;
//  line-height: 100px;
//  left: 0px;
//}


canvas {
  @include transition(all .25s ease-in-out);
}

//.headline-current {
//  font-size: 2.4em;
//  font-weight: 400;
//  text-align: center;
//  span {
//    font-size: 1em;
//    font-weight: 400;
//    text-transform: capitalize;
//    padding: 0 5px;
//    margin: 0;
//    @include transition(all .25s ease-in-out);
//    &.space {
//      margin: 0 -5px;
//    }
//    &:hover {
//      cursor: pointer;
//    }
//  }
//}

.headline-common {
  color: $salescrowd-green;
}

.headline-uncommon {
  color: $salescrowd-facebook;
}

.headline-power {
  color: $salescrowd-purple;
}

.headline-emotion {
  color: $salescrowd-pink;
}

.headline-misc {
  color: $salescrowd-dark;
}

 .headline-superlative {
   color: $salescrowd-light-orange;
 }

 span.words-first, span.words-last {
   &:hover {
     //border-bottom: 3px $salescrowd-warm-gray solid;
     background: $salescrowd-warm-light-gray;
   }
 }

 span.words-positive-2 {
   &:hover {
     background: lighten($salescrowd-green, 30%);
   }
 }

 span.phrase {
   &:hover {
     background: $salescrowd-warm-gray;
   }
 }
 .headline-well-done {
   margin-bottom: 30px;
 }

 .headline-advice {
   background: $salescrowd-warm-gray;
   text-align: left;
   padding: 20px;
   width: 100%;
   margin-bottom: 30px;
   min-height: 160px;
   border-radius: $base-border-radius;
   &.final-score {
     background: lighten($salescrowd-snapchat, 25%);
     border: 1px lighten($salescrowd-snapchat, 20%) solid;
   }
   &.text-center {
     text-align: center;
   }
   p {
     font-size: 1em;
     margin: 5px 0;
     span {
       font-weight: 900;
     }
   }
 }

 #breakdown {
   p {
     text-transform: capitalize;
   }
 }

.score-total {
  width: 100px;
  height: 100px;
  text-align: center;
  position: relative;
  float: left;
  margin-right: 30px;
  h4 {
    text-transform: uppercase;
    font-size: 0.6em;
    font-weight: 900;
    margin-bottom: 10px;
  }
}

.score-advice {

}

 .word-breakdown {
   margin-bottom: 20px;
   p {
     margin: 0;
     font-weight: 500;
     span {
       font-size: 1em;
       text-transform: none;
       font-weight: 900;
     }
     &.note {
       margin: 5px 0;
       padding: 3px 10px;
       color: $white;
       border-radius: $base-border-radius;
       background: $salescrowd-red;
     }
   }
 }

 .keyword {
   background: $salescrowd-orange;
   padding: 20px;
   margin: 8px;
   font-size: 1.5em;
   color: $white;
   border-radius: $base-border-radius;
 }

 .headline-type {
  margin: 10px auto;
  font-size: 1.8em;
  font-weight: 300;
  span.headline-type-result {
    background: $salescrowd-green;
    padding: 10px;
    color: $white;
    border-radius: $base-border-radius;
  }
}


//.count-roundall {
//  height: 55px;
//  width: 55px;
//  border-radius: 100%;
//  color: $white;
//  h4 {
//    font-weight: 900 !important;
//    font-size: 1.4em !important;
//    line-height: 1em;
//    margin: 0;
//  }
//  p {
//      font-weight: 700 !important;
//      font-size: 0.5em !important;
//    margin: 0;
//    color: $white;
//    text-transform: uppercase;
//  }
//  padding-top: 12px;
//  text-align: center;
//  margin: 20px auto;
//  background: $salescrowd-warm-gray;
//  &.positive {
//    background: $salescrowd-green;
//  }
//  &.neutral {
//    background: $salescrowd-light-orange;
//  }
//  &.negative {
//    background: $salescrowd-red;
//  }
//}

 #chartjs-tooltip {
   position: absolute;
   z-index: 100;
 }

.box-count {
  margin: 20px 0;
  h4 {
    text-transform: uppercase;
    font-size: 1.2em;
    font-weight: 300;
    letter-spacing: 1px;
  }
  background: $salescrowd-warm-light-gray;
  padding: 30px;
  text-align: center;
  .chart {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
    float: none !important;
  }
}


$w : 200px;
$h : 100px;
$strokeWidth : 3px;
$svg : '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 #{$w} #{$h}" enable-background="new 0 0 #{$w} #{$h}" xml:space="preserve"><polyline fill="none" stroke-width="#{$strokeWidth}" stroke="white" points="2.4,58.7 70.8,58.7 76.1,46.2 81.1,58.7 89.9,58.7 93.8,66.5 102.8,22.7 110.6,78.7 115.3,58.7 126.4,58.7 134.4,54.7 142.4,58.7 197.8,58.7 "/></svg>';

.analysis-pulse {
  height: 100px;
  width: 200px;
  overflow:hidden;
  top:0; bottom:0; left:0; right:0;
  margin:auto;
  position: absolute;
  z-index: 1;
  top: -170px;
  // heartbeat gfx
  &:after{
    content:'';
    display:block;
    background:url('data:image/svg+xml;utf8,#{$svg}') 0 0 no-repeat;
    // background-size:$w $w;
    width:100%; height:100%;
    opacity: 0.3;
    position:absolute;
    animation:2s analysis-pulse infinite linear;
  }
  // flat opaque line
  &:before{
    content:'';
    background:#444;
    position:absolute; z-index:-1;
    left:2px; right:2px; bottom:0; top:16px; // the SVG isn't exacly centered..
    margin:auto;
    height:0;
  }
}

@keyframes analysis-pulse {
  0%   { clip:rect(0, 0, $h, 0); }
  10%  { clip:rect(0, $w/3, $h, 0); }
  38%  { clip:rect(0, #{$w/1.5}, $h, 0); }
  48%  { clip:rect(0, $w, $h, 0); }
  52%  { clip:rect(0, $w, $h, 0); }
  62%  { clip:rect(0, $w, $h, $w/3); }
  90%  { clip:rect(0, $w, $h, #{$w/1.5}); }
  100% { clip:rect(0, $w, $h, $w); }
}

.stats {


  ul {
    padding: 0;
  }

  li {
    border-right: 1px solid transparentize($base-font-color, 0.8);
    color: $salescrowd-orange;
    display: inline;
    float: left;
    font-family: $sans-serif;
    font-size: 1.2em;
    font-weight: 900;
    line-height: 1.1em;
    padding: 0 0.7em;

    &:first-child {
      padding-left: 0;
    }

    &:last-child {
      border-right: 0;
    }
  }

  span {
    color: $dark-gray;
    display: block;
    font-weight: 200;
    font-size: 0.7em;
    font-style: italic;
    margin-top: 0.5em;
    font-weight: normal;
  }
}



/*
.tile {
  width: 33.333%;
  float: left;
  height: 150px;
}
.tile-container {
  overflow: hidden;
}
.btn:hover,
.tile:hover {
  opacity: 1;
}
.tile:nth-child(2) { background: #4A90E2; }
.tile:nth-child(3) { background: #FFD200; }
.tile:nth-child(4) { background: #4CBB47; }
.tile:nth-child(5) { background: #362A6C; }
.tile:nth-child(6) { background: #4CBB47; }

.modal {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: #EA006F;
  color: white;
  z-index: 1;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: 200ms ease;
}

.modal-close-btn {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  background: url(img/close.png) no-repeat center;
  width: 32px;
  height: 32px;
  padding: 32px;
  opacity: 0.8;
  cursor: pointer;
  transition: 0.3s ease;
}
.modal-close-btn:hover {
  opacity: 1;
}
.modal--2 { background: #4A90E2; }
.modal--3 { background: #FFD200; }
.modal--4 { background: #4CBB47; }
.modal--5 { background: #362A6C; }
.modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

*/