body, html {
    width: 100%;
    height: 100%;
    overflow-y: hidden;
}

body {
    background: #03001e;  /* fallback for old browsers */
    background-image: url(../img/pattern.png);
    background-image: url(../img/pattern.png), -webkit-linear-gradient(to bottom,#0c55a7 0,#31e7f8 100%);  /* Chrome 10-25, Safari 5.1-6 */
    background-image: url(../img/pattern.png), linear-gradient(to bottom,#0c55a7 0,#31e7f8 100%); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    -webkit-animation:100s scroll infinite linear;
    -moz-animation:100s scroll infinite linear;
    -o-animation:100s scroll infinite linear;
    -ms-animation:100s scroll infinite linear;
    animation:100s scroll infinite linear;
    font-family: 'Encode Sans Semi Condensed', Helvetica, Arial, sans-serif;

}

@-webkit-keyframes scroll{
  100%{
    background-position: -4000px 0px;
  }
}

@-moz-keyframes scroll{
  100%{
    background-position: -4000px 0px;
  }
}

@-o-keyframes scroll{
  100%{
    background-position: -4000px 0px;
  }
}

@-ms-keyframes scroll{
  100%{
    background-position: -4000px 0px;
  }
}

@keyframes scroll{
  100%{
    background-position: -4000px 0px;
  }
}

#preloader {
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  width:100%;
  height:100%;
  background-image: linear-gradient(to bottom,#0c55a7 0,#31e7f8 100%);
  background-image: -webkit-linear-gradient(to bottom,#0c55a7 0,#31e7f8 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:3334;
}

.spinner {
  display: block;
  width: 70px;
  height: 70px;
  background: url(../img/preloader.svg) center center no-repeat;
  background-size: cover;
  -webkit-animation:spin 4s linear infinite;
  -moz-animation:spin 4s linear infinite;
  animation:spin 4s linear infinite;
}

@-moz-keyframes spin {
  100%{
      -moz-transform:rotate(360deg);
  }
}

@-webkit-keyframes spin {
  100%{
      -webkit-transform:rotate(360deg);
  }
}

@keyframes spin {
  100%{
      -webkit-transform:rotate(360deg);
      transform:rotate(360deg);
    }
}

#intro .container, #game .container, #final-score .container {
    display: flex;
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#game .col-md-6 {
  text-align: center;
}

.logo {
  text-indent: -9999px;
  width: 100%;
  max-width: 600px;
  height: 200px;
  background: url(../img/logo.svg) no-repeat center center;
  background-size: contain;
  margin-bottom: 20px;
}

.intro-buttons a {
  display: inline-block;
  width: 250px;
  margin: 0 auto;
  font-weight: 500;
  letter-spacing: -.02em;
  background-color: #2a75bb;
  box-shadow: -5px 5px 0px #1d2c5e;
  padding: 10px;
  font-size: 24px;
}

.intro-buttons a:hover {
  background-color: #20619e;
}

#about-game {
  margin-left: 10px;
}

#game, #final-score {
  display: none;
}

#pokemon-img {
  width: 28vw;
  width: 60vh;
  max-width: 90%;
  height: auto;
  text-align: auto;
  background: url(../img/pokeball.png) no-repeat center center;
  background-size: cover;
  margin-bottom: 70px;
}

#form-controls {
  position: fixed;
  bottom: 0;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

#name-submit {
  margin-top: 25px;
}

input#player-guess {
  width: 100%;
  padding: 15px;
  border: 1px #fff solid;
  border-radius: 10px;
  text-align: left;
  font-size: 24px;
  box-shadow: -5px 5px 0px #1d2c5e;
  transition: all .2s ease-in-out;
  -webkit-transition: all .2s ease-in-out;
  -moz-transition: all .2s ease-in-out;
}

.wrong-guess {
  color: #fff;
  background-color: #f00;
}

.correct-guess {
  background-color: #0c0;
}

#game-buttons {
  position: absolute;
  top: 15px;
  right: 5px;
}

#game-buttons a i {
  color: #fff;
  transition: all .2s ease-in-out;
  -webkit-transition: all .2s ease-in-out;
  -moz-transition: all .2s ease-in-out;
}

#game-buttons a i:hover {
  transform: scale(1.25);
  -webkit-transform: scale(1.25);
  -moz-transform: scale(1.25);
}

