Button click css

by Lucas Silva

HTML

<button>CLICK ME</button>
<button class="blue-shadow">CLICK</button>

CSS

body {
  background: #00897B;
}

button {
  background: #cb4e4e;
  padding: 7px;
  font-weight: bold;
  font-size: 1.4em;
  border: none;
  display: block;
  margin: 7px auto; 
  color: white;
  cursor: pointer;
  border-radius: 5px;
  transition: none;
  box-shadow: 0 6px #ab3c3c;
  outline: none;
  position: relative;
}

button:hover {
  box-shadow: 0 4px #ab3c3c
  top: 2px !important;
}

button:active {
  box-shadow: 0 0;
  top: 6px !important;
}

.blue-shadow {
  background: #246baf;
  box-shadow: 0 7px 0 #1a4c7c, 0 11px 1px rgba(0,0,0,0.2);
  border-radius: 5px;

}

.blue-shadow:hover {
  box-shadow: 0 4px 0 #1a4c7c, 0 7px 0px rgba(0,0,0,0.15);
  top: 2px !important;
}

.blue-shadow:active {
    box-shadow: 0 0;
    top: 6px !important;
    outline: 0;
}