@font-face {
  font-family: Louis;
  src: url(../../../fonts/louis_george_caf/Louis\ George\ Cafe.ttf);
}

/*body*/
body {
  background-image: url(../img/leavesbg.jpeg);
  background-repeat: repeat;
  font-family: Louis !important;
  margin: 0;
}

/*main*/
main {
  max-width: 1280px;
  position: relative;
  margin: 0px auto;
  background: rgba(171, 82, 65, 0.9);
  padding: 2em;
}

main h2 {
  font-size: 40px;
  color: rgb(73, 39, 19);
}

main p {
  font-size: 18px;
}

main div {
  border-radius: 50px;
}

/*first animation*/
#intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  background-color: rgba(222, 196, 169, 0.8);
  place-items: center;
  padding: 20px;
}

#intro img {
  width: 300px;
  height: 300px;
  padding: 20px;
  border-radius: 50px;
}

/*daily tasks*/
.dailies {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  place-items: center;
  column-gap: 1.5em;
  row-gap: 1.5em;
}

figure {
  background-color: rgba(222, 196, 169, 0.8);
  border-radius: 50px;
  padding: 1em;
  margin: 0;
}

#walkcycle {
  margin: auto;
  width: 300px;
  height: 300px;
  background: url("../img/walkcycle2.jpg");
  background-size: cover;
  animation: play 1s steps(9) infinite;
}

@keyframes play {
  from {
    background-position: 0px;
  }

  to {
    background-position: -2700px;
  }
}

#levitate {
  margin: auto;
  width: 300px;
  height: 300px;
}

svg {
  border-radius: 50px;
}

#cups {
  width: 100%;
  animation: levitate 3s infinite ease-in-out;
}

#book {
  width: 100%;
  animation: levitate 5s infinite ease-in-out;
}

#fial {
  width: 100%;
  animation: levitate 4s infinite ease-in-out;
}

@keyframes levitate {
  0% {
    transform: scaleX(1) translateY(-250px);
  }
  50% {
    transform: scaleX(1) translateY(-300px);
  }
  100% {
    transform: scaleX(1) translateY(-250px);
  }
}

#potion {
  margin: auto;
  width: 300px;
  height: 300px;
  background: url("../img/potion2.gif");
  background-size: cover;
  border-radius: 50px;
}

/*footer*/

footer {
  max-width: 1280px;
  position: relative;
  margin: 0px auto;
  background: rgba(171, 82, 65, 0.9);
  padding: 1.5em;
}

footer h3 {
  color: rgb(73, 39, 19);
  text-align: center;
  font-size: 25px;
}

footer p {
  text-align: center;
}

/*phone*/
@media only screen and (max-width: 1280px) {
  .dailies {
    grid-template-columns: 1fr 1fr;
  }
  #intro {
    grid-template-columns: 1fr 1fr;
  }
}
@media only screen and (max-width: 840px) {
  .dailies {
    grid-template-columns: 1fr;
  }
  #intro {
    grid-template-columns: 1fr;
  }
  figure {
    margin: 0;
  }
}
