/**
* CSS just for Red Light Green Light
*
* When porting to CB we changed some colors.
*
* Here are the old colors:
* .answer .red - #ed2024;
* .answer .yellow - #f8b72a;
* .answer .green - #00a750;;
*/


/**
* Namespace all of this css
*/

#rlgl i span {
  border-radius: 0 !important;
  font-size: 14px;
}

#rlgl i.answer span {
  width: auto !important;
}

#rlgl .alignRight {
  height: auto !important;
}

.answered {
  background-color: transparent !important;
  color: #888888 !important;
  text-transform: uppercase;
}

i span {
  color: white;
  width: 75px !important;
  height: auto !important;
  text-align: center;
  padding: 1px 10px;
  margin-left: 5px;
  float: none !important;
  display: inline-block !important;
  border-radius: 4px;
}

.answer .red {
  background-color: #ed2024;
}

.answer .yellow {
  background-color: #f8b72a;
}

.answer .green {
  background-color: #00a750;
}

i {
  display: inline-block;
}

.cb #rlgl .red.answered,
.cb #rlgl .yellow.answered,
.cb #rlgl .green.answered {
  color: #888 !important;
}


/**
* We should remove this from the origin rather override it here
*/

#rlgl article span {
  text-decoration: none !important;
}


/**
* Show all button needed some user feedback
*/

#rlgl .showall {
  display: inline-block;
}

#rlgl .showall:hover {
  cursor: pointer;
}

#rlgl .question {
  clear: both;
  position: relative;
  margin-bottom: 25px;
  min-height: 40px;
}

#rlgl h4 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #7c7c7c;
  float: left;
  margin: 0 0 12px 0;
  padding: 0;
  width: 40%;
}

#rlgl .light {
  position: relative;
  display: block;
  float: right;
  width: 40px;
  height: 40px;
  margin-left: 4px;
}

#rlgl .light.red {
  background-color: #d6001c;
}

#rlgl .light.yellow {
  background-color: #fdb813;
}

#rlgl .light.green {
  background-color: #55983a;
}

#rlgl .answered {
  display: block;
  height: auto;
  text-align: center;
  width: 120px;
  padding: 0 10px;
  color: white;
  font-weight: bold;
  font-family: 'source-sans-pro', sans-serif;
  text-decoration: none;
}

#rlgl .answered.incorrect {
  background-color: #d6001c;
}

#rlgl .answered.correct {
  background-color: #55983a;
}

#rlgl .response {
  display: none;
  position: absolute;
  top: 0;
  right: 50px;
  line-height: 40px;
  margin: 0;
  padding: 0;
  font-family: utopia-std, serif;
  color: #222;
}

#rlgl .reason {
  font-family: source-sans-pro, sans-serif;
  font-size: 16px;
  color: #7c7c7c;
  line-height: 1.6;
  clear: both;
  display: none;
}

#rlgl .reason i {
  display: block;
  clear: both;
  padding-bottom: 10px;
  font: none;
  font-family: 'source-sans-pro', sans-serif;
  font-style: normal;
}

#rlgl .reason .safe {
  color: #55983a;
}

#rlgl .reason .caution {
  color: #fdb813;
}

#rlgl .reason .unsafe {
  color: #d6001c;
}

article.rlgl .instructions {
  margin-bottom: 20px;
  min-height: 100px;
}

article.rlgl .instructions p {
  width: 75%;
  font-size: 14px;
  font-style: italic;
}

article.rlgl .instructions .example {
  margin: auto;
  font-family: 'source-sans-pro', sans-serif;
  margin-bottom: 5rem;
}

article.rlgl .instructions .example span {
  width: 25%;
  padding: 10px 10px;
  display: block;
  float: left;
  text-align: center;
  color: white;
}

article.rlgl .instructions .example .red {
  background-color: #d6001c;
}

article.rlgl .instructions .example .yellow {
  background-color: #fdb813;
  margin: 0 1%;
}

article.rlgl .instructions .example .green {
  background-color: #55983a;
}

article.rlgl .instructions .alignRight {
  float: right;
  margin-top: -35px;
}

article.rlgl .instructions .answered {
  background-color: transparent !important;
  color: #5e5e5e !important;
  text-transform: uppercase;
}

article.rlgl .instructions i span {
  color: white;
  width: auto !important;
  height: auto !important;
  text-align: center;
  padding: 1px 10px;
  margin-left: 5px;
  float: none !important;
  display: inline-block !important;
}

article.rlgl .instructions .answer .red {
  background-color: #d6001c;
}

article.rlgl .instructions .answer .yellow {
  background-color: #fdb813;
}

article.rlgl .instructions .answer .green {
  background-color: #55983a !important;
}

article.rlgl .instructions sc.smallcap {
  font-variant: small-caps;
  font-size: 1em;
}

article.rlgl .instructions i {
  display: inline-block;
}

#rlgl .answer .green {
  background-color: #55983a !important;
}

@media (max-width:860px) {
  #rlgl h4 {
    font-size: 18px;
  }
}

@media (max-width:780px) {
  #rlgl h4 {
    font-size: 24px;
  }
}

@media (max-width:500px) {
  #rlgl h4 {
    font-size: 18px;
  }
}

@media (max-width: 870px) {
  #rlgl .reason i.alignRight {
    float: none;
    margin-top: 0;
  }
}

@media (max-width:960px) {
  article.rlgl .instructions .example span {
    width: 100%;
    margin: 2% 0;
    float: none;
    padding: 10px 0;
  }
  article.rlgl .instructions .example .yellow {
    margin: 0;
  }
}
