@import url(https://fonts.googleapis.com/css?family=Varela+Round);
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700);

body {
  scroll-behavior: smooth;
}

h1, h2, h3 {
  font-family: "Varela Round", sans-serif;
}

p, label, .list-content, .section-wrapper, .code-links {
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  /*font-size: 3vw;*/
}

/* unvisited link */
/* similarly pad text that isn't a link so they align */
a:link, .no-link-pad {
  padding: 0 3px;
}

a:link {
  color: black;
  text-decoration: none;
  background-color: #F5B916;
}

/* visited link */

a:visited {
  color: black;
  text-decoration: none;
}

/* mouse over link */

a:hover {
  color: white;
  text-decoration: none;
  background-color: black;
}

/* selected link */

a:active {
  color: white;
  text-decoration: none;
}

/* Adds a little link symbol after the anchor */
/*a[target="_blank"]::after {*/
/*  content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==);*/
/*  margin: 0 3px 0 5px;*/
/*}*/

#header {
  background-color: #F5B916;
  padding: 10px 10px ;
  /*max-height: 80%;*/
}

#header h1 {
  /*font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;*/
  /*font-size: 10vw;*/
  font-size: 5em;
  text-transform: uppercase;
  /*border-style: solid;*/
  padding: 0px; /* padding taken care of by title div */
}

#header h2 {
  /*font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;*/
  /*font-size: 5vw;*/
  font-size: 1.5em;
  /*border-style: solid;*/
  padding: 0px; /* padding taken care of by title div */
  /*font-style: oblique;*/
}

.title {
  text-align: left;
  padding: 10px;
  /*display: inline-block;*/
  /*box-sizing: border-box;*/
  /*max-width: 80%;*/
  /*border: #3D0B07;*/
  /*border-style: solid;*/
}


/* This whole block deals with the contact information table within the header*/

.contact-info {
  display: table;
  padding: 0px 2px;
}

.contact-info > div {
  display: table-row;
}

.contact-info > div > div {
  display: table-cell;
  padding-bottom: 5px;
  padding-right: 30px;
}

.list-titles {
  font-weight: bold;
  font-family: "Open Sans", sans-serif;
}

#main {
  /*float: left;*/
  margin: 20px;  /* stops content from reaching edges of page */
  /*border-style: solid;*/
  min-height: 90vh; /* when all chapters are collapsed, keeps footer near bottom */
}

#footer {
  background-color: #F5B916;
  text-align: center;
  border-style: solid;
  border-width: 1px 0px 0px;
}

#footer > p {
  padding: 2px;
  margin: 0px;
}

.chapter {
  border-top: 1px solid black;  /* the horizontal rule between sections */
  color: black;
}

.chapter h1, h2, h3, ul, #Projects p {
  padding-left: 20px; /* slightly indent paragraphs to appear within the sections */
}

.date {
  padding-right: 20px;
  font-style: italic;
  white-space: nowrap;
}

.journal {
  font-style: italic;
}

/* Hide the chapter checkbox icon (used to show/hide the chapters) */
input[type='checkbox'] {
  display: none;
}

/* The chapter checkbox label */
.lbl-toggle {
  display: block;
  cursor: pointer;
  transition: all 0.25s ease-out;
  padding: 4px 0px;
}

/* Highlight chapter label like a hyperlink */
.lbl-toggle:hover {
  color: black;
  text-decoration: none;
  padding: 4px 3px;
  background-color: #F5B916;
}

/* Show a little chevron next to the label */
/*.lbl-toggle::before {*/
/*  content: ' ';*/
/*  display: inline-block;*/

/*  border-top: 5px solid transparent;*/
/*  border-bottom: 5px solid transparent;*/
/*  border-left: 5px solid currentColor;*/
/*  vertical-align: middle;*/
/*  margin-right: .7rem;*/
/*  transform: translateY(-2px);*/

/*  transition: transform .2s ease-out;*/
/*}*/

/*.toggle:checked + .lbl-toggle::before {*/
/*  transform: rotate(90deg) translateX(-3px);*/
/*}*/

.collapsible-content {
  /*max-height: 0px;*/
  display: none;  /* this hides all transitions however animations are repeated when shown and internal links move to the correct place */
  overflow: hidden;
  transition: max-height .25s ease-in-out;
  opacity: 0;
  transform: translate(0, 50%);
}

.toggle:checked + .lbl-toggle + .collapsible-content {
  max-height: 100%;
  display: block;
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: translate(0, 0);
}

.transition, .collapsible-content {
  transition: all 0.25s ease-in-out;
}

/* When hidden (unchecked), show chapter heading next to number*/
span.chapter-heading {
  visibility: visible;
  /*font-style: italic;*/
}

/* When chapter shown (checked), hide chapter heading next to number*/
.toggle:checked ~ label span.chapter-heading {
  visibility: hidden;
  /*font-style: normal;*/
}

