header {
  display: flex;
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 999999;
}
header nav {
  position: relative;
  cursor: pointer;
}
.scene {
  width: 62px;
  height: 56px;
  perspective: 1000px;
}
.cube {
  width: 62px;
  height: 56px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
  cursor: pointer;
}
.face {
  position: absolute;
  width: 62px;
  height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-family: var(--font-light);
  box-sizing: border-box;
  border: 1px solid #444;
}
.front {
  transform: rotateY(0deg) translateZ(31px);
  background: white;
  color: black;
}
.back {
  transform: rotateY(180deg) translateZ(31px);
  background: white;
  color: black;
}
.right {
  transform: rotateY(90deg) translateZ(31px);
  background: #222;
  color: white;
}
.left {
  transform: rotateY(-90deg) translateZ(31px);
  background: #222;
  color: white;
}
#menuIcon {
  position: relative;
}
header .menu {
  position: absolute;
  right: 62px;
  background-color: #1b1e23;
  top: 0;
  height: 56px;
  overflow: hidden;
  width: 0px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  font-family: var(--font-light);
  transition: width 0.4s ease, opacity 0.4s ease;
}
header .menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
header .menu ul li a {
  color: #fff;
  opacity: 0;
  padding: 20px 24px;
  text-decoration: none;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  header .menu {
    right: 0;
    top: 56px;
    height: 500px;
    overflow: hidden;
    width: 100px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    pointer-events: none;
    opacity: 0;
  }
  header .menu ul {
    flex-direction: column;
  }
}

.cube .face img{
  width: 40px;
  height: 40px;
  object-fit: contain;
}