.path-mod-treasurehunt html,
body {
  height: 100%;
}

.path-mod-treasurehunt .treasurehunt-editor {
  width: 100%;
  position: relative;
}

.path-mod-treasurehunt #edition label {
  display: inline-block;
  margin: 0 auto;
}
/*Si no se me pone un background-image posterior*/
.path-mod-treasurehunt .treasurehunt-editor button {
  background-image: none;
}

.path-mod-treasurehunt #addstage,
.path-mod-treasurehunt #addroad {
  margin: 0 auto;
  margin-left: 1%;
  margin-right: 1%;
}

.path-mod-treasurehunt #savestage,
.path-mod-treasurehunt #removefeature {
  margin: 0 auto;
  margin-left: 1%;
}

.path-mod-treasurehunt #controlpanel {
  margin: 0 auto;
}

.path-mod-treasurehunt #mapedit {
  position: relative;
  overflow: hidden;
}
/*Selectable y sortable*/
.path-mod-treasurehunt #stagelistpanel {
  float: left;
  width: 250px;
  max-width: 60%;
  min-width: 100px;
  position: relative;
}

.path-mod-treasurehunt #roadlistpanel {
  width: 100%;
  position: static;
  overflow-x: auto;
  overflow-y: hidden;
  top: 0;
  left: 0;
  display: block;
  cursor: default;
  clear: both;
}

.path-mod-treasurehunt #stagelist {
  width: 100%;
  height: 100%;
  position: relative;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.path-mod-treasurehunt #roadlist {
  position: relative;
  white-space: nowrap;
  top: 0;
  left: 0;
  bottom: 0;
  margin: 0 auto;
  display: table;
}

.path-mod-treasurehunt #stagelist li,
.path-mod-treasurehunt #roadlist li {
  border: 2px solid gray;
  list-style: none;
  cursor: default;
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box; /* Firefox, other Gecko */
  box-sizing: border-box; /* Opera/IE 8+ */
}

.path-mod-treasurehunt #stagelist li {
  width: 100%;
  display: table;
  table-layout: fixed;
}

.path-mod-treasurehunt #roadlist li {
  display: table-cell;
}

.path-mod-treasurehunt #stagelist li:hover,
.path-mod-treasurehunt #roadlist li:hover {
  background: #eee;
}

.path-mod-treasurehunt .handle,
.path-mod-treasurehunt .nohandle {
  background: #f8f8f8;
  position: relative;
  width: 30px;
  display: table-cell;
  vertical-align: middle;
}

.path-mod-treasurehunt .handle {
  cursor: n-resize;
}

.path-mod-treasurehunt .modifystage,
.path-mod-treasurehunt .modifyroad {
  position: relative;
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  width: 20px;
}

.path-mod-treasurehunt .stagename,
.path-mod-treasurehunt .roadname {
  padding-left: 5px;
  padding-right: 5px;
  position: relative;
  display: table-cell;
  text-align: center;
  vertical-align: middle;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.path-mod-treasurehunt .ui-selected {
  background: rgba(22, 145, 190, 0.2);
}

.path-mod-treasurehunt .ui-selected:hover {
  background: rgba(22, 145, 190, 0.2) !important;
}

.path-mod-treasurehunt .sortable-number {
  font-weight: bold;
}

.path-mod-treasurehunt .validstage {
  box-shadow: 0 0 12px #28921f;
  z-index: 10;
}

.path-mod-treasurehunt .invalidstage {
  box-shadow: 0 0 12px #b03535;
  z-index: 10;
}

.path-mod-treasurehunt .invisible {
  display: none;
}

.path-mod-treasurehunt .highlightbutton {
  box-shadow: 0 0 13px #2f33ba;
  z-index: 10;
}
.path-mod-treasurehunt .selectedbutton {
  border: 3px solid darkgray;
  z-index: 10;
}
.path-mod-treasurehunt .ui-icon-trash,
.path-mod-treasurehunt .ui-icon-pencil,
.path-mod-treasurehunt .ui-icon-alert,
.path-mod-treasurehunt .ui-icon-info {
  cursor: pointer;
}

.path-mod-treasurehunt .ui-autocomplete-loading {
  background: white
  url("pix/ui-anim_basic_16x16.gif")
  right center no-repeat;
}

.path-mod-treasurehunt .ui-autocomplete {
  overflow-y: auto;
  overflow-x: hidden;
}
/** Usado para meter el icono dentro del input**/
.path-mod-treasurehunt #searchcontainer {
  display: inline-block;
  position: relative;
  padding: 0;
  margin-left: 1%;
}

