@import url(http://fonts.googleapis.com/css?family=Titillium+Web:900|Roboto:400,100);

body { background-color: #fff; padding: 20px; }

#myQuiz {
   font-family: 'Roboto', sans-serif; font-size: 16px; font-weight: 400;
   width: 650px; height: 700px; 
   position: relative; 
   overflow: hidden; 
   background: #000 url(../images/quiz/background.jpg) no-repeat 0px 0px;
   color: #fff;
}

#myQuiz h1 {
   font-weight: 100; font-size: 1.5em; 
   text-transform: uppercase; 
   margin: 0px; 
   position: absolute; top: 25px; left: 36px; 
}
#myQuiz h1 span { 
   font-family: 'Titillium Web', sans-serif; font-size: 1.5em;
   line-height: 65px;
   display: block; font-weight: 900; 
}

#myQuiz h2 { 
   font-size: 1em; 
   margin: 0px; 
   font-weight: 400; }

#myQuiz h2 span { 
   font-family: 'Titillium Web', sans-serif; font-size: 1em;
   line-height: 30px;
   display: block; font-weight: 600; 
}

#myQuiz h3 { font-size: 2.4em; margin: 0px; font-weight: 100; }

#myQuiz p { margin: 0px 0px 14px 0px; }

#myQuiz .btn { 
   display: inline-block; cursor: pointer; 
   background-color: #c04b01; 
   color: #fff; text-decoration: none;
   padding: 5px 15px; border-radius: 6px; 
}

/* Progress */
#myQuiz .progress {
   width: 550px;
   position: absolute; top: 160px; left: 40px;
}


#myQuiz .progress div {
   position: relative;
   display: inline-block;
   width: 25px; height: 25px;
   margin-right: 20px; 
   border-radius: 50%;  
   background-color: rgba(255,255,255,.2);
   transition: background-color 1s;

   /* width: 25px; height: 25px; margin-right: 20px;  */
}


#myQuiz .progress div::after { 
   content:''; display: block; position: absolute; top: 0px!important; 
   width: 25px; height: 25px;
   /*background: url(../images/ring.svg) no-repeat 0px 0px;*/
   background-color:  green;
   border-radius:  50%;

   transition: opacity 1s, top 1s;
   opacity: 0;
}

#myQuiz .progress div.on,
#myQuiz .progress div.answered {
   background-color: #efbe5e;
}

#myQuiz .progress div.correct::after { top: -5px; opacity: 1; }

/* Intro */
#myQuiz .intro { 
   font-weight: 100;
   position: absolute; top: 225px; left: 660px; 
   width: 550px; 
   color: #fff;
}

#myQuiz .intro p { margin: 0px 0px 40px 0px; }


/* Questions */

#myQuiz .question {
   font-weight: 300;
   width: 550px;
   position: absolute; top: 225px; left: 660px;
}
#myQuiz .question::after { content:''; display: block; clear: both; }

#myQuiz .question .txt { color: #fff; font-size: 1.6em; margin: 0px 0px 20px 0px; }

#myQuiz .question .ans {
   display: inline-block;
   width: 225px; 
   font-size: 1.1em;
   border: 2px solid rgba(238,189,102,.4); border-radius: 6px; 
   margin: 0px 15px 15px 0px; padding: 10px; 
   color: #fff; 
   position: relative;
}

#myQuiz .question .ans.selected { border-color: #be4b16; }

#myQuiz .question .ans.correct { border-color: #459a2e; }

#myQuiz .question .ans::after {
   content:''; display: block; width: 20px; height: 20px; 
   background: no-repeat 0px 0px; background-size: 20px 20px; 
   position: absolute; top: 5px; right: 5px;
}

#myQuiz .question .ans.selected::after { background-image: url(../images/quiz/icon_incorrect.svg); }

#myQuiz .question .ans.correct::after { background-image: url(../images/quiz/icon_correct.svg); }


#myQuiz .question.unanswered .ans { cursor: pointer; }
#myQuiz .question.unanswered .ans:hover { background-color: rgba(238,189,102,.2); }
#myQuiz .question.answered .ans { cursor: default; }

#myQuiz .question .ans.image { min-height: 60px; padding: 0px; background: no-repeat 0px 0px; }

/* Feedback */
#myQuiz .feedback { 
   visibility: hidden; opacity: 0;
   clear: both; color: #efbe5e;
   transition: opacity 1.5s, margin-top 1.5s;
   margin-top: 50px;
}
#myQuiz .feedback .btn { clear: both; margin-top: 5px; }

#myQuiz .feedback strong { color: #fff; }

#myQuiz .answered .feedback { visibility: visible; opacity: 1; margin-top: 10px; }

/* Results */
#myQuiz .results {
   color: #fff;
   width: 500px;
   position: absolute; top: 225px; left: 660px;
}
#myQuiz .results .share { margin-top: 40px; }

#myQuiz .results a.btn { 
   margin-right: 20px; padding: 8px 15px 8px 42px; 
   background-repeat: no-repeat;
   background-position: 10px 5px;
   background-size: 25px 25px; 
}

#myQuiz .results a.email {
   background-color: #f0a121;
   background-image: url(../images/quiz/icon_email.svg);
}

#myQuiz .results a.twitter {
   background-color: #59adeb;
   background-image: url(../images/quiz/icon_twitter.svg);
}


#myQuiz .active,
#myQuiz .inactive { transition: left 1.5s ease-in-out; }

#myQuiz .active { left: 40px; }

#myQuiz .intro.inactive,
#myQuiz .inactive.answered { left: -1350px; }

/* testing */

/*
#myQuiz { height: 1000px; }
#myQuiz .results { top: 650px ; left: 40px ; }
*/


@media screen and (max-width: 650px) {

   body { padding: 0px; margin: 0px; }

   #myQuiz { width: 320px; background-size: 320px auto; }
   #myQuiz h1 { width: 300px; font-size: 1.3em; top: 25px; left: 25px; }
   #myQuiz h1 span { line-height: 43px; }
   #myQuiz h2 { margin: 0px; }
   #myQuiz h3 { font-size: 2.2em; margin-bottom: 15px; }

   #myQuiz .progress { width: 300px; top: 110px; left: 25px; }
   #myQuiz .progress div { width: 25px; height: 25px; margin-right: 20px; }
   #myQuiz .progress div::after { top: -30px; width: 53px; height: 33px; }
   #myQuiz .progress div.correct::after { top: -5px; opacity: 1; }

   #myQuiz .intro { width: 300px; top: 135px; left: 330px; }

   #myQuiz .question { width: 300px; top: 135px;  left: 330px; }
   #myQuiz .question .txt { font-size: 1.4em; margin-bottom: 15px; }
   #myQuiz .question .ans { font-size: 1em; padding: 5px 10px; margin-bottom: 10px; }
   #myQuiz .question .ans.image { min-height: 45px; background-size: auto 45px; }
   #myQuiz .question .ans.image:hover { background-color: #000; }

   #myQuiz .results { width: 260px; top: 150px; left: 330px; }
   #myQuiz .results .share { margin-top: 20px; }
   #myQuiz .results a.btn { margin-bottom: 20px; }
   
   #myQuiz .active { left: 25px; }
   #myQuiz .intro.inactive, #myQuiz .inactive.answered { left: -650px; }
}