.table {
  display: table;
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  margin-left: 20px;
  margin-bottom: 15px;
  /*width: 100%;*/
  /*padding: 20px 20px 20px 20px;*/
}

.table > div {
  display: table-row;
}

.table > div > div {
  display: table-cell;
  padding-bottom: 15px;
    /*width: 150px;*/
    /*border: #000000 solid 1px;*/
    /*margin: 5px;  !*padding-bottom: 5px;*!*/
  /*padding-right: 30px;*/
}

/*The skills section*/
.section-wrapper > ul {
  padding-right: 20px;
  list-style-type: none;
}

.section-wrapper {
  width: 80%;
  float: left;
  text-align: left;
  margin-bottom: 20px;
  /*border-style: solid;*/
}

.section-wrapper > p {
  padding-left: 20px;
}

.code-links {
  padding-left: 40px;
  list-style-position: inside;
  list-style-type: None;
}

.code-links > li {
  padding-bottom: 15px;
}

/*.section-wrapper:nth-child(3) {*/
/*  padding-right: 8%;*/
/*}*/

.section-wrapper .skill-percentage {
  margin-bottom: 10px;
  position: relative;
}
.section-wrapper .skill-percentage::after {
  content: "";
  width: 100%;
  height: 6px;
  background: lightgray;
  display: block;
  margin-top: 3px;
}
.section-wrapper .skill-percentage::before {
  content: "";
  height: 6px;
  background: #F5B916;
  position: absolute;
  margin-top: 3px;
  bottom: 0;
}
.section-wrapper .skill-percentage:nth-child(1)::before {
  width: 80%;
  animation: skill_1 0.6s ease;
}
.section-wrapper .skill-percentage:nth-child(2)::before {
  width: 90%;
  animation: skill_2 0.6s ease;
}
.section-wrapper .skill-percentage:nth-child(3)::before {
  width: 70%;
  animation: skill_3 0.6s ease;
}
.section-wrapper .skill-percentage:nth-child(4)::before {
  width: 75%;
  animation: skill_4 0.6s ease;
}
.section-wrapper .skill-percentage:nth-child(5)::before {
  width: 65%;
  animation: skill_5 0.6s ease;
}
.section-wrapper .skill-percentage:nth-child(6)::before {
  width: 40%;
  animation: skill_6 0.6s ease;
}
.section-wrapper .skill-percentage:nth-child(7)::before {
  width: 20%;
  animation: skill_7 0.6s ease;
}
.section-wrapper .skill-percentage:nth-child(8)::before {
  width: 30%;
  animation: skill_8 0.6s ease;
}

@keyframes skill_1 {
  from {
    width: 0%;
  }
  to {
    width: 80%;
  }
}
@keyframes skill_2 {
  from {
    width: 0%;
  }
  to {
    width: 90%;
  }
}
@keyframes skill_3 {
  from {
    width: 0%;
  }
  to {
    width: 70%;
  }
}
@keyframes skill_4 {
  from {
    width: 0%;
  }
  to {
    width: 75%;
  }
}
@keyframes skill_5 {
  from {
    width: 0%;
  }
  to {
    width: 65%;
  }
}
@keyframes skill_6 {
  from {
    width: 0%;
  }
  to {
    width: 40%;
  }
}
@keyframes skill_7 {
  from {
    width: 0%;
  }
  to {
    width: 20%;
  }
}
@keyframes skill_8 {
  from {
    width: 0%;
  }
  to {
    width: 30%;
  }
}

/* Ref highlights */
@keyframes highlight {
    0% {
        background: #F5B916
    }
    100% {
        background: none;
    }
}

div:target {
    animation: highlight 1.5s;
    animation-delay: 0.1s;  /* Allow time for smooth-scroll */
}

/* For small screens */
@media (max-width: 450px) {
  .list-titles, .list-content {
    font-size: 0.8em;
  }

  p, label, .table, li {
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    font-size: 2.5vw;
  }

  .table .date {
    font-size: 2vw;
    padding-right: 12px;
  }

  .table {
     margin-left: 0px;
  }

  #header h1 {
    font-size: 3.5em;
  }

  #header h2 {
    font-size: 1.2em;
  }

  div > h1 {
    font-size: 6vw;
  }

  div > h3 {
    font-size: 3vw;
  }

  a:link, .no-link-pad {
    padding: 0 0.3vw;
  }

  a:link {
  color: black;
  text-decoration: none;
  background-color: #F5B916;
  }

  a:visited {
    color: black;
    text-decoration: none;
  }

  a:hover {
    color: white;
    text-decoration: none;
    background-color: black;
  }

  a:active {
    color: white;
    text-decoration: none;
  }

  .section-wrapper {
    width: 98%;
  }

}
