@media screen and (max-height : 414px) {
  .controls .btn {
    font-size: 12px !important
  }
}

.gameContainer.hideDef .gameDefs {
  display: none;
}

.gameContainer.hideDef #grid-container {
  margin: 0 auto;
}

#grid-container {
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--color-tertiary);
  border-radius: 8px;
  margin: auto;
  background: #fff;
  position: relative;
}

#grid-scaler {
  transition: transform 0.3s ease;
  transform: scale(1);
  transform-origin: top left;
  position: absolute;
  top: -1px;
  left: -1px;
}

#grid {
  border-collapse: collapse;
  font-size: 16px;
  margin: auto;
  width: 100%;
  height: 100%;
  border: none;
  -ms-touch-action: none;
  touch-action: none;
}

#grid:not(.dragging) {
  transition: transform .3s;
}

#grid .column {
  vertical-align: middle;
  position: relative;
}




.hideDef span {
  padding: 0px !important;
}

.column div {
  position: absolute;
  bottom: 2px;
  text-align: right;
  right: 1px;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  background: var(--color-success);
  padding: 0 3px;
}

.brd_r {
  border-left: solid 3px #ddd;
}

.brd_b {
  border-top: solid 3px #ddd;
}

.over {
  opacity: .5;
  background: #000
}

.over .brd_r, .over .brd_b {
  border-color: #444
}


#grid {
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  margin: auto;
}

#grid .column {
  vertical-align: middle;
  border: solid 0px #eee;
  padding: 0;
  height: 100%;
  user-select: none;
  float: left;
  display: block;
}

#grid .column span {
  width: 100%;
  height: 100%;
  display: flex;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 4vw;
  text-align: center;
  align-items: center;
  justify-content: center;
  border-right: solid 1px #ddd;
  border-bottom: solid 1px #ddd;
  line-height: 0 !important
}

#grid {
  position: relative;
}

.output {
  overflow: auto;
  margin: 20px auto;
  display: block;
  text-align: center;
}

.output input {
  border: solid 1px #ccc;
  display: inline-block;
  width: 35px;
  padding: 5px 0px;
  text-transform: uppercase;
  font-size: 25px;
  border-radius: 0px;
}

#gameplay.modal {
  height: 220px;
  overflow: visible !important;
}

#gameplay .modal-dialog {
  box-shadow: 0px 0px 100px rgba(0, 0, 0, 0.3);
  border-radius: 0px
}

#gameplay .modal-content {
  border-radius: 0px
}

@media screen and (max-width : 768px) {
  .column {
    vertical-align: middle;
    border: solid 0px #ddd;
    padding: 0;
    width: calc(100% / 10 - 2px);
    display: inline-block;

    height: calc(100% - 2px);
    user-select: none;
  }
}

.tl span {
  background-image: url('../img/left.svg') !important;
  background-size: 4vw;
  background-clip: content-box;
  background-position: 0 center;
  background-repeat: no-repeat;
}

.tl.double span {
  background-image: url('../img/left.svg') !important;
  background-size: 4vw;
  background-clip: content-box;
  background-position: 0 0;
  background-repeat: no-repeat;
}

.tt span::after {
  content: ' ';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: url('../img/top.svg') !important;
  background-size: 4vw;
  background-clip: content-box;
  background-position: center 0;
  background-repeat: no-repeat;
  pointer-events: none;
}

.t2 span {
  background-image: url('../img/all.svg') !important;
  background-size: cover !important;
  background-clip: content-box;
}

.c_0.hideDef span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  padding: 2px;
  background-color: var(--color-light);
}

.c_1.hideDef span div:nth-child(2) {
  border-top: 1px solid #21353F;
}

.c_0.hideDef span div {
  position: initial;
  width: 100%;
  text-align: center;
  padding: 0.25vw 2px;
  background: var(--color-light);
  color: var(--color-dark);
  font-size: 1.1vw;
  line-height: 1.1vw;
  word-break: break-word;
  font-weight: 600;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -o-hyphens: auto;
  hyphens: auto;
  margin: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 1px 1px 0px black;
  border: 0 !important;
  padding-top: 3px;
  /* font-family: sans-serif; */
}

.c_1.c_0.hideDef span div {
  max-height: 60%;
  height: -webkit-fill-available;
}

.c_0.hideDef span::before, .c_1.hideDef span::before,
.c_0.hideDef span::after, .c_1.hideDef span::after {
  display: none;
}

.c_0:not(.hideDef) div, .c_1:not(.hideDef) div,
.c_0:not(.hideDef) div, .c_1:not(.hideDef) div {
  display: none;
}

.c_0 span::before {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  color: #fff !important;
  align-items: center;
  display: grid;
  background: #fff;
  width: 7px;
  height: 7px;
  border-radius: 100%;
  top: calc(50% - 3.5px);
  left: calc(50% - 3.5px);
}

.c_1 span::before {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  color: #fff !important;
  align-items: center;
  display: grid;
  background: #fff;
  width: 7px;
  height: 7px;
  border-radius: 100%;
  top: 10%;
  left: 10%;
}

.c_1 span::after {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  color: #fff !important;
  align-items: center;
  display: grid;
  background: #fff;
  width: 7px;
  height: 7px;
  border-radius: 100%;
  bottom: 10%;
  right: 10%;
}

.play span div.select {
  color: #fff;
  background-color: var(--color-primary);
}

#contentGrid form {
  height: 0px;
  overflow: hidden;
}

#grid sup, #grid small {
  color: #333;
  font-size: 15px !important;
  margin-top: 0px !important;
}

