@import url("css-1.css");
.frame {
  position: absolute;
  /* top: 50%;
  left: 50%; */
  width: 100%;
  height: 100%;
  /* margin-top: -200px;
  margin-left: -200px; */
  border-radius: 2px;
  /* box-shadow: 4px 8px 16px 0 rgba(0, 0, 0, 0.1); */
  overflow: hidden;
  /* background: #b4ffb8; */
  color: #333;
  font-family: "Open Sans", Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  top: 0;
  left: 0;
}

.note {
    position: relative;
    padding: 0;
    margin-bottom: 0!important;
}

@media (min-width: 800px) {
.note {
    height: 500px;
}
.center {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 400px;
  width: 750px;
  transform: perspective(60px) translate(-50%, -50%);
  transform-style: preserve-3d;
}

.card {
  position: absolute;
  width: 400px;
  height: 400px;
  left: 175px;
  border: 5px solid #fff;
}

.card img {
  width: 100%;
}

#card1 {
  -webkit-animation: cardAnim 16s ease-in-out infinite;
          animation: cardAnim 16s ease-in-out infinite;
}

#card2 {
  -webkit-animation: cardAnim 16s ease-in-out infinite;
          animation: cardAnim 16s ease-in-out infinite;
  -webkit-animation-delay: -4s;
          animation-delay: -4s;
}

#card3 {
  -webkit-animation: cardAnim 16s ease-in-out infinite;
          animation: cardAnim 16s ease-in-out infinite;
  -webkit-animation-delay: -8s;
          animation-delay: -8s;
}

#card4 {
    -webkit-animation: cardAnim 16s ease-in-out infinite;
            animation: cardAnim 16s ease-in-out infinite;
    -webkit-animation-delay: -12s;
            animation-delay: -12s;
}

@-webkit-keyframes cardAnim {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  25% {
    transform: translate3d(175px, -50%, -50px);
  }
  50% {
    transform: translate3d(-325px, -50%, -50px);
  }
  75% {
    transform: translate3d(-800px, -50%, -50px);
  }
}

@keyframes cardAnim {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  25% {
    transform: translate3d(175px, -50%, -50px);
  }
  50% {
    transform: translate3d(-325px, -50%, -50px);
  }
  75% {
    transform: translate3d(-800px, -50%, -50px);
  }
}
}

@media (max-width: 799px) {
    .note {
        height: 400px;
    }
    .center {
      position: absolute;
      top: 50%;
      left: 50%;
      height: 300px;
      width: 600px;
      transform: perspective(60px) translate(-50%, -50%);
      transform-style: preserve-3d;
    }
    
    .card {
      position: absolute;
      width: 300px;
      height: 300px;
      left: 150px;
      border: 5px solid #fff;
    }
    
    .card img {
      width: 100%;
    }
    
    #card1 {
      -webkit-animation: cardAnim 16s ease-in-out infinite;
              animation: cardAnim 16s ease-in-out infinite;
    }
    
    #card2 {
      -webkit-animation: cardAnim 16s ease-in-out infinite;
              animation: cardAnim 16s ease-in-out infinite;
      -webkit-animation-delay: -4s;
              animation-delay: -4s;
    }
    
    #card3 {
      -webkit-animation: cardAnim 16s ease-in-out infinite;
              animation: cardAnim 16s ease-in-out infinite;
      -webkit-animation-delay: -8s;
              animation-delay: -8s;
    }
    
    #card4 {
        -webkit-animation: cardAnim 16s ease-in-out infinite;
                animation: cardAnim 16s ease-in-out infinite;
        -webkit-animation-delay: -12s;
                animation-delay: -12s;
    }
    
    @-webkit-keyframes cardAnim {
      0%, 100% {
        transform: translate3d(0, 0, 0);
      }
      25% {
        transform: translate3d(200px, -50%, -50px);
      }
      50% {
        transform: translate3d(-325px, -50%, -50px);
      }
      75% {
        transform: translate3d(-700px, -50%, -50px);
      }
    }
    
    @keyframes cardAnim {
      0%, 100% {
        transform: translate3d(0, 0, 0);
      }
      25% {
        transform: translate3d(200px, -50%, -50px);
      }
      50% {
        transform: translate3d(-325px, -50%, -50px);
      }
      75% {
        transform: translate3d(-700px, -50%, -50px);
      }
    }
}

