/**
 * Horizontal Type Line Behind Text
 * Inspired by this discussion @ CSS-Tricks: https://css-tricks.com/forums/topic/css-trick-for-a-horizontal-type-line-behind-text/#post-151970
 * Available on jsFiddle: http://jsfiddle.net/ericrasch/jAXXA/
 * Available on Dabblet: http://dabblet.com/gist/2045198
 * Available on GitHub Gist: https://gist.github.com/2045198
 */

.leadi{
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  text-align: left;
}
.leadc{
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  text-align: center;
}
.leadj{
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  text-align: justify;
} 

 h10 {
    font: 14px sans-serif;
    text-transform: uppercase;
}
 
h19 {
    font: 20px sans-serif;
    margin-top: 30px;
    text-align: center;
    text-transform: uppercase;
}

h20 {
    font: 25px sans-serif;
    margin-top: 30px;
    text-align: center;
    text-transform: uppercase;
} 
 
h21 {
    font: 30px sans-serif;
    margin-top: 30px;
    text-align: center;
    text-transform: uppercase;
	 font-weight: bold;
}





h21.background {
    position: relative;
    z-index: 1;
    
    &:before {
        border-top: 2px solid #dfdfdf;
        content:"";
        margin: 0 auto; /* this centers the line to the full width specified */
        position: absolute; /* positioning must be absolute here, and relative positioning must be applied to the parent */
        top: 50%; left: 0; right: 0; bottom: 0;
        width: 95%;
        z-index: -1;
    }

    span { 
        /* to hide the lines from behind the text, you have to set the background color the same as the container */ 
        background: #fff; 
        padding: 0 15px; 
    }
}

h21.double:before { 
    /* this is just to undo the :before styling from above */
    border-top: none; 
}

h21.double:after {
    border-bottom: 1px solid blue;
    -webkit-box-shadow: 0 1px 0 0 red;
    -moz-box-shadow: 0 1px 0 0 red;
    box-shadow: 0 1px 0 0 red;
    content: "";
    margin: 0 auto; /* this centers the line to the full width specified */
    position: absolute;
    top: 45%; left: 0; right: 0;
    width: 95%;
    z-index: -1;
}

h21.no-background {
    position: relative;
    overflow: hidden;
    
    span {
        display: inline-block;
        vertical-align: baseline;
        zoom: 1;
        *display: inline;
        *vertical-align: auto;
        position: relative;
        padding: 0 20px;

        &:before, &:after {
            content: '';
            display: block;
            width: 1000px;
            position: absolute;
            top: 0.73em;
            border-top: 1px solid red;
        }

        &:before { right: 100%; }
        &:after { left: 100%; }
    }
}

h21.no-span {
    display: table;
    white-space: nowrap;
    &:before, &:after {
      border-top: 1px solid green;
      content: '';
      display: table-cell;
      position: relative;
      top: 0.5em;
      width: 45%;
    }
    &:before { right: 1.5%; }
    &:after { left: 1.5%; }
}