body {
  display: flex;
  justify-content: left;
  background: url("./forest-background.jpg") black;
  background-size: cover;
}
a {
  color: var(--secondacc);
  text-decoration: dotted underline;
}
a:hover {
  font-style: italic;
}
#body {
  width: 60vw;
  max-width: 1000px;
}
#disclaim {
  width: 100%;
  background: #762b1e;
  color: var(--white);
  border: 0.2rem solid black;
  padding: 0 0.5rem;
  display: flex;
  justify-content: space-between;
}
main {
  background: linear-gradient(var(--accent), var(--secondacc));
  padding: 1rem;
  border: 0.2rem solid black;
  margin-top: 1rem;
}
#fixed {
  position: fixed;
  bottom: 0;
  right: 0;
}
#miles {
  width: 550px;
  height: 900px;
  background: url("./miles.png");
  background-size: cover;
  background-repeat: no-repeat;
}
#jar {
  border-image: url("./jar.png") 32 fill / 96px / 32px;
  padding-top: 2em;
  image-rendering: pixelated;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 14rem;
  right: 3rem;
}

/* moth start */
.insect {
  image-rendering: pixelated;
  overflow: hidden;
  width: 100%;
}

.insect img {
  margin: 0;
}

.moth {
  aspect-ratio: 74 / 36 !important;
}
.moth .wing {
  aspect-ratio: 37 / 36 !important;
}
.butterfly {
  aspect-ratio: 76 / 47 !important;
}
.butterfly .wing {
  aspect-ratio: 38 / 47 !important;
}

.insect .body {
  z-index: 6;
  width: 100%;
}

.insect .wings {
  position: relative;
  top: -106%;

  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

.insect .left,
.insect .right {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.insect .wing {
  width: 100%;
}
.insect .top {
  z-index: 8;
  position: relative;
}
.insect .bottom {
  z-index: 7;
  position: relative;
  top: calc(100% * -1);
}

.insect .left .wing {
  transform-origin: right center;
}
.insect .right .wing {
  transform-origin: left center;
}
.insect .top {
  animation: flutter 300ms infinite;
}
.insect .bottom {
  animation: flutter_offset 300ms infinite;
}

@keyframes flutter {
  0% {
    transform: rotateY(0);
  }
  45% {
    transform: rotateY(70deg);
  }
  95%,
  100% {
    transform: rotateY(0);
  }
}

@keyframes flutter_offset {
  0%,
  5% {
    transform: rotateY(0);
  }
  50% {
    transform: rotateY(70deg);
  }
  100% {
    transform: rotateY(0);
  }
}
/* moth end */
@media only screen and (max-width: 1200px) {
  body {
    flex-wrap: wrap;
  }
  #body {
    width: 95%;
  }
  #fixed {
    position: relative;
  }
  #miles {
    width: 418px;
    height: 600px;
  }
  #jar {
    bottom: 7rem;
    width: 100px;
    height: 100px;
  }
}
