@media all {
  html,
  body {
    font-size: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
  }

  body {
    font-family: 'Helvetica Neue', Helvetica, Arial, verdana, sans-serif;
    position: relative;
    line-height: 1.25;
    background: #ccc url(../img/uo02gaw3c0c-john-towner-1024-768.jpg) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
  }

  h1 {
    font-size: 150%; /* 24px */
    line-height: 1.6667; /* 40px */
    font-weight: 400;
  }

  p {
    font-size: 100%;
    margin: 1em 0 0;
  }

  .fa {
    font-size: 100%;
  }

  .screen-reader-text {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .page {
    display: flex;
    justify-content: center;
    padding: 110px 10px 10px;
  }

  .contact {
    box-sizing: border-box;
    position: relative;
    width: 320px;
    padding: 100px 20px 20px;
    margin: 0 auto;
    background: rgba(255, 255, 255, .9);
    border-radius: 2px;
    /*box-shadow: 0 1px 1px 1px rgba(0, 0, 0, .2), 2px 2px 2px 0 rgba(0, 0, 0, .2);*/
    -webkit-filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2)) drop-shadow(2px 2px 2px rgba(0, 0, 0, .2));
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2)) drop-shadow(2px 2px 2px rgba(0, 0, 0, .2));
  }

  .contact > *:first-child,
  .contact > header:first-child > *:first-child {
    margin-top: 0;
  }

  .portrait {
    box-sizing: border-box;
    position: absolute;
    top: -100px;
    left: calc(50% - 100px);
    width: 200px;
    height: 200px;
    margin: 0 auto;
    padding: 10px;
    border-radius: 50%;
    overflow: hidden;
    text-align: center;
    z-index: 1;
  }

  .portrait::after {
    display: block;
    content: ' ';
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 50%;
    background: rgba(255, 255, 255, .9);
  }

  .portrait img {
    max-width: 100%;
    border-radius: 50%;
    -webkit-transform: translateZ(0);
    /*
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    filter: grayscale(100%);
    -webkit-transition: -webkit-filter .2s ease-in-out;
    -moz-transition: -moz-filter .2s ease-in-out;
    -ms-transition: -ms-filter .2s ease-in-out;
    -o-transition: -o-filter .2s ease-in-out;
    */
  }

  .social-icons {
    display: flex;
    margin: 1em 0 0;
    padding: 0;
    list-style: none;
  }

  .social-icons li {
    height: 3em;
    margin-left: 1.25em; /* 20px */
    overflow: hidden;
  }

  .social-icons li:first-child {
    margin-left: 0;
  }

  .social-icons .fa {
    font-size: 100%; /* 48px */
  }

  [class^="social-icon-"] {
    font-size: 300%; /* 48px */
    line-height: 1em;
    display: inline-block;
    width: 1em;
    height: 1em;
    text-align: center;
    background-color: #3C5A96;
    border-radius: 3px;
    text-decoration: none;
  }

  [class^="social-icon-"] .fa {
    font-size: 75%; /* 36px */
    line-height: 1.3333;
    margin-top: 3px;
    vertical-align: bottom;
  }

  .social-icon-xing {
    color: #FFF;
    background-color: #0B6566;
  }

  .social-icon-facebook {
    color: #FFF;
    background-color: #3C5A96;
  }

  .social-icon-facebook .fa-facebook {
    font-size: 83.3334%; /* 40px */
    margin: .13em 0 0 .3em;
    vertical-align: inherit;
  }
}

@media only screen and (min-height: 400px) {
  .page {
    align-items: center;
    height: 100%;
    padding: 0 10px 0;
  }
}

/* Portrait */
@media only screen
  and (max-device-width: 480px)
  and (orientation: portrait) {
    body {
      background-image: url(../img/uo02gaw3c0c-john-towner-120-220.jpg);
    }
}

@media only screen
  and (max-device-width: 480px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: portrait) {
    body {
      background-image: url(../img/uo02gaw3c0c-john-towner-480-960.jpg);
    }
}

@media only screen
  and (min-device-width: 481px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: portrait) {
    body {
      background-image: url(../img/uo02gaw3c0c-john-towner-720-1280.jpg);
    }
}

/* Landscape */
@media only screen
  and (min-device-width: 960px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: landscape) {
    body {
      background-image: url(../img/uo02gaw3c0c-john-towner-1280-960.jpg);
    }
}

@media only screen
  and (min-width: 1025px) {
    body {
      background-image: url(../img/uo02gaw3c0c-john-towner-1280-960.jpg);
    }
}

@media only screen
  and (min-width: 1025px)
  and (-webkit-min-device-pixel-ratio: 2) {
    body {
      background-image: url(../img/uo02gaw3c0c-john-towner-1920-1440.jpg);
    }
}

@media only screen
  and (min-width: 1281px) {
    body {
      background-image: url(../img/uo02gaw3c0c-john-towner-1920-1440.jpg);
    }
}
