@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
}

section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background-color: aliceblue;
}

.container {
  background: darkkhaki;
  padding: 60px;
  border-radius: 8px;
}

.main-title {
  font-size: 2rem;
  font-weight: 600;
  color: bisque;
}

.demo-1,
.demo-2,
.demo-3 {
  margin: 80px 0;
  padding: 30px;
  background-color: white;
  text-align: center;
  color: teal;
  box-shadow: 0px 0px 20px #00000010;
  border-radius: 8px;
}

.tooltip {
  position: relative;
}
.tooltip::after,
.tooltip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: fit-content;
  height: auto;
  background-color: teal;
  transform: translate(-50%, -100%);
  transition: 0.3s ease-in-out transform;
}
.tooltip::before {
  top: -10px;
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
  color: white;
  content: attr(data-tooltips);
  transform: translate(-50%, -100%) scale(0);
  transform-origin: bottom; /* joining tooltip's top & bottom parts */
}
.tooltip::after {
  width: 10px;
  height: 10px;
  transform: translate(-50%, -150%) rotate(45deg) scale(0);
  transform-origin: top; /* joining tooltip's bottom & top parts */
}
/* Making the tooltip appear whith mouse hover */
.tooltip:hover::before {
  transform: translate(-50%, -100%) scale(1);
}
.tooltip:hover::after {
  transform: translate(-50%, -150%) rotate(45deg) scale(1);
}

.icon {
  display: inline-block;
}
.icon ion-icon {
  margin-bottom: -4px;
  color: coral;
  font-size: 22px;
}
