.banner {
  position: fixed;
  display: flex;
  justify-content: space-between;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  z-index: 990;
  background: transparent;
  height: 60px;
}

.logo-quad {
  height: 60px;
}

.logo-text {
  position: fixed;
  top: 10px;
  height: 40px;
  left: 70px;
  z-index: 991;
  mix-blend-mode: difference;
}

.logo-wrapper {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  position: fixed;
  top: 18px;
  right: 225px;
  align-items: center;
  list-style: none;
  gap: 20px;
  z-index: 991;
  mix-blend-mode: difference;
}

@keyframes nav {
  from {
    transform: translateX(150%);
  }
  to {
    transform: translateX(0%);
    opacity: 1;
  }
}

@keyframes log {
  from {
    transform: translateX(-150%);
  }
  to {
    transform: translateX(0%);
    opacity: 1;
  }
}

.nav-link {
  color: #e4e2e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link a {
  mix-blend-mode: difference;
}

.nav-link:hover {
  color: #d71921;
}

.contact-button {
  font-family: "Syne", Helvetica, Arial, sans-serif;
  height: 60px;
  padding: 0px 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  background-color: #1a1d1c;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.contact-button:hover {
  background-color: #d71921;
}

.contact-text {
  font-size: 16px;
  color: #ffffff;
}

.back-button {
  position: fixed;
  top: 0px;
  left:0px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background-color: #1a1d1c;
  z-index: 1099;
  transition: all 0.3s ease;
}

.back-button:hover {
  background-color: #d71921;
  transition: all 0.3s ease;
}

.back-arrow {
  width: 32px;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100svh;
  width: 100%;
  padding: 60px 60px;
  padding-top: 160px;
  background-color: #ffffff;
  overflow: hidden;
  transition: all 0.6s ease;
}

.hero-content {
  z-index: 2;
}

.hero-title {
  font-size: 80px;
  line-height: 1.2;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.6s;
}

.hero-title .highlight {
  color: #d71921;
}

.hero-subtitle {
  max-width: 400px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.9s;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  z-index: 2;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.9s;
}

.hero .cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.hero .cta-icon {
  width: 60px;
  animation: scroll 2s infinite ease;
}

@keyframes scroll {
  0% {
    transform: translateY(0) rotate(90deg);
  }
  50% {
    transform: translateY(-20px) rotate(90deg);
  }
  100% {
    transform: translateY(0) rotate(90deg);
  }
}

.hero .cta-scroll {
  color: #3B393E75;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 80px;
}

.section-icon {
  height: 80px;
}

.persona {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 80px 60px;
  background-color: #d71921;
  color: #ffffff;
}

.persona-black {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 80px 60px;
  background-color: #1a1d1c;
  color: #ffffff;
}

.persona-group {
  display: flex;
  gap: 40px;
}

.persona-logo {
  width: 183px;
  height: 22px;
}

.persona-image-wrapper {
  width: 200px;
  height: 200px;
  background-color: #1a1d1c;
  overflow: hidden;
}

.persona-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.persona-content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  justify-content: space-between;
}

.persona-header {
  display: flex;
  align-items: flex-start;
  align-self: stretch;
  gap: 20px;
}

.persona-icon {
  height: 40px;
}

.persona-icon-red {
  height: 40px;
}


.persona-title {
  padding-top: 8px;
}

.persona-description {
  color: #fff;
}

