@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/robotoslab/v24/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISWaA.ttf) format('truetype');
}
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/robotoslab/v24/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjoa4OWaA.ttf) format('truetype');
}
* {
  font-family: 'Roboto Slab', serif;
}
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}
#main {
  width: 740px;
  height: 280px;
  position: relative;
  background: #ffe809;
  overflow: hidden;
  margin: 0 auto;
  margin-top: calc(50vh - 140px);
}
.messages {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffe809;
  background: linear-gradient(90deg, rgba(255, 232, 9, 0.8) 0%, rgba(255, 232, 9, 0.6) 30%, rgba(255, 232, 9, 0) 60%);
}
.messages .sns-message-1 {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 22px;
  text-transform: uppercase;
  color: #000;
}
.messages .sns-message-2 {
  position: absolute;
  top: 60px;
  left: 20px;
  font-size: 50px;
  line-height: 46px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
}
.messages .sns-message-3 {
  position: absolute;
  z-index: 1;
  color: #fff;
  font-size: 16px;
  line-height: 40px;
  text-transform: uppercase;
  left: 20px;
  top: 220px;
  padding: 0 20px;
  background-color: red;
}
.messages .sns-message-3 .sns-count {
  font-weight: 700;
}
:root {
  --duration: 30s;
}
.wrapper-images {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 70%;
  opacity: 0.8;
  transform: translate3d(-50%, -50%, 0) perspective(800px) rotatey(10deg) rotateX(-10deg);
}
.images-line {
  animation: runner var(--duration) linear infinite;
  display: flex;
  transform: translateX(23%);
}
.images-line:nth-child(even) {
  animation-duration: calc(var(--duration) * 1.5);
}
.images-line .line {
  background-position: 50% 50%;
  background-size: cover;
  flex: none;
  height: 90px;
  margin: clamp(10px, 10px, 10px);
  width: 180px;
  position: relative;
  transition: ease-in-out all 0.3s;
  border-radius: 1rem;
}
.images-line .line .img {
  position: absolute;
  z-index: 2;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-position: 50% 50%;
  background-size: cover;
  transition: ease-in-out all 0.3s;
  overflow: hidden;
  border-radius: 10px;
}
@keyframes runner {
  to {
    transform: translateX(-10.4%);
  }
}
