@import url("https://fonts.googleapis.com/css2?family=Courgette&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1 {
  font-family: "Courgette", cursive;
  color: #ddd;
  font-size: 3.5vmin;
  height: 7.5vmin;
  line-height: 7.5vmin;
  text-align: center;
}

body {
  height: 100vh;
  width: 100vw;
  background: #97acee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

section {
  height: 90vmin;
  width: 90vmin;
  position: relative;
}

.line-container {
  height: 10vmin;
  width: 27.5vmin;
  position: absolute;
  top: 42.5vmin;
  left: 10vmin;
  display: flex;
  align-items: center;
  transform-origin: 37.5vmin center;
}
.line-container .line {
  position: relative;
  width: 50%;
  height: 2.5px;
}
.line-container .line .line-edge {
  position: absolute;
}
.line-container .line .line-edge .edge-bottom {
  position: absolute;
  top: 1.25px;
  height: 2.5vh;
  width: 2.5px;
  background: black;
  transform-origin: top;
  transform: rotate(60deg);
}
.line-container .line .line-edge .edge-top {
  position: absolute;
  top: calc(1.25px - 2.5vh);
  height: 2.5vh;
  width: 2.5px;
  background: black;
  transform-origin: bottom;
  transform: rotate(-60deg);
}
.line-container .lineA {
  background: blue;
  z-index: 2;
}
.line-container .lineA .edge-B {
  right: 2.5px;
}
.line-container .lineB {
  background: red;
}
.line-container .lineB .edge-A {
  right: 0;
}

.edge-A .edge-top {
  animation: 2s linear alternate infinite first-rotation;
}
.edge-A .edge-bottom {
  animation: 2s linear alternate infinite second-rotation;
}

.edge-B .edge-bottom {
  animation: 2s linear alternate infinite first-rotation;
}
.edge-B .edge-top {
  animation: 2s linear alternate infinite second-rotation;
}

@keyframes first-rotation {
  0%, 25% {
    transform: rotate(60deg);
  }
  75%, 100% {
    transform: rotate(-60deg);
  }
}
@keyframes second-rotation {
  0%, 25% {
    transform: rotate(-60deg);
  }
  75%, 100% {
    transform: rotate(60deg);
  }
}
.line-container:nth-child(1) {
  transform: translate(calc(50% - 13.75vmin)) rotate(36deg);
}

.line-container:nth-child(2) {
  transform: translate(calc(50% - 13.75vmin)) rotate(72deg);
}

.line-container:nth-child(3) {
  transform: translate(calc(50% - 13.75vmin)) rotate(108deg);
}

.line-container:nth-child(4) {
  transform: translate(calc(50% - 13.75vmin)) rotate(144deg);
}

.line-container:nth-child(5) {
  transform: translate(calc(50% - 13.75vmin)) rotate(180deg);
}

.line-container:nth-child(6) {
  transform: translate(calc(50% - 13.75vmin)) rotate(216deg);
}

.line-container:nth-child(7) {
  transform: translate(calc(50% - 13.75vmin)) rotate(252deg);
}

.line-container:nth-child(8) {
  transform: translate(calc(50% - 13.75vmin)) rotate(288deg);
}

.line-container:nth-child(9) {
  transform: translate(calc(50% - 13.75vmin)) rotate(324deg);
}

.line-container:nth-child(10) {
  transform: translate(calc(50% - 13.75vmin)) rotate(360deg);
}

/* signature */
.signature {
  position: absolute;
  left: 0;
  bottom: 0;
}

.link {
  position: absolute;
  z-index: 10;
  left: calc(5vmin - 1rem);
  bottom: calc(5vmin - 1rem);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.link span {
  font-size: 2rem;
  font-family: arial, sans-serif;
  color: whitesmoke;
}
.link .my-name {
  position: relative;
}
.link .before,
.link .after {
  overflow: hidden;
  width: 0px;
  transition: width 0.5s;
  transform-origin: right;
}
.link .before-text {
  display: inline-block;
  width: auto;
  text-align: right;
}
.link .after-text {
  display: flex;
  align-items: center;
  width: auto;
  height: 3rem;
  transform-origin: top center;
}
.link:hover .before {
  width: 3.5rem;
}
.link:hover .after {
  width: 5rem;
}
.link:hover .spin {
  display: inline-block;
  transition: 0.5s transform 0.5s ease-in-out;
  transform: rotate(360deg);
}