.portfolio {
  padding: 120px 60px;
  background-color: #1a1d1c;
  color: #ffffff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}

.portfolio-item {
  border: 1px solid #ffffff50;
  overflow: hidden;
  cursor: url(images/arrow-red.svg) 32 26, auto;
}

.portfolio-image-wrapper {
  width: 100%;
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio (9/16 = 0.5625) */
  overflow: hidden;
}

.portfolio-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-image-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(#1a1d1c00 50%, #1a1d1c 100%);
  z-index: 1;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(110%) translate(4%, 4%);
  transition: transform 0.5s ease;
}

.portfolio-item-link {
  color: #ffffff;
}

.portfolio-title {
  position: absolute;
  bottom: 8px;
  left: 24px;
  right: 24px;
  line-height: 150%;
  z-index: 2;
}

.portfolio-content {
  padding: 24px;
}

.portfolio-tags {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.tag {
  background-color: #d71921;
  color: #ffffff;
  padding: 4px 8px;
}

.tools {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 80px 60px;
  background-color: #d71921;
  color: #ffffff;
}

.tools-title {
  text-align: center;
  margin-bottom: 60px;
  width: 100%;
}

.tools-content {
  display: flex;
  gap: 40px;
}

.tools-list {
  display: flex;
  gap: 40px;
  animation: tools 20s linear infinite;
}

@keyframes tools {
  0% {
    transform: translateX(-60px);
  }
  100% {
    transform: translateX(calc(-100% - 100px));
  }
}

.tools-image {
  height: 48px;
}

.services {
  padding: 120px 60px;
  background-color: #ffffff;
}

.services-list {
  margin-bottom: 60px;
}

.service-item {
  position: relative;
  overflow: hidden;
  padding: 60px 60px;
  border-top: 1px solid #1a1d1c50;
  transition: all 0.3s ease;
}

.service-item:last-child {
  border-bottom: 1px solid #1a1d1c50;
}

.service-title {
  transition: transform 0.6s ease;
}

.service-keywords {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.keywords-list {
  display: flex;
  font-size: 24px;
  color: #3B393E;
  font-family: "Syne", Helvetica, Arial, sans-serif;
  white-space: nowrap;
  animation: scrollKeywords 30s linear infinite;
}

.service-item:nth-child(2) .keywords-list {
  animation-direction: reverse;
}

.service-item:nth-child(3) .keywords-list {
  animation-direction: normal;
}

.service-item:nth-child(4) .keywords-list {
  animation-direction: reverse;
}

@keyframes scrollKeywords {
  0% {
    transform: translateX(-25%);
  }
  100% {
    transform: translateX(25%);
  }
}

.service-item:hover .service-title {
  transform: translateY(-300%);
}

.service-item:hover .service-keywords {
  opacity: 1;
}

.process {
  padding: 120px 60px;
  background-color: #1a1d1c;
  color: #ffffff;
}

.process-steps {
  display: flex;
  flex-direction: row;
  gap: 60px;
}

.process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-2 {
  align-self: center;
}

.step-3 {
  align-self: flex-end;
}

.step-number {
  font-family: "Syne Mono", Helvetica, Arial, sans-serif;
  font-size: 32px;
  color: #d71921;
}

.step-content {
  border-top: 2px solid #ffffff50;
  padding-top: 20px;
}

.step-title {
  margin-bottom: 12px;
}

.gallery {
  overflow: hidden;
  display: flex;
  width: 100%;
  height: 360px;
}

.gallery-container {
  display: flex;
  width: max-content; /* Automatische Breite für flex-Elemente */
  animation: gallery 30s linear infinite;
}

.gallery-item {
  width: 360px;
  height: 360px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

@keyframes gallery {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

.highlight {
  color: #d71921;
}

.contact-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 40px;
  padding: 80px 60px;
  padding-bottom: 60px;
  background-color: #1a1d1c;
  color: #ffffff;
}

.contact-container {
  display: flex;
  flex-direction: column;
}

.contact-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 80px;
}

.contact-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.contact-text {
  text-align: center;
}

.contact-label {
  color: #c9c5c1
}

.contact-details {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 40px;
}

.contact-details a {
  color: #ffffff;
  font-family: "Syne Mono", Helvetica, Arial, sans-serif;
}

.contact-details a:hover {
  color: #d71921;
}

.primary-button {
  font-family: "Syne", Helvetica, Arial, sans-serif;
  padding: 0px 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  background-color: #1a1d1c;
  border: 1px solid;
  border-color: #ffffff50;
  text-decoration: none;
  transition: background-color 0.3s ease;
  width: 100%;
  height: 160px;
}

.primary-button:hover {
  background-color: #d71921;
}

.footer {
  background-color: #1a1d1c;
  color: #ffffff;
  padding: 0 0;
  height: 60px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-item {
  flex: 1;
  display: flex;
  justify-content: center;
  height:100%
}

.footer-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 60px;
  background: none;
  border-top: 1px solid #ffffff50;
  border-left: 1px solid #ffffff50;
  border-bottom: 1px solid #ffffff50;
}

.footer-button {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease; 
}

.footer-item:nth-child(1) {
  border-left: 0px solid #ffffff50;
}

.footer-button.legal:hover {
  background-color: #d71921;
}

.footer-button.email:hover {
  background-color: #0D72D0;
}

.footer-button.whatsapp:hover {
  background-color: #4CD360;
}

.footer-button.dribbble:hover {
  background-color: #C32262;
}

.footer-button.to-top:hover {
  background-color: #d71921;
}

.footer-icon {
  width: 20px;
  height: 20px;
}

.footer-text {
  font-family: "Syne", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 20px;
  white-space: nowrap;
}

.legal-header {
  padding: 180px 60px; 
  align-items: center;
  gap: 20px;
  background-color: #fff;
}

.legal-black {
  padding: 120px 60px; 
  align-items: center;
  gap: 20px;
  background-color: #1a1d1c;
  color: #fff;
}

.project-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100svh;
  padding-left: 60px;
  padding-right: 60px;
  padding-top: 120px;
  padding-bottom: 0px;
  align-items: center;
  gap: 20px;
  background-color: #fff;
}

.project-header-wrap {
  width: 100%;
}

.project-preview {
  display: flex;
  gap: 40px;
  width: 100%;
  justify-content: start;
}

.project-description {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  justify-content: flex-start;
  align-items: start;
}

.project-text-header {
  margin-bottom: 20px;
}

.project-part {
  text-align: center;
  padding-bottom: 40px;
}

.project-big {
  display: flex;
  justify-content: center;
  width: 100%;
}

.project-big img {
  width: 100%;
  max-width: 1200px;
}

h2.dark {
  color: #fff !important;
  padding-bottom: 80px;
}

.preview {
  width: 1080px;
  height: auto;
}

.project-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1080px;
  align-items: center;
}

.project-image {
  width: 100%;
}

.project-preview-image {
  width: 50%;
}

.project-content {
  padding: 120px 60px;
  background-color: #fff;
}

.project-wrapper {
  display: flex;
  flex-direction: column;
  gap: 120px;
  align-items: center;
}

.project-title-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  height: 120px;
  gap: 20px;
}

