/* only works on a minimum screen size of iphone 5/5s */
@media only screen and (max-width: 319px) {
  body {
    display: none;
  }
}

/* works on every modern smartphone size */
@media only screen and (min-width: 319), (max-width: 500px) {
  body {
    background-image: linear-gradient(to right, #151516, #090a0a, #151617);
    color: white;
  }
  /* TITLE */
  .main-title {
    font-weight: bolder;
    font-family: monospace;
    font-size: 90px;
    line-height: 90px;
    text-align: center;
  }

  #POR {
    position: relative;
    animation: POR 1.5s steps(50) 1;
  }

  @keyframes POR {
    40%,
    60% {
      right: calc(100% + 30px); /*movement towards right of the words POR*/
    }
    100% {
      right: 0;
    }
  }
  #TFO {
    position: relative;
    animation: TFO 2s steps(100) 1;
  }

  @keyframes TFO {
    40%,
    60% {
      right: calc(100% + 30px); /*movement towards right of the words TFO*/
    }
    100% {
      right: 0;
    }
  }
  #LIO {
    position: relative;
    animation: LIO 3s steps(200) 1;
  }

  @keyframes LIO {
    40%,
    60% {
      right: calc(100% + 30px); /*movement towards right of the words LIO*/
    }
    100% {
      right: 0;
    }
  }

  /* VIEW BUTTON */
  .view-button {
    background: black;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
      Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    letter-spacing: 9px;
    font-weight: 900;
    padding: 9px;
    bottom: 20px;
    margin-left: 200px;
    border: 3px solid #396afc;
    position: relative;
    animation: move 1s infinite steps(100);
  }

  @keyframes move {
    from {
      width: 0px;
    }
    to {
      width: 90px;
    }
  }
  .view-button:focus {
    color: #396afc;
  }
  a {
    text-decoration: none;
  }
}

/* screen size of tablets and desktops */

@media only screen and (min-width: 500px), (max-width: 500) {
  body {
    background-image: linear-gradient(to right, #151516, #090a0a, #151617);
    color: white;
  }

  /* TITLE */
  .main-title {
    font-weight: bolder;
    font-family: monospace;
    font-size: 8em;
    line-height: 90px;
    text-align: center;
    letter-spacing: 50px;
  }

  #POR {
    position: relative;
    animation: POR 1.5s steps(50) 1;
  }

  @keyframes POR {
    40%,
    60% {
      right: calc(100% + 30px); /*movement towards right of the words POR*/
    }
    100% {
      right: 0;
    }
  }
  #TFO {
    position: relative;
    animation: TFO 2s steps(100) 1;
  }

  @keyframes TFO {
    40%,
    60% {
      right: calc(100% + 30px); /*movement towards right of the words TFO*/
    }
    100% {
      right: 0;
    }
  }
  #LIO {
    position: relative;
    animation: LIO 3s steps(200) 1;
  }

  @keyframes LIO {
    40%,
    60% {
      right: calc(100% + 30px); /*movement towards right of the words LIO*/
    }
    100% {
      right: 0;
    }
  }

  /* VIEW BUTTON */
  .view-button {
    background: black;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
      Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    letter-spacing: 9px;
    font-weight: 900;
    font-size: 30px;
    padding: 30px;
    right: 20px;
    bottom: 100px;
    border: 3px solid white;
    position: absolute;
    display: flex;
    animation: move 3s 1 steps(100);
  }

  @keyframes move {
    40%,
    60% {
      right: calc(100% + 30px);
    }
    100% {
      right: 0;
    }
  }

  /* hover effect - changes color to blue */
  .view-button:hover {
    text-shadow: 0 0 20px #396afc;
    border: 3px solid #396afc;
  }
  a {
    text-decoration: none;
  }
}
