* {
  box-sizing: border-box;
  transition: all 0.25s ease;
}

body {
  font: 16px/18px Century Gothic, sans-serif;
  background: #efefef;
  padding: 0;
  margin: 0;
}

/* //////////////////////////////////////// */
/* General      
/* //////////////////////////////////////// */

  

  .used,
  .hide,
  .invisible {
    position: absolute !important;
    left: -99999px !important;
    display: none !important;
  }

  .hidden {
    opacity: 0 !important;
    max-height: 0;
    overflow: hidden;
  }

  .clear {
    float: none;
    clear: both;
  }

  .icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
  }

  .icon-play_circle_filled {
    fill: #2ecc71;
    transform: rotate(90deg);
  }

  .icon-report {
    fill: #f39c12;
  }

  .icon-check_circle {
    fill: #3498db;
  }

  .icon-remove_circle {
    fill: #c0392b;
    position: absolute;
    top: 0.15em;
    cursor: pointer;
    
    right: 0em;
    top: 50%;
    transform: translate3d(0,-50%,0);
    opacity: 0;
    box-sizing: content-box;
    padding: 0.5em;
    z-index: 10;
  }

  .rhyme:hover > .icon-remove_circle,
  .rhymes li:hover .icon-remove_circle  {
    opacity: 1;
  }

  .add_rhyme {
    font-size: 0.75em;
    position: absolute;
    top: 25%;
    left: 0em;
    transform: translate3d(-60%,-50%,0);
    width: 2em;
    height: 2em;
    padding: 0.075em;
    box-sizing: content-box;
    border-radius: 50%;
    box-shadow: 0 0 0.25em rgba(0,0,0,0.085), inset 0 0 0 1px rgba(0,0,0,0.185);
    background: #fafafa;
    cursor: pointer;
    display: none;
    opacity: 0;
    z-index: 10;
  }

  .add_rhyme .icon {
    font-size: 2em;
    /*position: absolute;*/
    /*top: 50%;*/
    /*left: 50%;*/
    /*transform: translate3d(-50%,-50%,0);*/
  }

  .handle {
    position: absolute;
    left: 0.75em;
    top: 0.25em;
    padding: 0.25em;
    cursor: move;
    color: #999;
    opacity: 0;
  }

  .handle .icon {
    transform: rotate(45deg);
  }

  li .handle {
    left: -0.25em;
    top: 0.5em;
    background: #fafafa;
  }

  .rhyme:hover > .handle,
  .rhymes li:hover .handle  {
    opacity: 1;
  }

  .action {
    font-size: 1em;
    padding: 0.5em;
    border: 1px solid #7f8c8d;
    cursor: pointer;
    box-shadow: 0 0 0em rgba(0,0,0,0);
    background: #7f8c8d;
    color: #fff;
    border-radius: 0.25em;
    display: inline-block;
    margin: 0.5em 0.25em 0.25em;
    transition: all ease 0.15s;
  }

  .action span {
    position: relative;
    top: -0.25em;
  }

  .no-touch .action .icon,
  .no-touch .action span {
    transition: all ease 0.15s;
  }

  .no-touch .action:hover {
    box-shadow: 0 0.15em 0.25em rgba(0,0,0,0.25);
    opacity: 1 !important;
    background: #7f8c8d !important;
    border-color: #7f8c8d !important;
    color: #fff !important;
    transition: all ease 0.15s;
  }

  .no-touch .action:hover .icon,
  .no-touch .action:hover span {
    transition: all ease 0.15s;
    color: #fff !important;
    fill: #fff !important;
  }

  .no-touch .action .icon {
    font-size: 1.25em;
  }

  .action:active {
    box-shadow: 0 0em 0.25em rgba(0,0,0,0.15);
    background: #95a5a6 !important;
  }

  h2 {
    flex: 1 100%;
    text-align: center;
    margin: 1.5em 0;
  }

  ul {
    padding: 0.5em 0.5em 1.25em;
    margin: 0.5em;
    min-height: 15em;
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-content: flex-start;
    align-items: flex-start;
    border: 1px dashed transparent;
    border-radius: 0.25em;
    list-style: none;
    /* overflow: hidden; */
    position: relative;
  }

  ul:empty {
    order: 2;
  }

    
  ul:empty:after {
  content: 'Click the ' url(http://timburch.com.au/img/add_circle.svg) ' to add a rhyme.';
  font-size: 2.25em;
  padding: 0.25em 1em;
  color: #999;
  position: absolute;
  top: 50%;
  line-height: 1.25em;
  text-align: center;
  transform: translate3d(0,-50%,0);
  }

  ul:empty:before
  ul:empty:before {
    flex: 1 50%;
  }

  li {
    flex: 1 3 30%;
    margin: 0.5em;
    padding-bottom: 0.5em;
    position: relative;
    overflow: visible;
    background: #fafafa;
    box-shadow: 0 0.25em 0.25em -0.2em rgba(0, 0, 0, 0.085),
                0 1px 0 0px rgba(0,0,0,0.085);
     cursor: pointer; 
  }

  p {
    font-size: 1.5em;
    margin: 0.5em 0.25em 0;
    position: relative;
    z-index: 2;
  }

  p span {
    display: none;
    font-size: 0.75em;
    margin: 0 2em;
  }


/* //////////////////////////////////////// */
/* Structure      
/* //////////////////////////////////////// */

  .outer {
    padding: 1em;
    position: relative;
    font-size: 0.85em;
  }

  .wrap {
    max-width: 80vw;
    margin: 1em auto;
  }

  .outer.active .wrap {
    margin: 0em;
    width: calc(100vw - 23em);
  }

  .sheet {
    margin: 1.5em 0em;
    padding: 0.25em;
    min-height: 3em;
    border-radius: 0.25em;
    background: #fafafa;
    box-shadow: inset 0 0 0.5em rgba(0, 0, 0, 0.085), 
                inset 0 0 0 1px rgba(0,0,0,0.085);
  }

/* //////////////////////////////////////// */
/* Input      
/* //////////////////////////////////////// */

  .input {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-content: center;
    margin: 2em;
    border-radius: 0.25em;
    text-align: center;
  }

  .input_row > .icon {
    position: absolute;
    top: 0.25em;
    right: 0.25em;
    z-index: 2;
    opacity: 0;
    font-size: 1.5em;
  }

  .input .input_item {
    flex: 1 1 100%;
    margin: 0 1em;
  }

  input[type=text] {
    font-size: 1.5em;
    display: inline-block;
  /*   width: 50%; */
    padding: 0.5em 0.25em;
    text-align: center;
    border-radius: 0.25em;
    border: none;
    background: #fafafa;
    box-shadow: inset 0 0 0.5em rgba(0, 0, 0, 0.085), 
                inset 0 0 0 1px rgba(0,0,0,0.085);
    -webkit-appearance: none;
    outline: none;
  }

  .num_matches_outer {
    display: inline-block;
    top: 0.5em;
    position: relative;
    flex: 1 1 100%;
    display: none;
  }

  input#num_matches {
  /*   width: 80%; */
  }

  button {
  /*   width: 10%; */
    min-width: 7em;
    cursor: pointer;
    background: #ccc;
    box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.085), 
                inset 0 0 0 1px rgba(0,0,0,0.085);
    -webkit-appearance: none;
    float: right;
  }

  .spinner {
    width: 40px;
    height: 40px;
    margin: auto;
    background-color: #333;

    border-radius: 100%;  
    -webkit-animation: sk-scaleout 1.0s infinite ease-in-out;
    animation: sk-scaleout 1.0s infinite ease-in-out;
    
    position: absolute;
    top: 45%;
    left: 45%;
    transform: translate3d(-50%,-50%,0);
    z-index: -1;
    opacity: 0;
  }

  @-webkit-keyframes sk-scaleout {
    0% { -webkit-transform: scale(0) }
    100% {
      -webkit-transform: scale(1.0);
      opacity: 0;
    }
  }

  @keyframes sk-scaleout {
    0% { 
      -webkit-transform: scale(0);
      transform: scale(0);
    } 100% {
      -webkit-transform: scale(1.0);
      transform: scale(1.0);
      opacity: 0;
    }
  }

  .input::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fafafa;
    opacity: 0;
    z-index: -1;
    border-radius: 0.25em;
    transition: opacity 0.5s ease;
    }

  .input.processing::before {
    opacity: 1;
    z-index: 25;
    transition: opacity 0.5s ease;
  }

  .input.processing .spinner {
    opacity: 1;
    z-index: 26;
  }

