/*
STYLES FOR THIS GRAPHIC
*/
@font-face {
  font-family: "Bloomberg";
  src: url("http://cdn.gotraffic.net/business/public/fonts/Bloomberg.df8e010e.eot") format("embedded-opentype"), 
        url("http://cdn.gotraffic.net/business/public/fonts/Bloomberg.30ad2529.woff") format("woff"), 
        url("http://cdn.gotraffic.net/business/public/fonts/Bloomberg.7bf8cc8f.ttf") format("truetype"), 
        url("http://cdn.gotraffic.net/business/public/fonts/Bloomberg.70fe4194.svg") format("svg");
}

strong { font-family: "TiemposTextWeb-Bold","Georgia"; }

code { font-size: 1.1em; }

.quiz-answers sup {
    position: relative;
    top: -0.6em;
}

.question, #results, #answerkey {
    font-size: 18px;
    line-height: 28px;
    border-radius: 15px;
    width: 80%;
    padding: 1em 2em 1em 7em;
    float: left;
    display: none;
}

.content-container { padding: 2em 0;}

.quiz .article-title {
    margin: 20px 0;
    font-size: 2.5em;
}

.quiz .dek {
    font-size: 16px;
    line-height: 22px;
}

.question {
    position: relative;
}

.question::before {
    position: absolute;
    top: 0.4em;
    left: 0;
    color: #2B00F7;
    opacity: 0.2;
    font-family: "NHaasGroteskDSPro-75Bd","Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 5em;
    font-weight: bold;
    text-align: right;
    width: 1.25em;
    height: 1.25em;
    display: block;
}

#Q1 { display: block; }
#Q6 .quiz-answers code { padding: 0.6em 0.5em 0.1em; }

#Q1::before { content: "1"; }
#Q2::before { content: "2"; }
#Q3::before { content: "3"; }
#Q4::before { content: "4"; }
#Q5::before { content: "5"; }
#Q6::before { content: "6"; }
#Q7::before { content: "7"; }
#Q8::before { content: "8"; }
#Q9::before { content: "9"; }
#Q10::before { content: "10"; }

#quiz-container h2 {
    margin-top: 0;
    font-size: 1.625rem;
    font-family: "NHaasGroteskDSPro-75Bd","Helvetica Neue",Helvetica,Arial,sans-serif;
    color: #3C3C3C;
}

.quiz-answers { margin-left: 1em; }

.quiz-answers li {
    margin: 0em 1em;
    list-style-type: upper-alpha;
    cursor: pointer;
    line-height: 2.375em;
}

.quiz-answers li span, .quiz-answers li p, .quiz-answers li code  {
    border: 2px solid white;
    line-height: 1.5em;
    padding: 0.1em 0.5em 0.3em;
    margin: .2em;
    display: inline-block;
    vertical-align: top;
}

.quiz-answers li code  {
    padding: 0.5em;
    line-height: 0.8em;
}

.quiz-answers li span { line-height: 1.8em; }

.quiz-answers li span:hover, .quiz-answers li p:hover, .quiz-answers li code:hover {
    border: 2px solid #2B00F7;
    border-radius: 4px;
}

.navbuttons { margin-top: 1em; }

.navbuttons li {
    float: left;
    margin: 5px;
    padding: 0.5em 0.75em 0.5em;
    /*background-color: rgba(40,0,215,0.8);*/
    background-color: #2B00F7;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-family: "NHaasGroteskTXPro-55Rg","Helvetica Neue",Helvetica,Arial,sans-serif;
    text-transform: uppercase;
    font-size: 0.75em;
    position: relative;
}

.navbuttons li:hover {
    opacity: 0.75;
}

.navbuttons .disabled {
    background-color: gray;
}

.navbuttons .disabled:hover {
    opacity: 1;
}

li[data-direction="prev"], li[data-direction="none"], li[data-direction="Q10"] {
    padding-left: 1.75em;
}

li[data-direction="next"] {
    padding-right: 1.75em;
}

li[data-direction="prev"]::before, li[data-direction="none"]::before, li[data-direction="next"]::after, li[data-direction="Q10"]::before  {
    position: absolute;
    top: 0.2em;
    padding: 0.25em;
    font-family: "NHaasGroteskTXPro-55Rg","Helvetica Neue",Helvetica,Arial,sans-serif;
}

li[data-direction="prev"]::before, li[data-direction="none"]::before, li[data-direction="Q10"]::before  {
    content: "<";
    left: 0.5em;
}

li[data-direction="next"]::after {
    content: ">";
    right: 0.5em;
}

.selected-answer span, .selected-answer p, .selected-answer code {
    color: white;
    background-color: #FA1E64;
    border: 2px solid #FA1E64;
    border-radius: 4px;
    padding: 1em;
}

.fillin {
    text-decoration: underline;
}

.answer-column { 
    list-style-type: decimal;
    margin-left: 2em;
 }

.answer-column li { margin-bottom: 1em; }

.correct, .incorrect { position: relative; }

.correct::before, .incorrect::before {
    position: absolute;
    width: 1em;
    height: 1em;
    display: block;
    top: 2px;
    left: -3em;
}

.correct::before { content: url(../img/check2.svg); }
.incorrect::before { content: url(../img/cross2.svg); }

.user-answer {
    color: #FF433D;
    font-family: "NHaasGroteskTXPro-55Rg","Helvetica Neue",Helvetica,Arial,sans-serif;
}

#quiz-container, .navbuttons::after {
    clear: both;
    content: "";
    display: table;
}

.tweet a:before {
    content: 't';
    font-family: 'Bloomberg';
    text-transform: none;
    color: #999;
    padding-right: 5px;
    margin-top: 2px;
}

.tweet a {
    color: #999;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
}


/* Media Queries */
@media only screen and (max-width:760px),only screen and (device-width:760px) {
    .content-container {
        padding: 1.5em 1em;
    }

    .question, #results, #answerkey {
        padding: 1em 1em 1em 5em;
        /*width: 100%;*/
    }

    .question::before {
        left: -0.1em;
        font-size: 4.5rem;
        width: 1em;
        height: 1em;
    }
}

@media only screen and (max-width:580px),only screen and (device-width:580px) {
    .content-container {
        padding: 1em;
    }

    .quiz .article-title {
        margin: 1rem 0;
        font-size: 2rem;
    }

    #quiz-container h2 { margin-bottom: 0.5rem; }

    .question, #results, #answerkey {
        padding: 1em 1em 1em 3.5em;
        font-size: 1.143em;
        line-height: 1.625em;
    }

    .question::before {
        left: -0.25em;
        font-size: 4rem;
    }

    li[data-direction="prev"]::before, li[data-direction="next"]::after, li[data-direction="Q10"]::before {
        top: 0.3em;
    }
}