/* From Uiverse.io by catraco */
.btn {
--color: #3d8bfd;
position: relative;
display: flex;
justify-content: center;
align-items: center;
transition: all .5s;
border: none;
background-color: transparent;
}
.btn div {
letter-spacing: 2px;
font-weight: bold;
background: var(--color);
border-radius: 2rem;
color: white;
padding: 1rem;
}
.btn::before {
content: '';
z-index: -1;
background-color: var(--color);
border: 2px solid white;
border-radius: 2rem;
width: 110%;
height: 100%;
position: absolute;
transform: rotate(10deg);
transition: .5s;
opacity: 0.2;
}
.btn:hover {
cursor: pointer;
filter: brightness(1.2);
transform: scale(1.1);
}
.btn:hover::before {
transform: rotate(0deg);
opacity: 1;
}
.btn svg {
transform: translateX(-200%);
transition: .5s;
width: 0;
opacity: 0;
}
.btn:hover svg {
width: 25px;
transform: translateX(0%);
opacity: 1;
}
.btn:active {
filter: brightness(1.4);
}
.button01 {
--color-1: #e5fb6a;
--color-2: #2bf46e;
--color-1-shadow: #e5fb6a23;
--color-2-shadow: #2bf46e23;
--color-1-shadow-focus: #e5fb6a67;
--color-2-shadow-focus: #2bf46e67;
cursor: pointer;
padding: 1rem 1.5rem;
border-radius: 0.75rem;
border: 0;
font-size: 1rem;
background-image: linear-gradient(
to right bottom,
var(--color-1) 0%,
var(--color-2) 100%
);
box-shadow:
-4px -4px 16px 8px var(--color-1-shadow),
4px 4px 16px 8px var(--color-2-shadow);
transition: all 0.3s cubic-bezier(0.6, 0.12, 0.39, 0.83);
}
.button01:hover,
.button01:active,
.button01:focus,
.button01:focus-visible,
.button01:focus-within {
box-shadow:
-4px -4px 32px 4px var(--color-1-shadow-focus),
4px 4px 32px 4px var(--color-2-shadow-focus);
}
.button01:hover {
filter: contrast(1.25);
}
/* From Uiverse.io by ArturCodeCraft */
/* <reset-style> ============================ */
button {
border: none;
background: none;
padding: 0;
margin: 0;
cursor: pointer;
font-family: inherit;
}
/* <main-style> ============================ */
.primary-button {
min-width: 111px;
height: 56px;
border-radius: 40px;
background: #000;
padding: 16px 40px;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
font-size: 16px;
font-weight: 400;
line-height: 1.5;
letter-spacing: -0.32px;
transition: background .2s ease-in-out, color .2s ease-in-out;
position: relative;
}
.primary-button::before {
content: '';
width: 100%;
height: 100%;
border-radius: 40px;
background: linear-gradient(69deg, #c3aab2 -4.77%, #9ec 46.72%, #80c0c8 90.23%, #4B8bfa 134.46%);
position: absolute;
top: 0;
left: 0;
opacity: 0;
z-index: -1;
transition: opacity .2s ease-in-out;
}
.primary-button:hover {
background: transparent;
color: #000;
}
.primary-button:hover::before {
opacity: 1;
}