/* Mobile portrait orientation advice */

#mobile-turn {
  display: none;
}

@media screen and (orientation:portrait) {

  @-webkit-keyframes deviceAnimation {
  0%  {
        -webkit-transform-origin: right bottom;
        -webkit-transform: none;
      }

  100%  {
          -webkit-transform-origin: right bottom;
          -webkit-transform: rotate3d(0, 0, 1, 90deg) translate3d(0, 90%, 0);
        }
  }

  @-moz-keyframes deviceAnimation {
  0%  {
        -moz-transform-origin: right bottom;
        -moz-transform: none;
      }

  100%  {
          -moz-transform-origin: right bottom;
          -moz-transform: rotate3d(0, 0, 1, 90deg) translate3d(0, 90%, 0);
        }
  }

  @-o-keyframes deviceAnimation {
  0%  {
        -o-transform-origin: right bottom;
        -o-transform: none;
      }

  100%  {
          -o-transform-origin: right bottom;
          -o-transform: rotate3d(0, 0, 1, 90deg) translate3d(0, 90%, 0);
        }
  }

  @keyframes deviceAnimation {
  0%  {
        transform-origin: right bottom;
        transform: none;
      }

  100%  {
          transform-origin: right bottom;
          transform: rotate3d(0, 0, 1, 90deg) translate3d(0, 90%, 0);
        }
  }

  #mobile-turn {
    -webkit-align-items: center;
    align-items: center;
    background-color: rgba(0,0,0,.95);
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; z-index: 9999;
  }

  #mobile-turn .device{
    color: #fff;
    margin: auto;
    text-align: center;
	padding:10px;
  }

  #mobile-turn .device .tablet {
    height: 150px;
    -webkit-animation: deviceAnimation 2s infinite forwards;
    -moz-animation: deviceAnimation 2s infinite forwards;
    -o-animation: deviceAnimation 2s infinite forwards;
    animation: deviceAnimation 2s infinite forwards;
  }

  #mobile-turn .device p {
    line-height: 1.5em;
    letter-spacing: 0.1em;
    padding-top: 60px;
  }

  #mobile-turn .device p a {color: #fff;}

  #mobile-turn {
    display: -webkit-flex;
    display: flex;
  }
}