.charged-button { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 0px; width: 220px; height: 3.5rem; border: none; overflow: hidden; outline: none; isolation: isolate; cursor: pointer; background: transparent; color: black; transition: box-shadow 120ms ease, transform 120ms ease, 150ms ease-out filter, 150ms ease-out color; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; --shadow: drop-shadow(0px 0px 4px #000a); filter: var(--shadow); } .charged-button.button-disabled { opacity: 0.5; filter: grayscale(0.75) var(--shadow); cursor: not-allowed; } .charged-button:active:not(.button-disabled) { transform: scale(0.97); } .charged-button-frame, .charged-button-fill { pointer-events: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: 100% 100%; background-position: center; background-repeat: no-repeat; } .charged-button-frame { z-index: 0; } .charged-button-fill { z-index: 1; /*filter: brightness(2);*/ will-change: clip-path; } .charged-button-label { position: relative; z-index: 2; pointer-events: none; font-size: 1.1rem; -webkit-user-select: none; /* Safari */ -moz-user-select: none; /* Firefox */ -ms-user-select: none; /* IE10+/Edge */ user-select: none; /* Standard */ /*text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.7);*/ } .charged-button-label-clipped { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; z-index: 3; pointer-events: none; font-size: 1.1rem; color: white; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; will-change: clip-path; }