@import url("https://fonts.googleapis.com/css?family=Montserrat:100");

body {
    font-family: "Montserrat", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.hero-section {
    position:relative;
    background: url('chip.jpg') center/cover no-repeat;
    
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: slide-anim 30s infinite linear alternate-reverse; /* Apply animation */
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 25px;
    border-radius: 10px;

    background: linear-gradient(rgba(10, 10, 10, 0.6), rgba(0, 0, 0, 0.7)), repeating-linear-gradient(0, transparent, transparent 4px, black 5px, black 4px);
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-header {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
}

.hero-subheader {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ccc;
}

/* Our mixin positions a copy of our text
directly on our existing text, while
also setting content to the appropriate
text set in the data-text attribute. */
.glitch {
    position: relative;
    color: white;
    letter-spacing: 0.5em;
    /* Animation provies a slight random skew. Check bottom of doc
    for more information on how to random skew. */
    animation: glitch-skew 1s infinite linear alternate-reverse;
  }
  .glitch::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    /* Creates an initial clip for our glitch. This works in
    a typical top,right,bottom,left fashion and creates a mask
    to only show a certain part of the glitch at a time. */
    clip: rect(44px, 450px, 56px, 0);
    /* Runs our glitch-anim defined below to run in a 5s loop, infinitely,
    with an alternating animation to keep things fresh. */
    animation: glitch-anim 5s infinite linear alternate-reverse;
  }
  .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    animation: glitch-anim2 1s infinite linear alternate-reverse;
  }
  
  /* Creates an animation with 20 steaps. For each step, it calculates 
  a percentage for the specific step. It then generates a random clip
  box to be used for the random glitch effect. Also adds a very subtle
  skew to change the 'thickness' of the glitch.*/
  @keyframes glitch-anim {
    0% {
      clip: rect(49px, 9999px, 45px, 0);
      transform: skew(0.76deg);
    }
    5% {
      clip: rect(86px, 9999px, 100px, 0);
      transform: skew(0.99deg);
    }
    10% {
      clip: rect(40px, 9999px, 77px, 0);
      transform: skew(0.32deg);
    }
    15% {
      clip: rect(43px, 9999px, 2px, 0);
      transform: skew(0.53deg);
    }
    20% {
      clip: rect(22px, 9999px, 40px, 0);
      transform: skew(0.17deg);
    }
    25% {
      clip: rect(94px, 9999px, 25px, 0);
      transform: skew(0.58deg);
    }
    30% {
      clip: rect(84px, 9999px, 66px, 0);
      transform: skew(0.64deg);
    }
    35% {
      clip: rect(86px, 9999px, 79px, 0);
      transform: skew(0.81deg);
    }
    40% {
      clip: rect(55px, 9999px, 48px, 0);
      transform: skew(0.63deg);
    }
    45% {
      clip: rect(97px, 9999px, 79px, 0);
      transform: skew(0.03deg);
    }
    50% {
      clip: rect(85px, 9999px, 63px, 0);
      transform: skew(0.44deg);
    }
    55% {
      clip: rect(16px, 9999px, 75px, 0);
      transform: skew(0.17deg);
    }
    60% {
      clip: rect(8px, 9999px, 84px, 0);
      transform: skew(0.75deg);
    }
    65% {
      clip: rect(6px, 9999px, 69px, 0);
      transform: skew(0.15deg);
    }
    70% {
      clip: rect(90px, 9999px, 8px, 0);
      transform: skew(0.03deg);
    }
    75% {
      clip: rect(60px, 9999px, 54px, 0);
      transform: skew(0.78deg);
    }
    80% {
      clip: rect(88px, 9999px, 71px, 0);
      transform: skew(0.56deg);
    }
    85% {
      clip: rect(70px, 9999px, 97px, 0);
      transform: skew(0.1deg);
    }
    90% {
      clip: rect(30px, 9999px, 14px, 0);
      transform: skew(0.94deg);
    }
    95% {
      clip: rect(38px, 9999px, 38px, 0);
      transform: skew(0.13deg);
    }
    100% {
      clip: rect(90px, 9999px, 36px, 0);
      transform: skew(0.46deg);
    }
  }
  @keyframes glitch-anim2 {
    0% {
      clip: rect(46px, 9999px, 57px, 0);
      transform: skew(0.99deg);
    }
    5% {
      clip: rect(4px, 9999px, 23px, 0);
      transform: skew(0.99deg);
    }
    10% {
      clip: rect(6px, 9999px, 58px, 0);
      transform: skew(0.63deg);
    }
    15% {
      clip: rect(18px, 9999px, 58px, 0);
      transform: skew(0.5deg);
    }
    20% {
      clip: rect(29px, 9999px, 55px, 0);
      transform: skew(0.84deg);
    }
    25% {
      clip: rect(55px, 9999px, 63px, 0);
      transform: skew(0.78deg);
    }
    30% {
      clip: rect(37px, 9999px, 94px, 0);
      transform: skew(0.72deg);
    }
    35% {
      clip: rect(70px, 9999px, 73px, 0);
      transform: skew(0.53deg);
    }
    40% {
      clip: rect(17px, 9999px, 8px, 0);
      transform: skew(0.56deg);
    }
    45% {
      clip: rect(83px, 9999px, 11px, 0);
      transform: skew(0.1deg);
    }
    50% {
      clip: rect(65px, 9999px, 92px, 0);
      transform: skew(0.01deg);
    }
    55% {
      clip: rect(63px, 9999px, 89px, 0);
      transform: skew(0.27deg);
    }
    60% {
      clip: rect(3px, 9999px, 43px, 0);
      transform: skew(0.67deg);
    }
    65% {
      clip: rect(4px, 9999px, 79px, 0);
      transform: skew(0.05deg);
    }
    70% {
      clip: rect(67px, 9999px, 75px, 0);
      transform: skew(0.1deg);
    }
    75% {
      clip: rect(27px, 9999px, 86px, 0);
      transform: skew(0.59deg);
    }
    80% {
      clip: rect(44px, 9999px, 78px, 0);
      transform: skew(0.66deg);
    }
    85% {
      clip: rect(37px, 9999px, 42px, 0);
      transform: skew(0.17deg);
    }
    90% {
      clip: rect(82px, 9999px, 53px, 0);
      transform: skew(0.23deg);
    }
    95% {
      clip: rect(66px, 9999px, 86px, 0);
      transform: skew(0.04deg);
    }
    100% {
      clip: rect(52px, 9999px, 94px, 0);
      transform: skew(0.59deg);
    }
  }
  @keyframes glitch-skew {
    0% {
      transform: skew(0deg);
    }
    10% {
      transform: skew(0deg);
    }
    20% {
      transform: skew(5deg);
    }
    30% {
      transform: skew(4deg);
    }
    40% {
      transform: skew(3deg);
    }
    50% {
      transform: skew(4deg);
    }
    60% {
      transform: skew(-3deg);
    }
    70% {
      transform: skew(-1deg);
    }
    80% {
      transform: skew(1deg);
    }
    90% {
      transform: skew(-4deg);
    }
    100% {
      transform: skew(1deg);
    }
  }

  /* Define the animation */
@keyframes slide-anim {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

.footer {
  position: absolute;
  bottom: 10px;
  right: 10px;
  left: 10px;
  background-color:transparent;
  color: #000;
  text-align: center;
  font-weight: bold;
  font-size: 1em;
}

.heart {
  color: #ff3860;
}
