*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: "Montserrat", sans-serif;
  font-size: 62.5%;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  background-color: #333;
}

.btn {
  position: relative;
  padding: 20px 40px;
  border: none;
  border-radius: 0.4em;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 5rem;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.3s;
  z-index: 0;
}
.btn::before {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
  background-color: #afafaf;
  z-index: -1;
}
.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}/*# sourceMappingURL=main.css.map */