/* //////////////////////////////////////// */
/* Rhyme Sheet      
/* //////////////////////////////////////// */

  .rhyme_sheet {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    justify-content: center;
  }

  .rhyme {
    flex: 1 1 25%;
    /*flex: 1 1 20%;*/
    position: relative;
    max-width: 50%;
  }

  .rhyme > .icon {
    top: 1em;
    right: 1.5em;
  }

  .rhyme:before {
    content: attr(data-source);
    display: block;
    flex: 1 3 100%;
    font-size: 2em;
    padding: 0.25em 0.75em 0.5em;
    margin: 0 15% 0 5%;
    border-bottom: 0.085em solid #aaa;
  }

  .rhyme_wrap {
    height: calc(100% - 4em);
  }

  .rhyme .rhymes {
    height: calc(100% - 1em);
  }

  .rhyme.active .rhymes {
    border-color: #aaa;
  }

  .rhyme:not(.active) .rhymes:hover {
    border-color: #ccc;
  }

  .rhymes .rhyme_score {
    opacity: 0;
  }

  .rhymes.faded {
    opacity: 0.5;
  }

  .rhymes li {
    flex: 1 1 100%;
    border-bottom: 1px dashed #ccc;
    counter-increment: rhymes;
    padding-left: 1.5em;
    box-shadow: none;
  }

  .rhymes li:before {
    content: counter(rhymes);
    margin-left: -1.5em;
    position: absolute;
    bottom: 0.5em;
  }

  .rhyme_sheet > :nth-child(11) {
    display: none;
  }