#grid small {
  left: 0px;
  float: right;
  font-size: 12px;
  position: absolute;
  top: -25px;
  font-weight: bold;
  text-align: center;
  width: 100%;
}

#grid sup {
  font-weight: bold;
  top: 50%;
  left: -30px;
  text-align: right;
  position: absolute;
  width: 20px;
}

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

  #grid sup, #grid small {
    color: #333;
  }

  #grid small {
    top: -25px;
  }

  .c_0.hideDef span div,
  #grid .column span {
    border-width: 0.1vw !important;
  }

  .c_0.hideDef span div {
    box-shadow: inset 0.1vw 0.1vw 0px black;
  }
}


.ajax-progress {
    display: inline-block;
    padding: 1px 5px 2px 5px;
}

[dir="rtl"] .ajax-progress {
    float: right;
}

.ajax-progress-throbber .throbber {
    display: inline;
    padding: 1px 5px 2px;
    background: transparent url(/core/themes/stable/css/system/components/../../../images/core/throbber-active.gif) no-repeat 0 center;
}

.ajax-progress-throbber .message {
    display: inline;
    padding: 1px 5px 2px;
}

tr .ajax-progress-throbber .throbber {
    margin: 0 2px;
}

.ajax-progress-bar {
    width: 16em;
}

.ajax-progress-fullscreen {
    position: fixed;
    z-index: 1000;
    top: 48.5%;
    left: 49%;
    width: 24px;
    height: 24px;
    padding: 4px;
    opacity: 0.9;
    border-radius: 7px;
    background-color: #232323;
    background-image: url(/core/themes/stable/css/system/components/../../../images/core/loading-small.gif);
    background-repeat: no-repeat;
    background-position: center center;
}

[dir="rtl"] .ajax-progress-fullscreen {
    right: 49%;
    left: auto;
}

.text-align-left {
    text-align: left;
}

.text-align-right {
    text-align: right;
}

.text-align-center {
    text-align: center;
}

.text-align-justify {
    text-align: justify;
}

.align-left {
    float: left;
}

.align-right {
    float: right;
}

