:root {
  --main-bg-color: #444444;
  --main-font-color: #ffffff;
  --secondary-font-color: #eece1a;
}

* {
  box-sizing: border-box;
}

body {
  position: absolute;
  overflow: hidden;
  background-color: var(--main-bg-color);
  color: var(--main-font-color);
  height: 100%;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
}

h1.lg-heading {
  font-size: 6rem;
}

a {
  color: var(--main-font-color);
  text-decoration: none;
}

header {
  position: fixed;
  z-index: 2;
  width: 100%;
}

.text-scondary {
  color: var(--secondary-font-color);
}

main {
  padding: 4rem;
  height: 100%;
}

#home {
  margin-top: 20vh;
}

.menu-btn {
  position: absolute;
  z-index: 3;
  left: 35px;
  top: 35px;
  cursor: pointer;
}

.btn-line {
  width: 28px;
  height: 3px;
  margin: 0 0 5px 0;
  background: #ffffff;
  transition: 0.2s;
}

.menu-btn.close > .btn-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.close > .btn-line:nth-child(2) {
  opacity: 0;
}

.menu-btn.close > .btn-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.menu{
  position: fixed;
  top: 0;
  width: 100%;
  visibility: hidden;
}

.menu.show{
  visibility: visible;
}

.menu-branding, .menu-nav{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  float: left;
  width: 50%;
  height: 100vh;
  overflow: hidden;
}

.menu-nav{
  margin: 0;
  padding: 0;
  background: #222222;
  list-style: none;
  transform: translate3d(0, -100%, 0);
  transition: 1s;
}

.menu-branding{
  background-color: var(--main-bg-color);
  transform: translate3d(0, 100%, 0);
  transition: 1s;
}

.menu-nav.show, .menu-branding.show{
  transform: translate3d(0,0,0);
}

.portrait{
  width: 150px;
  height: 150px;
  margin: auto;
  background-color: #222222;
  border-radius: 50%;
  border: solid 5px #ffa500;
}

.nav-item {
  width: 200px;
  height: 225px;
  border: 1px solid #999;
  border-radius: 10px;
  text-align: center;
  padding: 10px;
  font-size: 1.5rem;
}

/* small */
@media screen and (max-width: 500px) {
  main {
    padding: 2rem;
  }
    #home h1 {
      margin-top: 10vh;
    }

    .lg-heading {
      margin-top:1rem;
      font-size: 5rem;
    }


  .projects {
    grid-template-columns: 1fr;
  }
}

/* midium */
@media screen and (max-width: 768px) {
  main {
    align-items: center;
    text-align: center;
  }
  main.lg-heading {
      line-height: 1;
      margin-bottom: 1rem;
    }


  ul.menu-nav,
  div.menu-branding {
    float: none;
    width: 100%;
    min-height: 0;
  }
  ul.menu-nav.show, div.menu-branding.show {
      transform: translate3d(0, 0, 0);
    }


  .menu-nav {
    height: 75vh;
    transform: translate3d(-100%, 0, 0);
    font-size: 24px;
  }

  .menu-branding {
    height: 25vh;
    transform: translate3d(100%, 0, 0);
  }
  .menu-branding.portrait {
      background: url('../img/portrait_small.jpg');
      width: 150px;
      height: 150px;
    }


  .about-info {
    grid-template-areas:
      'bioimage'
      'bio'
      'job1'
      'job2'
      'job3';

    grid-template-columns: 1fr;
  }

  .projects {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* large */
@media screen and (min-width: 769px) and (max-width: 1170px) {
  .projects {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Xlarge */
@media screen and (min-width: 1171px) {
  .projects {
    grid-template-columns: repeat(4, 1fr);
  }
}