html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: #262626;
  font: 400 1.125em/1.5 'Source Code Pro', monospace;
  -webkit-font-smoothing: antialiased;
  color: #f0f0f0;
  hyphens: auto;
}
#card h1, #card h2, #card p {
  font-family: Calibri, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h2, p {
  font-size: 1.125rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  line-height: 1.5rem;
}
h1 {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: normal;
  line-height: 2.5rem;
  margin: 0;
}
h3 {
  font-weight: bold;
  margin-top: 4rem;
}
ul {
  list-style-type: disc;
}
li {
  margin: .5em 0;
}
#container {
  width: 95%;
  margin: 0 auto;
}
#masthead {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
#card {
  background-color: #fff;
  color: rgb(75, 75, 75);
  border-radius: 2px;
  box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
  margin: auto;
  padding: 30px 60px 50px 35px;
  overflow: hidden;
}
#card h2 {
  margin: -.063rem 0 1rem 0;
}
#card p {
  margin: 0;
}
#location::before {
  content: '👨‍💻';
  margin-right: 0.5em;
}
#mail::before {
  content: '💬';
  margin-right: 0.5em;
}
.icon {
  width: 2em;
  height: auto;
  margin: 1em 0.5em;
  overflow: hidden;
}
#footer {
  min-height: 3em;
  color: rgb(175, 175, 175);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2em 0;
  border-top: 1px solid rgb(175, 175, 175);
  padding-top: 1.5rem;
  hyphens: none;
}
#social a, #look-down a {
  border: 0;
}

/* Anchor Link Styles */
a {
	color: rgb(125, 205, 225);
	text-decoration: none;
  border-bottom: 1px solid rgba(125, 205, 225, 0.5);
}

main p {
	position: relative;
	z-index: 1; /* needed for setting pseudo-element z-index */
	overflow: hidden;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

main p a {
	position: relative;
	display: inline-block;
	outline: none;
	vertical-align: bottom;
	white-space: nowrap;
}

main p a::before,
main p a::after {
	pointer-events: none;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-font-smoothing: antialiased;
	font-smoothing: antialiased;
}

/* Fade in background */

main a {
	font-weight: 700;
	-webkit-transition: background-color 0.3s, border-color 0.3s;
	transition: background-color 0.3s, border-color 0.3s;
}

main a:hover:not(#look-down a),
main a:focus:not(#look-down a) {
	border-color: rgba(52,73,94,0);
	background-color: rgba(125,205,225,0.5);
}

/* Large View */
@media(min-width: 1025px) {
  #container {
    width: 70%;
  }
  h2, p {
    font-size: 1.5rem;
    line-height: 2.5rem;
  }
  h1 {
    font-size: 2.5rem;
    line-height: 3rem;
  }
  #card {
    padding: 50px 50px 80px 35px;
    transform: rotateX(45deg) skew(33deg, -25deg);
    -webkit-transition: transform 0.5s, transform 0.5s;
    transition: transform 0.5s, transform 0.5s;
  }
  #card:hover {
    transform: rotateX(0deg) skew(0deg, 0deg);
  }
  #cv {
    display: flex;
    flex-direction: row;
  }
  #cv div {
    width: 50%;
  }
  #footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
  }
}