.align-center {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.js input.form-autocomplete {
    background-image: url(/core/themes/stable/css/system/components/../../../images/core/throbber-inactive.png);
    background-repeat: no-repeat;
    background-position: 100% center;
}

.js[dir="rtl"] input.form-autocomplete {
    background-position: 0% center;
}

.js input.form-autocomplete.ui-autocomplete-loading {
    background-image: url(/core/themes/stable/css/system/components/../../../images/core/throbber-active.gif);
    background-position: 100% center;
}

.js[dir="rtl"] input.form-autocomplete.ui-autocomplete-loading {
    background-position: 0% center;
}

.fieldgroup {
    padding: 0;
    border-width: 0;
}

.container-inline div,.container-inline label {
    display: inline;
}

.container-inline .details-wrapper {
    display: block;
}

.clearfix:after {
    display: table;
    clear: both;
    content: "";
}

.js details:not([open]) .details-wrapper {
    display: none;
}

.hidden {
    display: none;
}

.visually-hidden {
    position: absolute !important;
    overflow: hidden;
    clip: rect(1px,1px,1px,1px);
    width: 1px;
    height: 1px;
    word-wrap: normal;
}

.visually-hidden.focusable:active,.visually-hidden.focusable:focus {
    position: static !important;
    overflow: visible;
    clip: auto;
    width: auto;
    height: auto;
}

.invisible {
    visibility: hidden;
}

.item-list__comma-list,.item-list__comma-list li {
    display: inline;
}

.item-list__comma-list {
    margin: 0;
    padding: 0;
}

.item-list__comma-list li:after {
    content: ", ";
}

.item-list__comma-list li:last-child:after {
    content: "";
}

.js .js-hide {
    display: none;
}

.js-show {
    display: none;
}

.js .js-show {
    display: block;
}

.nowrap {
    white-space: nowrap;
}

.position-container {
    position: relative;
}

.progress {
    position: relative;
}

.progress__track {
    min-width: 100px;
    max-width: 100%;
    height: 16px;
    margin-top: 5px;
    border: 1px solid;
    background-color: #fff;
}

.progress__bar {
    width: 3%;
    min-width: 3%;
    max-width: 100%;
    height: 1.5em;
    background-color: #000;
}

.progress__description,.progress__percentage {
    overflow: hidden;
    margin-top: 0.2em;
    color: #555;
    font-size: 0.875em;
}

.progress__description {
    float: left;
}

[dir="rtl"] .progress__description {
    float: right;
}

.progress__percentage {
    float: right;
}

[dir="rtl"] .progress__percentage {
    float: left;
}

.progress--small .progress__track {
    height: 7px;
}

.progress--small .progress__bar {
    height: 7px;
    background-size: 20px 20px;
}

.reset-appearance {
    margin: 0;
    padding: 0;
    border: 0 none;
    background: transparent;
    line-height: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.resize-none {
    resize: none;
}

.resize-vertical {
    min-height: 2em;
    resize: vertical;
}

.resize-horizontal {
    max-width: 100%;
    resize: horizontal;
}

.resize-both {
    max-width: 100%;
    min-height: 2em;
    resize: both;
}

table.sticky-header {
    z-index: 500;
    top: 0;
    margin-top: 0;
    background-color: #fff;
}

.system-status-counter__status-icon {
    display: inline-block;
    width: 25px;
    height: 25px;
    vertical-align: middle;
}

.system-status-counter__status-icon:before {
    display: block;
    content: "";
    background-repeat: no-repeat;
    background-position: center 2px;
    background-size: 20px;
}

.system-status-counter__status-icon--error:before {
    background-image: url(/core/themes/stable/css/system/components/../../../images/core/icons/e32700/error.svg);
}

.system-status-counter__status-icon--warning:before {
    background-image: url(/core/themes/stable/css/system/components/../../../images/core/icons/e29700/warning.svg);
}

.system-status-counter__status-icon--checked:before {
    background-image: url(/core/themes/stable/css/system/components/../../../images/core/icons/73b355/check.svg);
}

.system-status-report-counters__item {
    width: 100%;
    margin-bottom: 0.5em;
    padding: 0.5em 0;
    text-align: center;
    white-space: nowrap;
    background-color: rgba(0,0,0,0.063);
}

@media screen and (min-width: 60em) {
    .system-status-report-counters {
        display:flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .system-status-report-counters__item--half-width {
        width: 49%;
    }

    .system-status-report-counters__item--third-width {
        width: 33%;
    }
}

.system-status-general-info__item {
    margin-top: 1em;
    padding: 0 1em 1em;
    border: 1px solid #ccc;
}

.system-status-general-info__item-title {
    border-bottom: 1px solid #ccc;
}

body.drag {
    cursor: move;
}

tr.region-title {
    font-weight: bold;
}

tr.region-message {
    color: #999;
}

tr.region-populated {
    display: none;
}

tr.add-new .tabledrag-changed {
    display: none;
}

.draggable a.tabledrag-handle {
    float: left;
    overflow: hidden;
    height: 1.7em;
    margin-left: -1em;
    cursor: move;
    text-decoration: none;
}

[dir="rtl"] .draggable a.tabledrag-handle {
    float: right;
    margin-right: -1em;
    margin-left: 0;
}

a.tabledrag-handle:hover {
    text-decoration: none;
}

a.tabledrag-handle .handle {
    width: 14px;
    height: 14px;
    margin: -0.4em 0.5em 0;
    padding: 0.42em 0.5em;
    background: url(/core/themes/stable/css/system/components/../../../images/core/icons/787878/move.svg) no-repeat 6px 7px;
}

a.tabledrag-handle:hover .handle,a.tabledrag-handle:focus .handle {
    background-image: url(/core/themes/stable/css/system/components/../../../images/core/icons/000000/move.svg);
}

.touchevents .draggable td {
    padding: 0 10px;
}

.touchevents .draggable .menu-item__link {
    display: inline-block;
    padding: 10px 0;
}

.touchevents a.tabledrag-handle {
    width: 40px;
    height: 44px;
}

.touchevents a.tabledrag-handle .handle {
    height: 21px;
    background-position: 40% 19px;
}

[dir="rtl"] .touch a.tabledrag-handle .handle {
    background-position: right 40% top 19px;
}

.touchevents .draggable.drag a.tabledrag-handle .handle {
    background-position: 50% -32px;
}

.tabledrag-toggle-weight-wrapper {
    text-align: right;
}

[dir="rtl"] .tabledrag-toggle-weight-wrapper {
    text-align: left;
}

.indentation {
    float: left;
    width: 20px;
    height: 1.7em;
    margin: -0.4em 0.2em -0.4em -0.4em;
    padding: 0.42em 0 0.42em 0.6em;
}

[dir="rtl"] .indentation {
    float: right;
    margin: -0.4em -0.4em -0.4em 0.2em;
    padding: 0.42em 0.6em 0.42em 0;
}

div.tree-child {
    background: url(/core/themes/stable/css/system/components/../../../images/core/tree.png) no-repeat 11px center;
}

div.tree-child-last {
    background: url(/core/themes/stable/css/system/components/../../../images/core/tree-bottom.png) no-repeat 11px center;
}

[dir="rtl"] div.tree-child,[dir="rtl"] div.tree-child-last {
    background-position: -65px center;
}

div.tree-child-horizontal {
    background: url(/core/themes/stable/css/system/components/../../../images/core/tree.png) no-repeat -11px center;
}

.hidden {
    display: none;
}

.invisible {
    visibility: hidden;
}

.force-size {
    font-size: 1rem !important;
}

@-webkit-keyframes glow-blue {
    100% {
        fill: #7cf7ff;
    }
}

@-moz-keyframes glow-blue {
    100% {
        fill: #7cf7ff;
    }
}

@-o-keyframes glow-blue {
    100% {
        fill: #7cf7ff;
    }
}

@keyframes glow-blue {
    100% {
        fill: #7cf7ff;
    }
}

.game {
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 15px;
}

.grid-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    visibility: hidden;
}

.grid-wrapper.iscrollified {
    visibility: visible;
}

.grid-scroller {
    position: absolute;
    top: 0;
    left: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    transform: translateZ(0);
    box-shadow: 0 0 15px #ccc;
}

.grid {
    display: block;
}

.grid-background {
    stroke: #000;
    stroke-opacity: .1;
    stroke-width: 12;
}

.grid-background--border {
    stroke: #000;
    stroke-opacity: 1;
    stroke-width: 1;
    fill-opacity: 1;
    fill: #fff;
}

.cell--background,.dots--white,.dots--dash {
    stroke: #8B8A8A;
    stroke-opacity: 1;
    stroke-width: 1;
    fill-opacity: 1;
    fill: #fff;
}

.cell__definition--separator {
    stroke: #66f;
    stroke-opacity: 1;
    stroke-width: 2;
}

.cell__definition--background {
    cursor: pointer;
    stroke: #006;
    stroke-opacity: 1;
    stroke-width: 1;
    fill: #006;
    fill-opacity: 1;
}

.cell__definition--concours .cell__definition--background {
    stroke: #00c;
    fill: #00c;
}

.cell__definition--highlight .cell__definition--background {
    stroke: #e20015;
    fill: #e20015;
}

.cell__definition--concours.cell__definition--highlight .cell__definition--background {
    stroke: #f0f;
    fill: #f0f;
}

.cell__definition--concours.cell__definition--highlight .cell__definition__text tspan {
    fill: #000;
}

.cell__definition__arrow {
    stroke: #a4a4a4;
    stroke-opacity: 1;
    fill: #a4a4a4;
    stroke-width: 1;
}

.cell__definition--highlight .cell__definition__arrow {
    fill: #000;
}

.cell__definition__text tspan {
    font-weight: normal;
    fill: #000;
    font-size: 15px;
    line-height: 1.2em;
    cursor: pointer;
}

.cell-letter.cell--highlight rect {
    cursor: default;
    fill: #CFF;
    fill-opacity: 1;
}

.cell-letter.cell--cursor rect {
    cursor: default;
    stroke: #999999;
    stroke-opacity: 1.00;
    stroke-width: 1.00;
    fill-opacity: 1.0;
    fill: #3ef2fe;
    -webkit-animation-duration: 0.5s;
    -moz-animation-duration: 0.5s;
    -o-animation-duration: 0.5s;
    animation-duration: 0.5s;
    -webkit-animation-iteration-count: infinite;
    -moz-animation-iteration-count: infinite;
    -o-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-timing-function: ease-in-out;
    -moz-animation-timing-function: ease-in-out;
    -o-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    -webkit-animation-direction: alternate;
    -moz-animation-direction: alternate;
    -o-animation-direction: alternate;
    animation-direction: alternate;
    -webkit-animation-name: glow-blue;
    -moz-animation-name: glow-blue;
    -o-animation-name: glow-blue;
    animation-name: glow-blue;
}

.cell-letter.cell--initial text {
    fill: #333;
}

.letter__value {
    fill: #00c;
    font-weight: bold;
    font-size: 60px;
    line-height: 1em;
    cursor: pointer;
    text-transform: uppercase;
}

.letter__concours-index {
    fill: #000;
    font-size: 40px;
}

.dots--white {
    stroke-width: 3;
    stroke: #fff;
}

.dots--dash {
    stroke-dasharray: 5,5;
}

.cell__letter--found {
    stroke: #000;
    stroke-opacity: 0;
    stroke-width: 0;
    fill: #003399;
    fill-opacity: 1;
    visibility: inline;
}

.cell__definition__arrow {
    stroke: #a4a4a4;
    stroke-opacity: 1;
    fill: #a4a4a4;
    stroke-width: 1;
}

@media print {
    #navbar-menu,#tools-container {
        display: none;
    }

    #game-container {
        position: relative;
        width: 100%;
        height: auto;
    }

    #grid-wrapper,#game-container {
        height: auto;
        position: static;
        width: auto;
    }

    #grid-scroller {
        transform: none!important;
        width: 100%;
        height: auto;
        padding-bottom: 33px;
    }

    #grid {
        width: 100%;
        height: auto;
    }

    #concours-container {
        margin-top: 20px;
    }
}

