:root {
  --darkBlue: #19313e;
  --cream: #ffe4c4;
  --emerald: #40755e;
  --gold: #956d3c;
  --bronze: #634625;
}

body {
  margin: 0;
  /* padding:0; */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: var(--darkBlue);
  /* box-sizing: border-box; */
}
.line {
  /* margin: 0;
  padding: 0; */
  width: 300px;
  border-bottom: 4px solid white;
  position: relative;
  animation: lineTilt 2s linear 10;
}
.hexagon {
  /* margin: 0;
  padding: 0; */
  position: absolute;
  left: 0px;
  bottom: 14px;
  width: 50px;
  height: 30px;
  background-color: rgb(73, 92, 137);
  animation: hexagonSlide 2s linear 10;
 
}
.hexagon:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(73, 92, 137);
  transform: rotate(60deg);
}
.hexagon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(73, 92, 137);
  transform: rotate(-60deg);
}
@keyframes hexagonSlide {
  0% {left: 0}
  50% {
    left: 85%;
    transform: rotate(720deg);
  }
  100% {left: 0;}
}
@keyframes lineTilt {
  0% {transform: rotate(30deg)}
  25% {transform: rotate(0deg)}
  50% {transform: rotate(-30deg)}
  75% {transform: rotate(0deg)}
  100% {transform: rotate(30deg)}
}