*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue';
}

a {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  overflow: hidden;
}

body {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  place-content: start;
  overflow: hidden;
  background-color: #000;
}

.row {
  width: 100%;
  display: flex;
  height: 120px;
  gap: 3px;
  position: relative;
  margin-top: -26px;
  transform: translateX(-140px);

  @media (width <= 1111px) {
    zoom: 0.5;
  }

  @media (width >= 2500px) {
    zoom: 2;
  }

  &:nth-child(even) {
    left: -62px;
  }

  .hexagon {
    width: 120px;
    height: 120px;
    clip-path: polygon(0 25%, 50% 0, 100% 25%, 100% 75%, 50% 100%, 0% 75%);
    background-color: #222;
    color: #222;
    flex-grow: 0;
    flex-shrink: 0;
    box-shadow: inset 0 0 64px 8px currentColor;
    transition: 1.5s;

    &:hover {
      transition: 0s;
    }

    &:nth-child(9n + 1):hover,
    &:nth-child(9n + 1).active {
      color: #f00;
    }

    &:nth-child(9n + 2):hover,
    &:nth-child(9n + 2).active {
      color: #0f0;
    }

    &:nth-child(9n + 3):hover,
    &:nth-child(9n + 3).active {
      color: #00f;
    }

    &:nth-child(9n + 4):hover,
    &:nth-child(9n + 4).active {
      color: #ff0;
    }

    &:nth-child(9n + 5):hover,
    &:nth-child(9n + 5).active {
      color: #0ff;
    }

    &:nth-child(9n + 6):hover,
    &:nth-child(9n + 6).active {
      color: #f0f;
    }

    &:nth-child(9n + 7):hover,
    &:nth-child(9n + 7).active {
      color: orange;
    }

    &:nth-child(9n + 8):hover,
    &:nth-child(9n + 8).active {
      color: cadetblue;
    }

    &:nth-child(9n + 9):hover,
    &:nth-child(9n + 9).active {
      color: lightcoral;
    }
  }
}
