@import url('https://fonts.googleapis.com/css?family=Work+Sans:300,600');

:root {
  --background: rgba(20, 20, 20, 0.9);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
	margin: 0;
	background: #444;
	font-family: 'Work Sans', sans-serif;
	font-weight: 400;
}

.content {
  position: absolute;
  margin-top: 120px;
  margin-left: 10%;
  margin-bottom: 1em;
  width: 80%;
  /* background-color: #444; */
  background-blend-mode: multiply;
  display: grid;
  font-size: 2em;
  font-weight: bold;
}

.self-image {
  margin-top: 50px;
  margin-bottom: 1em;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

.sub-content, .bio {
  margin-top: 1em;
  margin-bottom: 1em;
  border: solid #222;
  border-width: 2px;
  background-color: #666;
  font-weight: 800;
  padding: 1em;
  border-radius: 1em;
  font-size: .8em;
}

.bio {
  margin-bottom: 3em;
}

.info-header {
  position: inherit;
  width:fit-content;
  padding: .6em;
  background-color: #00aaaa;
  margin-left: 5%;
  margin-right: 5%;
  margin-top: 1em;
  font-size: .8em;
  font-style: italic;
  color: #224;
  border-radius: .3em;
}

.info {
  position: inherit;
  width: 80%;
  margin-left: 10%;
  margin-top: 1em;
  font-size: .8em;
  color: #222;
}

.project-img-1-header {
  margin-left: 10%;
  margin-right: 10%;
}

.project-img {
  margin-top: 30px;
  margin-bottom: 1em;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 30%;  
}

.project-img-1 {
  float: left;
  margin-top: 30px;
  margin-bottom: 1em;
  display: block;
  margin-left: 5%;
  margin-right: 5%;
  width: 40%;  
}

.role {
  color: #bbb;
}

.insert-image {
  width: 22px;
  height: 22px;
  vertical-align: -.2em;
  margin-right: 10px;
}

.smily-image {
  width: 30px;
  height: 30px;
  vertical-align: -.2em;
}

/* navigation styles start here */

header {
  background: var(--background);
  text-align: center;
  position: fixed;
  z-index: 999;
  width: 100%;
}

.nav-name {
  color: #fff;
}

/* changed this from the tutorial video to
   allow it to gain focus, making it tabbable */
.nav-toggle {
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
}

.nav-toggle:focus ~ .nav-toggle-label {
  outline: 3px solid rgba(lightblue, .75);
}

.nav-toggle-label {
  position: absolute;
  top: 0;
  left: 0;
  margin-left: 1em;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: white;
  height: 2px;
  width: 2em;
  border-radius: 2px;
  position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
}

.nav-toggle-label span::before {
  bottom: 7px;
}

.nav-toggle-label span::after {
  top: 7px;
}

nav {
  position: absolute;
  text-align: left;
  top: 100%;
  left: 0;
  background: var(--background);
  width: 100%;
  transform: scale(1, 0);
  transform-origin: top;
  transition: transform 400ms ease-in-out;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

nav li {
  margin-bottom: 1em;
  margin-left: 1em;
}

nav a, .current-page {
  text-decoration: none;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.current-page {
  color: #00ffff;
  opacity: 1;
  position: relative;
  left: -9.5px;
  margin-right: -9.5px;
}

nav a {
  color: white;
  opacity: 0;
  transition: opacity 150ms ease-in-out;
}

nav a:hover {
  color: #00ffff;
}

.nav-toggle:checked ~ nav {
  transform: scale(1,1);
}

.nav-toggle:checked ~ nav a {
  opacity: 1;
  transition: opacity 250ms ease-in-out 250ms;
}

@media screen and (min-width: 1100px) {
  .nav-toggle-label {
    display: none;
  }

  header {
    display: grid;
    grid-template-columns: 1fr auto minmax(600px, 3fr) 1fr;
  }
  
  .nav-name {
    grid-column: 2 / 3;
  }
  
  nav {
    all: unset; /* this causes issues with Edge, since it's unsupported */
    
    /* the following lines are not from my video, but add Edge support */
    position: relative;
    text-align: left;
    transition: none;
    transform: scale(1,1);
    background: none;
    top: initial;
    left: initial;
    /* end Edge support stuff */
    
    grid-column: 3 / 4;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  
  nav ul {
    display: flex;
  }
  
  nav li {
    margin-left: 3em;
    margin-bottom: 0;
  }
  
  nav a {
    opacity: 1;
    position: relative;
  }
  
  nav a::before {
    content: '';
    display: block;
    height: 5px;
    background: #00ffff;
    position: absolute;
    top: -.75em;
    left: 0;
    right: 0;
    transform: scale(0, 1);
    transition: transform ease-in-out 250ms;
  }
  
  nav a:hover::before {
    transform: scale(1,1);
  }

}

