/**
 * angular-fancy-modal - the definitive modal/popup/dialog solution for AngularJS.
 * @author Alessandro Arnodo
 * @url http://alessandro.arnodo.net
 * @version v0.1.4
 * @link https://github.com/vesparny/angular-fancy-modal
 * @license MIT
 */
 body.fancymodal-open {
    overflow: hidden; }
  
  .fancymodal,
  .fancymodal *,
  .fancymodal *:before,
  .fancymodal *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box; }
  
  .fancymodal {
    padding-top: 120px;
    padding-bottom: 160px;
    -webkit-overflow-scrolling: touch;
    position: fixed;
    overflow: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    padding-left: 8px;
    padding-right: 8px; }
    .fancymodal .fancymodal-overlay {
      -webkit-backface-visibility: hidden;
      background: rgba(0, 0, 0, 0.3);
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0; }
    .fancymodal .fancymodal-content {
      max-width: 500px;
      background: #fff;
      -webkit-backface-visibility: hidden;
      -webkit-border-radius: 5px;
      -moz-border-radius: 5px;
      -ms-border-radius: 5px;
      -o-border-radius: 5px;
      padding: 2em 1em;
      border-radius: 5px;
      background: #eee;
      color: #000;
      position: relative;
      margin: 0 auto; }
    .fancymodal .fancymodal-close {
      border-radius: 3px;
      position: absolute;
      top: 0;
      right: 0;
      cursor: pointer; }
    .fancymodal .fancymodal-close:before {
      border-radius: 3px;
      position: absolute;
      content: "\00D7";
      font-size: 26px;
      line-height: 30px;
      height: 30px;
      width: 30px;
      text-align: center;
      top: 3px;
      right: 3px;
      color: #ccc; }
    .fancymodal .fancymodal-close:hover:before,
    .fancymodal .fancymodal-close:active:before {
      color: #777;
      background: #e0e0e0; }
    .fancymodal .fancymodal-content-opening {
      -webkit-animation: fancymodal-in 0.5s;
      animation: fancymodal-in 0.5s; }
    .fancymodal .fancymodal-content-closing {
      -webkit-animation: fancymodal-out 0.5s;
      animation: fancymodal-out 0.5s; }
    .fancymodal .fancymodal-overlay-opening {
      -webkit-animation: fancymodal-fadeIn 0.5s;
      animation: fancymodal-fadeIn 0.5s; }
    .fancymodal .fancymodal-overlay-closing {
      -webkit-animation: fancymodal-fadeOut 0.5s;
      animation: fancymodal-fadeOut 0.5s; }
  
  @-webkit-keyframes fancymodal-in {
    0% {
      opacity: 0;
      -webkit-transform: translateY(-40px);
      transform: translateY(-40px); }
    100% {
      opacity: 1;
      -webkit-transform: translateY(0);
      transform: translateY(0); } }
  
  @keyframes fancymodal-in {
    0% {
      opacity: 0;
      -webkit-transform: translateY(-40px);
      transform: translateY(-40px); }
    100% {
      opacity: 1;
      -webkit-transform: translateY(0);
      transform: translateY(0); } }
  
  @-webkit-keyframes fancymodal-out {
    0% {
      opacity: 1;
      -webkit-transform: translateY(0);
      transform: translateY(0); }
    100% {
      opacity: 0;
      -webkit-transform: translateY(-40px);
      transform: translateY(-40px); } }
  
  @keyframes fancymodal-out {
    0% {
      opacity: 1;
      -webkit-transform: translateY(0);
      transform: translateY(0); }
    100% {
      opacity: 0;
      -webkit-transform: translateY(-40px);
      transform: translateY(-40px); } }
  
  @-webkit-keyframes fancymodal-fadeIn {
    0% {
      opacity: 0; }
    100% {
      opacity: 1; } }
  
  @keyframes fancymodal-fadeIn {
    0% {
      opacity: 0; }
    100% {
      opacity: 1; } }
  
  @-webkit-keyframes fancymodal-fadeOut {
    0% {
      opacity: 1; }
    100% {
      opacity: 0; } }
  
  @keyframes fancymodal-fadeOut {
    0% {
      opacity: 1; }
    100% {
      opacity: 0; } }
  
  /**
   * angular-fancy-modal - the definitive modal/popup/dialog solution for AngularJS.
   * @author Alessandro Arnodo
   * @url http://alessandro.arnodo.net
   * @version v0.1.4
   * @link https://github.com/vesparny/angular-fancy-modal
   * @license MIT
   */
  .fancymodal.fancymodal-theme-classic .fancymodal-content {
    max-width: 420px;
    background-color: #000;
    color: #fff; }
  
  .fancymodal.fancymodal-theme-classic .fancymodal-content-opening {
    -webkit-animation: fancymodal-in 1s;
    animation: fancymodal-in 1s; }
  
  .fancymodal.fancymodal-theme-classic .fancymodal-content-closing {
    -webkit-animation: fancymodal-out 1s;
    animation: fancymodal-out 1s; }
  
  .fancymodal.fancymodal-theme-classic .fancymodal-overlay-opening {
    -webkit-animation: fancymodal-fadeIn 1s;
    animation: fancymodal-fadeIn 1s; }
  
  .fancymodal.fancymodal-theme-classic .fancymodal-overlay-closing {
    -webkit-animation: fancymodal-fadeOut 1s;
    animation: fancymodal-fadeOut 1s; }
  
  
  
  
  *:focus {
      outline: none;    
  }
  /* Override bootstrap */
  .form-control:focus {
    border-color: #ccc;
    -webkit-box-shadow: none;
    box-shadow: none;
  }
  
  .bold {
    font-weight: 400;
  }
  
  html, body {
    height: 100%;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 200;
    margin:0;
    padding:0;
  }
  html {
      position: relative;
      min-height: 100%;
  }
  body {
    /*margin-bottom:60px;*/
  }
  ol, ul {
    list-style: outside none none;
    margin: 0;
    padding: 0;
  }
  input:focus,button:focus {
      color: #ccc;
      outline:0;
  }
  input[type=text] {   
      /* Remove First */
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
  
      /* Then Style */
      font-family: 'Source Sans Pro', sans-serif;
      font-weight: 400;
      text-align: center;
      background: transparent;
      outline: none;    
  }
  .ng-cloak {
      opacity: 0;
  }
  a {
    color: #444;
  }
  h1 {
      font-size: 44px;
      font-weight: 200;
      letter-spacing: -1px;
      line-height: 1;
      margin-top:0;
  }
  p {
      font-weight: 300;
      margin-top: 5px;
      color: #9c9c9c;
      margin-bottom: 10px;
      font-size:18px;
  }
  header {
      position: absolute;
      top: 0px;
      left: 0px;
      line-height: 36px;
      padding: 50px;
      box-sizing: border-box;
      width: 100%;
      font-size: 18px;
      color: #616161;    
  }
  header .title {
      position: absolute; 
      top: 20px;
      left: 40px;  
      transition: all 0.3s ease-in-out 0s;
      line-height: 36px;
      font-size:18px;
      margin: 0;
      padding: 0;
      font-weight:200;
      padding: 10px;
  }
  header > .title a,header > .title a:hover {
    color: #333;
    text-decoration:none;
  }
  
  header .title-text {
    font-weight:300;
    border: 1px solid #f1f1f1;
    border-radius: 4px;
    padding: 10px;
  }
  
  header .title img { 
    height:40px;
    margin-right:10px;
  }
  
  header .mobile-form {
    display:none;
  }
  
  header .desktop-form {
    display:block;
  }
  
  header .modal-form {
      position: absolute;
      top: 30px;
      right: 40px;  
      margin: 0;
      padding: 8px;
  }
  
  
  header .word-form .word-field {    
      font-size:18px;
      display: inline;     
      background-color: transparent;
      border: none;
      border: 1px solid #f1f1f1;
      box-sizing: border-box;
      height: 45px;
      position: relative;
      box-shadow: none;
      border-radius:4px;
      text-align:left;
  }
  
  .outer { 
    height: 100%;
    width: 100%;
    display: table;
  }
  
  .inner {
    display: table-cell;
    height: 100%;
    vertical-align: middle;
    padding-bottom: 60px;
  }
  
  .main-form {
    max-width:600px; 
    margin: 0px auto; 
    margin-top:45px;
  }
  
  .main-form > input{
     border: 2px solid #ccc;
     height:61px; 
     width:350px;
     text-align:left;
     padding:0 20px;
     margin-right:5px;
     font-size:16px;
     color: #9c9c9c;
  }
  
  .form-inline .form-control {
    width:350px;
  }
  .main-form .btn-default {
    background: #2a9d3f;
    border-color: #2a9d3f;
    color:white;
    height:61px;
    padding: 0 30px;
    -webkit-transition: all .16s linear;
    transition: all .16s linear;
  }
  
  .header-form {
      position: absolute;
      top: 30px;
      left: 40px;
      margin: 0;
      text-align: left;
      width:250px;
      padding: 8px;
  }
  .header-form input{
    border: 1px solid #ccc;
    height:45px;
    text-align:left;
    padding: 0 15px;
  }
  .header-form button {
    height:45px;
    background: #2a9d3f;
    border-color: #2a9d3f;
    color:white;
    width:55px;
  }
  .header-form button:hover {
    opacity: 0.8;
    background: #3ce75b;
    border-color: #3ce75b;
    color:white;
  }
  
  ul {
      margin: 0px auto;
      max-width: 320px;
      -moz-user-select: none;
      font-size: 16px;
      height:203px;
      margin-top:25px;
  }
  ul li {
      border-bottom: 1px solid #f1f1f1;
      line-height: 50px;
      position: relative;
      text-align:center;
      transition: all 0.3s ease-in-out 0s;
      font-weight:300;
  }
  #result {
    text-align:center;
  }
  #error {
      margin: 30px auto;
      font-size: 22px;
      line-height: 22px;
      height: 22px;
      text-align: center;
  }
  
  .definition-box {
    text-align:center;
    margin: 0px auto;
  }
  span.definition-text {
      display: block; 
      line-height: 1.3em;       
      vertical-align: middle;
      text-align:center;
      margin: 0px auto;
      padding: 15px 0;
      width:100%;
  }
  
  
  .navbar-form {
    border:none;
    box-shadow: none;
  }
  
  /* #Modal
  ================================================== */
  .modal-toggle {
      width: 34px;
      height: 36px;
      margin-right: 20px;
      display: inline-block;
      position: relative;
      cursor: pointer;
      vertical-align: middle;
  }
  
  /* #Footer
  ================================================== */
  
  .footer {
    padding-top:13px;
    color: #777;
    border-top: 1px solid #e5e5e5;
    margin: 0px auto;
    text-align:center;
    color: #9c9c9c;
    font-size:16px;
    font-weight:300;
    bottom: 0;
    width: 100%;
    position: absolute;
    height:60px;
  }
  
  
  
  /* #Fancy Modal
  ================================================== */
  
  .fancymodal .fancymodal-content {
    max-width:700px;
    padding:20px;
  }
  
  
  .fancymodal .fancymodal-content p {
    color: #333;
    margin: 20px 0;
  }
  
  .fancymodal .fancymodal-content ul {
    font-size:18px;
    font-weight:300;
    margin: 0px auto;
    max-width: none;
    -moz-user-select: default;
    font-size: 18px;
    height: auto;
    margin-top: none;
    list-style: circle inside;
    list-style-type: disc; 
  }
  
  .fancymodal .fancymodal-content ul li {
      border-bottom: none;
      line-height: 24px;
      position: static;
      text-align: left;
      transition: all 0.3s ease-in-out 0s;
      font-weight: 300;
      margin-left:20px;
      padding:5px;
  }
  
  .mobile-back-button {
    display:none;
  }
  
  
  /* Responsive: Portrait tablets and up */
  @media screen and (max-width: 767px) {
  
    html,body {
      height: auto;
    }
    body {
      margin-bottom:60px;
    }
    header {
      position: relative;
      padding:10px;
      margin-bottom:30px;
      background-color: #fff;
    }
    header .title-text {
      display:block;
      position: relative;    
      margin: 0px auto;
      display:none; 
    }
    header .mobile-form {
      display:block;
    }
    header .desktop-form {
      display:none;
    }
    header .modal-form {
      display:none;
    }
    header .header-form {
      position: relative;    
      margin: 0px auto;
      margin-top:0px;
      text-align:center;
      top: auto; right: auto; left:auto;
    }
    header .title {
      position: relative;    
      margin: 0px auto;
      margin-top:20px;
      text-align:center;
      margin: 0px auto;
      top: auto; left: auto;
      padding:0;
    }
    header .word-form .word-field {
      max-width: 268px;
      margin-bottom:10px;
      text-align:center;
    }
    header .word-form {
      margin-top:0;
      border:none;
    }
    h1 {
      font-size: 32px;
    }
    p {
      display:none;
    }
    .main-form {
      text-align:center;
      max-width:none; 
      margin: 0px auto; 
      margin-top:40px;
    }
    .main-form input{
       height:61px; 
       width:auto;
       max-width:350px;
       width:100%;
       text-align:left;
       padding:0 10px;
       margin:0px auto;
       margin-top:20px;
    }
    #result {  
      font-size:95px;
      margin-bottom: 10px;
      margin-top:0px;
      padding: 0 20px;
    }
    .inner,.outer {
      display:block;
      height:auto;
      padding:0;
    }
    ul {
      height:auto;
      padding: 0 20px;
    }
    .main-form .btn-default {
      width:100%;
      max-width:350px;
      display: block;
      margin: 0px auto;
      margin-top:20px;
    }
    .form-inline .form-control {
      width:100%;
    }
    .mobile-back-button {
      display:block;
      border-bottom:none;
      margin-top:30px;
    }
  
  }