@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@700&display=swap');
:root {
  --body-color: #E5F3FF;
  --primary-color: #a6cbf2;
}

* {
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
  border: none;
  font-family: 'Kanit', sans-serif;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background-color: var(--body-color);
}

button.main {
  padding: 0 2.2rem;
  border-radius: 2rem;
  width: 10rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 4rem;
  background-color: var(--primary-color);
  color: #fff;
  position: relative;
  cursor: pointer;
}

.text{
  position: relative;
  z-index: 10;
}

button.main::before {
  content: '';
  position: absolute;
  width: 80%;
  height: 40%;
  background-color: var(--primary-color);
  bottom: -5px;
  border-radius: 5rem;
  filter: blur(12px);
  left: 0;
  right: 0;
  margin: auto;
  opacity: 0;
  transition: opacity .4s ease-in-out;
}

.tool{
  position: absolute;
  inset: 0;
  margin: auto;
  pointer-events: none;
  opacity: 0;
  transform-origin: center;
  transition:
    opacity .4s ease-in-out,
    transform .6s ease-in-out;
}

.cone{
  transform: rotate(45deg) scale(.3) translate(20px, -110px);
  filter: blur(.5px);
}
.icosahedron{
  transform: rotate(-45deg) scale(.3) translate(-20px, 90px);
  filter: blur(2px);
}
.sphere{
  transform: scale(.4) translate(-70px, -70px);
  filter: blur(1px);
}
.torus{
  transform: rotate(90deg) scale(.3) translate(30px, 140px);
  filter: blur(1px);
}


button.main:hover::before {
  opacity: 1;
}


button.main:hover .cone{
  transform: rotate(45deg) scale(.3) translate(25px, -105px);
}
button.main:hover .icosahedron{
  transform: rotate(-45deg) scale(.3) translate(-15px, 95px);
}
button.main:hover .sphere{
  transform: scale(.4) translate(-65px, -65px);
}
button.main:hover .torus{
  transform: rotate(90deg) scale(.3) translate(35px, 145px);
}

button.main:hover .tool {
  opacity: 1;
}