@import url(http://fonts.googleapis.com/css?family=Titillium+Web:900|Roboto:400,100);
@import url(https://fonts.googleapis.com/css?family=Passion+One);
@import url(https://fonts.googleapis.com/css?family=Open+Sans);
@import url(https://fonts.googleapis.com/css?family=Special+Elite);
body {
    background: url("../img/newspaper_bckg.png") fixed center top;
    background-size: cover;
    background-color: darkslategray;
    padding: 20px;
    color: floralwhite;
    font-family: 'Open Sans', sans-serif;
}
#quiz {
    font-family: 'Open Sans'; font-weight: 400; font-size: 16px;
    width: 650px;
    height: 850px;
    position: relative;
    overflow: hidden;
    color: #fff;
    background-color: #333333;
    /*margin: 0 auto;*/
    /*background: url("../img/bckg_abstract.jpg") no-repeat top left;*/
    border: 1px solid darkgray;
    border-radius: 6px;
/*        #b3d4fc;*/
}
#quiz .logo {
    position: absolute;
    width: 100px;
    height: 70px;
    right: 10px;
    top: 10px;
    /*background: url("../img/psf_logo.png") no-repeat center center;*/
    background-size: cover;
}
#quiz h1 {
position: absolute;
    left: 36px;
    font-weight: 100;
    font-size: 1.9em;
    padding: 0;
    text-transform: uppercase;
    font-family: 'Special Elite', cursive;
}
#quiz h1 span {
    display: block;
    font-family: 'Passion One';
    padding: 0;
    line-height: 30px;
    font-size: 2.0em;
    text-transform: none;
}
#quiz h1 span b { color: antiquewhite;}

#quiz h2, #quiz h3 {
    font-family: 'Special Elite', cursive;
}
#quiz h2 { font-size: 3em; margin:0; font-weight: 100;}
#quiz h3 { font-size: 2.4em; margin:0; font-weight: 100;}
#quiz p  { margin: 0 0 14px 0; }
#quiz p.btn {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 6px;
    background-color: #c04b01;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
}
#quiz .pas {
    background-color: transparent;
    position: absolute; top: 0; left: 518px; width: 130px;
}
#quiz .pas img {
    width: 123px;

}
/* PROGRESS BAR */

#quiz .progress {
    position: absolute;
    width: 550px;
    top: 110px;
    left: 40px;
}
#quiz .progress div {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 20px;
    background-color: rgba(255,255,255,.1);
    transition: background-color 1s;
}
#quiz .progress div::after {
    position: absolute;
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    background-color: #efbe5e;
/*
    background-image: url("../img/star.png");
    background-size: cover;
*/
    top: -60px;
    left: 0;
/*    border: 2px solid green;*/
    border-radius: 50%;
    box-shadow: -2px 1px 3px rgba(255,255,255,.2);
    transition: opacity 1s, top 1s;
    opacity: 0;
}
#quiz .progress div.answered,
#quiz .progress div.on {
    border: 2px solid rgba(238,189,102,.4);
/*    background-color: #efbe5e;*/
}
/*#efbe5e*/
#quiz .progress div.correct::after {
    top: 0px; left: 0px; opacity: 1;
}

/* INTRO */

#quiz .intro { position: absolute; top: 225px; left: 660px; width: 550px;}
#quiz .intro p { margin-bottom: 40px;}

/* QUESTION */

#quiz .question {
    position: absolute;
    top: 225px;
    width: 550px;
    left: -660px;}
#quiz .question .txt { font-size: 1.5em;
    font-family: 'Special Elite', cursive;
    margin: 0 0 40px 0;
    font-weight: 400;
    text-shadow: 0 1px 2px black;
    color: antiquewhite;}