.path-mod-treasurehunt .searchicon {
  position: absolute;
  bottom: 8px;
  left: 9px;
  width: 15px;
}

.path-mod-treasurehunt .closeicon {
  position: absolute;
  bottom: 7px;
  right: 25px;
  width: 15px;
  cursor: pointer;
}

.path-mod-treasurehunt .searchaddress {
  border: 1px solid #999 !important;
  padding: 3px 43px 3px 30px !important;
  margin: 0 !important;
}
/* Usado para el resizable**/
.path-mod-treasurehunt .egrip-container {
  position: absolute;
  top: 70px;
  right: -35px;
  cursor: pointer;
  z-index: 90;
}
/* Usado para la tabla**/
#page-mod-treasurehunt-view .successfulattempt,
.path-mod-treasurehunt .successwithoutfailures {
  background-color: #5cd053 !important;
  color: black !important;
}

#page-mod-treasurehunt-view .failedattempt,
.path-mod-treasurehunt .failure {
  background-color: #d45252 !important;
  color: black !important;
}

.path-mod-treasurehunt .successwithfailures {
  background-color: #ebf044 !important;
  color: black !important;
}

.path-mod-treasurehunt .noattempt {
  background-color: #c0c0c0 !important;
  color: black !important;
}

.path-mod-treasurehunt .singlebutton,
.path-mod-treasurehunt .treasurehuntinfo {
  text-align: center;
}

.path-mod-treasurehunt .treasurehunt-editor-loader {
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  z-index: 100;
}

.path-mod-treasurehunt .loader-circle-outside {
  background-color: rgba(19, 19, 19, 1);
  border: 5px solid rgba(255, 255, 255, 1);
  opacity: 0.9;
  border-right: 5px solid rgba(19, 19, 19, 1);
  border-left: 5px solid rgba(19, 19, 19, 1);
  border-radius: 50px;
  box-shadow: 0 0 35px #131313;
  width: 50px;
  height: 50px;
  margin: 0 auto;
  animation: spinPulse 1s infinite ease-in-out;
  -moz-animation: spinPulse 1s infinite ease-in-out;
  -webkit-animation: spinPulse 1s infinite ease-in-out;
  -o-animation: spinPulse 1s infinite ease-in-out;
  -ms-animation: spinPulse 1s infinite ease-in-out;
}

.path-mod-treasurehunt .loader-circle-inside {
  background-color: rgba(19, 19, 19, 0);
  border: 5px solid rgba(255, 255, 255, 1);
  opacity: 0.9;
  border-left: 5px solid rgba(19, 19, 19, 1);
  border-right: 5px solid rgba(19, 19, 19, 1);
  border-radius: 50px;
  box-shadow: 0 0 15px #131313;
  width: 30px;
  height: 30px;
  margin: 0 auto;
  position: relative;
  top: -50px;
  animation: spinoffPulse 1s infinite linear;
  -moz-animation: spinoffPulse 1s infinite linear;
  -webkit-animation: spinoffPulse 1s infinite linear;
  -o-animation: spinoffPulse 1s infinite linear;
  -ms-animation: spinoffPulse 1s infinite linear;
}

