/*@import url(https://use.fontawesome.com/releases/v6.4.2/css/all.css);*/
@import url(https://fonts.googleapis.com/css?family=Tangerine);

html {
  overflow: hidden;
}

body {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  padding: 0;

  background-color: #cfcfcf;
  animation: 2s infinite alternate ease-in-out breathing;
  overflow: hidden;
}

ul {
  display: flex;
  transform-style: preserve-3d;
  transform: rotate(-20deg) skew(20deg);
  list-style: none;
  margin: 0;
  padding: 0;
}

li {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 25px;
}

.built {
  font-family: "Tangerine";
  font-size: 64px;
  opacity: 0.1;

  position: absolute;
  bottom: 20px;
  right: 30px;
}

.spotify {
  width: 280px;
  position: absolute;
  right: -260px;

  transition: 0.55s ease-in-out;
  animation: 2s infinite alternate ease-in-out breathingSpotify;
}

@media (max-width: 768px) {
  ul {
    flex-direction: column;
    align-items: center;
    transform: rotate(-10deg) skew(10deg);
  }

  li {
    margin: 10px 0;
  }

  .built {
    font-size: 32px;
  }

  .spotify {
    display: block;
  }
}

@keyframes breathing {
  from {
    background-color: #cfcfcf;
  }
  to {
    background-color: #afafaf;
  }
}

@keyframes breathingSpotify {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.75;
  }
}

.spotify:hover {
  right: 12px;
}

li:before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background: #2a2a2a;
  transform-origin: top;
  transform: skewX(-45deg);
}

li:after {
  content: "";
  position: absolute;
  top: 0;
  left: -10px;
  width: 10px;
  height: 100%;
  background: #2a2a2a;
  transform-origin: right;
  transform: skewY(-45deg);
}

li span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex !important;
  justify-content: center;
  align-items: center;
  background: #444;
  color: #ffffff33;
  font-size: 30px;
  transition: 0.2s;
}

li:hover span {
  z-index: 10;
  transition: 0.5s;
  color: #fff;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
  background: var(--color);
}

li:hover span:nth-child(5) {
  transform: translate(40px, -40px);
  opacity: 1;
}

li:hover span:nth-child(4) {
  transform: translate(30px, -30px);
  opacity: 0.8;
}

li:hover span:nth-child(3) {
  transform: translate(20px, -20px);
  opacity: 0.6;
}

li:hover span:nth-child(2) {
  transform: translate(10px, -10px);
  opacity: 0.4;
}

li:hover span:nth-child(1) {
  transform: translate(0px, 0px);
  opacity: 0.2;
}
