/* H5P SHARED STYLING: */

/* IcoMoon font licensed under the GNU General Public License: http://www.gnu.org/licenses/gpl.html */
@font-face {
  font-family: 'icomoon-word';
  src:url('fonts/icomoon.eot');
  src:url('fonts/icomoon.eot?#iefix') format('embedded-opentype'),
  url('fonts/icomoon.woff') format('woff'),
  url('fonts/icomoon.ttf') format('truetype'),
  url('fonts/icomoon.svg#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
}

/* The main containers for the module, specific to this module. */
.h5p-word {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#e6FFFFFF,endColorstr=#e6FFFFFF);
  overflow: hidden;
  font-family: Verdana, Arial, sans-serif;
}
.h5p-word .h5p-word-inner {
  overflow: hidden;
  padding: 1em;
}

/* Actual text paragraphs */
.h5p-word .h5p-word-inner p {
  font-size: 1em;
  font-weight: normal;
  line-height: 1.75em;
  padding: 0;
  margin: 0 0 1em;
}
/* Header and footer blocks (title + evaluation, buttons) */
.h5p-word .h5p-word-title {
  margin: 0 0 0.4em;
  border-bottom: 0.1em solid #ddd;
}
.h5p-word .h5p-word-footer {
  margin-top: 0.4em;
  border-top: 0.1em solid #ddd;
}
.h5p-word .h5p-button-bar {
  margin-top: .8em;
  min-height: 2.134em;
}
.h5p-word button.h5p-button {
  float: right;
  display: none;
  font-size: 1em;
  line-height: 1.2em;
  padding: 0.2em 1em;
  border: 0.2em solid #fff;
  border-radius: 0.4em;
  margin-left: 0.8em;
  margin-bottom: 0.1em;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 0 0.5em #999;

  background: rgb(100,152,254); /* Old browsers */
  background: -moz-linear-gradient(top,  rgba(100,152,254,1) 0%, rgba(4,104,206,1) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(100,152,254,1)), color-stop(100%,rgba(4,104,206,1))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  rgba(100,152,254,1) 0%,rgba(4,104,206,1) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  rgba(100,152,254,1) 0%,rgba(4,104,206,1) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  rgba(100,152,254,1) 0%,rgba(4,104,206,1) 100%); /* IE10+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6498fe', endColorstr='#0468ce',GradientType=0 );
}
.h5p-word button.h5p-button:hover {
  background: rgb(4,104,206); /* Old browsers */
  background: -moz-linear-gradient(top,  rgba(4,104,206,1) 0%, rgba(100,152,254,1) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(4,104,206,1)), color-stop(100%,rgba(100,152,254,1))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  rgba(4,104,206,1) 0%,rgba(100,152,254,1) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  rgba(4,104,206,1) 0%,rgba(100,152,254,1) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  rgba(4,104,206,1) 0%,rgba(100,152,254,1) 100%); /* IE10+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0468ce', endColorstr='#6498fe',GradientType=0 ); /* IE6-9 */
}
.h5p-word button.h5p-button:before {
  font-family: 'H5PFontAwesome4';
  content: "\f06e";
  padding-right: 0.5em;
}
.h5p-word .h5p-word-evaluation-container {
  float: left;
  padding: 1em 0 0 0;
  max-width: 30em;
}
.h5p-word .h5p-word-evaluation-container .h5p-word-evaluation-score-emoticon:before {
  display: block;
  float: left;

  font-family: icomoon-word;
  font-size: 4em;
  line-height: 1em; /* inherits 4em */
  content: "\e605";
}
.h5p-word .h5p-word-evaluation-container.max-score .h5p-word-evaluation-score-emoticon:before {
  content: "\e606";
}

