body {
  font-size: 1.0em;
  font-family: 'Quantico', sans-serif;
  background:#b0bec5;
}
.top-body{
  background: #b0bec5;
}
.bottom-body{
  margin-top: -12px;
  background: repeating-linear-gradient(0, transparent, transparent 2px, rgba(0, 0, 0, 0.25) 3px, rgba(0, 0, 0, 0.25) 3px), #455a64;
}
/************************************************/
/***********************Chat**********************/
/************************************************/
a {
  text-decoration: none;
  color: black;
}
a:hover {
  text-decoration: line-through;
  color: red;
}

li {
  list-style: none;
  font-size: 0.9em;
  margin-left: -20px;
}
button {
  cursor: pointer;
}
img {
  display: block;
}
#feedback {
  font-size: 0.75em;
  font-style: italic;
  color: rgb(53, 53, 53);
  height: 15px;
  margin-top: -12px;
  margin-bottom: 3px;
}
#item, #ajouter {
  margin-top: -15px;
}
#console{
  padding: 0px 3px 0px 3px;
}
#console, #liste {
  color: blue;
  height: 87px;
  overflow: auto;
  word-wrap: break-word;
  border: 1px solid black;
}
#reset, #send-reset{
  margin-top: -15px;
}
/************************************************/
/***********************HUD**********************/
/************************************************/
#red-healt,#blue-healt{
  margin: 0px 0px 0px 0px;
  height: 32px;
}
#red-healt-number, #blue-healt-number {
  position: absolute;
  color: black;
  left: 175px;
  font-size: 1.75em;
  font-weight: bold;
}
/************************************************/
/************************Map*********************/
/************************************************/
#blue-game-move, #red-game-move {
  font-size: 1.25em;
  margin-bottom: 5px;
}
#blue-weapon,#red-weapon {
  margin-left: auto;
  margin-right: auto;
  width: 100px;
  margin-bottom: 7px;
}
#blue-weapon-damage, #red-weapon-damage {
  display: block;
  position: absolute;
  padding: 25px 0px 0px 25px;
  width: 100px;
  font-size: 2em;
  right: 25px;
}
h5 {
  font-size: 1.1em;
  margin-top: 2px; 
  background: white;
  border-radius: 3px;
  padding: 2px 0px 2px 0px;
}
#game-map {
  background: url("/public/images/square_01.png");
  width: 1000px;
  height: 1000px;
  position: relative;
}
#win-message{
  background: rgba(10, 2, 15, 0.5);
  padding: 400px 0px 0px 0px;
  color: white;
  position: absolute;
  width: 100%;
  height: 100%;
  font-size: 4.0em;
  z-index: 150;
}
#spectator{
  background: rgb(10, 2, 15);
  position: absolute;
  color: white;
  width: 1000px;
  height: 1000px;
  top: -1000px;
  z-index: 140;
}
#spectator p{
  padding-top: 400px;
  font-size: 1.5em;
}
#game-map, #blue-player, #red-player,
#red-player-end, #blue-player-end, #blue-action, #red-action, 
#win-message, #spectator, #blue-hud, #red-hud  {
  display: none;
}
#blue-top, #blue-down, #blue-left, #blue-right,
#red-top, #red-down, #red-left, #red-right{
  font-size: 3.5em;
  color: white;
  -webkit-transition-duration: 0.35s; /* Safari */
  transition-duration: 0.35s;
}
#blue-top:hover, #red-top:hover{
  height: 100px;
  top: -100px;
}
#blue-down:hover, #red-down:hover{
  height: 100px;
  bottom: -100px;
}
#blue-left:hover, #red-left:hover{
  width: 100px;
  left: -100px;
}
#blue-right:hover, #red-right:hover{
  width: 100px;
  right: -100px;
}
/************************************************/
/********************Player*****************/
/************************************************/
#blue-player {
  position: absolute;
  width: 100px;
  height: 100px;
  top: 900px;
  left: 0px;
  z-index: 100; 
}
#red-player {
  position: absolute;
  width: 100px;
  height: 100px;
  top: 00px;
  left: 900px;
  z-index: 100; 
}
/************************************************/
/********************Direction*******************/
/************************************************/
#blue-top, #red-top {
  position: absolute;
  top: -50px;
  width: 100px;
  height: 50px;
  border: none;
  background: linear-gradient(0deg, #05c005cb, #05c00500);
  z-index: 40;
}
#blue-down, #red-down {
  position: absolute;
  bottom: -50px;
  width: 100px;
  height: 50px;
  border: none;
  background: linear-gradient(180deg, #05c005cb, #05c00500);
  z-index: 40;
  color: white;
}
#blue-left, #red-left {
  position: absolute;
  left: -50px;
  width: 50px;
  height: 100px;
  border: none;
  background: linear-gradient(-90deg, #05c005cb, #05c00500);
  z-index: 40;
}
#blue-right, #red-right {
  position: absolute;
  right: -50px;
  width: 50px;
  height: 100px;
  border: none;
  background: linear-gradient(90deg, #05c005cb, #05c00500);
  z-index: 40;
}
/*
source checkbox : https://codepen.io/BuddyLReno/pen/boGRPO
shake effect : https://codepen.io/sdras/pen/aOgMON/
*/
.inputGroup {
  background-color: #fff;
  display: block;
  margin-top: 3px;
  font-size: 1.15em;
  font-weight: bold;
  position: relative;
  border-radius: 3px;
}
.inputGroup label {
  padding: 2px 0px 2px 5px;
  width: 100%;
  display: block;
  color: #3C454C;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 200ms ease-in;
  overflow: hidden;
}
.inputGroup label:before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  content: '';
  background-color: #607d8b;
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%) scale3d(1, 1, 1);
  transform: translate(-50%, -50%) scale3d(1, 1, 1);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  z-index: -1;
}
.inputGroup label:after {
  width: 30px;
  height: 30px;
  content: '';
  border: 2px solid #D1D7DC;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.414 11L4 12.414l5.414 5.414L20.828 6.414 19.414 5l-10 10z' fill='%23fff' fill-rule='nonzero'/%3E%3C/svg%3E ");
  background-position: 2px 3px;
  border-radius: 50%;
  z-index: 2;
  position: absolute;
  right: 30px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  cursor: pointer;
  transition: all 200ms ease-in;
}
.inputGroup input:checked~label {
  color: #fff;
}
.inputGroup input:checked~label:before {
  -webkit-transform: translate(-50%, -50%) scale3d(56, 56, 1);
  transform: translate(-50%, -50%) scale3d(56, 56, 1);
  opacity: 1;
}
.inputGroup input:checked~label:after {
  background-color: #263238;
  border-color: #263238;
}
.inputGroup input {
  width: 30px;
  height: 30px;
  order: 1;
  z-index: 2;
  position: absolute;
  right: 30px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  cursor: pointer;
  visibility: hidden;
}
/*************/
.shake{
  animation: shake 0.9s cubic-bezier(.36,.07,.19,.97) both;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 100px;
}
@keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }
  
  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(4px, 0, 0);
  }
}