@keyframes spinPulse {
  0% {
    transform: rotate(160deg);
    opacity: 0;
    box-shadow: 0 0 1px #131313;
  }

  50% {
    transform: rotate(145deg);
    opacity: 1;
  }
  100% {
    transform: rotate(-320deg);
    opacity: 0;
  }
}
@keyframes spinoffPulse {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
@-moz-keyframes spinPulse {
  0% {
    -moz-transform: rotate(160deg);
    opacity: 0;
    box-shadow: 0 0 1px #131313;
  }

  50% {
    -moz-transform: rotate(145deg);
    opacity: 1;
  }
  100% {
    -moz-transform: rotate(-320deg);
    opacity: 0;
  }
}
@-moz-keyframes spinoffPulse {
  0% {
    -moz-transform: rotate(0deg);
  }

  100% {
    -moz-transform: rotate(360deg);
  }
}
@-webkit-keyframes spinPulse {
  0% {
    -webkit-transform: rotate(160deg);
    opacity: 0;
    box-shadow: 0 0 1px #131313;
  }

  50% {
    -webkit-transform: rotate(145deg);
    opacity: 1;
  }
  100% {
    -webkit-transform: rotate(-320deg);
    opacity: 0;
  }
}
@-webkit-keyframes spinoffPulse {
  0% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}
@-o-keyframes spinPulse {
  0% {
    -o-transform: rotate(160deg);
    opacity: 0;
    box-shadow: 0 0 1px #131313;
  }

  50% {
    -o-transform: rotate(145deg);
    opacity: 1;
  }
  100% {
    -o-transform: rotate(-320deg);
    opacity: 0;
  }
}
@-o-keyframes spinoffPulse {
  0% {
    -o-transform: rotate(0deg);
  }

  100% {
    -o-transform: rotate(360deg);
  }
}
@-ms-keyframes spinPulse {
  0% {
    -ms-transform: rotate(160deg);
    opacity: 0;
    box-shadow: 0 0 1px #131313;
  }

  50% {
    -ms-transform: rotate(145deg);
    opacity: 1;
  }
  100% {
    -ms-transform: rotate(-320deg);
    opacity: 0;
  }
}
@-ms-keyframes spinoffPulse {
  0% {
    -ms-transform: rotate(0deg);
  }

  100% {
    -ms-transform: rotate(360deg);
  }
}
@media screen and (max-height: 480px) {
  .path-mod-treasurehunt #mapedit {
    height: 160px;
  }
  .path-mod-treasurehunt #stagelistpanel {
    height: 160px;
  }
  .path-mod-treasurehunt .treasurehunt-editor-loader {
    margin-top: 75px;
  }
  .path-mod-treasurehunt .ui-autocomplete {
    max-height: 192px;
  }
}

@media screen and (min-height: 481px) {
  .path-mod-treasurehunt #mapedit {
    height: 325px;
  }
  .path-mod-treasurehunt #stagelistpanel {
    height: 325px;
  }
  .path-mod-treasurehunt .treasurehunt-editor-loader {
    margin-top: 157px;
  }
  .path-mod-treasurehunt .ui-autocomplete {
    max-height: 357px;
  }
}

@media screen and (min-height: 620px) {
  .path-mod-treasurehunt #mapedit {
    height: 450px;
  }
  .path-mod-treasurehunt #stagelistpanel {
    height: 450px;
  }
  .path-mod-treasurehunt .treasurehunt-editor-loader {
    margin-top: 220px;
  }
  .path-mod-treasurehunt .ui-autocomplete {
    max-height: 482px;
  }
}

@media screen and (min-height: 750px) {
  .path-mod-treasurehunt #mapedit {
    height: 560px;
  }
  .path-mod-treasurehunt #stagelistpanel {
    height: 560px;
  }
  .path-mod-treasurehunt .treasurehunt-editor-loader {
    margin-top: 275px;
  }
  .path-mod-treasurehunt .ui-autocomplete {
    max-height: 592px;
  }
}
/* MAP PAGE*/
#page-mod-treasurehunt-play,
#page-mod-treasurehunt-play #content {
  overflow: hidden;
  padding: 0;
}

