/* ============================================================================
   list-style.css - TOOL-LIST directory pages (numbered lists)
   ============================================================================
   Loaded by:  tool-list/text-tools.php,
               tool-list/text-clean-and-format-tools.php
   Purpose:    Numbered .rectangle-list (ol counter) used for the directory
               listing of tools on those pages, plus the .list-section-heading
               full-width centered heading that labels each such list.
   ============================================================================ */

.list-section-heading {
  text-align: center;
  margin: 0 0 6px;
}

.list-section-heading h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 1.7px;
  color: #167d2e;
  text-align: center;
}

ol {
    counter-reset: li; /* Initiate a counter */
    list-style: none; /* Remove default numbering */
    font: 15px 'trebuchet MS', 'lucida sans';
    padding: 0;
    margin-bottom: 4em;
    text-shadow: 0 1px 0 rgba(255,255,255,.5);
  }

  ol ol {
    margin: 0 0 0 2em; /* Add some left margin for inner lists */
  }

  .rectangle-list li{
    font-size: 19px;
  }

  .rectangle-list a{
    position: relative;
    display: block;
    padding: .4em .4em .4em .8em;
    margin: .5em 0 .5em 0.65em;
    background: #dee9e1;
    color: #0a6c9d;
    transition: all .3s ease-out;
  }

  .rectangle-list a:hover{
    background: #eee;
  }

  .rectangle-list a:before{
    content: counter(li);
    counter-increment: li;
    position: absolute;
    left: -2.5em;
    top: 50%;
    margin-top: -1em;
    background: #fa8072;
    height: 2em;
    width: 2em;
    line-height: 2em;
    text-align: center;
    color: white;
  }

  .rectangle-list a:after{
    position: absolute;
    content: '';
    border: .5em solid transparent;
    left: -1em;
    top: 50%;
    margin-top: -.5em;
    transition: all .3s ease-out;
  }

  .rectangle-list a:hover:after{
    left: -.5em;
    border-left-color: #fa8072;
  }
