
.m-signature-pad {
  border: 1px solid #e8e8e8;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.08) inset;
  border-radius: 4px;
}

.m-signature-pad:before, .m-signature-pad:after {
	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 {
  border: 1px solid #f4f4f4;
  height: 500px !important;
}

.m-signature-pad--body
  canvas {
    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;
  height: 40px;
}

.m-signature-pad--footer
  .description {
    color: #C3C3C3;
    text-align: center;
    font-size: 1.2em;
    margin-top: 1.8em;
  }

.m-signature-pad--footer
  .button {
    position: absolute;
    bottom: 0;
  }

.m-signature-pad--footer
  .button.clear {
    left: 0;
  }

.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: 540px;
    min-height: 540px;
    margin: 5%;
  }
  #github {
    display: none;
  }
  .m-signature-pad--body {
    border: 1px solid #f4f4f4;
    
    height: 450px !important;
  }
  
  
}

/*@media screen and (min-width: 768px) and (max-height:1024px) {*/
  @media only screen and (min-width : 768px) and (max-width : 1024px)  and (orientation : portrait){
  .m-signature-pad {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    min-width: 250px;
    min-height: 540px;
    min-height: 540px;
    margin: 5%;
  }
  #github {
    display: none;
  }
  .m-signature-pad--body {
    border: 1px solid #f4f4f4;
    
    height: 650px !important;
  }
  
}
/**For Apple **/
@media screen and (min-device-width: 768px) and (max-device-width: 1024px) {
  .m-signature-pad {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    min-width: 220px;
    min-height: 140px;
    margin: 1%;
  }
  
  .m-signature-pad--body
    canvas {
    left: 0;
    top: 0;
    width: 100%;
    height: 550px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.02) inset;
  }
  
  .m-signature-pad--footer {
    left: 20px;
    right: 10px;
    bottom: 4px;
    height: 50px;
  }
  .m-signature-pad--footer
    .description {
      font-size: 1em;
      margin-top: 1em;
    }
}


/**For Nexus **/
@media screen and (min-device-width: 360px) and (max-device-width:640px) {
    .m-signature-pad {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    min-width: 250px;
    min-height: 140px;
    margin: 1%;
  }
  
  .m-signature-pad--footer {
    left: 20px;
    right: 40px;
    bottom: 4px;
    height: 30px;
  }
  
  .m-signature-pad--footer
    .description {
      font-size: 1em;
      margin-top: 1em;
    }
}

@media screen and (max-height: 640px) and (max-device-width:360px) {
	.m-signature-pad {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    min-width: 200px;
    min-height: 140px;
    margin: 1%;
  } 
  
  .m-signature-pad--body {
    left: 0;
    right: 0;
    top: 0;
    bottom: 32px;
  }
  
  .m-signature-pad--body
    canvas {
    left: 0;
    top: 2%;
    width: 200px;
    height: 150px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.02) inset;
  }
  
  .m-signature-pad--footer {
    left: 20px;
    right: 20px;
    bottom: 4px;
    height: 28px;
  }
  .m-signature-pad--footer
    .description {
      font-size: 1em;
      margin-top: 1em;
    }
}