.hidden {
    display: none;
}

.invisible {
    visibility: hidden;
}

.force-size {
    font-size: 1rem !important;
}

*,*:before,*:after {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 14px;
}


.navbar {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    z-index: 2;
    height: 50px;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 45px;
    padding-right: 45px;
    background-color: #333;
    color: #fff;
}

.navbar-content {
    display: table;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.navbar-group-item {
    display: table-cell;
    vertical-align: middle;
    width: auto;
}

.navbar-item {
    display: inline-block;
    padding-right: 10px;
}

.navbar-item:last-of-type {
    padding-right: 0;
}

.navbar-group-item--menu {
    text-align: right;
    white-space: nowrap;
}

.navbar-group-item--menu .navbar-item {
    text-align: left;
}

.main-container {
    touch-action: none;
    height: 100%;
    text-align: center;
}

.main-container-inner,.defs-container {
    position: absolute;
    top: 46px;
    left: 0;
    bottom: 0;
    right: 0;
}

.defs-container {
    z-index: 500;
    text-align: left;
}

.hidden-definitions .defs-container {
    display: none;
}

.tools-container,.game-container,.concours-container {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.concours-container {
    display: none;
}

.has-concours .concours-container {
    display: block;
}

.portrait .tools-container {
    height: 60px;
}

.portrait .game-container {
    top: 60px;
}

.has-concours.portrait .game-container {
    bottom: 5%;
}

.has-concours.portrait .concours-container {
    top: 95%;
}

.success-state.portrait .tools-container {
    height: auto;
    bottom: 80%;
}

.success-state.portrait .game-container {
    top: 20%;
}

.failure-state.portrait .tools-container,.solution-state.portrait .tools-container {
    bottom: 90%;
}

.landscape .tools-container {
    right: 85%;
}

.landscape .game-container {
    left: 15%;
}

.has-concours.landscape .game-container {
    bottom: 5%;
}

.has-concours.landscape .concours-container {
    top: 95%;
    left: 15%;
}

.success-state.landscape .tools-container,.failure-state.landscape .tools-container,.solution-state.landscape .tools-container {
    right: 80%;
}

.success-state.landscape .game-container,.failure-state.landscape .game-container,.solution-state.landscape .game-container {
    left: 20%;
}

.success-state.concours.landscape .concours-container,.failure-state.concours.landscape .concours-container,.solution-state.concours.landscape .concours-container {
    left: 20%;
}

.keyboard-container {
    display: none;
}

.desktop .keyboard-container {
    display: none;
}

.desktop .main-container-inner {
    bottom: 0;
}

.desktop .game-menu__content li:last-child {
    display: none;
}

.tablet .keyboard-container {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

.tablet.kbd-shown .main-container-inner {
    bottom: 20%;
}

.tablet.kbd-hidden .main-container-inner {
    bottom: 0;
}

.tablet.kbd-shown .keyboard-container {
    top: 80%;
}

.tablet.kbd-hidden .keyboard-container {
    top: 100%;
}

.smartphone-portrait .keyboard-container {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

.smartphone-portrait.kbd-shown .main-container-inner {
    bottom: 30%;
}

.smartphone-portrait.kbd-hidden .main-container-inner {
    bottom: 0;
}

.smartphone-portrait.kbd-shown .keyboard-container {
    top: 70%;
}

.smartphone-portrait.kbd-hidden .keyboard-container {
    top: 100%;
}

.smartphone-landscape .keyboard-container {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

.smartphone-landscape.kbd-shown .main-container-inner {
    bottom: 35%;
}

.smartphone-landscape.kbd-hidden .main-container-inner {
    bottom: 0;
}

.smartphone-landscape.kbd-shown .keyboard-container {
    top: 65%;
}

.smartphone-landscape.kbd-hidden .keyboard-container {
    top: 100%;
}

.tablet.success-state .keyboard-container,.tablet.solution-state .keyboard-container,.tablet.failure-state .keyboard-container,.smartphone.success-state .keyboard-container,.smartphone.solution-state .keyboard-container,.smartphone.failure-state .keyboard-container {
    display: none;
}

.tablet.success-state .main-container-inner,.tablet.solution-state .main-container-inner,.tablet.failure-state .main-container-inner,.smartphone.success-state .main-container-inner,.smartphone.solution-state .main-container-inner,.smartphone.failure-state .main-container-inner {
    bottom: 0;
}

.tablet.success-state .game-menu__content li:last-child,.tablet.solution-state .game-menu__content li:last-child,.tablet.failure-state .game-menu__content li:last-child,.smartphone.success-state .game-menu__content li:last-child,.smartphone.solution-state .game-menu__content li:last-child,.smartphone.failure-state .game-menu__content li:last-child {
    display: none;
}

.smartphone-landscape.app,.smartphone-portrait.app {
    font-size: 10px;
}

.smartphone-landscape .game-name,.smartphone-portrait .game-name {
    font-size: 14px;
}

.icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    opacity: .5;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-color: transparent;
    background-size: 560px 60px;
    background-image: url(/modules/custom/custom_game/modules/rcijeux_motsfleches/css/../images/main_sprite.png);
}

.icon--circle {
    margin: 5px;
    background-color: #fff;
    box-shadow: 0 0 0 5px #fff;
    border-radius: 50%;
}

.active > .icon,.active > div > .icon,.icon--help,.icon--menu,.icon--logo {
    opacity: 1;
}

.icon--solution {
    background-position: 0px -20px;
}

.icon--reset {
    background-position: -40px -20px;
}

.icon--grids {
    background-position: -160px -20px;
}

.icon--cheat {
    background-position: -204px -25px;
    width: 35px;
    height: 35px;
}

.icon--timer {
    background-position: -240px -20px;
}

.icon--verify {
    background-position: -280px -20px;
}

.icon--undo {
    background-position: -320px -20px;
}

.icon--redo {
    background-position: -360px -20px;
}

.icon--zoomin {
    background-position: -400px -20px;
}

.icon--zoomout {
    background-position: -440px -20px;
}

.icon--word {
    width: 20px;
    height: 20px;
    background-size: 560px 60px;
    background-position: -240px 0;
}

.icon--defs {
    background-position: -520px -20px;
}

.icon--kbd-toggle {
    width: 20px;
    height: 20px;
    background-size: 560px 60px;
    background-position: -280px 0;
}

.icon--ok {
    width: 20px;
    height: 20px;
    background-size: 560px 60px;
    background-position: -300px 0;
}

.icon--ko {
    width: 20px;
    height: 20px;
    background-size: 560px 60px;
    background-position: -320px 0;
}

.icon--help {
    width: 30px;
    height: 30px;
    background-size: 420px 45px;
    background-position: -60px -15px;
}

.icon--menu {
    width: 30px;
    height: 30px;
    background-size: 420px 45px;
    background-position: -90px -15px;
}

.icon--small.icon--help {
    width: 22px;
    height: 20px;
    background-size: 560px 60px;
    background-position: -40px 0;
}

.icon--small.icon--menu {
    width: 20px;
    height: 20px;
    background-size: 560px 60px;
    background-position: -60px 0;
}

.icon--print {
    width: 20px;
    height: 20px;
    background-size: 560px 60px;
    background-position: -341px 0;
}

.smartphone .icon--solution,.icon--small.icon--solution {
    width: 20px;
    height: 20px;
    background-size: 560px 60px;
    background-position: 0px 0;
}

.smartphone .icon--reset,.icon--small.icon--reset {
    width: 20px;
    height: 20px;
    background-size: 560px 60px;
    background-position: -20px 0;
}

.smartphone .icon--grids,.icon--small.icon--grids {
    width: 20px;
    height: 20px;
    background-size: 560px 60px;
    background-position: -80px 0;
}

.smartphone .icon--cheat,.icon--small.icon--cheat {
    width: 20px;
    height: 20px;
    background-size: 560px 60px;
    background-position: -100px 0;
    text-align: left;
}

.smartphone .icon--timer,.icon--small.icon--timer {
    width: 20px;
    height: 20px;
    background-size: 560px 60px;
    background-position: -120px 0;
}

.smartphone .icon--verify,.icon--small.icon--verify {
    width: 20px;
    height: 20px;
    background-size: 560px 60px;
    background-position: -140px 0;
}

.smartphone .icon--undo,.icon--small.icon--undo {
    width: 20px;
    height: 20px;
    background-size: 560px 60px;
    background-position: -160px 0;
}

.smartphone .icon--redo,.icon--small.icon--redo {
    width: 20px;
    height: 20px;
    background-size: 560px 60px;
    background-position: -180px 0;
}

.smartphone .icon--zoomin,.icon--small.icon--zoomin {
    width: 20px;
    height: 20px;
    background-size: 560px 60px;
    background-position: -200px 0;
}

.smartphone .icon--zoomout,.icon--small.icon--zoomout {
    width: 20px;
    height: 20px;
    background-size: 560px 60px;
    background-position: -220px 0;
}

.smartphone .icon--defs,.icon--small.icon--defs {
    width: 20px;
    height: 20px;
    background-size: 560px 60px;
    background-position: -260px 0;
}

.icon--logo {
    width: 78px;
    height: 16px;
    background-size: 100% 100%;
    background-image: url(/modules/custom/custom_game/modules/rcijeux_motsfleches/css/../images/logo.png) !important;
}

.smartphone .icon--logo,.icon--small.icon--logo {
    width: 39px;
    height: 8px;
}

.modal-open .game-container {
    display: none;
}

.modal-tool-host {
    z-index: 1;
}

.modal-tool-host .modal {
    width: 100%;
    height: 100%;
    padding: 5px;
    background-color: #CCC;
    text-align: center;
}

.modal {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: #fff;
    color: #333;
    overflow-y: auto;
    padding: 15px;
    z-index: 600;
}

.modal--full {
    top: 46px;
}

.modal--nav {
    right: initial;
    bottom: initial;
    top: 25px;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    -o-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    padding: 5px;
    text-transform: uppercase;
}

.modal--grid {
    z-index: 1;
    background-color: #ccc;
    text-align: center;
}

.modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%);
    -moz-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    -o-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    width: 100%;
    padding: 5px;
}

.modal__label-title,.modal__label-subtitle {
    padding: 6px;
    font-size: 1.2em;
}

.modal__label-title {
    border-radius: 5px;
    background-color: #fff;
}

.modal__actions-inner {
    width: 100%;
    font-weight: 700;
    color: #333;
    text-align: center;
}

.modal__actions-inner .tool > .icon {
    margin-right: 20px;
}

.failure-state.portrait .modal__label,.solution-state.portrait .modal__label,.failure-state.portrait .modal__actions,.solution-state.portrait .modal__actions {
    display: inline-block;
}

.failure-state.portrait .modal__label,.solution-state.portrait .modal__label {
    margin-right: 30px;
}

.failure-state.portrait .modal__actions-inner .tool:not(:last-of-type),.solution-state.portrait .modal__actions-inner .tool:not(:last-of-type) {
    margin-right: 20px;
}

.failure-state.portrait .modal__actions-inner,.solution-state.portrait .modal__actions-inner {
    display: inline-block;
}

.failure-state.portrait .modal__actions-inner .tool,.solution-state.portrait .modal__actions-inner .tool,.failure-state.portrait .modal__actions-inner .icon,.solution-state.portrait .modal__actions-inner .icon {
    display: inline-block;
}

.paused-state .modal__label,.failure-state.landscape .modal__label,.solution-state.landscape .modal__label {
    margin-bottom: 20px;
}

.paused-state .modal__actions-inner .tool:not(:last-of-type),.failure-state.landscape .modal__actions-inner .tool:not(:last-of-type),.solution-state.landscape .modal__actions-inner .tool:not(:last-of-type) {
    margin-bottom: 15px;
}

.paused-state .modal__label-inner,.failure-state.landscape .modal__label-inner,.solution-state.landscape .modal__label-inner {
    display: inline-block;
}

.success-state .modal__label {
    margin-bottom: 5px;
}

.success-state .modal__label-inner {
    display: inline-block;
}

.success-state.portrait .modal__actions-inner .tool:not(:last-of-type) {
    margin-right: 20px;
}

.success-state.portrait .modal__actions-inner {
    display: inline-block;
}

.success-state.portrait .modal__actions-inner .tool,.success-state.portrait .modal__actions-inner .icon {
    display: inline-block;
}

.success-state.landscape .modal__actions-inner .tool:not(:last-of-type) {
    margin-bottom: 20px;
}

.modal-header {
    padding-bottom: 15px;
    border-bottom: 1px solid #999;
    font-weight: 700;
}

.modal-close {
    cursor: pointer;
    border: 2px solid #d7d7d7;
    border-radius: 5px;
    line-height: 30px;
    display: inline-block;
    padding: 0 15px;
    height: 34px;
    font-size: 19px;
    font-weight: bold;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: #666;
    margin-top: -5px;
}

.hidden {
    display: none;
}

.invisible {
    visibility: hidden;
}

.force-size {
    font-size: 1rem !important;
}

.game-name {
    font-size: 22px;
}

.cheat-counter {
    color: #333;
}

.concours {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    right: 2%;
    color: #00c;
}

.concours__value {
    text-transform: uppercase;
}

.definition-bottom {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    left: 2%;
    color: #666;
}

[data-click] {
    cursor: not-allowed;
}

[data-click].active {
    cursor: pointer;
}

[data-linkto] {
    cursor: pointer;
}

.tools-container [data-click="tool-cheat"] {
    padding: 1px;
    border: 1px solid #ccc;
    background-color: #fff;
}

.tools-container .cheat-counter {
    position: relative;
    top: 5%;
    left: -20%;
}

.game-menu {
    padding: 7px 4px 7px 7px;
    background-color: #fff;
    color: #333;
    border-radius: 3px;
}

.game-menu__titre {
    vertical-align: middle;
    padding-right: 8px;
}

.smartphone .game-menu__titre {
    display: none;
}

.dropdown-menu-container {
    display: none;
    position: absolute;
    top: 46px;
    right: 20px;
    z-index: 700;
}

.dropdown-menu-container.show {
    display: block;
}

.game-menu__content {
    list-style: none;
    overflow-y: auto;
    background-color: #fff;
    color: #333;
    line-height: 24px;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.game-menu__content,.game-menu__content > li {
    margin: 0;
    padding: 0;
}

.game-menu__content > li {
    margin: 5px 0;
    vertical-align: middle;
    white-space: nowrap;
}

.menu-item {
    padding: 0 20px;
}

.menu-item:hover {
    background-color: #efefef;
}

.menu-item > .icon {
    margin-right: 15px;
}

.menu-item > .divider {
    display: block;
    height: 1px;
    margin: 5px 10px;
    background-color: #CCC;
}

.game-timer {
    display: block;
    color: #333;
    padding-bottom: 4px;
    font-size: 15px;
}

.smartphone .game-timer {
    font-size: 13px;
}

.game-progress {
    position: relative;
    display: block;
    height: 5px;
    background-color: #ccc;
}

.game-progress__bar {
    display: block;
    position: absolute;
    top: -1px;
    left: 0;
    bottom: -1px;
    background-color: #333;
}

.keyboard {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    background-color: #444346;
    z-index: 10;
}

.keyboard__key {
    position: absolute;
    background-color: #646567;
    border: 1px solid #282829;
    border-radius: 5px;
    cursor: pointer;
}

.keyboard__key--light,.keyboard__key--kbd-hide,.keyboard__key--grid-zoom-out,.keyboard__key--grid-zoom-in {
    background-color: #c6c7c8;
}

.keyboard__key--grid-zoom-out,.keyboard__key--grid-zoom-in {
    cursor: not-allowed;
}

.keyboard__key--grid-zoom-out.active,.keyboard__key--grid-zoom-in.active {
    cursor: pointer;
}

.key__value {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%);
    -moz-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    -o-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
}

.key__value--special {
    width: 100%;
    height: 100%;
    text-align: center;
}

.key__value--special:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.key__value--special img {
    display: inline-block;
    max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
}

.kbd-show {
    position: absolute;
    bottom: 5px;
    left: 5px;
    display: block;
    max-width: 35px;
    max-height: 35px;
    cursor: pointer;
    z-index: 3;
}

.keyboard {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    background-color: #444346;
    z-index: 10;
}

.keyboard__key {
    position: absolute;
    background-color: #646567;
    border: 1px solid #282829;
    border-radius: 5px;
    cursor: pointer;
}

.keyboard__key--light,.keyboard__key--kbd-hide,.keyboard__key--grid-zoom-out,.keyboard__key--grid-zoom-in {
    background-color: #c6c7c8;
}

.keyboard__key--grid-zoom-out,.keyboard__key--grid-zoom-in {
    cursor: not-allowed;
}

.keyboard__key--grid-zoom-out.active,.keyboard__key--grid-zoom-in.active {
    cursor: pointer;
}

.key__value {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%);
    -moz-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    -o-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
}

.key__value--special {
    width: 100%;
    height: 100%;
    text-align: center;
}

.key__value--special:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.key__value--special img {
    display: inline-block;
    max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
}

.kbd-show {
    position: absolute;
    bottom: 5px;
    left: 5px;
    display: block;
    max-width: 35px;
    max-height: 35px;
    cursor: pointer;
    z-index: 3;
}

.tools {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%);
    -moz-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    -o-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
}

