/**
 * -------- global css
 */

#container-play-tennis {
  position: relative;
  text-align: center;
  width: 100%;
  background-color: #243b65;
}

#pause-wrapper {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: white;
    z-index: 3;
}

#pause-wrapper .pause-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 340px;
    padding: 20px;
    color: black;
    background: #eff4f5;
    border: 2px solid black;
    outline: 1px solid #ffffff;
    outline-offset: 4px;
    transform: translate( -50%, -50% );
}

#pause-wrapper .pause-inner p {
  text-transform: uppercase;
  font-size: 30px;
  color: #292929;
  font-family: "LacosteSansCondensedLight";
  margin: 0 0 20px;
}

#pause-game {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

#resume-game {
    color: white;
    cursor: pointer;
    width: 50px;
    margin: 0;
    padding: 0;
}

#pause-game img,
#resume-game img {
  display: inline-block;
  vertical-align: top;
}

/**
 * -------- Global page
 */

.fadeInOpacity {
  opacity: 1;
  animation-name: fadeInOpacity;
  animation-iteration-count: 1;
  animation-timing-function: ease-in;
  animation-duration: 2s;
  display: block;
}

@keyframes fadeInOpacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.rectangle-player {
  background-image: url("../imgs/game/rectangle-game.png");
  width: 10px;
  height: 25px;
  display: block;
  text-align: center;
  position: absolute;
  margin-left: 50%;
  z-index: 1;
  top: 0%;
}

#rectangle-player-bottom {
  top: 96%;
}

@media screen and (max-width: 700px)  {
  #rectangle-player-bottom {
    top: 95%;
  }
}

/**
 * -------- Start the game
 */
#container-start-the-game {
  background: #eff4f5;
  border: 2px solid black;
  outline: 1px solid #ffffff;
  outline-offset: 4px;
  width: 340px;
  height: auto;
  margin: auto;
  margin-bottom: 25px;
  padding: 20px;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#the-game {
  color: #ffffff;
  font-family: "LacosteSansCondensedLight";
  font-size: 13px;
  padding-top: 40px;
  display: block;
  letter-spacing: 7px;
}

#play-tennis {
  display: block;
  max-width: 400px;
  height: 87px;
  margin: 29px auto 0;
  background-repeat: no-repeat;
  background-size: contain;
}

/* #play-tennis-small {
  position: relative;
  top: 35px;
  display: none;
  max-width: 145px;
  height: 24px;
  margin: auto;
} */

#loading-game {
  cursor: default;
}

#button-start-now {
  display: none;
}

#button-start-now {
  border: 1px solid #c8c8c8;
  border-radius: 3px;
  cursor: pointer;
  width: 200px;
  height: 50px;
  text-align: center;
  font-size: 15px;
  font-family: "LacosteSansCondensedBold";
  margin: auto;
  margin-top: 40px;
  text-transform: uppercase;
}

.play-tennis-description {
  display: block;
  position: relative;
  color: #292929;
  font-size: 24px;
  font-family: "LacosteSansCondensedLight";
  letter-spacing: 3px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.play-tennis-second-description, .play-ending {
  font-size: 17px;
  font-family: "LacosteSansCondensedLight";
  color: #292929;
  margin-bottom: 15px;
  display: block;
  text-transform: initial;
}

.play-ending {
  display: none;
}

.game-image-parfum-mobile {
  display: none;
  margin: auto;
  background-image: url("../imgs/game/parfum-game-mobile.png");
  width: 59px;
  height: 105px;
}

.game-image-parfum {
  margin: auto;
  max-width: calc(50%);
  position: relative;
}

.game-image-parfum img {
  width: 100%;
  max-width: 100%;
}

.form-item-email label {
  float: left;
}

#popin-win .game-image-parfum {
  display: inline;
}