@media (max-width: 599px) {
    .note {
        height: 300px;
    }
    .center {
      position: absolute;
      top: 50%;
      left: 50%;
      height: 200px;
      width: 500px;
      transform: perspective(60px) translate(-50%, -50%);
      transform-style: preserve-3d;
    }
    
    .card {
      position: absolute;
      width: 200px;
      height: 200px;
      left: 150px;
      border: 5px solid #fff;
    }
    
    .card img {
      width: 100%;
    }
    
    #card1 {
      -webkit-animation: cardAnim 16s ease-in-out infinite;
              animation: cardAnim 16s ease-in-out infinite;
    }
    
    #card2 {
      -webkit-animation: cardAnim 16s ease-in-out infinite;
              animation: cardAnim 16s ease-in-out infinite;
      -webkit-animation-delay: -4s;
              animation-delay: -4s;
    }
    
    #card3 {
      -webkit-animation: cardAnim 16s ease-in-out infinite;
              animation: cardAnim 16s ease-in-out infinite;
      -webkit-animation-delay: -8s;
              animation-delay: -8s;
    }
    
    #card4 {
        -webkit-animation: cardAnim 16s ease-in-out infinite;
                animation: cardAnim 16s ease-in-out infinite;
        -webkit-animation-delay: -12s;
                animation-delay: -12s;
    }
    
    @-webkit-keyframes cardAnim {
      0%, 100% {
        transform: translate3d(0, 0, 0);
      }
      25% {
        transform: translate3d(150px, -50%, -50px);
      }
      50% {
        transform: translate3d(-275px, -50%, -50px);
      }
      75% {
        transform: translate3d(-575px, -50%, -50px);
      }
    }
    
    @keyframes cardAnim {
      0%, 100% {
        transform: translate3d(0, 0, 0);
      }
      25% {
        transform: translate3d(150px, -50%, -50px);
      }
      50% {
        transform: translate3d(-275px, -50%, -50px);
      }
      75% {
        transform: translate3d(-575px, -50%, -50px);
      }
    }
}

@media (max-width: 399px) {
    .note {
        height: 240px;
    }
    .center {
      position: absolute;
      top: 50%;
      left: 50%;
      height: 140px;
      width: 340px;
      transform: perspective(60px) translate(-50%, -50%);
      transform-style: preserve-3d;
    }
    
    .card {
      position: absolute;
      width: 140px;
      height: 140px;
      left: 100px;
      border: 5px solid #fff;
    }
    
    .card img {
      width: 100%;
    }
    
    #card1 {
      -webkit-animation: cardAnim 16s ease-in-out infinite;
              animation: cardAnim 16s ease-in-out infinite;
    }
    
    #card2 {
      -webkit-animation: cardAnim 16s ease-in-out infinite;
              animation: cardAnim 16s ease-in-out infinite;
      -webkit-animation-delay: -4s;
              animation-delay: -4s;
    }
    
    #card3 {
      -webkit-animation: cardAnim 16s ease-in-out infinite;
              animation: cardAnim 16s ease-in-out infinite;
      -webkit-animation-delay: -8s;
              animation-delay: -8s;
    }
    
    #card4 {
        -webkit-animation: cardAnim 16s ease-in-out infinite;
                animation: cardAnim 16s ease-in-out infinite;
        -webkit-animation-delay: -12s;
                animation-delay: -12s;
    }
    
    @-webkit-keyframes cardAnim {
      0%, 100% {
        transform: translate3d(0, 0, 0);
      }
      25% {
        transform: translate3d(100px, -30%, -30px);
      }
      50% {
        transform: translate3d(-80px, -30%, -30px);
      }
      75% {
        transform: translate3d(-275px, -30%, -30px);
      }
    }
    
    @keyframes cardAnim {
      0%, 100% {
        transform: translate3d(0, 0, 0);
      }
      25% {
        transform: translate3d(100px, -30%, -30px);
      }
      50% {
        transform: translate3d(-80px, -30%, -30px);
      }
      75% {
        transform: translate3d(-275px, -30%, -30px);
      }
    }
}