body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100dvh;
  overflow: hidden;
}

.container {
  display: flex;
  width: 100vw;
  overflow: hidden;
}

a {
  position: relative;
  flex-grow: 1;
  place-content: end;
  height: 100dvh;
  width: calc(100dvw / 8);
  transition: all 0.5s;
  overflow: hidden;
}

a img.character {
  height: 100%;
  width: calc(100dvw / 8);
  object-fit: cover;
  /* object-position: 50% 50%; */
  transition: width 0.5s;
}

a .character__name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20%;
  width: 70%;
  opacity: 0;
  text-align: center;
  color: white;
  font-size: 2rem;
  /* -webkit-text-stroke: 0.15rem rgb(184 107 221); */
  font-weight: bold;
  transition: all 0.25s;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem 2rem;
}

a:first-child {
  background-color: rgb(184 107 221);
}

a:nth-child(2) {
  background-color: rgb(94 216 155);
}

a:nth-child(3) {
  background-color: rgb(50 179 198);
}

a:nth-child(4) {
  background-color: rgb(224 211 44);
}

a:nth-child(5) {
  background-color: rgb(236 104 109);
}

a:nth-child(6) {
  background-color: rgb(98 123 215);
}

a:nth-child(7) {
  background-color: rgb(234 108 208);
}

a:nth-child(8) {
  background-color: rgb(234 108 208);
}

.logo {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% / 3);
  margin: 0 auto;
  display: block;
  transition: opacity 0.5s;
  opacity: 1;
}

.container:not(:hover) a {
  opacity: 1;
}
.container:hover ~ .logo {
  opacity: 0;
}

a:not(:hover) {
  width: calc(100dvw / 16);
  opacity: 0.75;
}

a:hover,
a:hover > img.character {
  width: calc(100dvw / 1.5);
}

a:hover > .character__name {
  opacity: 1;
}

@media (min-width: 768px) {
  a:not(:hover) {
    width: calc(100dvw / 8);
  }

  a:hover,
  a:hover > img.character {
    width: calc(100dvw / 4);
  }
}