#page-mod-treasurehunt-play #container {
  overflow: hidden;
}

#page-mod-treasurehunt-play .ui-page,
#page-mod-treasurehunt-play #content,
#page-mod-treasurehunt-play #mapplay {
  height: 100%;
  width: 100%;
}

#page-mod-treasurehunt-play #validatelocation {
  left: 6.5rem;
  font-size: 2rem;
  margin-top: 0.5rem;
  bottom: 1rem;
  display: inline;
  background-color: #90ab6d;
}
#page-mod-treasurehunt-play #validatelocation::after {
  left: 50%;
  margin-left: -1rem;
  background-size: 2rem;
  width: 2rem;
  height: 2rem;
  top: 1.5rem;
  background-color: #90ab6d;
}

#page-mod-treasurehunt-play #validateqr {
  left: -5rem;
  font-size: 2rem;
  margin-top: 0.5rem;
  bottom: 1rem;
  display: inline;
  background-color: #c1a666;
}
#page-mod-treasurehunt-play #validateqr::after {
  left: 50%;
  margin-left: -1rem;
  background-size: 2rem;
  width: 2rem;
  height: 2rem;
  top: 1.5rem;
  background-color: #c1a666;
}

#page-mod-treasurehunt-play .successfulattempt::after {
  background-color: #5cd053 !important;
}

#page-mod-treasurehunt-play .failedattempt::after {
  background-color: #d45252 !important;
}

#page-mod-treasurehunt-play h1,
#page-mod-treasurehunt-play h2,
#page-mod-treasurehunt-play h3,
#page-mod-treasurehunt-play h4,
#page-mod-treasurehunt-play h5,
#page-mod-treasurehunt-play h6 {
  line-height: inherit;
  color: white;
}

#page-mod-treasurehunt-play .ui-listview > .ui-li-static,
#page-mod-treasurehunt-play .ui-listview > .ui-li-divider,
#page-mod-treasurehunt-play .ui-listview > li > a.ui-btn,
#page-mod-treasurehunt-play .ui-btn,
#page-mod-treasurehunt-play [data-role="popup"] .ui-title {
  white-space: normal !important;
}

#page-mod-treasurehunt-play #navigation {
  position: absolute;
  top: -80px;
  right: 10px;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  padding: 1px;
}

#page-mod-treasurehunt-play #navigation button {
  display: block;
  height: 1.375em;
  width: 1.375em;
  font-size: 1.14em;
  background-image: none;
  margin: 1px;
  padding: 0;
}
#page-mod-treasurehunt-play .ui-panel {
  height: 100%;
  overflow: hidden;
}

#page-mod-treasurehunt-play .ui-panel-inner {
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#page-mod-treasurehunt-play .ui-panel-inner .ui-content {
  flex: 1;
  overflow: auto;
}

#page-mod-treasurehunt-play .ui-popup {
  max-width: 800px;
  min-width: 250px;
}

#page-mod-treasurehunt-play .ui-popup-container [data-role="content"] {
  overflow-y: auto;
  overflow-x: hidden;
}

#page-mod-treasurehunt-play [data-role="popup"] .ui-title {
  margin: 0 40px;
}

#page-mod-treasurehunt-play .center-wrapper,
.ui-footer {
  text-align: center;
}

#page-mod-treasurehunt-play .ui-footer {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  height: 3rem;
}

#page-mod-treasurehunt-play .checked {
  opacity: 1;
}

#page-mod-treasurehunt-play .unchecked {
  opacity: 0.3;
}

#page-mod-treasurehunt-play .custom-count-pos {
  font-size: 11px;
  font-weight: bold;
  padding: 0.2em 0.5em;
  float: right;
}

#page-mod-treasurehunt-play .toast {
  display: block;
  opacity: 0.9;
  position: fixed;
  padding: 7px;
  text-align: center;
  width: 270px;
  background-color: black;
}
