/* GENERAL */

html {
  height: 100%;
}
body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x:hidden;
  font-size: 16px;
}

.content{
  width: 100%;
  flex: 1;
  background: rgba(253,210,17,1);
  background: -moz-linear-gradient(top, rgba(253,210,17,1) 0%, rgba(253,210,17,1) 50%, #009994 50%, #009994 100%);
  background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(253,210,17,1)), color-stop(50%, rgba(253,210,17,1)), color-stop(50%, #009994), color-stop(100%, #009994));
  background: -webkit-linear-gradient(top, rgba(253,210,17,1) 0%, rgba(253,210,17,1) 50%, #009994 50%, #009994 100%);
  background: -o-linear-gradient(top, rgba(253,210,17,1) 0%, rgba(253,210,17,1) 50%, #009994 50%, #009994 100%);
  background: -ms-linear-gradient(top, rgba(253,210,17,1) 0%, rgba(253,210,17,1) 50%, #009994 50%, #009994 100%);
  background: linear-gradient(to bottom, rgba(253,210,17,1) 0%, rgba(253,210,17,1) 50%, #009994 50%, #009994 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fdd211', endColorstr='#009994', GradientType=0 );
}

.wrapper{
  min-height: 50vh;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
}

.overlay{
    height: 100%;
    width: 100%;
    z-index: 1;
}

.wrapper img{
    width: 100%;
    height: 100%;
    top:0;
    left:0;
    position: absolute;
}

/*FOOTER*/

html footer.container {
    padding-top: 15px;
    padding-bottom: 20px;
}

.footer-text{
    background-color: #f5f5f5;
    padding: 15px;
    padding-left: 25px;
    margin-bottom: 15px;
}

.partner-logo{
  max-height: 50px;
  margin: auto;
}

/*NAVIGATION*/

.navbar {
    margin-bottom: 0;
    background-color: #fff;
}

.navbar-brand,
.navbar-nav li a {
    line-height: 50px;
    height: 50px;
    padding-top: 0;
}

.nav>li{
  padding: 0px 10px;
}

.logo{
  max-width:100%;
  max-height:100%;
}

.btn-primary.button-next {
	font-size: 30px;
    font-family: 'Baloo', cursive;
    color: #c05f01;
    background-color: #fdd011;
    border-color: #fdd011;
    box-shadow: 0px 5px 0px #c9a70e;
    margin-bottom: 10px;
}

.btn-primary.button-next:hover {
	transform: translateY(3px);
	font-size: 30px;
    font-family: 'Baloo', cursive;
    color: #c05f01;
    background-color: #ffe36a;
    border-color: #ffe36a;
    box-shadow: 0px 2px 0px #c9a70e;
    margin-bottom: 10px;
}

/* HOME */

.questionnaire-heading{
    font-family: 'Baloo', cursive;
    color: #c05f01;
    font-size: 400%;
    line-height: normal;
    text-transform: uppercase;
    /*padding-top: 20vh;*/
    text-shadow: 3px 3px #c9a70e;
}

.questionnaire-button{
  padding-top: 20px;
}

.questionnaire-intro{
  color: #fff;
  font-size: 18px;
}

.questionnaire-intro-link {
    color: #fff;
    font-size: 19px;
    line-height: 1.3em;
    font-weight: 100;
    letter-spacing: 0.03em;
    vertical-align: bottom;
}

.questionnaire-intro-link:hover {
    color: #fff;
}

.questionnaire-action{
  font-family: 'Baloo', cursive;
  color: #fff;
  font-size: 200%;
  line-height: normal;
  text-shadow: 2px 2px #005653;
}

.presentation img{
  margin: auto;
}

.questionnaire{
  padding-top: 20px;
}

.form-group.required .control-label:after {
    content:"*";
    color:red;
}

.btn-secundary.button-next {
	font-size: 15px;
  font-family: 'Baloo', cursive;
  color: #c05f01;
  background-color: #fdd011;
  border-color: #fdd011;
  box-shadow: 0px 5px 0px #c9a70e;
  width: 25px;
}

.btn-secundary.button-next:hover {
	transform: translateY(3px);
  background-color: #ffe36a;
  border-color: #ffe36a;
  box-shadow: 0px 2px 0px #c9a70e;
}

/*GAMES PAGE*/

.content.games-page{
  background: #01c0b9 url("../img/fons.png") repeat;
  display: flex;
  align-items: center;
}

.game-choice-heading{
  font-family: 'Baloo', cursive;
  color: #fff;
  font-size: 300%;
  line-height: normal;
  text-shadow: 2px 2px gray;
}

.gallery {
  padding: .5vw;
  display: -ms-flexbox;
  -ms-flex-wrap: wrap;
  -ms-flex-direction: column;
  -webkit-flex-flow: row wrap;
  flex-flow: row wrap;
  justify-content: space-around;
  display: -webkit-box;
  display: flex;
  align-content: flex-start;
}

.game-choice {
  -webkit-box-flex: auto;
  -ms-flex: auto;
  flex: auto;
  width: 250px;
  padding: .5vw;
  text-align: center;
}

.game-choice a:hover{
  text-decoration: none;
}
.game-choice a:hover .game-name{
  color: rgba(253,210,17,1);
}

.game-choice a:hover img{
  border-color: rgba(253,210,17,1);
}

.game-choice img{
  margin: auto;
  border: solid 10px white;
  border-radius: 15px;
}

.game-name{
  font-family: 'Baloo', cursive;
  color: #fff;
  font-size: 200%;
  line-height: 110%;
  margin: 10px 0px;
  text-shadow: 2px 2px #005653;
}

/* QUESTION PAGE */

.question,
.answer{
  padding: 15px;
}

.question-heading,
.game-heading{
  font-family: 'Baloo', cursive;
  color: #c05f01;
  font-size: 200%;
  line-height: normal;
  text-shadow: 2px 2px #c9a70e;
}

.question-text {
    font-weight: bolder;
    font-size: 120%;
}

.list-group-item{
  padding: 1vw;
  display: -ms-flexbox;
  -ms-flex-wrap: wrap;
  -ms-flex-direction: column;
  -webkit-flex-flow: row wrap;
  flex-flow: row wrap;
  display: -webkit-box;
  display: flex;
}

.list-group-item:focus,
.list-group-item:hover{
  color: #01c0b9;
}

.list-group-item:focus .option-text,
.list-group-item:hover .option-text{
  color: white;
}

.list-group-item.active{
  background-color: #01c0b9;
  border-color: #01c0b9;
  color: black;
}

.list-group-item.active:focus,
.list-group-item.active:hover{
  color: white;
  background-color: #01c0b9;
  border-color: #01c0b9;
}

.list-group-item.active .option-circle,
.list-group-item.active:focus .option-circle,
.list-group-item.active:hover .option-circle{
  color: white;
}

.list-group-item.active .option-text{
  color: black;
}

.list-group-item.active:focus .option-text,
.list-group-item.active:hover .option-text{
  color: #009994;
}

.choice-id{
  -webkit-box-flex: auto;
  -ms-flex: auto;
  flex: auto;
  text-align: center;
  align-self: center;
}

.choice-text{
  -webkit-box-flex: auto;
  -ms-flex: auto;
  flex: auto;
  width: 90%;
  padding: .5vw;
  text-align: left;
  padding-left: 10px;
  padding-top: 10px;
  align-self: center;
}
.option-circle{
  color: #01c0b9;
}
.option-text{
  color: black;
}

.hidden{
    display: none;
}

.question-progress{
    z-index: 2;
}

.question-progress .progress{
  background-color: rgba(255, 255, 255, 0.4);
}

.question-progress .progress-bar{
  background-color: #01c0b9;
}

/*YOUTUBE PAGE*/

.content.youtube-page{
  background: #01c0b9 url("../img/fons.png") repeat;
  display: flex;
  align-items: center;
}

.youtube-container{
  margin: 0 auto;
  text-align: center;
}

.youtube-heading{
  font-family: 'Baloo', cursive;
  color: #fff;
  font-size: 300%;
  line-height: normal;
  text-shadow: 2px 2px gray;
}

.youtube-video{
  border: solid 10px white;
  border-radius: 15px;
}

/* From animate.css */
.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes bounceInRight {
  from, 60%, 75%, 90%, 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);
  }

  from {
    opacity: 0;
    -webkit-transform: translate3d(3000px, 0, 0);
    transform: translate3d(3000px, 0, 0);
  }

  60% {
    opacity: 1;
    -webkit-transform: translate3d(-25px, 0, 0);
    transform: translate3d(-25px, 0, 0);
  }

  75% {
    -webkit-transform: translate3d(10px, 0, 0);
    transform: translate3d(10px, 0, 0);
  }

  90% {
    -webkit-transform: translate3d(-5px, 0, 0);
    transform: translate3d(-5px, 0, 0);
  }

  to {
    -webkit-transform: none;
    transform: none;
  }
}

@keyframes bounceInRight {
  from, 60%, 75%, 90%, 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);
  }

  from {
    opacity: 0;
    -webkit-transform: translate3d(3000px, 0, 0);
    transform: translate3d(3000px, 0, 0);
  }

  60% {
    opacity: 1;
    -webkit-transform: translate3d(-25px, 0, 0);
    transform: translate3d(-25px, 0, 0);
  }

  75% {
    -webkit-transform: translate3d(10px, 0, 0);
    transform: translate3d(10px, 0, 0);
  }

  90% {
    -webkit-transform: translate3d(-5px, 0, 0);
    transform: translate3d(-5px, 0, 0);
  }

  to {
    -webkit-transform: none;
    transform: none;
  }
}

.bounceInRight {
  -webkit-animation-name: bounceInRight;
  animation-name: bounceInRight;
}

/* RESULTS CERTIFICATE STYLING */

.content.results-page{
  background: #01c0b9 url("../img/fons.png") repeat;
}

.results-page .container{
  padding-top: 30px;
  padding-bottom: 30px;
}

.certificate {
  position: relative;
  padding-top: 10px;
  padding-bottom: 0px;
}
.certificate .h1, .certificate h1 {
  font-size: 50px;
  font-family: 'Baloo', cursive;
  color: #01c0b9;
  text-align: center;
  margin-top: 0px;
  margin-bottom: 0px;
}
.certificate .h2, .certificate h2 {
  font-size: 35px;
  font-family: 'Baloo', cursive;
  color: #006561;
  text-align: center;
  margin-top: 0px;
}

.certificate {
  background-color: #fff;
  border: 57px solid white;
  border-image-source: url(../img/estrelletes-borde.png);
  border-image-slice: 57 57;
  border-image-repeat: round;
  box-shadow: 10px 10px 0px #01a39d;
}

.results-heading{
    font-family: 'Baloo', cursive;
    color: #fff;
    font-size: 200%;
    line-height: normal;
}

.pull-right a:first-of-type{margin-right: 10px;}

.certificate hgroup{
  margin-bottom: 15px;
}

.results{
  margin-top: 20px;
  font-size: 18px;
  font-family: 'Baloo', cursive;
}

.results ul li {
  list-style:none;
  margin-left: 0px;
  padding-left: 0px;
  margin-bottom: 5px;
}

.results li span img{
  width: 50px;
  height: 50px;
}

.results ul{
  margin-left: 0px;
  padding-left: 0px;
}

.stamp {
  position: absolute;
  bottom: -85px;
  left: -20px;
}

.skill{
  display: flex;
  align-items: center;
}

.skill-name{
  text-align: right;
  display:inline-block;
}

/* make keyframes that tell the start state and the end state of our object */

@-webkit-keyframes fadeIn { from { opacity:0; opacity: 1\9; /* IE9 only */ } to { opacity:1; } }
@-moz-keyframes fadeIn { from { opacity:0; opacity: 1\9; /* IE9 only */ } to { opacity:1; } }
@keyframes fadeIn { from { opacity:0; opacity: 1\9; /* IE9 only */ } to { opacity:1; } }

.results li span img {
  opacity:0;  /* make things invisible upon start */
  -webkit-animation:fadeIn ease-in 1;  /* call our keyframe named fadeIn, use animattion ease-in and repeat it only 1 time */
  -moz-animation:fadeIn ease-in 1;
  animation:fadeIn ease-in 1;

  -webkit-animation-fill-mode:forwards;  /* this makes sure that after animation is done we remain at the last keyframe value (opacity: 1)*/
  -moz-animation-fill-mode:forwards;
  animation-fill-mode:forwards;

  -webkit-animation-duration:1s;
  -moz-animation-duration:1s;
  animation-duration:1s;
}

.results li span img.one {
  -webkit-animation-delay: 0.7s;
  -moz-animation-delay: 0.7s;
  animation-delay: 0.7s;
}

.results li span img.two {
  -webkit-animation-delay: 1.2s;
  -moz-animation-delay:1.2s;
  animation-delay: 1.2s;
}

.results li span img.three {
  -webkit-animation-delay: 1.6s;
  -moz-animation-delay: 1.6s;
  animation-delay: 1.6s;
}

.results li span img.four {
  -webkit-animation-delay: 1.6s;
  -moz-animation-delay: 1.6s;
  animation-delay: 1.6s;
}

.results li span img.five {
  -webkit-animation-delay: 1.6s;
  -moz-animation-delay: 1.6s;
  animation-delay: 1.6s;
}

@media (max-width: 768px){
  .skill{
    display: block;
  }
  .skill-name{
    text-align: left;
  }
  .results li span img{
    width: 45px;
    height: 45px;
  }
}

@media print{
  @page {
    size: A4 landscape;
    margin: 0px;
  }
  .hideForPrint{
    display: none;
  }
  /*html body{
    height: 210mm;
    width: 297mm;
  }*/
  .certificate{
    height: 200mm;
    width: 287mm;
    margin: 0 auto;
    margin-left: 10mm;
  }
  .container{
    padding: 0px;
    margin: 0px;
  }
  .results li span img{
    width: 40px;
    height: 40px;
    opacity: 1 !important;
  }
  * {
    /*CSS transitions*/
    -o-transition-property: none !important;
    -moz-transition-property: none !important;
    -ms-transition-property: none !important;
    -webkit-transition-property: none !important;
    transition-property: none !important;
    /*CSS transforms*/
    -o-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
    -webkit-transform: none !important;
    transform: none !important;
    /*CSS animations*/
    -webkit-animation: none !important;
    -moz-animation: none !important;
    -o-animation: none !important;
    -ms-animation: none !important;
    animation: none !important;
    }
}

/* CORRECCIONS DE L'ALBERT */
.navbar {
    padding: 10px!important;
}

.navbar-brand{
    padding: 0px!important;
}

.questionnaire {
    padding-top: 30px;
    padding-bottom: 30px;
}

.questionnaire-intro {
    color: #fff;
    font-size: 19px;
    line-height: 1.3em;
    font-weight: 100;
    letter-spacing: 0.03em;
}

.registration-label.control-label {
    padding-right: 0px;
}

.registration-field .form-control {
    height: 45px;
    margin-bottom: 5px;
}

label.control-label {
    font-weight: 400;
    color: white;
}

@media (max-width:768px) {

  .content , .content.games-page , .content.question-page{
      background:#009994;
      background-image: none!important;
  }

  .questionnaire-heading , .question-heading {
      font-family: 'Baloo', cursive;
      color: #FDD211;
      font-size: 300%;
      line-height: 0.9em!important;
      margin: 20px 0px;
      text-shadow: 3px 3px #005653;
  }

  .game-heading , .game-choice-heading, .youtube-heading{
      font-family: 'Baloo', cursive;
      color: #FDD211;
      font-size: 250%;
      line-height: 0.9em!important;
      margin: 20px 0px;
      text-shadow: 3px 3px #005653;
  }


  .questionnaire-intro , .question-intro {
      color: #fff;
      font-size: 17px;
      line-height: 1.35em;
      font-weight: 100;
  }

  .question-text {
      margin-top: 20px;
      color: #fff;
      font-weight: bolder;
      font-size: 140%;
  }

  .questionnaire-action {
      color: #fff;
      line-height: 0.9em!important;
      margin: 35px 0;
      text-shadow: 2px 2px #005653;
  }

  .game-choice {
      margin-bottom: 5vw;
  }

}
