@font-face {
  font-family: Anurati;
  src: url("./Anurati-Regular.otf");
}

@font-face {
  font-family: BedTimeStories;
  src: url("./BedtimeStories.ttf");
}

@-webkit-keyframes color-change {
  0% {
    background-image: -webkit-linear-gradient(to right, #cc2b5e, #753a88);
    background-image: linear-gradient(to right, #cc2b5e, #753a88);
  }
  50% {
    background-image: -webkit-linear-gradient(#eecda3, #ef629f);
    background-image: linear-gradient(#eecda3, #ef629f);
  }
  100% {
    background-image: -webkit-linear-gradient(#cc2b5e, #753a88);
    background-image: linear-gradient(#cc2b5e, #753a88);
  }
}
@-moz-keyframes color-change {
  0% {
    background-image: -webkit-linear-gradient(#cc2b5e, #753a88);
    background-image: linear-gradient(#cc2b5e, #753a88);
  }
  33% {
    background-image: -webkit-linear-gradient(#eecda3, #ef629f);
    background-image: linear-gradient(#eecda3, #ef629f);
  }
  66.67% {
    color: white;
  }
  100% {
    background-image: -webkit-linear-gradient(#cc2b5e, #753a88);
    background-image: linear-gradient(#cc2b5e, #753a88);
  }
}
@keyframes color-change {
  0% {
    background-image: -webkit-linear-gradient(to right, #cc2b5e, #753a88);
    background-image: linear-gradient(to right, #cc2b5e, #753a88);
  }
  25% {
    color: white;
  }
  50% {
    background-image: -webkit-linear-gradient(to right, #eecda3, #ef629f);
    background-image: linear-gradient(to right, #eecda3, #ef629f);
  }
  75% {
    color: black;
  }
  100% {
    background-image: -webkit-linear-gradient(to right, #cc2b5e, #753a88);
    background-image: linear-gradient(to right, #cc2b5e, #753a88);
  }
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  2.5% {
    opacity: 1;
  }
  12.5% {
    opacity: 1;
  }
  15% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.console-container {
  font-family: sans-serif, "Microsoft Yahei" "微软雅黑";
  font-size: 30px;
  text-align: center;
  color: black;
  min-height: 50px;
  margin-top: 50px;
  margin-bottom: 20px;
  grid-column-start: 3;
}

.nav-links > * {
  font-size: 30px;
  font-family: Anurati;
  margin-bottom: 20px;
}

.image-overlay {
  font-size: 120px;
  font-family: BedTimeStories;
  grid-row: 2;
  grid-column: 2;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;

  -webkit-animation: color-change 20s infinite;
  -moz-animation: color-change 20s infinite;
  animation: color-change 20s infinite;
  color: transparent;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;

  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+/Edge */
  user-select: none; /* Standard */
}

/* images */
.image-container {
  position: relative;
  width: 800px;
  height: 800px;
  margin: 0 auto;
  grid-row: 2;
  grid-column: 2;
  z-index: 0;
}

.image-container img {
  position: absolute;
  left: 0;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  opacity: 0;
}

.image-container img:nth-of-type(1) {
  animation-name: fadeInOut;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-duration: 100s;
  animation-direction: normal;
  animation-delay: 87500ms;
}
.image-container img:nth-of-type(2) {
  animation-name: fadeInOut;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-duration: 100s;
  animation-direction: normal;
  animation-delay: 75s;
}
.image-container img:nth-of-type(3) {
  animation-name: fadeInOut;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-duration: 100s;
  animation-direction: normal;
  animation-delay: 62500ms;
}
.image-container img:nth-of-type(4) {
  animation-name: fadeInOut;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-duration: 100s;
  animation-direction: normal;
  animation-delay: 50s;
}
.image-container img:nth-of-type(5) {
  animation-name: fadeInOut;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-duration: 100s;
  animation-direction: normal;
  animation-delay: 37500ms;
}
.image-container img:nth-of-type(6) {
  animation-name: fadeInOut;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-duration: 100s;
  animation-direction: normal;
  animation-delay: 25s;
}
.image-container img:nth-of-type(7) {
  animation-name: fadeInOut;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-duration: 100s;
  animation-direction: normal;
  animation-delay: 12500ms;
}
.image-container img:nth-of-type(8) {
  animation-name: fadeInOut;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-duration: 100s;
  animation-direction: normal;
  animation-delay: 0;
}

.footer {
  grid-row-start: 3;
  grid-column-start: 3;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin-right: 20px;
  font-family: Anurati;
  font-size: 10px;
}

.fluid-container {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: 100px 1fr 100px;
  align-items: center;
  height: 100vh;
  width: 100vw;
}
