/*
 * TODO: Fix weird side scrolling issue;
 */

@font-face {
  font-family: AMSCR;
  src: url("../../fonts/AmaticSC-Regular.ttf");
}

@font-face {
  font-family: AMSCB;
  src: url("../../fonts/AmaticSC-Bold.ttf");
}

@font-face {
  font-family: CHR;
  src: url("../../fonts/CapitalHandWriting-Regular.ttf");
}

@font-face {
  font-family: HR;
  src: url("../../fonts/Habibi-Regular.ttf");
}

@font-face {
  font-family: NF;
  src: url("../../fonts/NameFont-Regular.ttf");
}

body {
  margin: 0;
  padding: 0;
  color: #5b5b5b;
  font-family: HR;
}

@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}

#menu a {
  text-decoration: none;
  color: #bcbcbc;
  transition: color 0.3s ease;
}

#menu a:hover{
  color: #ffffff;
}

#menuToggle {
  display: block;
  position: fixed;
  top: 50px;
  left: 50px;
  z-index: 1;
  -webkit-user-select: none;
  user-select: none;
}

#menuToggle input {
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;
  cursor: pointer;
  opacity: 0; /* hide this */
  z-index: 2; /* and place it over the hamburger */
  -webkit-touch-callout: none;
}

/*
 * Hamburger
 */
#menuToggle span {
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  background: #cdcdcd;
  border-radius: 3px;
  z-index: 1;
  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

#menuToggle span:first-child {
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
  transform-origin: 0% 100%;
}

/* 
 * Transform all the slices of hamburger
 * into crossmark.
 */
#menuToggle input:checked ~ span {
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: #bcbcbc;
}

/*
 * Hide middle slice of hamburger
 */
#menuToggle input:checked ~ span:nth-last-child(3) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

/*
 * Makes bottom slice go in other direction
 */
#menuToggle input:checked ~ span:nth-last-child(2) {
  transform: rotate(-45deg) translate(0, -1px);
}

/*
 * Menu formatting
 */
#menu {
  position: absolute;
  min-width: 150px;
  width: 20vw;
  height: 90vh;
  margin: -100px 0 0 -60px;
  padding: 50px;
  padding-top: 125px;
  background: #333333;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* Stop flickering of text in safari */
  transform-origin: 0% 0%;
  transform: translate(-100%, 0);
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#menu li {
  padding: 10px 0;
  font-size: 22px;
}

/*
 * Makes menu slide from left
 */
#menuToggle input:checked ~ ul {
  transform: none;
}

/* 
 * TODO: Fix weird background
 */
#main {
  background: radial-gradient(at 50% bottom, #ddd, #fff 60%);
  height: 100%;
  position:fixed;
  overflow-y:scroll;
  text-shadow: 0 1px 0 #fff;
}

@media only screen and (max-width: 1026px) {
    #fadeshow1 {
        display: none;
    }
}

#projects a {
  text-decoration: none;
  list-style-type: none;
  color: #2c3035;
  font-family: CHR;
  font-size: 30px;
  transition: color 0.3s ease;
}

#babelsberg {
  text-decoration: none;
  list-style-type: none;
  margin-top: -10px;
  margin-bottom: -1px;
  color: #2c3035;
  font-family: CHR;
  font-size: 30px;
  transition: color 0.3s ease;
}

#projects a:hover{
  color: #bfbfbf;
}

#sub-projects a{
  text-decoration: none;
  list-style-type: none;
  color: #2c3035;
  font-family: CHR;
  font-size: 20px;
  transition: color 0.3s ease;
}

#sub-projects a:hover{
  color: #bfbfbf;
}

#gear {
  height: 15px;
  width: auto;
}

#tools {
  margin-top: -23px;
  color: #8e8e8e;
  font-size: 13px;
  font-style: italic;
}

#tools-sub {
  margin-top: -25px;
  font-size: 13px;
  color: #8e8e8e;
  font-style: italic;
}

#date {
  color: #999;
  font-size: 12px;
  margin-top: -1px;
}

#projects {
  padding-top: 60px;
  margin-left: 70px;
  color: #5b5b5b;
  margin-right: 30px;
}

#description {
  margin-top: -25px;
  font-size: 15px;
  margin-right: 30px;
}

#copyright {
  position: fixed;
  bottom:-20px;
  color: #c6c6c6;
}