@font-face {
    font-family: 'Ferrous Clutch';
    font-weight: bold;
    src: url('Fonts/FerrousClutchAwakening.otf');
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    align-items: center;
    background: url('Images/qwe.png') center fixed no-repeat;
    color: #fff;
    display: flex;
    font-family: 'Ferrous Clutch';
    height: 100vh;
    justify-content: center;
    letter-spacing: 1px;
    line-height: 1.6;
    padding: 20px;
    padding-bottom: 100px;
    position: relative;
    -webkit-text-stroke: 1px #000;
}

.content {
    height: 200vh;
    padding: 20px;
}

h1 {
    display: inline-block;
    font-size: 10rem;
    margin-bottom: 2rem;
    margin-top: 0;
    transition: transform 0.5s ease, color 0.5s ease, text-shadow 0.5s ease;
    will-change: transform, text-shadow;
}

h4 {
    display: block;
    font-size: 4.5rem;
    padding: 20px;
    text-align: left;
    white-space: nowrap;
    will-change: transform, opacity;
}

.container {
    margin: 0 auto;
    max-width: 800px;
    text-align: left;
    width: 100%;
}

h4.animation1 {
    position: relative;
}

h4.animation1::after {
    animation: animation1 2s infinite;
    content: "";
    display: inline-block;
    text-align: left;
    width: 1.5em;
    will-change: content;
}

@keyframes animation1 {
    0% { content: ""; }
    25% { content: "."; }
    50% { content: ".."; }
    75% { content: "..."; }
    100% { content: ""; }
}

footer {
    background: rgba(0, 0, 0, 0.5);
    bottom: 0;
    font-size: 2.8rem;
    left: 0;
    letter-spacing: 4px;
    mask: linear-gradient(90deg, transparent, #fff 10%, #fff 90%, transparent);
    overflow: hidden;
    padding: 10px 0;
    position: fixed;
    -webkit-text-stroke: 0;
    width: 100%;
    word-spacing: 7px;
    z-index: 1000;
}

.marquee {
    animation: scroll 220s linear infinite;
    bottom: 0;
    display: flex;
    white-space: nowrap;
}

.gap {
    background-color: transparent;
    display: inline-block;
    flex-shrink: 0;
    height: 1em;
    pointer-events: none;
    vertical-align: middle;
    width: 60vw;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    97% { transform: translateX(-4000%); }
    100% { transform: translateX(-4000%); }
}

@media (max-width: 768px) and (pointer: coarse),
       (max-width: 768px) and (hover: none) {

  body {
    flex-direction: column;
    height: 100vh;
    justify-content: flex-start;
    letter-spacing: 2px;
    min-height: 100vh;
    overflow: hidden;
    padding: 5px;
  }

  h1 {
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    margin-top: 1rem;
    padding: 10px 20px;
  }

  h4 {
    color: #000;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    padding: 10px;
    white-space: normal;
  }

  footer {
    background: rgba(0, 0, 0, 0.5);
    bottom: 0;
    color: #fff;
    font-size: 1rem;
    left: 0;
    letter-spacing: 2px;
    padding: 5px 0;
    width: 100%;
    word-spacing: -1px;
    z-index: 1000;
  }

  .marquee {
    animation: scroll-mobile 190s linear infinite;
    bottom: 0;
    display: flex;
    white-space: nowrap;
  }

  .gap {
    width: 100vw;
  }

  @keyframes scroll-mobile {
    0% { transform: translateX(100%); }
    97% { transform: translateX(-10400%); }
    100% { transform: translateX(-10400%); }
  }
}