body {
	background: white;
	color: #0c0c0c;
}

@media (min-width: 550px) {
  .container {
    padding: 20px;
  }
}

/* Text: Hero */
@font-face {
  font-family: "Vesper Libre";
  src: url('../fonts/VesperLibre-Regular.ttf') format("truetype");
}

/* Text */
@font-face {
  font-family: "Aller Regular";
  src: url('../fonts/Aller_Rg.ttf') format("truetype");
}

/* Text */
@font-face {
  font-family: "Aller Bold";
  src: url('../fonts/Aller_Bd.ttf') format("truetype");
}

.container h2 {
  color: #507ba2;
}


.header{
  position:absolute;
  top:10%;
  text-align:center;
  width:100%;
  font-size:36px;
  -ms-transform: translate(0,-50%); /* IE 9 */
    -webkit-transform: translate(0,-50%); /* Safari */
    transform: translate(0,-50%);
  color: whitesmoke;
  font-family: "Vesper Libre";
}

.header h4 {
  font-family: "Vesper Libre";
}

.navpanel li a {
  padding: 20px;
  float: left;
}

a {
  color: #507ba2;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

a:hover {
  color: #0c0c0c;
}

/* Header*/
header {
  z-index: 100;
  position: fixed;
  width: 100%;
  height: 60px;
  top: 50%;
  top: 0;
  left: 0;
  opacity: 0;
}

.active {
  background-color: #fff;
  color: #333;
}

#logo {
  width: 100px;
  height: 100px;
  padding: 30px 15px 15px 15px;
}

nav {
  float: right;
  padding: 20px;
}

#menu-icon {
  display: none;
}

#menu-icon {
  display: hidden;
}
 
.navpanel li {
  color: white;
  text-decoration: none;
  padding: 0 10px;
  list-style: none;
}

.navpanel .icon, #mobile_header {
  display: none;
}

/* Header Responsiveness Ting */
@media (max-width: 1028px) {
  header {
    border-bottom: 1px solid #d0c8c8;
    opacity: 1;
    background-color: white;
  }

  #logo {
    display: none;
  }

  #mobile_header {
    display: block;
    text-align: center;
    padding: 10px;
  }

  nav {
    padding: 0px;
  }

  #nav {
    border-top: 1px solid #d0c8c8;
    border-bottom: 1px solid #d0c8c8;
    background-color: white;
    position: absolute;
    width: 100%;
    top: 60px;
  }

  #nav:before {
      content: '\2630';
      display: block;
      position: absolute;
      right: 3%;
      top: -50px;
      line-height: 40px;
      cursor: pointer;
  }

  #nav ul {
    width: 100%;
    list-style: none;
  }

  #nav ul li {
    float: none; 
  }

  #nav ul li a {
    width: 100%;
    padding: 10px 3%;
    line-height: 20px;
    text-align: center;
  }

  /* Mobile nav transition */
  #nav ul {
    display: none;
    transition: 350ms;
    -webkkit-transition: 350ms;
    -moz-transition: 350ms;
    transform: perspective(600) rotate3d(0,0,0,0);
    -webkit-transform: perspective(600) rotate3d(0,0,0,-90deg);
    -moz-transform: perspective(600) rotate3d(0,0,0,0);
    transform-origin: 50% 0;
    -webkit-transform-origin: 50% 0;
    -moz-transform-origin: 50% 0;
  }

  #nav.open ul {
    transform: perspective(600) rotate3d(0,0,0,0);
    -webkit-transform: perspective(600) rotate3d(0,0,0,0);
    -moz-transform: perspective(600) rotate3d(0,0,0,0);
    display: block;
  }
}

/* Hero */
#hero {
  background-image: url(../img/hero.jpg);
  background-size: cover;
  position: relative;
  height: 100vh;
  margin-bottom: 75px;
}

.header {
  position: absolute;
  top: 50%;
  text-align: center;
  width: 100%;
  -ms-transform: translate(0,-50%); /* IE 9 */
    -webkit-transform: translate(0,-50%); /* Safari */
    transform: translate(0,-50%);
}

/* General container*/
.container {
  margin-bottom: 50px;
}

@media (max-width: 550px) {
  .container {
    text-align: center;
  }

  img#about_me {
    width: 65%;
  }
}

h2 {
  font-family: "Aller Bold"
}

h3, h4, p, a {
  font-family: "Aller Regular";
}

h5 {
  font-family: "Vesper Libre";
  font-size: 1.8rem;
}

/* Job Content responsiveness */
@media (max-width: 550px) {
  .eight.columns {
    float: right;
  }

  .job-content h4, .job-content h5 {
    float: none;
    text-align: center;
  }

  h2, h3 {
    text-align: center;
  }
}

