@import url('https://fonts.googleapis.com/css2?family=Poiret+One&display=swap');

.container {
  overflow: hidden;
  position: relative;
  
  box-shadow: 0 0 10px #111;
}

.container img {
  width: 100%;
  animation: burns 10s ease-in-out;
  animation-iteration-count: 2;
  animation-direction: alternate;
  animation-fill-mode: forwards;
}

@-webkit-keyframes burns {
  0% {
    transform: scale(1);
    transform-origin: bottom left;
  }
  50% {
    transform: scale(1.1) rotate(0deg);
    transform-origin: center center;
  }
  100% {
    transform: scale(1);
    transform-origin: top right;
  }
}

h1 {
  font-family: Poiret One;
  position: absolute;
  top: 70%;
  left: 40%;
  font-size: 60px;
  z-index: 1;
  color: white;
  animation: text-ani 10s ease;
  animation-iteration-count: 2;
  animation-direction: alternate;
  animation-fill-mode: forwards;
  transform-origin: center right;
  line-height: .6em;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  text-align: center;
}

h1 strong {
  font-size: 60px;
}

@-webkit-keyframes text-ani {
  0% {
    transform: scale(1);
    opacity: 0;
  }
  50% {
    transform: scale(1.4);
    opacity: .9;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

body {
  background: #808080;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