/* //////////////////////////////////////// */
/* Rhyme Options
/* //////////////////////////////////////// */

  .rhyme_options {
    position: fixed;
    z-index: 2;
    top: 0;
    right: 0;
    width: 20em;
    height: 100vh;
    margin: 0;
    padding: 0.25em;
    /*   display: flex; */
    /*   flex-flow: row wrap; */
    /*   overflow: hidden; */
    -webkit-overflow-scrolling: touch;
    background: #fafafa;
    box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.085), 
                inset 0 0 0 1px rgba(0,0,0,0.085);
    overflow-y: scroll;
    transform: translate3d(150%, 0, 0);
    
  }

  .filter_outer {
    text-align: center;
  }

  .filter_outer h4 {
    margin: 0.5em;
  }

  .rhyme.active .rhyme_options {
    transform: translate3d(-0.5em, 0, 0);
  }

  .rhyme_options .option_filter {
    font-size: 0.65em;
    position: relative;
    padding: 0.5em 1.75em 0.5em;
    float: none;
  }

  .rhyme_options .option_filter:after {
    content: '\2714';
    position: absolute;
    right: 0.5em;
    top: 50%;
    transform: translate3d(0,-50%,0);
    opacity: 0;
  }

  .rhyme_options .option_filter.active {
    padding: 0.5em 2.5em 0.5em 0.5em;
  }

  .rhyme_options .option_filter.active:after {
    opacity: 1;
  }

  .rhyme_options ul {
    border: none;
    /* transform: translate3d(200%,0,0); */
    flex: 1 1 45%;
    /* position: absolute; */
    text-align: center;
    counter-reset: rhymes;
  }

  .rhyme_options ul:after {
    min-height: 3em;
    content: '';
    flex: 1 1 100%;
    display: block;
  }

  .rhyme_options li .icon-remove_circle,
  .rhyme_options li .handle {
    display: none; 
    opacity: 1;
  }

  .rhyme_options li .add_rhyme {
    display: block;
    opacity: 0;
  }

  .rhyme_options li:hover {
    transform: scale(1.05);
    border-radius: 0.25em;
    box-shadow: 0 0 0.25em rgba(0, 0, 0, 0.085), 
                inset 0 0 0 1px rgba(0,0,0,0.085);
  /*   overflow: hidden; */
  }

  .rhyme_options li:hover .add_rhyme {
    opacity: 1;
  }

  .rhyme_options li:last-child {
    margin-bottom: 3em;
  }

  .rhyme_stats {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    font-size: 0.75em;
    line-height: 0.95em;
    text-align: center;
    color: #aaa;
    margin-bottom: -0.25em;
    position: relative;
    z-index: 1;
    /* display: none; */
  }

  .rhyme_stats span:before {
    content: attr(data-title);
    display: block;
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  li:hover .rhyme_stats span:before {
    opacity: 1;
  }

  .rhyme_score {
    display: block;
    display: none;
    background: linear-gradient(to left, 
            rgba(131, 204, 251, 0.00) 5%, 
            rgba(131, 204, 251, 0.85), 
            rgba(57, 142, 197, 0.95));
    min-height: 15%;
    position: absolute;
    bottom: 0;
  /*   border-radius: 0 0 0.25em 0.25em; */
    width:100%;
    z-index: 0;
  }

/* //////////////////////////////////////// */
/* Sheet History      
/* //////////////////////////////////////// */

  .sheets_history {
    padding: 1em 2em;
  }

  .sheets_history[style*=none] ~ input,
  .sheets_history:empty ~ input {
    margin-left: 0;
  }

  .sheets_history_list {
    text-align: left;
    padding: 0 1em;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;

  }

  .saved_sheet a {
    cursor: pointer;
    margin: 0.5em 0 0;
    padding: 0.25em 0;
    display: block;
  }

  .saved_sheet a span {
    display: block;
    font-size: 0.75em;
    opacity: 0.5;
    white-space: pre;
    padding-left: 0.55em;
  }

  .sheets_history_list > div {
    counter-increment: song-list;
    position: relative;
    flex: 0 1 30%;
    padding: 0 1.5em 0 2.5em;
  }

  .sheets_history_list > div:before {
    content: counter(song-list) '.';
    position: absolute;
    left: 0em;
    opacity: 0.5;
    top: 50%;
    transform: translate3d(0,-50%,0);;
    font-size: 1.5em;
  }

  .saved_sheet .icon-remove_circle {
    position: absolute;
    right: 0em;
    padding: 0.25em;
    box-sizing: content-box;
    opacity: 0.25;
  }

  .no-touch .saved_sheet:hover {
    transform: scale(1.025);
    transition: all ease 0.25s;
  }

  .no-touch .saved_sheet:hover .icon-remove_circle {
    opacity: 1;
  }

/* //////////////////////////////////////// */
/* Help Styles      
/* //////////////////////////////////////// */

  .get_help {
      position: fixed;
      z-index: 101; 
      /*transform: translate3d(-100%,0%,0);*/
      top: 1em;
      right: 1em;
      width: 2em;
      height: 2em;
      font-size: 0.75em;
      padding: 0;
      box-sizing: content-box;
      border-radius: 50%;
      box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.185), 0 0 0 1px rgba(0,0,0,0.185);
      background: #fafafa;
  }

  .no-touch .get_help:hover {
      tranform: scale(1.15);
  }

  .get_help.active {
      /*transform: translate3d(50%,0,0);*/
  }

  .get_help .icon {
    font-size: 2em; 
    position: absolute;
  }

  .get_help .icon-cancel,
  .get_help.active .icon-help {
    opacity: 0
  }

  .get_help.active .icon-cancel,
  .get_help .icon-help {
    opacity: 1;
  /*     transform: translate3d(200%,0%,0); */
  }

  .help_section {
      position: fixed;
      z-index: 100;
      transform: translate3d(110%,0,0);
      width: 70vw;
      height: 98vh;
      background: #fafafa;
      top: 1vh;
      right: 0%;
      box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.185), 0 0 0 1px rgba(0,0,0,0.085);
      border-radius: 0.25em;
      padding: 1em 2em 1em 1em;
  }

  .help_section.active {
      transform: translate3d(-1%,0,0);
  }

  .help_section_content {
      width: 100%;
      height: 100%;
      /*white-space: pre;*/
      overflow-y: auto;
      padding: 2em;
      -webkit-overflow-scrolling: touch;
  }

  .help_overlay {
    position: fixed;
    top:0;
    left:0;
    width: 100vw;
    height: 100vh;
    z-index: 99;   
    display: block;
    background-color: rgba(0,0,0,0.45);
    transform: scale(0);
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .help_overlay.active {
    transition: opacity 0.2s ease;
    transform: scale(1);
    opacity: 1;
  }

  .videoWrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    height: 0;
  }
  .videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