.portrait .tools {
    width: 100%;
}

.landscape .tools {
    width: 100%;
    height: 100%;
}

.tool-group {
    text-align: center;
}

.portrait .tools-container--1 .tool-group {
    width: 100%;
}

.portrait .tools-container--2 .tool-group {
    width: 50%;
}

.portrait .tools-container--3 .tool-group {
    width: 33.33333%;
}

.portrait .tools-container--4 .tool-group {
    width: 25%;
}

.portrait .tools-container--5 .tool-group {
    width: 20%;
}

.portrait .tools-container--6 .tool-group {
    width: 16.66667%;
}

.portrait .tools-container--7 .tool-group {
    width: 14.28571%;
}

.portrait .tools-container--8 .tool-group {
    width: 12.5%;
}

.portrait .tools-container--9 .tool-group {
    width: 11.11111%;
}

.portrait .tools-container--10 .tool-group {
    width: 10%;
}

.portrait .tool-group {
    display: inline-block;
}

.landscape .tools-container--1 .tool-group {
    height: 100%;
}

.landscape .tools-container--2 .tool-group {
    height: 50%;
}

.landscape .tools-container--3 .tool-group {
    height: 33.33333%;
}

.landscape .tools-container--4 .tool-group {
    height: 25%;
}

.landscape .tools-container--5 .tool-group {
    height: 20%;
}

