.txt-wrapper {
  position: relative;
  perspective: 40em;
  display: grid;
  transform-style: preserve-3d;
}

.txt-card {
  grid-area: 1 / 1;
  height: 350px;
  width: 800px;
  transform: translateX(10px) rotateY(25deg) rotateX(10deg);
  background: #ffff;
  border: 5px solid;
  border-image: linear-gradient(315deg, #03a9f4 0%, #ff0058 100%);
  border-image-slice: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 30px;
  color: #000;
  text-transform: none;
  /* font-size: 10px;
  font-weight: 900; */
  backface-visibility: hidden;
  box-shadow: 0 10px 30px -3px rgba(0,0,0,.1);
}

.txt-card h1 {
  font-size: 20px;
  text-align: center;
  color: rgb(0, 0, 0);
}

.txt-card p {
  font-size: 17px;
  text-align: center;
  margin-top: 20px;
  color: black;
}

/* .txt-card .enclosed {
  background: #000;
  line-height: 1;
  color: rgba(249, 198, 26, 1);
  padding: 0 5px;
  display: inline-block;
  transform: translate(-1px, 1px) scale(0.75);
  transform-origin: right center;
} */

.txt-wrapper:before {
  --bw: 9px;
  grid-area: 1 / 1;
  content: '';
  backface-visibility: hidden;
  height: 100%;
  width: 100%;
  margin-top: calc(-1 * var(--bw));
  margin-left: calc(-1 * var(--bw));
  background: transparent;
  transform: translateX(-60px) rotateY(-30deg) rotateX(15deg) scale(1.03);
  pointer-events: none;
  border: var(--bw) solid;
  border-image: linear-gradient(315deg, #03a9f4 0%, #ff0058 100%);
  border-image-slice: 1;
  box-sizing: content-box;
}


.txt-wrapper:hover > div,
.txt-wrapper:hover:before {
  transform: none;
}


.txt-wrapper > div,
.txt-wrapper:before {
  will-change: transform;
  transition: .3s transform cubic-bezier(.25,.46,.45,1);
}


.txt-animate {
  height: 100%;
}

.txt-animate {
  display: grid;
  place-items: center;
  margin-top: 180px;
  margin-bottom: 180px;
  /* background:
    linear-gradient(to bottom right, #3C4BBD 15%, transparent),
    radial-gradient(circle at 100% 0%, rgba(255,255,255,.2) 10%, transparent 20%) center center / 15px 15px,
    linear-gradient(to bottom right, #3C4BBD, #57ADD8); */
}


/* button */

.buttonheader {
	--w: 180px;
	--h: 60px;
	--icon-size: 25px;
	--text-color: rgb(236, 236, 243);
	--box-glow-color: transparent;
	--box-glow-blur: 20px;
	position: relative;
	min-width: var(--w);
	min-height: var(--h);
	border-radius: var(--h);
	display: flex;
	justify-content: center;
	align-items: center;
	border: none;
	font-family: "Montserrat";
	color: var(--text-color);
	background: rgba(4, 8, 20, 0.618);
	box-shadow: 0 0 0 1px rgb(200 200 220 / 0.22),
		0 0 var(--box-glow-blur) var(--box-glow-color),
		inset 0 0 26px -10px var(--box-glow-color);
	overflow: hidden;
	cursor: pointer;
	transition: box-shadow 500ms ease;
	z-index: 2;
}
.buttonheader::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(200, 200, 220, 0.096);
	box-shadow: inset 0 0px 24px 0 rgb(170 230 250 / 0.12);
	border-radius: var(--h);
	z-index: 1;
	transition: transform 500ms ease, box-shadow 500ms ease;
}

.textbtn,
.iconbtn {
	z-index: 2;
}

.textbtn {
	transform: translateX(-50%);
	font-family: "Montserrat";
	transition: transform 500ms ease;
  	font-size: medium;
}

.iconbtn {
	position: absolute;
	width: var(--icon-size);
	height: var(--icon-size);
	left: 0;
	transform: translateX(calc((var(--w)) / 2 + 8px));
	transition: transform 500ms ease, color 500ms ease;
}

.svgbtn {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.buttonheader:active {
	--box-glow-blur: 36px;
}
.buttonheader:hover,
.buttonheader:active {
	--box-glow-color: var(--color);
}
.buttonheader:hover::before,
.buttonheader:active::before {
	transform: translateX(65%);
	box-shadow: inset 0 0px 0px 0 transparent;
}
.buttonheader:hover .textbtn,
.buttonheader:active .textbtn {
	transform: translateX(0%);
	animation-play-state: running;
}
.buttonheader:hover .iconbtn,
.buttonheader:active .iconbtn {
	transform: translateX(calc(var(--w) - var(--icon-size) - 19px));
	color: var(--color);
}

.buttonheader:focus-visible {
	outline: none;
}
.buttonheader:focus-visible:not(:hover, :active) {
	--box-glow-color: rgb(114 114 114 / 0.5);
}