/* //////////////////////////////////////// */
/* End Help Section      
/* //////////////////////////////////////// */



/* //////////////////////////////////////// */
/* Rhyme type bar      
/* //////////////////////////////////////// */

.rhyme_info {
  text-align: center;
  padding: 1em 0;
  position: relative;
  z-index: 20;
  top: -0.75em;
  left: 50%;
  font-size: 0.7em;
  box-sizing: border-box;
  width: 95%;
  transform: translate3d(-50%,0,0);
}

.rhyme_info * {
  transition: none;
}

.rhyme_info_gradient {
  flex-basis: 100%;
  width: 100%;
  height: 2.35em;
  background: linear-gradient(to right, blue, purple, red, orange, yellow);
  margin: 0.5em 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.75), 0 0.05em 0.25em rgba(0,0,0,0.35);
}

.rhyme_info_type {
  display: inline-block;
  width: 16%;
  vertical-align: top;
  position: relative;
  background: transparent;
  padding: 0em 0.5em;
  color: #fff;
  cursor: pointer;
  text-shadow: 0 0.1em 0.15em rgba(0,0,0,0.65);
  box-sizing: border-box;
  transform: translate3d(0,-0.55em,0);
  transition: height 0.35s ease;
  /*box-shadow: inset 0 0 0 1px rgba(255,255,255,0.75), 0 0.05em 0.25em rgba(0,0,0,0.35); */
}