.landscape .tools-container--6 .tool-group {
    height: 16.66667%;
}

.landscape .tools-container--7 .tool-group {
    height: 14.28571%;
}

.landscape .tools-container--8 .tool-group {
    height: 12.5%;
}

.landscape .tools-container--9 .tool-group {
    height: 11.11111%;
}

.landscape .tools-container--10 .tool-group {
    height: 10%;
}

.tool-item {
    display: inline-block;
}

.landscape .tool-item {
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
}

.smartphone .cheat-counter {
    left: 0;
}

.tool {
    opacity: .5;
}

.tool.active {
    opacity: 1;
}

.hidden {
    display: none;
}

.invisible {
    visibility: hidden;
}

.force-size {
    font-size: 1rem !important;
}

.defs {
    background-color: #f1f1f1;
    position: absolute;
    width: 100%;
    top: 0;
    bottom: 0;
}

.defs-axis {
    position: relative;
}

.portrait .defs-axis {
    height: 50%;
}

.landscape .defs-axis {
    float: left;
    width: 50%;
    height: 100%;
}

.landscape .defs-axis:nth-of-type(1) {
    border-right: 1px solid #d4cbc5;
}

.landscape .defs-axis:nth-of-type(2) {
    border-left: 1px solid #d4cbc5;
}

