body {
    background: url("../img/background.png") no-repeat center center fixed #E7E7E7;
    
    
    
    /*-webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;*/
    font-family: Helvetica, Sans-Serif;
    overflow:hidden;
    margin:0;
    cursor: pointer;

    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
#filtre{
    width:100%;
    height:100%;
    position:absolute;
    /*background-color:rgb(207,218,175);*/ /* #CFDAAF */
    transition: all 0.4s ease 0s;
    cursor: pointer;
}
#filtre.opaque{
    background-color: rgba(150, 150, 150, 0.6);
}


.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}
.btn-success {
    color: #fff;
    background-color: #5cb85c;
    border-color: #4cae4c;
}
.btn-danger {
    color: #fff;
    background-color: #d9534f;
    border-color: #d43f3a;
}


.fixed-action-btn {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 998;
}
.fixed-action-btn .btn-new-signature {
    display: inline-block;
    color: #fff;
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 0;
    background-color: #00AAD9;
    border-radius: 50%;
    transition: .3s;
    cursor: pointer;
    vertical-align: middle;
    width: 55.5px;
    height: 55.5px;
    line-height: 54px;
    text-align: center;
}
.fixed-action-btn .btn-new-signature.close {
    /*background-color: #E21616;*/
    background-color: #d9534f;
}
.fixed-action-btn .btn-new-signature .fa{
    font-size: 22px;
    padding-top: 17px;
}

.fixed-action-btn .btn-help, .fixed-action-btn .btn-close {
    display: inline-block;
    color: #fff;
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 0;
    border-radius: 50%;
    transition: .3s;
    cursor: pointer;
    vertical-align: middle;
    width: 55.5px;
    height: 55.5px;
    line-height: 54px;
    text-align: center;
}
.fixed-action-btn .btn-help {
    background-color: #343434;
}
.fixed-action-btn .btn-help.no-display {
    display:none;
}
.fixed-action-btn .btn-close {
    background-color: #d9534f;
}
.fixed-action-btn .btn-close.no-display {
    display:none;
}
.fixed-action-btn .btn-help .fa, .fixed-action-btn .btn-close .fa{
    font-size: 22px;
    padding-top: 17px;
}

#cursor{
    width:80px;
    position:absolute;
    display:none;
}
#cursor.no-display{
    display:none !important;
}



.m-signature-pad {
  position: absolute;
  font-size: 10px;
  width: 700px;
  height: 400px;
  top: 50%;
  left: 50%;
  margin-left: -350px;
  margin-top: -200px;
  /*border: 1px solid #e8e8e8;*/
  border: 3px solid #00AAD9;
  /*background-color: #fff;*/
  background-color: #f8f8f8;
  /*box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.08) inset;*/
  /*box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.08);*/
  box-shadow: 0 5px 15px rgba(0,0,0,.5);
  border-radius: 8px;
}
.m-signature-pad.hide {
    visibility: hidden;
}

.m-signature-pad:before, .m-signature-pad:after {
	position: absolute;
  z-index: -1;
  content: "";
	width: 40%;
	height: 10px;
	left: 20px;
	bottom: 10px;
	background: transparent;
	-webkit-transform: skew(-3deg) rotate(-3deg);
	-moz-transform: skew(-3deg) rotate(-3deg);
	-ms-transform: skew(-3deg) rotate(-3deg);
	-o-transform: skew(-3deg) rotate(-3deg);
	transform: skew(-3deg) rotate(-3deg);
	box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
}

.m-signature-pad:after {
	left: auto;
	right: 20px;
	-webkit-transform: skew(3deg) rotate(3deg);
	-moz-transform: skew(3deg) rotate(3deg);
	-ms-transform: skew(3deg) rotate(3deg);
	-o-transform: skew(3deg) rotate(3deg);
	transform: skew(3deg) rotate(3deg);
}

.m-signature-pad--body {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 20px;
  bottom: 60px;
  /*border: 1px solid #f4f4f4;*/
  border: 1px solid #00AAD9;
  background-color:#FFF;
}

.m-signature-pad--body
  canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.02) inset;
  }

.m-signature-pad--footer {
  position: absolute;
  left: 20px;
  right: 20px;
  /*bottom: 20px;*/
  bottom: 10px;
  height: 40px;
}

.m-signature-pad--footer
  .description {
    color: #151313;
    text-align: center;
    /*font-size: 1.9em;
    margin-top: 0.7em;*/
  }
  
  
.m-signature-pad--footer .description .changeColor{
    margin-right: 15px;
    display: inline-block;
}
.m-signature-pad--footer .description .changeColor .fa-pencil-square {
    font-size: 38px;    
}
.m-signature-pad:not(.hide) .m-signature-pad--footer .description .changeColor .dot {
    visibility: hidden;
    font-size: 9px;
}
.m-signature-pad:not(.hide) .m-signature-pad--footer .description .changeColor.colorSelected .dot {
    visibility: visible;
}

  

.m-signature-pad--footer
  .button {
    position: absolute;
    bottom: 0;
  }

.m-signature-pad--footer
  .button.clear {
    left: 0;
    /*right: 105px;*/
  }

.m-signature-pad--footer
  .button.save {
    right: 0;
  }

@media screen and (max-width: 1024px) {
  .m-signature-pad {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    min-width: 250px;
    min-height: 140px;
    margin: 5%;
  }
  #github {
    display: none;
  }
}

@media screen and (min-device-width: 768px) and (max-device-width: 1024px) {
    body{
        background-size: 50%;
    }
  .m-signature-pad {
    margin: 10%;
  }
}

@media screen and (max-height: 320px) {
  .m-signature-pad--body {
    left: 0;
    right: 0;
    top: 0;
    bottom: 32px;
  }
  .m-signature-pad--footer {
    left: 20px;
    right: 20px;
    bottom: 4px;
    height: 28px;
  }
  .m-signature-pad--footer
    .description {
      font-size: 1em;
      margin-top: 1em;
    }
}