/* Alternate section indicator ting*/
.wrapper .container:nth-child(odd) {
  background-color: whitesmoke;
}

/* About Me */
.circle {
  border-radius: 50%;
}

/* Work*/
.job-dropdown {
  position: relative;
  display: block;
  overflow: hidden;
}

.job {
  float: left;
  font-size: 2.4rem;
  /*margin: 5px;
  padding: 5px;*/
}

.job-desc {
  display: none;
  position: absolute;
  margin: 5px;
  padding: 5px;
}

.job-content h5 {
  float: right;
}

/* Instagram Panel thingie */
.recent-photos {
  list-style: none;
}

.recent-photos li a img {
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
  -webkit-transition: .3s ease-in-out;
  transition: .3s ease-in-out;
}

.recent-photos li a:hover img {
  -webkit-filter: grayscale(0);
  filter: grayscale(0);
}

.insta-link li a img {
  transition: all .2s ease-in-out;
}

.insta-link li a img:hover {
  transform: scale(1.1);
}
  
.insta-link {
  background-color: #507ba2;
  position: relative;
  border-radius: 50%;
}

.insta-link:before{
  content: "";
  display: block;
  padding-top: 100%;  /* initial ratio of 1:1*/
  border-radius: 50%;
}

.insta-link a {
  color: white;
  position:  absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  text-align: center;
  background-color: #507ba2;
  transition: background-color 0.3s ease;
}

.insta-link span {
  width: 100%;
  height: auto;
  transform: translate(-50%, -50%);
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: "Vesper Libre";
}

/* Instagram link mobile */
@media (max-width: 680px) {
  .row .recent-photos div, .row .recent-photos li {
    width: 30%;
    margin-left: 3%;
  }

  .row .recent-photos li:nth-of-type(1n+3) {
    display: none;
  }
}


/* Footer */
footer {
	bottom: 0;
	width: 100%;
	/* Set the fixed height of the footer here */
	height: 40px;
}

.footer {
  margin-bottom: 0px!important;
}

.soc {
    overflow:hidden;
    margin:0;
    padding:0;
    list-style:none;
    text-align: center;
}

.soc li {
    display:inline-block;
    *display:inline;
    zoom:1;
}

.soc li a {
    font-family:"Aller Regular";
    font-style:normal;
    font-weight:400;
    overflow:hidden;
    text-decoration:none;
    text-align:center;
    display:block;
    position: relative;
    z-index: 1;
    line-height: 35px;
    margin-right: 30px;
    color: #0c0c0c;
}

.soc-twitter:before {
  content:'Twitter';
}

.soc-linkedin:before {
  content:'LinkedIn';
}

.soc-instagram:before {
  content:'Instagram';
}

.soc-github:before {
  content:'Github';
}

.soc-icon-last{
    margin:0 !important;
}

/* footer - mobile */
@media (max-width: 680px) {
  @font-face {
    font-family: 'si';
    src: url('../socicon/socicon.eot');
    src: url('../socicon/socicon.eot?#iefix') format('embedded-opentype'),
         url('../socicon/socicon.woff') format('woff'),
         url('../socicon/socicon.ttf') format('truetype'),
         url('../socicon/socicon.svg#icomoonregular') format('svg');
    font-weight: normal;
    font-style: normal;
  }
 
  @media screen and (-webkit-min-device-pixel-ratio:0) {
      @font-face {
          font-family:si;
          src: url(PATH_TO/socicon.svg) format(svg);
      }
  }

  .soc {
      overflow:hidden;
      margin:0; padding:0;
      list-style:none;
  }

  .soc li {
      display:inline-block;
      *display:inline;
      zoom:1;
  }

  .soc li a {
      font-family:si!important;
      font-style:normal;
      font-weight:400;
      -webkit-font-smoothing:antialiased;
      -moz-osx-font-smoothing:grayscale;
      -webkit-box-sizing:border-box;
      -moz-box-sizing:border-box;
      -ms-box-sizing:border-box;
      -o-box-sizing:border-box;
      box-sizing:border-box;
      overflow:hidden;
      text-decoration:none;
      text-align:center;
      display:block;
      position: relative;
      z-index: 1;
      width: 28px;
      height: 28px;
      line-height: 28px;
      font-size: 15px;
      -webkit-border-radius: 100px;
      -moz-border-radius: 100px;
      border-radius: 100px;
      margin-right: 29px;
      color: #507ba2;
      background-color: #ffffff;
  }

  .soc-icon-last{
      margin:0 !important;
  }

  .soc-twitter:before {
      content:'a';
  }

  .soc-linkedin:before {
      content:'j';
  }
  .soc-instagram:before {
      content:'x';
  }
  .soc-github:before {
      content:'Q';
  }
}