@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root {
  --darkBlue: #19313e;
  --cream: #ffe4c4;
  --emerald: #40755e;
  --gold: #956d3c;
  --bronze: #634625;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  /* background-color: var(--darkBlue) */
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
ul {
  position: relative;
}
ul li {
  list-style: none;
  text-align: center;
}
a {
  color: #333;
  text-decoration: none;
  font-size: 3em;
  padding: 5px 20px;
  display: inline-flex;
  font-weight: 700;
  transition: 0.5s;
}
ul:hover a {
  color: #0002
}
ul li a:hover {
  color: #000;
  background: #fff;
}
a:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 5em;
  z-index: -1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 500px;
  opacity:0;
  transition: letter-spacing 0.5s;
  width: 100vw;
  height: 100vh;

}
a:hover:before {
  content: attr(data-text);
  opacity: 1;
  letter-spacing: 10px;
}
li:nth-child(1) a:before {
  background: #81ecec;
}
li:nth-child(2) a:before {
  background: #ff7675;
}
li:nth-child(3) a:before {
  background: #55efc4;
}
li:nth-child(4) a:before {
  background: #a29bfe;
}
li:nth-child(5) a:before {
  background: #fd79a8;
}