.project-arrow {
  width: 20px;
}

.mobile-menu {
  display: none;
}

.menu-button {
  display: none;
}

@media (max-width: 1200px) {
  .menu-button {
    display: inline;
    position: fixed;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    background-color: #1a1d1c;
  }
  
  .menu-icon {
    width: 30px;
    height: 24px;
    position: relative;
  }
  
  .menu-line {
    width: 30px;
    height: 4px;
    background-color: #ffffff;
    position: absolute;
    transition: all 0.3s ease;
  }
  
  .menu-line:nth-child(1) {
    top: 0;
  }
  
  .menu-line:nth-child(2) {
    top: 10px;
  }
  
  .menu-line:nth-child(3) {
    top: 20px;
  }
  
  .menu-button.open .menu-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  
  .menu-button.open .menu-line:nth-child(2) {
    opacity: 0;
  }
  
  .menu-button.open .menu-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
  
  .mobile-menu {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    background-color: #ffffff;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 970;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 0;
    padding-bottom: 40px;
  }
  
  .mobile-menu.open {
    transform: translateY(0);
  }
  
  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-link {
    color: #1a1d1c;
  }
  
  .contact-button {
    margin-top: 40px;
  }

  .banner .contact-button {
    display: none;
  }

  .project-header {
    padding-bottom: 0px !important;
    padding-top: 120px !important;
  }

  .project-item {
    flex-direction: column;
    gap: 0px;
  }

  .project-image {
    width: 100%;
  }

  .project-text {
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: 48px;
  }

  .section-title {
    font-size: 48px;
  }

  h3 {
    font-size: 24px;
  }

  h4 {
    font-size: 16px;
  }

  .keywords-list {
    font-size: 16px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .project-preview {
    flex-direction: column;
  }

  .project-preview-image {
    width: 100%;
  }

  .process-steps {
    flex-direction: column;
  }
  .footer-text {
    display: none;
  }
  .primary-button {
    height: 120px;
  }
}

@media (max-width: 768px) {
  .legal-header {
    padding-top: 120px !important;
  }

  .project-header {
    padding-bottom: 0px !important;
    padding-top: 120px;
  }
  
  section {
    padding: 60px 20px !important;
  }

  .hero {
    height: 100svh !important;
    padding-top: 120px !important;
  }

  .hero-title {
    font-size: 40px;
  }

  .section-title {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  h4 {
    font-size: 16px;
  }

  p {
    font-size: 14px;
  }

  .keywords-list {
    font-size: 16px;
  }

  .section-icon {
    width: 24px;
  }

  .section-header {
    gap: 16px;
    margin-bottom: 40px;
  }

  .cta-icon {
    width: 40px !important;
  }

  .project-wrapper {
    gap: 60px;
  }

  .hero .cta-group {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

  .hero-subtitle {
    max-width: 240px;
  }

  .portfolio-title {
    position: absolute;
    bottom: 0px;
    left: 12px;
    right: 12px;
    line-height: 150%;
    z-index: 2;
  }
  
  .portfolio-content {
    padding: 12px;
  }

  .persona {
    flex-direction: column;
  }

  .persona-content {
    gap: 20px;
  }
  
  .persona-group {
    flex-direction: column;
    align-items: center;
  }

  .persona-image-wrapper {
    width: 160px;
    height: 160px;
  }

  .tools-list {
    gap: 20px;
  }

  .tools-image {
    height: 24px;
  }

  .services-list {
    padding: 0;
  }

  .service-item {
    padding: 40px 0px;
  }

  .tools-title {
    margin-bottom: 40px;
  }

  .tools-content {
    gap: 20px;
  }

  .dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 8px;
  }

  .gallery {
    height: auto;
    padding: 0 !important;
  }

  .gallery-item {
    width: 160px;
    height: 160px;
  }

  .primary-button {
    height: 80px;
  }

  .contact-section {
    gap: 24px;
  }

  .footer {
    padding: 0 !important;
  }
}

/* Slideshow container */

.slideshow {
  padding: 120px 60px;
}

.slideshow-container {
  max-width: 1080px;
  position: relative;
  margin: auto;
  overflow: hidden;
}

@keyframes fadeInUp {
  0% {
    transform: translateY(40px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

/* Show the active slide */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.mySlides.fadeIn {
  animation: fadeIn 0.6s ease forwards;
}

.mySlides.fadeOut {
  animation: fadeOut 0.6s ease forwards;
}

/* Next & previous buttons */
.prev,
.next {
  position: absolute;
  top: 0px;
  width: 50%;
  height: 100%;
  padding-top: 40px;
  padding-bottom: 40px;
  padding-left: 20px;
  padding-right: 20px;
  color: #d7192100;
  font-weight: bold;
  font-size: 48px;
  line-height: 0%;
  transition: 0.6s ease;
  user-select: none;
}

.prev:hover,
.next:hover,
.prev:focus,
.next:focus,
.prev:active,
.next:active {
  animation: slide 0.6s ease;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  cursor: url(images/slide-right.svg) 20 24, auto;
}

.prev {
  cursor: url(images/slide-left.svg) 20 24, auto;
}

/* Caption text */
.slideshow .text {
  color: #fff;
  width: 100%;
  text-align: center;
  margin-top: 20px;
  z-index: 2;
}

/* Number text (1/3 etc) */
.numbertext {
  display: none;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 16px;
  width: 16px;
  margin: 0 8px;
  background-color: #bbb;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dot:hover {
  background-color: #d71921;
}

@keyframes slide {
  0% {
    background-color: #1a1d1c00;
  }
  50% {
    background-color: #1a1d1c50;
  }
  100% {
    background-color: #1a1d1c00;
  }
}

.hero-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100svh;
  display: flex;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 0.9s ease forwards;
  animation-delay: 1.2s;
}

.box {
  position: absolute;
  width: 555.55px;
  height: 200px;
  background-size: cover;
  animation: moveDiagonal 30s linear infinite;
}

.box:nth-child(1) {
  top: 0;
  right: -60px; /* Nach rechts verschoben */
  background: url(images/h1.webp);
  background-size: contain;
}
.box:nth-child(2) {
  top: 200px;
  right: 140px; /* 200px - 60px */
  background: url(images/h2.webp);
  background-size: contain;
}
.box:nth-child(3) {
  top: 400px;
  right: 340px; /* 400px - 60px */
  background: url(images/h3.webp);
  background-size: contain;
}
.box:nth-child(4) {
  top: 600px;
  right: 540px; /* 600px - 60px */
  background: url(images/h4.webp);
  background-size: contain;
}
.box:nth-child(5) {
  top: 800px;
  right: 740px; /* 800px - 60px */
  background: url(images/h5.webp);
  background-size: contain;
}
.box:nth-child(6) {
  top: 1000px;
  right: 940px; /* 1000px - 60px */
  background: url(images/h6.webp);
  background-size: contain;
}
.box:nth-child(7) {
  top: 1200px;
  right: 1140px; /* 1200px - 60px */
  background: url(images/h7.webp);
  background-size: contain;
}
.box:nth-child(8) {
  top: 1400px;
  right: 1340px; /* 1400px - 60px */
  background: url(images/h8.webp);
  background-size: contain;
}
.box:nth-child(9) {
  top: 1600px;
  right: 1540px; /* 1600px - 60px */
  background: url(images/h1.webp);
  background-size: contain;
}
.box:nth-child(10) {
  top: 1800px;
  right: 1740px; /* 1800px - 60px */
  background: url(images/h2.webp);
  background-size: contain;
}
.box:nth-child(11) {
  top: 2000px;
  right: 1940px; /* 2000px - 60px */
  background: url(images/h3.webp);
  background-size: contain;
}
.box:nth-child(12) {
  top: 2200px;
  right: 2140px; /* 2200px - 60px */
  background: url(images/h4.webp);
  background-size: contain;
}
.box:nth-child(13) {
  top: 2400px;
  right: 2340px; /* 2400px - 60px */
  background: url(images/h5.webp);
  background-size: contain;
}
.box:nth-child(14) {
  top: 2600px;
  right: 2540px; /* 2600px - 60px */
  background: url(images/h6.webp);
  background-size: contain;
}
.box:nth-child(15) {
  top: 2800px;
  right: 2740px; /* 2800px - 60px */
  background: url(images/h7.webp);
  background-size: contain;
}
.box:nth-child(16) {
  top: 3000px;
  right: 2940px; /* 3000px - 60px */
  background: url(images/h8.webp);
  background-size: contain;
}

@keyframes moveDiagonal {
  0% {
    transform: translate(0px, -8px);
  }
  100% {
    transform: translate(1600px, -1608px);
  }
}

@media (max-width: 1200px) {
  .box {
    width: 333.33px;
    height: 120px;
    animation: moveDiagonalSmall 30s linear infinite;
  }

  .box:nth-child(1) {
    top: 0;
    right: -60px;
  }
  .box:nth-child(2) {
    top: 120px;
    right: 60px;
  }
  .box:nth-child(3) {
    top: 240px;
    right: 180px;
  }
  .box:nth-child(4) {
    top: 360px;
    right: 300px;
  }
  .box:nth-child(5) {
    top: 480px;
    right: 420px;
  }
  .box:nth-child(6) {
    top: 600px;
    right: 540px;
  }
  .box:nth-child(7) {
    top: 720px;
    right: 660px;
  }
  .box:nth-child(8) {
    top: 840px;
    right: 780px;
  }
  .box:nth-child(9) {
    top: 960px;
    right: 900px;
  }
  .box:nth-child(10) {
    top: 1080px;
    right: 1020px;
  }
  .box:nth-child(11) {
    top: 1200px;
    right: 1140px;
  }
  .box:nth-child(12) {
    top: 1320px;
    right: 1260px;
  }
  .box:nth-child(13) {
    top: 1440px;
    right: 1380px;
  }
  .box:nth-child(14) {
    top: 1560px;
    right: 1500px;
  }
  .box:nth-child(15) {
    top: 1680px;
    right: 1620px;
  }
  .box:nth-child(16) {
    top: 1800px;
    right: 1740px;
  }

  @keyframes moveDiagonalSmall {
    0% {
      transform: translate(0px, 0px);
    }
    100% {
      transform: translate(960px, -960px);
    }
  }
}

@media (max-width: 768px) {
  .box {
    width: 222.22px;
    height: 80px;
    animation: moveDiagonalSmall 30s linear infinite;
  }

  .box:nth-child(1) {
    top: 0;
    right: 0;
  }
  .box:nth-child(2) {
    top: 80px;
    right: 80px;
  }
  .box:nth-child(3) {
    top: 160px;
    right: 160px;
  }
  .box:nth-child(4) {
    top: 240px;
    right: 240px;
  }
  .box:nth-child(5) {
    top: 320px;
    right: 320px;
  }
  .box:nth-child(6) {
    top: 400px;
    right: 400px;
  }
  .box:nth-child(7) {
    top: 480px;
    right: 480px;
  }
  .box:nth-child(8) {
    top: 560px;
    right: 560px;
  }
  .box:nth-child(9) {
    top: 640px;
    right: 640px;
  }
  .box:nth-child(10) {
    top: 720px;
    right: 720px;
  }
  .box:nth-child(11) {
    top: 800px;
    right: 800px;
  }
  .box:nth-child(12) {
    top: 880px;
    right: 880px;
  }
  .box:nth-child(13) {
    top: 960px;
    right: 960px;
  }
  .box:nth-child(14) {
    top: 1040px;
    right: 1040px;
  }
  .box:nth-child(15) {
    top: 1120px;
    right: 1120px;
  }
  .box:nth-child(16) {
    top: 1200px;
    right: 1200px;
  }

  @keyframes moveDiagonalSmall {
    0% {
      transform: translate(200px, 200px);
    }
    100% {
      transform: translate(840px, -440px);
    }
  }
}