#crossword {
  position: absolute;
}

#shadow {
  position: absolute;
  left: 0px;
  top: 0px;
}

#descriptions {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.show-descriptions #descriptions {
  pointer-events: initial;
}

.description {
  position: absolute;
  display: inline-block;
  margin: 2px;
  text-align: left;
  padding: 10px;
  min-width: 100px;
  max-width: 300px;
  overflow-y: auto;
  box-sizing: border-box;
  z-index: 10;
  pointer-events: initial;
  padding-top: 0px; /* to put the drag handle higher in the block */
}

.description.description-active {
  z-index: 11;
}
.description.rtl {
  text-align: right;
}

.worddesc {
  cursor: pointer;
}
.box,
.shadowbox {
  position: absolute;
  width: 34px;
  height: 34px;
}

.box {
  box-sizing: border-box;
  z-index: 2;
  text-align: center;
  line-height: 34px;
  cursor: pointer;
}

.shadowbox {
  z-index: 1;
}

#shadow {
  width: 100%;
  height: 100%;
}

.selected {
}

.unclear {
}

.nbox {
  position: absolute;
  width: 12px;
  height: 12px;
  font-size: 12px;
  padding: 1px;
  z-index: 3;
  pointer-events: none;
}

#textedit {
  font-size: 110%;
  z-index: 30;
  background-color: white;
  position: absolute;
  display: none;
  border-radius: 3px;
  opacity: 0;
  visibility: 0;
  /* iOS and IE have flashing blue cursor which we need to get rid off */
  transform: scale(0);
  -webkit-transform: scale(0);
  -ms-transform: scale(0);
  font-size: 1px;
}

.hint {
  font-weight: bold;
  font-family: arial, sans-serif;
  border: 3px solid #d0d080;
  border-radius: 5px;
  width: 140px;
  text-align: center;
  padding: 10px;
  display: none;
  color: #606060;
  position: absolute;
  z-index: 20;
}

#hintmobile {
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  justify-content: center;
}

.show-hint #hint {
  display: block;
}

#dummy {
  position: absolute;
  top: -1000px;
  opacity: 0.01;
}
#wordbutton {
  display: none;
}
#mobile {
  display: none;
}
#hintmobile {
  display: none;
}
.show {
  display: block;
}
#worddescription {
  display: none;
}
#mobilelandscape {
  display: none;
}

.blink {
  animation: blink-animation 1s infinite;
  -webkit-animation: blink-animation 1s infinite;
}

@keyframes blink-animation {
  50% {
    opacity: 0.7;
  }
  to {
    opacity: 1;
  }
}

@-webkit-keyframes blink-animation {
  50% {
    opacity: 0.7;
  }
  to {
    opacity: 1;
  }
}

@media only screen and (max-width: 700px), only screen and (max-height: 460px) {
  html .show-hint #hint {
    display: none;
  }

  html .show-hint #hintmobile {
    display: block;
  }

  html #hwords {
    display: none;
  }

  html #vwords {
    display: none;
  }

  html .show-descriptions #descriptions {
    overflow: auto;
  }
  html .show-descriptions #hwords {
    display: inline-block;
  }

  html .show-descriptions #vwords {
    display: inline-block;
  }

  html .show-descriptions #crossword {
    display: none;
  }

  html .show-descriptions #worddescription {
    display: none;
  }

  html #worddescription {
    z-index: 20;
    font-size: 16px;
    width: 100%;
    justify-content: center;
    position: absolute;
    top: 10px;
  }

  html #wordbutton {
    display: inline-block;
  }

  html .show {
    display: -webkit-box !important;
    display: -moz-box !important;
    display: -ms-flexbox !important;
    display: -webkit-flex !important;
    display: flex !important;
  }

  html .hide {
    display: none;
  }

  html #mobile {
    display: block;
  }

  html .description {
    position: relative;
    justify-content: center;
    margin-left: 10%;
  }

  html .box,
  html .shadowbox {
    width: 28px;
    height: 28px;
  }

  html .box {
    line-height: 24px;
  }

  html .nbox {
    padding: 2px;
  }
}

@media only screen and (min-width: 480px) {
  @media only screen and (max-height: 450px) {
    html #mobile {
      display: none;
    }

    html #mobilelandscape {
      display: block;
    }

    html .description {
      margin-left: auto;
    }

    html .box,
    html .shadowbox {
      width: 20px;
      height: 20px;
    }

    html div.box {
      line-height: 18px;
      font-size: 14px;
    }
  }
}

.handle {
  text-align: center;
  height: 16px;
  opacity: 0.5;
  width: initial;
}
