@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;}
}

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

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: 80vh;
  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;
}

#main {
  background: radial-gradient(at 50% bottom, #afafaf, #fff 60%);
  padding-bottom: 20%;
  text-align: center;
  text-shadow: 0 1px 0 #fff;
  position:fixed;
  height: 100%;
}

.about {
  width: 100vw;
}

#pic {
  margin-top: 8%;
  border-radius: 50%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 30vh;
}

#name {
  font-family: NF;
  font-size: 100px;
  top: -30%;
  text-align: center;
  color: #2c3035;
  position: relative;
}

#about {
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
  letter-spacing: 1px;
  font-size: 25px;
}

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