@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:100,200,300');

/******************************************MENU**************************************************************/
.menu {
   background: url('../images/gradient.png') no-repeat center center fixed;
   background-size: 100% 100%;
   position: absolute;
   z-index: 2;
   width: 100%;
   height: 72%;
}

.menu .iconBack{
   background: url('../images/icon_back.png') repeat center center fixed;
   position: absolute;
   width: 100%;
   height: 100%;
}

.menu .icon{
   background: url('../images/icon.png') no-repeat 50% 15% fixed;
   background-size: 400px 400px;
   position: absolute;
   width: 100%;
   height: 100%;
}

#gameName{
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 200;
    font-size: 36pt;
    color: white;
    position: fixed;
    top: 57%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

.menu button{
  position: fixed;
  top: 83%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  border: none;
  cursor: pointer;
  font-family: "Source Sans Pro";
}

.menu .withBackground {
  background-image:url('../images/button_idle_ig.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-color: transparent;
  font-size: 16pt;
  width: 300px;
  height: 8%;
  color: white;
}

.menu .withBackground:hover {
  background-image:url('../images/button_over_ig.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-color: transparent;
}

.menu .withBackground:focus {
  background-color: transparent;
  outline: 0;
}

.menu .noBackground {
  background-color: transparent;
  color: #64C4D0;
  font-size: 14pt;
}

.menu .noBackground:hover {
  background-color: transparent;
  color: #CCE2AB;
}

.menu .noBackground:focus {
  background-color: transparent;
  color: #36888E;
  outline: 0;
}


/******************************************REGLAS**************************************************************/

#rules {
  display: none;
  position: absolute;
  background-color: white;
  color: #515251;
  font: normal 18px/22px "Source Sans Pro";
  -ms-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  z-index: 2;
  position: absolute;
  width: 100%;
  height: 100%;
}

.scroll {
    margin: 0 auto;
    width: 90%;
    margin-top: 30px;
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll;
    height: 100%;
    width: 100%;
    padding: 40px;
    box-sizing: border-box;
    position: absolute;
}

.subtitle {
    font-weight: bold;
    color: #1D9DAD;
}

.title {
    font-size: 30px;
    margin-top: 20px;
    color: #1D9DAD;
    text-align: left;
}

#border {
    background-color: #1D9DAD;
    width: 100%;
    height: 60px;
    position: fixed;
}

.borderTitle {
    font-size: 28px;
    margin-top: 16px;
    font-weight: bold;
    color: white;
    position: relative;
    width: 100%;
    text-align: center;
}

#close {
    background: url('../images/back_idle_ig.png');
    background-size: 100%;
    background-color: transparent;
    width: 45px;
    height: 45px;
    position: absolute;
    margin-top: 6px;
    left: 20px;
    top: 0;
    cursor: pointer;
    border: none;
}

#close:hover{
    background: url('../images/back_over_ig.png');
    background-size: 100%;
}

#close:focus{
    background: url('../images/back_pressed_ig.png');
    background-size: 100%;
}

/*****************************************LOADER********************************/
.loader,
.loader:before,
.loader:after {
  border-radius: 50%;
  width: 2.5em;
  height: 2.5em;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation: loadAnim 1.8s infinite ease-in-out;
  animation: loadAnim 1.8s infinite ease-in-out;
}
.loader {
  color: #64C4D0;
  font-size: 10px;
  margin: 46vh auto;
  position: relative;
  text-indent: -9999em;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}
.loader:before,
.loader:after {
  content: '';
  position: absolute;
  top: 0;
}
.loader:before {
  left: -3.5em;
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}
.loader:after {
  left: 3.5em;
}
@-webkit-keyframes loadAnim {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}
@keyframes loadAnim {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}

/************************************FINAL POPUP*************************************/
#endDialog {
  font-family: 'Source Sans Pro';
  font-weight: 300;
  background: url('../images/gradient.png') no-repeat center center fixed;
  background-size: 100% 100%;
  color: #505050;
  z-index: 0;
  position: absolute;
  height: 100%;
  width: 100%;
  opacity: 0;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}

#endDialog .header{
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 20px;
}
#endDialog .content{
  font-size: 17px;
  line-height: 27px;
  //margin-bottom: 30px;
}

#endDialog button{
  box-sizing: border-box;
  padding: 12px 24px;
  margin: 0 8px;
  line-height: 20px;
  background: #FFF;
  display: inline-block;
  font-family: 'Source Sans Pro';
  border: 1px solid #ccc;
  color: #666;
  text-decoration: none;
  border-radius: 25px;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 10px;
}
#endDialog button:hover{
  border: 1px solid #239647;
  color: #239647;
}

#endDialog .popup{
  padding: 35px 25px;
  background: white;
  text-align: center;
  position: absolute;
  top: 50%;

  transform: translateX(-50%) translateY(-50%);
  border-radius: 10px;
  /*background: url('../images/avatar_hello.png') no-repeat center center fixed;
  background-size: 100% 100%;*/
}

@media only screen and (min-width: 790px){
    #endDialog .popup{
        width: 500px;
        left: 30%;
    }

    #endDialog .popup::after{
        content: ' ';
        position: absolute;
        width: 0;
        height: 0;
        left: auto;
        right: -40px;
        top: 38px;
        bottom: auto;
        border: 40px solid;
        border-color: white transparent transparent white;
    }
}

@media only screen and (max-width: 790px){
    #endDialog .popup{
        width: 80%;
        left: 50%;
    }
    #endDialog .popup:after{
    }
}

#endDialog #girl{
    height: 724px;
    width: 360px;
    position: absolute;
    top: 50%;
    left: 70%;
    transform: translateX(-50%) translateY(-50%);
}

@media only screen and (max-width: 790px){
    #endDialog #girl{
        display: none;
    }
}

@media only screen and (max-width: 1140px){
    #endDialog #girl{
        height: 482px;
        width: 240px;
        left: 80%;
    }
}

#endDialog .flex {
  display: flex;
  align-items: center;
  justify-content: center;
}

#endDialog .app-btn {
  width: 45%;
  max-width: 160px;
  color: #fff;
  margin: 20px 10px;
  text-align: left;
  border-radius: 5px;
  text-decoration: none;
  font-family: "Lucida Grande", sans-serif;
  font-size: 10px;
  text-transform: uppercase;
}
#endDialog .app-btn.blu {
  background-color: #101010;
  transition: background-color 0.25s linear;
}
#endDialog .app-btn.blu:hover {
  background-color: #454545;
}
#endDialog .app-btn i {
  width: 20%;
  text-align: center;
  font-size: 28px;
  margin-right: 7px;
}
#endDialog .app-btn .big-txt {
  font-size: 17px;
  text-transform: capitalize;
}