.button { --shadow: drop-shadow(0px 0px 4px #000000AA); position: relative; background: none; border: none; display: flex; align-items: center; justify-content: center; transition: 150ms ease-out filter; -webkit-filter: var(--shadow); filter: var(--shadow); } .image { position: relative; width: 220px; } .label { position: absolute; font-size: 1.1rem; transition: 150ms ease-out color; color: white; -webkit-user-select: none; /* Safari */ -moz-user-select: none; /* Firefox */ -ms-user-select: none; /* IE10+/Edge */ user-select: none; /* Standard */ p { max-width: 100% !important; } } .button-disabled { filter: grayscale(0.75) var(--shadow); } .label-disabled { color: black; }