#quiz .question .ans {
    display: inline-block;
    position: relative;
    width: 225px;
    font-family: 'Special Elite', cursive;
    font-size: 1em;
    padding: 5px; margin: 0 15px 15px 0;
    border: 2px solid rgba(238,189,102,.4);
    border-radius: 6px;
    text-align: center;
}
#quiz .question .ans.image {
    min-height: 120px;
    background-repeat: no-repeat;
    padding: 0;
    background-position: 0 0;
    background-size: cover;
    width: 110px;
}
#quiz .question .ans.selected { border-color: crimson;}
#quiz .question .ans.correct { border-color: forestgreen;}
#quiz .question .ans::after {
    content: "";
    position: absolute;
    top:5px;
    right: 5px;
    display: block;
    width: 20px; height: 20px;
    background: no-repeat 0 0; background-size: 20px;
}
#quiz .question .ans.selected::after {
    background-image: url("../img/wrong.png");
}
#quiz .question .ans.correct::after {
    background-image: url("../img/yes.svg");
}
#quiz .question.unanswered .ans {
    cursor: pointer;
}
#quiz .question.unanswered .ans:hover {
    background-color: rgba(238,189,102,.4);
}
#quiz .question.answered .ans { cursor: default;}

/* QUESTION: Feedback*/

#quiz .feedback {
    margin-top: 50px;
    transition: opacity 1s, margin-top 1s;
    visibility: hidden;
    opacity: 0;
    color: #efbe5e;
}
#quiz .feedback strong {color: #fff;}
#quiz .answered .feedback {
    visibility: visible;
    opacity: 1;
    margin-top: 10px;
}
#quiz .feedback p {
    font-size: 1em;
}
#quiz .feedback p.comment {
    font-size: 1em;
    color: antiquewhite;
}
#quiz .feedback p.wrong {
    color: aqua;
}

#quiz .feedback .btn { margin-top: 15px;}

/* RESULTS */

#quiz .results {
    position: absolute; top: 225px; left: 660px; width: 550px;
}
#quiz .results .share {
    margin-top: 40px;
}
a.btn {
    margin-right: 20px;
    padding: 9px 15px 8px 42px;
    background-repeat: no-repeat;
    background-position: 10px 5px;
    background-size: 25px 25px;
    text-decoration: none;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;

}

a.btn.email { background-image: url('../img/icon_email.svg'); background-color: #f0a121;}
a.btn.tweet { background-image: url('../img/icon_twitter.svg'); background-color: #59adeb;}

/*FOR ANGULAR PART*/
#quiz .inactive, #quiz .active {
    transition: left 1.5s, ease-in-out;
}
#quiz .active { left: 40px; }
#quiz .intro.inactive {
    left: -660px;
}

#quiz .inactive .answered {
    left: -660px;
}


@media screen and (max-width: 650px) {
    body {padding:0px; margin: 0px;}
    #quiz { width: 320px; background-size: 320px auto;}
    #quiz h1 {width: 300px; font-size: 1.4em; top: 25px; left: 25px;}
    #quiz h1 span {line-height: 30px;}
    #quiz h2 {margin: 0;}
    #quiz h3 {font-size: 1.8em; margin-bottom: 15px;}
    #quiz .btn {
        display: inline-block; cursor: pointer; background-color: #c04b01;
        text-decoration: none;
        color: #fff; padding: 7px 50px; border-radius: 6px;
        font-size: 1.5em
    }
    #quiz .score {
        display: none;
    }
    #quiz .pas {
        display: none;
    }
    #quiz .progress {width: 300px; top: 110px; left: 25px; line-height: 0.1em;}
    #quiz .progress div {width: 25px; height: 25px; margin-right: 20px; margin-bottom:17px;}
    #quiz .progress div::after {top: -29px; width: 25px; height: 25px;}

    #quiz .intro { width: 300px; top:175px; left: 330px;}

    #quiz .question {width: 300px; top: 205px; left: 633px;}
    #quiz .question .txt {font-size: 1.4em; margin-bottom: 15px;}
    #quiz .question .ans {font-size: 1em; margin-bottom: 10px; padding: 5px 10px;}
    #quiz .question .ans.image {min-height: 115px; background-size: cover;}
    #quiz .question .ans.image:hover { background-color: #000;}

    #quiz .result {width: 290px; top: 250px; left: 330px;}
    #quiz .result .share {margin-top: 20px;}
    #quiz .result a.btn {margin-top: 20px;}
    #quiz .result p { font-size: 1.4em}
    #quiz .active { left:25px;}
    #quiz .intro.inactive {left: -650px;}

}









