*,
::before,
::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
:root {
  --color-one: red;
  --color-two: black;
  --background-color: #f6f6f6;
}

body {
  background-color: var(--background-color);
  margin: 0;
}

span {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: relative;
  top: 50vh;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  height: 5rem;
  padding: 1rem;
  background-color: var(--color-one);
  color: white;
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
}

span::after {
  content: '';
  border: 1rem solid;
  border-color: var(--color-two) transparent transparent transparent;
  position: absolute;
  top: -2rem;
  visibility: hidden;
  opacity: 0;
}

span::before {
  content: 'this Is Tooltip Content';
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  position: absolute;
  top: -6rem;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 21rem;
  height: 4rem;
  background-color: var(--color-two);
  -webkit-transition-duration: 0s;
  -o-transition-duration: 0s;
  transition-duration: 0s;
  opacity: 0;
  visibility: hidden;
}

span:hover::before,
span:hover::after {
  -webkit-transition-duration: 1s;
  -o-transition-duration: 1s;
  transition-duration: 1s;
  opacity: 1;
  visibility: visible;
}

/* personal footer */

footer {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  line-height: 1.5;
  text-align: center;
}

.platform {
  font-weight: 600;
  color: #2eca7f;
}

.coder {
  font-weight: 600;
  color: #cf2937;
}

a {
  text-decoration: none;
}
