@font-face {
    font-family: "TisaSansOT-Medium";
    src: url(../fonts/TisaSansOT-Medium.otf) format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "TisaSansOT-Light";
    src: url(../fonts/TisaSansOT-Light.otf) format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "TisaOT-Bold";
    src: url(../fonts/TisaOT-Bold.otf) format('opentype');
    font-weight: normal;
    font-style: normal;
}

h1, h2, h3, h4, .botojugar a{
  font-family: "TisaOT-Bold";
}
p, a, span, li{
   font-family: "TisaSansOT-Medium";
}

/* INTRO */
body {
  font-size: 20px;
  background: #fff;
}
.langsele {
    float: right;
    text-align: right;
        color: #fff;
}
.langsele a, .langsele span {
    color: #fff;
    margin: 5px;
    text-decoration: none;
}
.langsele a {
    font-size: 15px;
}
.langsele span {
    font-size: 20px;
}
#logo_arag {
    position: absolute;
    left: 0;
    top: 0;
}
#logo_arag img {
    max-width: 120px;
}
#pantallacompleta{
  width: 100%;
    height: 100%;
    position: absolute;
}
#container {
  outline: 0;
  width: 100%;
  height: 100%;
}
#container section{
   background-size: 100%;
  background-position: bottom; 
  height: 100%;
  display: none;
}
#container section.active{
display: block;
}
#container #intro{
  background-image: url(../img/bg_start.png);
}
#container #game, #container #game_over{
  background-image: url(../img/bg_gamearag.png);
}
#intro h1 span {
  text-indent: -2000px;
  background: url(../img/santa_marker.png) no-repeat center 20px;
  height: 30px;
  display: block;
}

.backintro {
    background: #0000006e;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
div#contentintro {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9;
}



#instruccions{
  /*display: none;*/
  transition: 0.5s;
}
.ocult{
  opacity: 0 !important;
  transition: 0.5s;
}


#contentintro, #instruccions, #contentgameover {
    max-width: 600px;
    margin: 0px auto;
    text-align: center;
    padding-top: 40px;
}
#contentintro .imgintro img {
    max-width: 250px;
}
#contentintro .textintro h1{
  color: #fff;
}
.gameover_img img {
    max-width: 300px;
    margin-top: 50px;
}
#game_over_score {
    /*margin-top: 40px;*/
    font-size: 16px;
}
#game_over_hightscore{
    margin-bottom: 40px;
}
.botojugar a {
    background: #fed222;
    padding: 5px 60px 10px 60px;
    border-radius: 10px;
    color: #000;
    font-weight: 700;
}
.instrucc_bubble {
    background: #fff;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 0 20px 20px #b5b5b5;
    position: relative;
}
.instrucc_bubble:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -20px;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #fff;
    clear: both;
    margin: 0 auto;
}
.instrucc_bubble p {
    color: #000 !important;
    font-family: TisaSansOT-Light;
        font-size: 16px;
}
.instrucc_bubble p strong{
    font-family: TisaOT-Bold;
}
#contentgameover .instrucc_bubble {
    max-width: 450px;
    margin: 0 auto;
}
#game_over_score span {
    display: block;
    font-size: 21px;
    font-family: "TisaOT-Bold";
        margin-bottom: 10px;
}

.blauarag{
  color: #0a7388;
}

.instrucc_img img{
  max-width: 180px;
  margin-top: 35px;
}
#intro p {
    font-size: 16px;
    color: #fff;
    font-family: TisaSansOT-Light;
    /*text-shadow: 1px 1px 0px #0a728a;*/
}

#scores {
    position: absolute;
    right: 10px;
    top: 20px;
    max-width: 50%;
}
#lifecounter, #pointcounter {
    float: right;
}
#pointcounter {
    background: white;
    border-radius: 50px;
    padding: 5px 30px;
    margin-left: 15px;
    color: #0a728a;
    font-weight: bold;
}


#lifecounter ul {
    background: white;
    list-style: none;
    padding: 2px 10px !important;
    border-radius: 20px;
}

#lifecounter ul li {
     display: inline-block; 
     margin-top: 10px;
  }
#lifecounter ul li div {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}
#lifecounter ul li.vllena div{
  background-image: url(../img/vida_llena.png);
}
#lifecounter ul li.vvacia div{
  background-image: url(../img/vida_vacia1.png);
}
#lifecounter ul {
    list-style: none;
}
#lifecounter ul li img {
    max-width: 20px;
}







#santarag {
    position: absolute;
    bottom: 0;
    text-align: center;
    margin: 0 auto;
    left: 0;
    right: 0;
}
#santarag img {
    max-width: 150px;
    position: absolute;
    left: calc(50% - 75px);
    bottom: 0;
/*    transition-property: all;
    transition-duration: 0.3s;
    transition-timing-function: linear;*/
}
#game_elements {
    width: 100%;
    height: 100%;
}



div#controls {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    top: 0;
}
#controls>div{
    position: absolute;
  top: 0;
    width: 50%;
    /*background: red;*/
    z-index: 99999;
    height: 100%;
}
#left_control {
    left: 0;
    touch-action: none;
}
#right_control {
    right: 0;
    touch-action: none;
}


.regals {
    width: 60px;
    height: auto;
    position: absolute;
    top: -100px;
}

#newregals{
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

#newregals img {
    width: 60px;
    height: auto;
}





@media(max-width: 767px){
  #container section{
    background-size: cover;
  }
  #santarag img {
    max-width: 100px;
    left: calc(50% - 50px);
  }
  #logo_arag img {
    max-width: 70px;
  }
}