@media screen and (max-width: 700px)  {
  #container-start-the-game {
    width: 90%;
    height: auto;
    margin-top: 20px;
    top: 50%;
  }

  #game-image-parfum {
    display: none;
  }

  #game-image-parfum-mobile {
    display: flex;
    margin: auto;
  }

  #play-tennis {
    position: relative;
    top: 10px;
    max-width: 145px;
    height: 24px;
    margin: 0 auto;
  }
}

@media screen and (max-height: 860px)  {
  #play-tennis {
    position: relative;
    top: 10px;
    max-width: 145px;
    height: 24px;
    margin: 0 auto;
  }
}

/**
 * -------- Choose your character
 */
#container-choose-your-character {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

#choose-your-player-title {
  font-size: 19px;
  font-family: "LacosteSansCondensedLight";
  color: #fff;
  letter-spacing: 7px;
  text-transform: uppercase;
}

#choose-your-player-subtitle {
  font-size: 17px;
  font-family: "LacosteSansCondensedLight";
  color: #fff;
  margin-top: 20px;
  margin-bottom: 35px;
  position: relative;
  display: block;
}

.choose-your-player-character {
  display: inline-block;
}

#player-character-image-crocodile:hover, #player-character-image-homme:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.choose-your-player-item {
  font-size: 15px;
  font-family: "LacosteSansCondensedLight";
  color: #fff;
  text-transform: uppercase;
}

.player-character-image {
  position: relative;
  width: 112px;
  height: 112px;
  margin-bottom: 20px;
  border: 1px solid #506284;
  border-radius: 3px;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
}

.player-character-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate( -50%, -50%);
}

#container-crocodile {
  margin-right: 112px;
}

#player-character-image-crocodile img {
  width: 60%;
}

#player-character-image-homme img {
  width: 40%;
}

@media screen and (max-width: 700px)  {
  #container-crocodile {
    margin-right: 30px;
  }
}

/**
 * game
 */

#launch-game {
  visibility: hidden;
  display: none;
}

canvas {
  margin: auto;
  cursor: none;
}

/**
 * Popin
 */

#overlay-popin-form {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #313131;
  z-index: 1999;
  opacity: 1;
  display: none;
}

.content-inline {
  display: inline-block;
}

.popin-game-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.popin-game {
  display: none;
  table-layout: fixed;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: 750px;
  height: 400px;
  transform: translate(-50%, -50%);
  background: #f4f4f4;
  color: #292929;
  font-family: "LacosteSansCondensedLight";
  border: 2px solid black;
  outline: 1px solid #ffffff;
  margin: auto;
  text-transform: none;
}

.popin-game-inner {
  display: table-cell;
  vertical-align: middle;
}

.popin-game-title {
  font-size: 24px;
  letter-spacing: 7px;
  margin-bottom: 15px;
  position: relative;
  display: block;
  text-transform: uppercase;
  text-align: center;
}

#popin-win-form-container-logo {
  width: 30%;
  float: left;
  text-align: center;
  margin-top: 20%;
  left: -60px;
  position: relative;
}

#popin-win-form-container {
  width: 100%;
}

#popin-win-form-container {
  float: left;
}

#popin-win {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  max-height: 100%;
  height: auto;
  padding: 60px 120px 50px;
  background-color: #EEEEEE;
  font-family: "LacosteSansCondensedLight";
  overflow: auto;
  border: none;
  z-index: 2000;
}

#popin-win-form {
  float: right;
  text-align: left;
  width: 70%;
}

.form-item-error {
  color: red;
  display: block;
  position: relative;
  text-transform: none;
}

.form-item-error-civility {
  top: 0px;
}

.form-item-firstname {
  float: left;
  width: 50%!important;
}

.form-item-lastname {
  float: left;
  width: 50%!important;
}

.birthday {
  padding: 5px 11px;
  border: 1px solid #ededed;
  cursor: pointer;
  background: #fff;
  width: 105px;
  height: 40px;
  text-align-last: center;
  padding-right: 29px;
  width: 30%;
  height: 40px;
  text-transform: none;
}

.label-subscribe {
  text-transform: none;
}

#birthday-container {
  width: 100%;
  display: block;
  margin-top: 4px;
}