#game-buttons a i:first-child {
  margin-right: 10px;
}

#horz-notice {
  display: none;
}

#counter {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 24px;
  color: #fff;
}

.modal-dialog {
  width: 100%;
}

.modal-open .modal {
  display: flex !important;
  align-content: center;
  align-items: center;
}

.modal-content {
  box-shadow: -5px 5px 0px #1d2c5e;
}

.modal-header {
  border-bottom: 0px;
}

.modal-header .close {
  font-size: 34px;
}

.modal-body {
  font-size: 24px;
  padding: 24px;
}

.modal-body h2 {
  font-size: 48px;
  font-weight: 800;
}

.modal-footer button {
  box-shadow: -5px 5px 0px #1d2c5e;
  padding: 10px;
  font-size: 25px;
  width: 115px;
}

#submit {
  float: right;
  position: relative;
  top: -50px;
  right: 5px;
  border: none;
  background-color: transparent;
  transition: all .2s ease-in-out;
  -webkit-transition: all .2s ease-in-out;
  -moz-transition: all .2s ease-in-out;
}

#submit:hover {
  cursor: pointer;
  transform: scale(1.25);
  -webkit-transform: scale(1.25);
  -moz-transform: scale(1.25);
}

#final-score {
  display: none;
}

#final-score .container {
  width: 100%;
  height: 200px;
  background-color: #fff;
  box-shadow: -5px 5px 0px #1d2c5e;
}

.final-score h2 {
  font-size: 40px;
}

.divider {
  display: inline-block;
  padding: 0 10px;
}

.share-buttons {
  margin-top: 30px;
  margin-bottom: 0;
}

#fbLink {
  margin-top: -16px;
  padding: 5px 10px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  background-color: #3B5998;
  color: #fff;
}

#fbLink:hover {
  cursor: pointer;
  background-color: rgb(48, 73, 128)
}

/* ------------------------------------------------------

Extra Large Screen

------------------------------------------------------ */

@media 
screen and (min-width: 768px) and (max-width: 991px) {

  .intro-buttons a, #msg, input#player-guess, .modal-body, .modal-footer button, #counter, #horz-notice p {
    font-size: 20px;
  }

}

/* ------------------------------------------------------

Large Screen

------------------------------------------------------ */

@media 
screen and (max-width: 767px) {

  .logo {
    max-width: 90%;
    height: 140px;
    margin-top: 10px;
  }

  .intro-buttons a, #msg, input#player-guess, .modal-body, .modal-footer button, #counter, #horz-notice p {
    font-size: 20px;
  }

  .intro-buttons {
    margin: 0;
    text-align: center;
  }
  
  .intro-buttons a {
    width: 100%;
    margin-bottom: 20px;
  }

  #about-game {
    margin-left: 0;
  }

  #msg {
    height: 200px;
  }

}

/* ------------------------------------------------------

Medium Screen (Portrait)

------------------------------------------------------ */

@media 
screen and (max-width: 565px) and (orientation: portrait) {

  .intro-buttons a, #msg, input#player-guess, .modal-body, .modal-footer button, #counter, #horz-notice p {
    font-size: 18px;
  }

  .logo {
    height: 40vw;
  }

  .intro-buttons {
    margin-top: 20px;
  }

  .intro-buttons a {
    font-size: 18px;
  }

  #about-game {
    margin-left: 0;
  }

  #msg {
    height: 200px;
    padding: 20px;
    margin-top: 0px;
  }

  #form-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  #submit {
    top: -45px;
  }

}

/* ------------------------------------------------------

iPad

------------------------------------------------------ */

@media 
screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) { 

  #pokemon-img {
    max-width: 65%;
  }

  #form-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

}

@media 
screen and (min-device-width : 768px) and (min-device-width : 1024px) and (orientation : landscape) { 

  #form-controls {
    width: 50%;
    max-width: 700px;
  }

}

/* ------------------------------------------------------

Mobile Landscape

------------------------------------------------------ */

@media 
screen and (min-device-width : 375px) and (max-device-width : 812px) and (orientation : landscape), 
screen and (min-device-width : 414px) and (max-device-width : 736px) and (orientation : landscape),
screen and (max-width: 565px) and (orientation: landscape) {

    #pokemon-img {
      width: 50vh;
      margin-bottom: 80px;
    }

}
