html { 
    width: 100%; 
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

body { 
    width: 100%; 
    height: 100%; 
    font-size: 32px; 
    font-weight: bold; 
    background-color: #DDDDDD; 
    color: #707070;
    margin: 0px; 
    overflow: hidden; 
}

/** GAME */

#arena_container { 
    position: relative;
    width: 100%; 
    height: 100%; 
    border: 0px solid black; 
    margin: 0 auto; 
    text-align: center; 
}

#arena { 
    height: 100%; 
    border: 0px solid black; 
    cursor: pointer; 
    position: relative; 
}

/** HUD */

.ui {
    position: absolute;
    height: 100%;
    top:0px;
    margin: auto;
}

.hud div, .hud img {
    position: absolute;
    z-index: 1;
    user-select: none;
    cursor: default;
    color:#707070;
}

.hud-item{
    width: 100px;
    height: 100px;
    cursor: pointer;
}

#moves{
    top: 0px;
    left: 0px;
    width: 100px;
    height: 100px;
    line-height: 90px;
    font-size: 18px;
    color : #FFFFFF;
    background: url("../img/star-complete.svg") no-repeat center;
}

#moves.negative{
    background: url("../img/star.svg") no-repeat center;
    color : #707070;
}

#levels {
    right: 0px;
    bottom: 0px;
    background: url("../img/levels.svg") no-repeat center;
}

#restart {
    bottom: 0px;
    left: 0px;
    background: url("../img/undo.svg") no-repeat center;
}

#restart:hover, #levels:hover{
    cursor: pointer;
    color:gray;
}

#preview {
    right : 0px;
    top: 0px;
    width : 25%;
}

.hidden{
    display:none;
}

.hud,.level-select,.tutorial,.intro{
    width: 100%;
    height: 100%;
}

#level-text{
    right:0;
    font-size: 20px;
}

/** ENDGAME SCREEN */

.endgame{
    position: relative;
    z-index: 1;
    top:35%;
    width: 250px;
    border: 4px solid #FF8554;
    background: #FFFFFF;
    margin: auto;
    box-shadow: 0px 0px 10px #888888;
    padding-bottom: 20px;
}

.endgame .star-great,.endgame .star-normal{
    width: 150px;
    height: 150px;
    position: relative;
    left: 50%;
    margin-left: -75px;
}

.endgame .star-great{
    background: url("../img/star-complete.svg") no-repeat center;
}

.endgame .star-normal{
    background: url("../img/star.svg") no-repeat center;
}

.endgame button{
    background: none;
    color: #707070;
    border: none;
    padding: 10px 0px 0px 0px;
    font: inherit;
    cursor: pointer;
    outline: inherit;
    font-size: 20px;
    display: block;
    text-align: center;
    width: 100%;
}

.endgame .next{
    font-size: 32px;
    color:#FF8554;
}

/** LEVELS MENU */

.level-select{
    z-index: 1;
    position: absolute !important;
    top:0px;
    left:0px;
    background-color: #DDDDDD;
}

.level-select, .level-select table {
    width: 100%;
    height: 100%;
}

.level-select .close{
    position: absolute;
    top: 0px;
    right: 0px;
    width: 60px;
    height: 60px;
    background: url("../img/close.svg") no-repeat center;
}

.level-select table{
    border-collapse: collapse;
    display:table !important;
}

.level-select table td{
    text-align: center;
    position: relative;
    padding: 10px 0px;
    cursor: pointer;
}

.level-select table td img {
    display: inline;
}

.levels-slide-view {
    margin-top: 18%;
}

.levels .indicator{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 50px;
    height: 50px;
}

.levels .indicator.lock {
    background: url("../img/lock.svg") no-repeat center;
}

.levels .indicator.star {
    background: url("../img/star.svg") no-repeat center;
}

.levels .indicator.star.great {
    background: url("../img/star-complete.svg") no-repeat center;
}

.level-number{
    position: absolute;
    bottom: 20px;
    left: 0px;
}

.slick-dots {
    bottom: -35px;
}

.locked {
    cursor: default !important;
}

.hud-item:hover, button:hover,.level-select td:not(.locked) img:hover{
    transform: scale(1.1);
}

/** INTRO LOGO SCREEN*/

.intro{
    background: #DDDDDD url("../img/logo.png") no-repeat center;
    z-index: 10;
    top: 0px;
    left: 0px;
    position: absolute;
}

/** TUTORIAL */

.tutorial{
    position: absolute;
    top:0px;
    left:0px;
}

.tutorial .arrow{
    z-index: 1;
    position: absolute;
    top: 67%;
    left: 20%;
    width: 60px;
    height: 60px;
    margin: -30px 0px 0px -30px;
    transform: rotate(-58deg);
    background: url(../img/arrow.svg) no-repeat center;
    pointer-events: none;
    -webkit-animation: tutorial 2s linear infinite;
    -moz-animation: tutorial 2s linear infinite;
    -ms-animation: tutorial 2s linear infinite;
    -o-animation: tutorial 2s linear infinite;
    animation: tutorial 2s linear infinite;
}

@keyframes tutorial {
    0% {
        opacity: 0 ;
        -ms-transform: rotate(-58deg) scale(1.1);
        -moz-transform: rotate(-58deg) scale(1.1);
        -webkit-transform: rotate(-58deg) scale(1.1);
        -o-transform: rotate(-58deg) scale(1.1);
        transform: rotate(-58deg) scale(1.1);
    }
    10%{
        opacity: 1;
        -ms-transform: rotate(-58deg) scale(1.1);
        -moz-transform: rotate(-58deg) scale(1.1);
        -webkit-transform: rotate(-58deg) scale(1.1);
        -o-transform: rotate(-58deg) scale(1.1);
        transform: rotate(-58deg) scale(1.1);
    }
    20%{
      -ms-transform: translate(0px, 0px) rotate(-58deg);
      -moz-transform: translate(0px, 0px) rotate(-58deg);
      -webkit-transform: translate(0px, 0px) rotate(-58deg);
      -o-transform: translate(0px, 0px) rotate(-58deg);
      transform: translate(0px, 0px) rotate(-58deg);
    }
    80% {
      -ms-transform: translate(60%, -85%) rotate(-58deg);
      -moz-transform: translate(60%, -85%) rotate(-58deg);
      -webkit-transform: translate(60%, -85%) rotate(-58deg);
      -o-transform: translate(60%, -85%) rotate(-58deg);
      transform: translate(60%, -85%) rotate(-58deg);
      opacity: 1;
    }
  
    90% {
      opacity: 1;
      -ms-transform: translate(60%, -85%) rotate(-58deg) scale(1.1);
      -moz-transform: translate(60%, -85%) rotate(-58deg) scale(1.1);
      -webkit-transform: translate(60%, -85%) rotate(-58deg) scale(1.1);
      -o-transform: translate(60%, -85%) rotate(-58deg) scale(1.1);
      transform: translate(60%, -85%) rotate(-58deg) scale(1.1);
    }
  
    100%{
      -ms-transform: translate(60%, -85%) rotate(-58deg) scale(1.1);
      -moz-transform: translate(60%, -85%) rotate(-58deg) scale(1.1);
      -webkit-transform: translate(60%, -85%) rotate(-58deg) scale(1.1);
      -o-transform: translate(60%, -85%) rotate(-58deg) scale(1.1);
      transform: translate(60%, -85%) rotate(-58deg) scale(1.1);
      opacity: 0;
    }
  }