h1 {
  color: #333;
  font-family: tahoma;
  font-size: 3rem;
  font-weight: 100;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  width: 550px;
}

h1 span {
  font-size: 40px;
  margin-left: 40px;
}
.message {
  background-color: yellow;
  color: #333;
  display: block;
  font-weight: 900;
  overflow: hidden;
  position: absolute;
  padding-left: 0.5rem;
  top: 0.2rem;
  left: 270px;
  animation: openclose 5s ease-in-out infinite;
}

.shine-effect {
  font-size: 20px;  
  cursor: pointer;
  text-transform: uppercase;
}

.shine-effect {
  background: linear-gradient(to right, #009846 0, #FFFFFF 10%, #0e93d5 20%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 60s infinite linear;
}

@keyframes openclose {
  0% {
    top: 0.2rem;
    width: 0;
  }
  5% {
    width: 0;
  }
  15% {
    width: 230px;
  }
  30% {
    top: 0.2rem;
    width: 230px;
  }
  33% {
    top: 0.2rem;
    width: 0;
  }
  35% {
    top: 0.2rem;
    width: 0;
  }
  38% {
    top: -4.5rem;
    
  }
  48% {
    top: -4.5rem;
    width: 190px;
  }
  62% {
    top: -4.5rem;
    width: 190px;
  }
  66% {
    top: -4.5rem;
    width: 0;
    text-indent: 0;
  }
  71% {
    top: -9rem;
    width: 0;
    text-indent: 5px;
  }
  86% {
    top: -9rem;
    width: 285px;
  }
  95% {
    top: -9rem;
    width: 285px;
  }
  98% {
    top: -9rem;
    width: 0;
    text-indent: 5px;
  }
  100% {
    top: 0;
    width: 0;
    text-indent: 0;
  }
}

@keyframes shine {
  0% {
    background-position: 0;
  }

 
  100% {
    background-position: 6000px;
  }
}

@media(max-width: 979px){
  .shine-effect {
    background: linear-gradient(to right, #009846 0, #FFFFFF 10%, #0e93d5 20%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 60s infinite linear;
  }
@keyframes shine {
  0% {
    background-position: 0;
  }


  100% {
    background-position: 6000px ;
  }
}
}
