/*
*   WebQ - Spotify Playlist - CSS
*
*   author: Albert Koncz
*   version: v1.1
*   since: 03/17/2017
*
*/

.webq-spotify-playlist {
  form {
    background: #eee;
    margin: 30px 0;
    padding: 20px;
  }
  textarea,
  input[type='email'],
  input[type='text'] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    color: #333;
    font: 14px/20px;
    margin: 0;
    max-width: 100%;
    outline: none;
    padding: 10px;
  }
  
  input[type='submit'] {
    margin-top: 20px;
  }
    
  .quiz-result{
    display: none;
  } 
  .quiz,
  .quiz-result {
    background: #eee;
    //padding: 40px 20px;
  }
  .quiz-wrapper {
    margin: 0 auto;
    max-width: 640px;
  }
  .quiz-title {
    border-bottom: 1px solid #ddd;    
    font-size: 28px;
    line-height: 30px;
    margin: 0 0 30px 0;
    padding-bottom: 30px;
    text-align: center;
  }
  .question {
    display: none;
    margin: 0 auto;
    max-width: 580px;
  }
  .question:after {
    clear: both;
    content: '';
    display: table;
  }
  .question-headline {
    
    font-size: 21px;
    font-weight: normal;
    line-height: 22px;
    margin: 0;
  }
  .answers {
    list-style: none;
    margin: 20px 0 0 0;
    padding: 0;
  }
  .answer {
    background: #fff;
    border-left: 40px solid #ddd;
    color: #666;
    cursor: pointer;
    padding: 10px 20px;
    position: relative;
    -webkit-transition: background 0.3s;
    -moz-transition: background 0.3s;
    transition: background 0.3s;
    margin-bottom: 20px;
  }
  .answer:hover,
  .answer.selected {
    background: #ccc;
  }
  .answer:after {
    display: block;
    font-size: 16px;
    line-height: 24px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-weight: bold;
    position: absolute;
    left: -40px;
    top: 0;
    text-align: center;    
    width: 40px;
  }
  .answer.a:after {
    content: 'A';
  }
  .answer.b:after {
    content: 'B';
  }
  .answer.c:after {
    content: 'C';
  }
  .answer.d:after {
    content: 'D';
  }
  .answer.e:after {
    content: 'E';
  }
  .next-question-link,
  .submit-quiz-link {    
       float: right;       
  }
    
  @media screen and ( max-width:640px) {
    .quiz-title {
      font-size: 24px;
      line-height: 34px;
      margin: 0 0 20px 0;
      padding-bottom: 20px;
    }
    .question-headline {
      font-size: 16px;
      line-height: 24px;
    }
  }
  .popup {
    background: #fff;
    background: rgba(255, 255, 255, 0.9);
    height: 100%;
    left: 0;
    opacity: 0;
    position: fixed;
    text-align: center;
    top: 0;
    -webkit-transition: opacity 0.3s 0s, visibility 0s 0.3s;
    -moz-transition: opacity 0.3s 0s, visibility 0s 0.3s;
    transition: opacity 0.3s 0s, visibility 0s 0.3s;
    visibility: hidden;
    width: 100%;
    z-index: 2;
  }
  .popup.active {
    opacity: 1;
    -webkit-transition: opacity 0.3s 0s, visibility 0s 0s;
    -moz-transition: opacity 0.3s 0s, visibility 0s 0s;
    transition: opacity 0.3s 0s, visibility 0s 0s;
    visibility: visible;
  }
  .popup-wrapper {
    background: #fff;
    -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.25);
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.25);
    height: 440px;
    left: 50%;
    margin: -215px 0 0 -150px;
    position: absolute;
    top: 50%;
    width: 300px;
  }
  .popup-message {
    font: bold 18px/28px;
    margin: 20px 20px 10px 20px;
  }
  .popup-description {
    margin: 10px 20px 20px 20px;
  }
  .popup-highlight {
    font-style: normal;
    font-weight: 700; 
    font-size: 1.3em;
  }
  .popup-form {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    bottom: 0;
    left: 0;
    margin: 0;
    position: absolute;
    width: 100%;
  }
  input.popup-first-name,
  input.popup-address,
  input.popup-state {
    float: left;
    margin-bottom: 5px;
    width: 49%;
  }
  input.popup-last-name,
  input.popup-city,
  input.popup-zip-code {
    float: right;
    margin-bottom: 5px;
    width: 49%;
  }
  input.popup-email {
    width: 100%;
  }
  input.popup-submit {
    margin-top: 10px;
  }
  .popup-close {    
    display: block;
    height: 14px;
    width: 14px;    
    position: absolute;
    right: 10px;    
    top: 10px;
    -webkit-transition: opacity 0.3s;
    -moz-transition: opacity 0.3s;
    transition: opacity 0.3s;
    color: #666;

  }
  .popup-close:hover {
    opacity: 0.5;
  }
}

// services explorer hack
#service-main-content {
  .webq-spotify-playlist {
    ul{
      li{
        &.answer{
          padding-top: 10px;
          padding-bottom: 10px;
        }
      }
    } 
     h2{
      margin: 0 0 30px 0;
      padding-bottom: 30px;
    }
  }

  .quiz-score{
    margin-bottom: 20px;
  }
 
}