.rhyme_info_type:hover {
  color: #555;
  background: #fafafa;
  padding-bottom: 1em;
  text-shadow: 0 0.1em 0.15em rgba(0,0,0,0);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.75), 0 0.05em 0.25em rgba(0,0,0,0.35);
}

.rhyme_info_type ul,
.rhyme_info_type a {
  display: block;
/*   list-style: none; */
  padding: 0 0.5em 0 0.75em;
  margin: 0;
  text-align: left;
  max-height: 0em;
  min-height: 0.5em;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.35s ease, max-height 0.35s ease;
}

.rhyme_info_type a {
  display: block;
  margin: 0.5em auto;
  text-align: center;
}

.rhyme_info_type:hover ul,
.rhyme_info_type:hover a {
  max-height: 100em;
  opacity: 1;
}

.help_section_content .rhyme_info_type {
  background: transparent;
  color: #555;
  text-shadow: none;
}

.help_section_content .rhyme_info_type ul, 
.help_section_content .rhyme_info_type a {
  opacity: 1;max-height: 100vh;
}

/* //////////////////////////////////////// */
/* End Rhyme type bar      
/* //////////////////////////////////////// */



/* //////////////////////////////////////// */
/* Export      
/* //////////////////////////////////////// */

.export_rhymes.action {
  margin: 0.25em auto;
  display: block;
  width: 35%;
  text-align: center;
}

