.skills-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  width: 25em;
  min-width: 25em;
  height: 25em;
  border: 3px #f72585 solid;
  background-color: #f72585;
  border-radius: 10px;
  overflow: hidden;
}

.syntax-galaxy {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
  background-color: #131416;
  border-radius: 10px 10px 10px 10px;
}

.sun {
  width: 1em;
  min-width: 1em;
  height: 1em;
  min-width: 1em;
  border-radius: 100%;
  overflow: hidden;

  position: absolute;
  top: 48%;
  left: 48%;

  background-color: #00adff;

  animation: sun-glowing 4s linear infinite;
  transition: transform 1s;
}

@keyframes sun-glowing {
  0%,
  100% {
    box-shadow: 0px 0px 5px #131416, 0 0 5px #00adff, 0 0 5px #131416;
  }
  50% {
    box-shadow: 0px 0px 5px #131416, 0 0 50px #00adff, 0 0 5px #131416;
  }
}

.sun-fake-moving {
  width: 0.3em;
  min-width: 0.3em;
  height: 0.3em;
  min-width: 0.3em;
  background-color: #131416;
  border-radius: 100%;
  position: absolute;
  top: 3px;
  animation: sun-moving 6s linear infinite;
  transition: transform 1s;
  opacity: 0.5;
}

@keyframes sun-moving {
  0% {
    transform: translateX(600%);
  }
  100% {
    transform: translateX(-200%);
  }
}

.syntax-orbit {
  box-sizing: border-box;
  border: 3.6px #f72585 dotted;
  border-radius: 100%;
  width: 15em;
  min-width: 15em;
  height: 15em;
  margin: 0;
  position: relative;
  transform-style: preserve-3d;
  animation: orbit-movement 40s linear infinite paused;
}

@keyframes orbit-movement {
  0% {
    transform: rotateX(60deg) scale(2.5, 1.5) rotate(0deg);
  }
  50% {
    transform: rotateX(60deg) scale(2.5, 1.5) rotate(180deg);
  }
  100% {
    transform: rotateX(60deg) scale(2.5, 1.5) rotate(360deg);
  }
}

.syntax-cosmos {
  position: absolute;
  transition: 1s linear;
}

@keyframes cosmos-orbit-Z {
  0%,
  100% {
    transform: translateZ(5px);
  }
  12.5% {
    transform: translateZ(5px);
  }
  25% {
    transform: translateZ(5px);
  }
  27.5% {
    transform: translateZ(5px);
  }
  50% {
    transform: translateZ(-5px);
  }
  62.5% {
    transform: translateZ(-5px);
  }
  75% {
    transform: translateZ(-5px);
  }
  87.5% {
    transform: translateZ(-5px);
  }
}

.syntax-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  position: relative;
  transition: 0.5s ease;
  cursor: pointer;
  text-align: center;
  animation: reverse-orbit-rotation 40s linear infinite paused;
}

@keyframes reverse-orbit-rotation {
  0% {
    transform: rotate(0deg) scale(0.4, 1.3);
  }
  25% {
    transform: rotate(-90deg) scale(0.4, 1.3);
  }
  50% {
    transform: rotate(-180deg) scale(0.4, 1.3);
  }
  75% {
    transform: rotate(-270deg) scale(0.4, 1.3);
  }
  100% {
    transform: rotate(-360deg) scale(0.4, 1.3);
  }
}

.syntax-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;

  position: relative;

  transition: 1s ease;
  animation: cosmos-orbit-around 40s linear infinite;
}

@keyframes cosmos-transition {
  0% {
    transform: rotateY(-90deg) rotate(-15deg);
  }
  25% {
    transform: rotateY(0deg) rotate(0deg);
  }
  50% {
    transform: rotateY(90deg) rotate(15deg);
  }
  75% {
    transform: rotateY(180deg) rotate(0deg);
  }
  100% {
    transform: rotateY(270deg) rotate(-15deg);
  }
}

.syntax-content img {
  position: relative;
  padding: 0.5em;
  background-color: #00adff;
  border-radius: 10px;
  height: 3em;
  width: 3em;
}

.syntax-content p {
  display: none;
  color: #131416;
  position: absolute;

  background-color: #00adff;
  border-radius: 9px;

  padding: 0.5em 0.7em;
  min-width: 3.7em;

  line-height: 1em;
  font-size: 0.8em;
  font-weight: 800;

  bottom: -110%;
}

.syntax-content img:hover {
  opacity: 0.7;
  box-shadow: 0 0 10px #00adff;
}

.syntax-content:hover > p,
.syntax-content:hover > p,
.syntax-content:hover > p {
  display: block;
  opacity: 0.7;
  box-shadow: 0 0 10px #00adff;
}

.syntax-info {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  font-size: 1em;
  background-color: #f72585;
  overflow: hidden;
  padding: 0.2em;
  gap: 5px;
  line-height: 0.8em;
  height: 1em;
}

.syntax-info a {
  text-decoration: none;
  font-weight: 800;
  color: #131416;
  transition: transform 1s ease;
}

.syntax-info a.info {
  font-family: 'Merriweather', serif;
  border: 2px solid #131416;
  border-radius: 100%;
  padding: 0 3.5px;
  font-size: 0.6em;
}

.info-swap {
  transition: transform 1s ease;
  animation: info-swap 2s linear;
}

@keyframes info-swap {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes info-pulse {
  0%,
  100% {
    transform: scale(1.05);
    opacity: 1;
  }
  50% {
    transform: scale(1);
    opacity: 0.7;
  }
}

@keyframes info-up {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-100%);
    opacity: 0;
  }
  51% {
    transform: translateY(0);
    opacity: 0;
  }
  52% {
    transform: translateY(100%);
    opacity: 0;
  }
}

.syntax-info a span.arrow {
  display: inline-block;
  transition: transform 2s ease;
}

/*  responsive layout  */

@media (max-width: 1025px) {
  .skills-panel {
    width: 20em;
    min-width: 20em;
    height: 20em;
  }

  .sun {
    position: absolute;
    top: 47%;
    left: 48%;
  }

  .syntax-orbit {
    border: 2.7px #f72585 dotted;
    width: 12em;
    min-width: 12em;
    height: 12em;
  }

  .syntax-block img {
    height: 2em;
    width: 2em;
  }

  .syntax-block p {
    min-width: 3.5em;

    line-height: 0.8em;
    font-size: 0.6em;
    font-weight: 600;

    bottom: -105%;
  }

  .syntax-info {
    font-weight: 600;
    font-size: 0.9em;
  }

  .syntax-info a span.info {
    font-size: 0.7em;
    border: #00adff solid 1.5px;
    padding: 0 3px;
  }

  .skills-range {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .skills-panel {
    width: 15em;
    min-width: 15em;
    height: 15em;
  }

  .sun {
    width: 0.8em;
    min-width: 0.8em;
    height: 0.8em;
    min-width: 0.8em;
    top: 46%;
    left: 48%;
  }

  .syntax-orbit {
    width: 8em;
    min-width: 8em;
    height: 8em;
  }

  .syntax-block img {
    height: 1.5em;
    width: 1.5em;
  }

  .syntax-block p {
    min-width: 2.7em;

    line-height: 0.8em;
    font-size: 0.6em;
    font-weight: 600;

    bottom: -123%;
  }

  .syntax-info {
    font-weight: 600;
    font-size: 0.7em;
  }

  .syntax-info a span.info {
    font-size: 0.7em;
    border: #00adff solid 1.5px;
    padding: 0 2px;
  }
}