.defs-title,.defs-group {
    font-size: 14px;
    position: absolute;
    left: 0;
    width: 100%;
}

.defs-title {
    top: 0;
    left: 0;
}

.defs-group {
    top: 1.5em;
    bottom: 2em;
    overflow-y: auto;
}

.defs-group a {
    color: #333;
    text-decoration: none;
}

.defs-group a:hover {
    color: #20a9e1;
}

.defs-group a.highlight {
    color: #20a9e1;
}

ul.defs-group__inner {
    margin: 0;
    padding-left: 1em;
}

.defs__actions {
    position: absolute;
    left: 0;
    bottom: 0;
    line-height: 2em;
    width: 100%;
    background: #fff;
    padding: 0 1.5em;
}

.defs__actions a {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.defs__actions .size,.defs__actions .defs__close {
    display: inline-block;
    vertical-align: middle;
}

.defs__actions .size {
    float: right;
}

.defs__actions .size__action {
    display: inline-block;
    padding: 0 5px;
}

.defs__actions .defs__close {
    font-size: 2.5em;
}

.desktop .defs-group,.tablet .defs-group,.smartphone.defs-maximized .defs-group {
    padding: 5px;
}

.defs--mid .defs-group {
    font-size: 1.25em;
}

.defs--max .defs-group {
    font-size: 1.5em;
}

.smartphone.defs-normal .defs-group:before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.smartphone.defs-normal .defs-group__inner {
    display: inline-block;
    vertical-align: middle;
    font-size: .95em;
}

.defs-title {
    padding-left: 2px;
    padding-right: 2px;
    background-color: #ccc;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.5em;
    font-weight: 700;
}

.defs-title:before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 1.5em;
    height: 1.5em;
    margin-right: 2px;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAALCAYAAACgR9dcAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wcbEgQdAkzWFwAAAJlJREFUKM9jYMAC+rs6/uPjwwATIY34xJmI0YhLnolYjdjUMZKiERkUllUwMpKjEe5saUlxRqwSTExwjA3ISEsyMjIwMDAsnjeX4e3bN/////+P4ixc4SEiIsIYm5TCwMLAwMAQm5TMcOL4ccaTRw/9//cPty+YmJgY/EPCGBUUFFBD28LSkiG/pJwRnx/zS8rgGomOT1yBCgAtYT6Dkuu1uAAAAABJRU5ErkJggg==");
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

.def-title--v:before {
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
}

.desktop .defs-fontsize-actions,.tablet .defs-fontsize-actions {
    float: right;
    color: #333;
}

.desktop .defs-fontsize-actions__down,.tablet .defs-fontsize-actions__down {
    font-size: 1em;
    margin-right: 10px;
}

.desktop .defs-fontsize-actions__up,.tablet .defs-fontsize-actions__up {
    font-size: 1.2em;
}

.smartphone .defs-fontsize-actions {
    display: none;
}

.smartphone.portrait .defs-axis:first-child .defs-group {
    bottom: 0;
}

.defs-maximized .defs-fontsize-actions {
    float: none;
    position: fixed;
    z-index: 1;
    bottom: 10px;
    right: 10px;
}

.defs-def {
    padding-top: 2px;
}

.def__index {
    text-transform: uppercase;
    font-weight: bold;
}

.def__def {
    color: #333;
}

.def__def--theme {
    font-weight: bold;
    font-style: italic;
}

.def__def--findable.active {
    color: #20a9e1;
}

.def__def--finalized.active {
    color: #999;
}

.desktop .def-switches,.tablet .def-switches {
    display: none;
}

.def-switches {
    position: absolute;
}

.smartphone-portrait .def-switches {
    bottom: 12%;
    right: 2%;
}

.smartphone-landscape--defs-normal .def-switches {
    top: 63%;
    right: 5%;
}

.smartphone.defs-maximized .def-switches,.smartphone.defs-minimized .def-switches {
    display: none;
}

.def-switch {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #333;
    border-radius: 10px;
    text-align: center;
    line-height: 19px;
}

.def-switch:after {
    display: block;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
}

.def-switch--previous {
    margin-right: 5px;
}

.def-switch--previous:after {
    content: "<";
}

.def-switch--next {
    padding-left: 1px;
}

.def-switch--next:after {
    content: ">";
}