.rhyme_export_section {
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.rhyme_export_section > div,
.rhyme_input_section > div {
  flex: 1;
}

.rhyme_input_section .rhyme_input_outer {
  flex: 1 30%;
}

#rhyme_export {
  width: 100%;
  min-height: 10em;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 0.5em;
  box-shadow: inset 0 0 0.25em rgba(0, 0, 0, 0.085);
  background: #fff;
  flex: 1 50%;
  font-family: 'Source Code Pro', monospace;
  font-weight: 200;
  font-size: 0.75em;
}

#rhyme_export {
  white-space: pre;
  word-wrap: normal;
  overflow: auto;
  overflow: scroll;
  text-align: left;
  max-height: 60vh;
  font-size: 1em;
  -webkit-overflow-scrolling: touch;
}

.rhyme_input_report {
  /*   width: 25%; */
}

.rhyme_export_report h5 .song_input_report h5 {
  margin: 0 0 0.5em;
}

.export_rhymes_copy {
  margin-left: 1.5em;
  margin-right: 1.5em;
}

/* //////////////////////////////////////// */
/* End Export Section      
/* //////////////////////////////////////// */



/* //////////////////////////////////////// */
/* Media Queries      
/* //////////////////////////////////////// */

  @media (max-width: 850px) {
    .sheets_history_list > div {
      flex: 0 1 45%;
    }
  }

  @media (max-width: 750px) {
    .outer {
    }
    .wrap{
      width: calc(100% - 2em);
      max-width: 98vw;
    }

    
    .outer.active .wrap {
      margin: 0em;
      width: calc(100% - 2em);
    }
    
    h1 {
      text-align: center;
    }
    .input .input_item {
      flex: 100% !important;
      margin-bottom: 0.5em;
    }
    button {
      margin-top: 1em;
    }
    ul {
      height: calc(100% - 1em);
    }

    .rhyme {
/*       display: flex; */
/*       flex-flow: row wrap; */
      flex: 1 0 100%;
      width: 100%;
      max-width: 100%;
      overflow: hidden;
/*       max-height: 70vh; */
    }
    
    .rhymes,
    .rhyme_options {
      position: static;
      box-shadow: none;
      float: left;
/*       max-height: 65vh; */
      width: 85vw;
    }
    
    .rhyme_options {
      width: 0;
      height: calc(70vh - 3em);
      margin-top: 1em;
    }
    
    .rhyme.active .rhymes,
    .rhyme.active .rhyme_options {
      width: 48%;
      transform: translate3d(0,0,0);
    }
    
    .rhyme_wrap {
      width: 200%;
      overflow: hidden;
      max-height: auto;
    }

    .rhyme.active .rhyme_wrap {
      width: 100%;
    }
    
    .rhyme_options li .handle {
      /* opacity: 1; */
    }

    .rhyme_export_section {
      flex-flow: column;
    }

    #rhyme_export {
      font-size: 16px;
    }

  }

  @media (max-width:480px) {
    .outer {
      font-size: 0.65em;
    }
    .outer .wrap,
    .outer.active .wrap {
      /* margin: 0em; */
      margin: auto;
      
    }
    .sheets_history_list > div {
      flex: 0 1 100%;
    }
    .rhyme_sheet {
      /* flex-flow: column; */
    }
    
    .rhyme.active .rhymes,
    .rhyme.active .rhyme_options {
      /* width: 45%; */
    }

    ul li {
      flex: 1 1 100%;
    } 
    
    ul:empty:after {
      /*width: 30%;*/
      left: 0;
    }
    
  }

    