html, body {
    margin: 0px;
    padding: 0px;
    font-family: "Helvetica", "Arial", sans-serif;
    color: #fff;
    background-color: #004f9f; /* For browsers that do not support gradients */
    background-image: linear-gradient(#004f9f, #009fe3);
}

.logo {
  width: 100%;
  margin-bottom: 50px;
}

#img-container {
    padding: 10px;
}

canvas {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.center {text-align: center}

.view {
    display: none;
    padding: 15px;
    text-align: center;
}

.view-header {
    display: block;
    height: 65px;
}

#win-game {
  display: none;
  font-size: 20px;
  font-weight: bold;
  padding-top: 15px;
}

.loading-text {
  display: block;
}

.loading-image {
  margin-top: 30px;
  width: 100%;
  border-radius: 8px;
}

button {
    display: block;
    background-color: #f5bb00;
    color: #fff;
    padding: 9px;
    font-size: 18px;
    width: 100%;
    border: none;
    margin-bottom: 13px;
}

a {
    text-decoration: none;
}

button.simple {
    width: 33%;
    display: inline-block;
    float: left;
    color: #000;
}

button.kody {
    color: #000;
}

button.kody2 {
width: 50%;
display:block;
    color: #000;
}

button.small {
  font-size: 14px;
}

button.right {
  float: right;
}

.alert {
    display: none;
}

#new-record {
    display: none;
}

.level-item {
    padding: 30px;
    padding-right: 0px;
    padding-bottom: 0px;
    height: 100px;
    background-color: #eee;
    color: #ddd;
    text-align: left;
    font-size: 50px;
    font-weight: bold;
    margin-bottom: 5px;
}

.level-item.active {
    background-color: #f1c40f;
    color: #fff;
}

.level-img {
  height: 70px;
}

.level-column {
  display: inline-block;
  height: 70px;
}

.level-item.inactive > .level-column > .level-img {
  filter: gray; /* IE6-9 */
  -webkit-filter: grayscale(1); /* Google Chrome, Safari 6+ & Opera 15+ */
  filter: grayscale(1); /* Microsoft Edge and Firefox 35+ */
}

.level-description {
  padding-left: 10px;
  font-weight: normal;
  vertical-align: top;
  font-size: 15px;
}

#sound-container {
  float: right;
}

#lifes-container {
    float: right;
}

#lifes-container > img {
    width: 25px;
    margin: 5px;
}

.wrong {
    display: none;
    position: fixed;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: rgba(255,50,50,0.5);
    padding-top: 40%;
    text-align: center;
    font-weight: bold;
    color: white;
    font-size: 60px;
}

.first {
    pointer-events: none;
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 1;
    padding-top: 1em;
    text-align: center;
    font-weight: bold;
    color: white;
    font-size: 16px;
}

.first-text {
    padding: 5px;
    background-color: rgba(0,0,0,0.5);
    margin-left: 40px;
    margin-right: 40px;
}

@-webkit-keyframes bounceIn {
  from, 20%, 40%, 60%, 80%, to {
    -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
  }

  0% {
    opacity: 0;
    -webkit-transform: scale3d(.3, .3, .3);
    transform: scale3d(.3, .3, .3);
  }

  20% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1);
    transform: scale3d(1.1, 1.1, 1.1);
  }

  40% {
    -webkit-transform: scale3d(.9, .9, .9);
    transform: scale3d(.9, .9, .9);
  }

  60% {
    opacity: 1;
    -webkit-transform: scale3d(1.03, 1.03, 1.03);
    transform: scale3d(1.03, 1.03, 1.03);
  }

  80% {
    -webkit-transform: scale3d(.97, .97, .97);
    transform: scale3d(.97, .97, .97);
  }

  to {
    opacity: 1;
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

@keyframes bounceIn {
  from, 20%, 40%, 60%, 80%, to {
    -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
  }

  0% {
    opacity: 0;
    -webkit-transform: scale3d(.3, .3, .3);
    transform: scale3d(.3, .3, .3);
  }

  20% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1);
    transform: scale3d(1.1, 1.1, 1.1);
  }

  40% {
    -webkit-transform: scale3d(.9, .9, .9);
    transform: scale3d(.9, .9, .9);
  }

  60% {
    opacity: 1;
    -webkit-transform: scale3d(1.03, 1.03, 1.03);
    transform: scale3d(1.03, 1.03, 1.03);
  }

  80% {
    -webkit-transform: scale3d(.97, .97, .97);
    transform: scale3d(.97, .97, .97);
  }

  to {
    opacity: 1;
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

.bounceIn {
  -webkit-animation-name: bounceIn;
  animation-name: bounceIn;
  -webkit-animation-duration: .75s;
  animation-duration: .75s;
}

@media only screen and (min-width: 500px) {
    canvas, .loading-image {
        width: 85%;
    }
    .first-text {
        margin-left: 70px;
        margin-right: 70px;
    }
}

@media only screen and (min-width: 700px) {
    .logo {width: 650px;}
    canvas, .loading-image {
        width: 65%;
    }
    .first-text {
        margin-left: 150px;
        margin-right: 150px;
    }
}
    

@media only screen and (min-width: 900px) {
    canvas, .loading-image {
        width: 50%;
    }
    .first-text {
        margin-left: 300px;
        margin-right: 300px;
    }
    
}

@media only screen and (min-width: 1100px) {
    canvas, .loading-image {
        width: 45%;
    }
    .first-text {
        margin-left: 500px;
        margin-right: 500px;
    }
}

@media only screen and (max-width: 400px) {
    .level-item {
      font-size: 45px;
    }

    .level-img {
      height: 45px;
    }

    .level-description {
      font-size: 13px;
    }
}