@import url('https://fonts.cdnfonts.com/css/futura-condensed-pt');

@font-face {
  font-family: futura pt;
  font-style: normal;
  font-weight: 300;
  src: local('Futura PT'),url(https://melissalau17.github.io/tech-doc/futura-pt-light-589a6e187563a.woff) format('woff')
}

html,
body {
  min-width: 290px;
  color: rgba(255,253,232,255);
  background-color: #fffde8;
  font-family: futura pt;
  line-height: 1.5;
}

#navbar {
  position: fixed;
  min-width: 290px;
  top: 0px;
  left: 0px;
  width: 300px;
  height: 100%;
  border-right: dotted 4px;
  border-color: #fade34;
}

header {
  color: black;
  margin: 10px;
  text-align: center;
  font-size: 1.8em;
  font-family: Pacifico;
  background-color: #fade34;
  border: 3px solid #fffde8;
}

#main-doc header {
  text-align: left;
}

#navbar ul {
  height: 88%;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  text-align: center;
}

#navbar li {
  color: #4d4e53;
  list-style: none;
  position: relative;
  width: 100%;
}

#navbar a {
  display: block;
  padding: 10px 30px;
  color: #4d4e53;
  text-decoration: none;
  cursor: pointer;
}

#navbar a:hover{
  color: #fffde8;
  transition: 0.5s ease;
  background: #fade34;
}

#main-doc {
  position: absolute;
  margin-left: 310px;
  padding: -5px 5px;
  margin-bottom: 110px;
}

section article {
  color: #4d4e53;
  margin: 15px;
  font-size: 0.96em;
}

section li {
  margin: 15px 0px 0px 20px;
}

code {
  display: block;
  text-align: left;
  white-space: pre-line;
  position: relative;
  word-break: normal;
  word-wrap: normal;
  line-height: 2;
  background-color: white;
  padding: 10px;
  margin: 10px;
  border-radius: 5px;
  width: 50%;
}

.link:hover {
  color: #fade34;
  transition: 0.5s ease;
}

@media only screen and (max-width: 815px) {
  /* For mobile phones: */
  #navbar ul {
    border-bottom:  #fade34 4px dotted;
    height: 207px;
  }

  #navbar {
    position: absolute;
    top: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    max-height: 275px;
    border: none;
    z-index: 1;
    
  }

  #main-doc header {
    text-align: center;
  }
  
  #main-doc {
    position: relative;
    margin-left: 0px;
    margin-top: 280px;
    background-color: #fffde8;
  }
}

@media only screen and (max-width: 400px) {
  code {
    margin-left: 0px;
    width: 100%;
    padding: 10px;
    padding-left: 10px;
    padding-right: 45px;
    min-width: 233px;
    background-color: white;
    margin: 10px;
    border-radius: 5px;
  }
}
