@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --darkBlue: #19313e;
  --cream: #ffe4c4;
  --emerald: #40755e;
  --gold: #956d3c;
  --bronze: #634625;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: var(--cream);
  font-family: 'Raleway', Arial, sans-serif;
}
ul {
  margin: 0;
  padding: 0;
}
li {
  position: relative;
  list-style: none;
  margin: 10px 0px;
  overflow: hidden;
}
a {
  position: relative;
  display: block;
  text-align: center;
  margin: 0;
  padding: 5px 10px;
  text-transform: uppercase;
  transition: .5s;
  font-size: 60px;
  font-weight: 800;
  text-decoration: none;
  color: transparent;
}
a:before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 5px 0;
  color: #262626;
  box-sizing: border-box;
  transition: .5s;
  /* transition-delay: .2s; */
  clip-path: polygon(0 0, 100% 0, 100% 51%, 0 51%);
  }
  a:after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 5px 0;
    color: #262626;
    box-sizing: border-box;
    transition: .5s;
    /* transition-delay: .2s; */
    clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
    }
    a:hover:before {
      color: var(--gold);
      transform: translate(10px, -3px);
    }
    a:hover:after {
      color: var(--emerald);
      transform: translate(-10px, 3px);
    }
    li:before {
      content: '';
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 100%;
      height: 1px;
      background-color: var(--darkBlue);
      left: -100%;
      transition: .5s;
    }
    li:hover:before {
      left: 100%;

    }