#popin-win-form input[type=text], #popin-win-form input[type=email] {
  width: 90%;
  height: 38px;
  border-radius: 3px;
  border: 1px solid #e5e5e5;
  margin-top: 6px;
  padding-left: 20px;
  text-transform: none;
}

#popin-win-form input[type=email] {
  width: 91%;
}

.form-item-alone {
  max-width: 336px;
}

#popin-win-form .label-inline, #popin-win-form .form-items label, #popin-win-form .form-item-alone label {
  color: #454545;
  font-family: LacosteSansCondensedBold;
  text-transform: uppercase;
  font-weight: bold;
  margin-right: 15px;
}

label input[type=checkbox], label input[type=radio] {
  top: 0px;
}

button, html, input, select, textarea {
  font-family: "LacosteSansCondensedLight";
}

input:focus, select:focus {
  outline: none;
}

#popin-win-form .form-items .form-item {
  width: auto;
  max-width: 336px;
}

#popin-win-form input[type=text]::placeholder {
  color: #d3d3d3;
}

.form-item-civility .content-inline label {
  margin-right: 20px;
  text-transform: none;
}

.form-item {
  margin-bottom: 20px;
}

.download-legals a {
  display: inline-block;
  margin-top: 10px;
  color: black;
  font-size: 16px;
}

.popin-game-description {
  font-size: 17px;
  position: relative;
  display: block;
  margin-top: 30px;
  text-align: center;
  margin:auto;
  margin-bottom: 20px;
  margin-top: 40px;
}

@media screen and (max-width: 1200px)  {
  #popin-win {
    width: 100%;
    height: 100%;
  }
}

@media screen and (max-width: 700px)  {
  .form-item-error {
    display: none!important;
  }

  #popin-win {
    padding-top: 20px;
  }

  #popin-win .fragrance-button {
    margin-top: 0px;
  }

  #popin-win-form .form-items .form-item {
    width: 50%;
  }

  .form-item-firstname {
    float: left;
  }

  .form-item-lastname {
    float: left;
  }

  #game-image-parfum-mobile {
    display: none;
  }

  #popin-button-game-win {
    top: 10px;
  }

  .play-tennis-description {
    font-size: 18px;
  }

  .game-image-parfum {
    display: none;
  }
  /* .game-image-parfum-mobile {
    display: flex;
  }
  */

  .popin-game-title {
    margin-top: 0px;
  }

  .popin-game-description {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  #popin-win-form-container-logo {
    width: auto;
    float: none;
  }

  #popin-win-form {
    width: 92%;
  }

  #popin-win .game-image-parfum {
    display: none;
  }

  #popin-win-form input[type=text], #popin-win-form input[type=email] {
    height: 30px;
    margin-top: 0px;
  }

  #popin-win {
    margin: auto;
    margin-bottom: 10px;
    font-size: 13px;
    padding: 60px 0 0;
  }

  #popin-win-form-container-logo {
    display: none;
  }

  .popin-game-title {
    font-size: 15px;
    letter-spacing: 5px;
  }

  .form-item {
    margin-bottom: 15px;
  }
}

/**
* Popin lose
*/

#container-lose {
  display: flex;
  justify-content: center;
  align-items: center;
}

#you-lose-restart {
  margin-top: 50px;
}

#you-lose-text-restart {
  margin-top: 23px;
  position: relative;
  display: block;
  font-family: "LacosteSansCondensedBold";
  text-transform: uppercase;
  font-size: 15px;
}

/* @media screen and (max-width: 1280px)  {
    #container-play-tennis {
        height: calc( 100vh - 50px );
        min-height: calc( 100vh - 50px );
    }
} */

/*
 * Mobile
 */

@media screen and (max-height: 480px)  {
  #the-game {
    padding-top: 20px;
  }

  #container-choose-your-character {
    top: initial;
    bottom: 30px;
    transform: none;
  }

  .popin-game {
    padding-top: 60px;
    height: auto;
  }
}