@-webkit-keyframes shake-it {
  0% { -webkit-transform: translate(2px, 1px) rotate(0deg);}
  10% { -webkit-transform: translate(-1px, -2px) rotate(-1deg);}
  20% { -webkit-transform: translate(-3px, 0px) rotate(1deg);}
  30% { -webkit-transform: translate(0px, 2px) rotate(0deg);}
  40% { -webkit-transform: translate(1px, -1px) rotate(1deg);}
  50% { -webkit-transform: translate(-1px, 2px) rotate(-1deg);}
  60% { -webkit-transform: translate(-3px, 1px) rotate(0deg);}
  70% { -webkit-transform: translate(2px, 1px) rotate(-1deg);}
  80% { -webkit-transform: translate(-1px, -1px) rotate(1deg);}
  90% { -webkit-transform: translate(2px, 2px) rotate(0deg);}
  100% { -webkit-transform: translate(1px, -2px) rotate(-1deg);}
}
@keyframes shake-it {
  0% { transform: translate(2px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg);}
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(0px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg);}
  50% { transform: translate(-1px, 2px) rotate(-1deg);}
  60% { transform: translate(-3px, 1px) rotate(0deg);}
  70% { transform: translate(2px, 1px) rotate(-1deg);}
  80% { transform: translate(-1px, -1px) rotate(1deg);}
  90% { transform: translate(2px, 2px) rotate(0deg);}
  100% {transform: translate(1px, -2px) rotate(-1deg);}
}
.h5p-word .h5p-word-evaluation-container .h5p-word-evaluation-score {
  position: relative;
  display: block;
  background: #ffffff;
  padding: 0.7em 0.5em;
  border-radius: 0.6em;
  margin-left: 5.5em;
  z-index: 1;
  border: 1px solid #ccc;
  -webkit-filter: drop-shadow(0 0 0.2em #999999);
  filter: drop-shadow(0 0 0.2em #999999);
  line-height: 1.3em;
}

.h5p-word .h5p-word-evaluation-container .h5p-word-evaluation-score:before,
.h5p-word .h5p-word-evaluation-container .h5p-word-evaluation-score:after {
  right: 100%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

.h5p-word .h5p-word-evaluation-container .h5p-word-evaluation-score:before {
  margin-top: -11px;
  top: 50%;
  border-width: 11px;
  border-color: transparent;
  border-right-color: #ccc;
}
.h5p-word .h5p-word-evaluation-container .h5p-word-evaluation-score:after {
  margin-top: -10px;
  top: 50%;
  border-width: 10px;
  border-color: transparent;
  border-right-color: #ffffff;
}
/* SELECTABLE WORDS STYLING */
/* Selectable words container */
.h5p-word-selectable-words {
  margin-bottom: 0.8em;
  margin-top: 0.8em;
  line-height: 2em;
}
/* Selectable words*/
.h5p-word-selectable {
  white-space: nowrap;
  padding: 0.15em 0.15em 0.15em 0.15em;
  border-radius: 0.4em;
  cursor: pointer;
}

.h5p-word-selectable.h5p-word-disabled {
  cursor: default;
}

/* Colors and styling for word selections */
.h5p-word .h5p-word-selected {
  background: #cee0f4;
}
/* Missed word*/
.h5p-word-missed {
  border: 0.1em #2c76c0 dashed;
}
/* Correctly answered marking */
.h5p-word .h5p-word-correct{
  background: #d1e2ce;
  color: #39692e;
}
/* Wrongly answered marking */
.h5p-word .h5p-word-wrong {
  background-color: #e6ced1;
  color: #c33f62;
  text-decoration: line-through;
}
/* Feedback icons */
.h5p-word .h5p-word-correct:after {
  position: relative;
  right: 0.1em;
  text-decoration: none;
  content: "\f00c";
  font-family: 'H5PFontAwesome4';
  color: #39692e;
  padding-left: 0.75em;
}
.h5p-word .h5p-word-wrong:after {
  position: relative;
  right: 0.1em;
  display: inline-block;
  font-family: 'H5PFontAwesome4';
  text-decoration: none;
  content: "\f00d";
  color: #c33f62;
  padding-left: 0.75em;
}
/* SPECIFIC CSS CLASSES FOR MARK THE WORDS MODULE: */
/* Start state for button: */
.h5p-word button.h5p-button.h5p-check-button:before {
  content: "\f058";
}
.h5p-word button.h5p-button.h5p-retry-button:before {
  content: "\f021";
}
.h5p-word button.h5p-button.h5p-check-button {
  display: inline-block;
}
button.h5p-retry-button.h5p-retry-button {
  display: none;
}