@import url("https://fonts.googleapis.com/css2?family=Merriweather+Sans&family=Merriweather:ital,wght@0,400;1,400;1,900&display=swap");
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
body {
  background-color: #232323;
}
body,
ul,
li {
  font-family: "Merriweather", Georgia, serif;
  padding: 0;
  margin: 0;
  list-style: none;
}
nav {
  display: none;
  position: fixed;
  top: 0;
  height: 100vh;
  background-color: #232323;
  width: 25%;
  color: #ffffff;
  padding-top: 70px;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0 20px;
}
nav ul li {
  position: relative;
  opacity: 0;
  transition: all ease-out 500ms;
}
nav ul li:hover,
nav ul li.viewing {
  cursor: pointer;
}
nav ul li:hover {
  background-color: #383838;
}
nav ul li a {
  display: block;
  margin: 0;
  padding: 10px 15%;
  font-size: 1.5vw;
  font-weight: 300;
  color: #ffffff;
  text-decoration: none;
}
nav ul li:hover a,
nav ul li.viewing a {
  color: #ffce07;
}
h1 {
  opacity: 0;
  left: -100px;
  position: relative;
  font-size: 3.5vw;
  font-style: italic;
  font-weight: normal;
  text-transform: lowercase;
  text-align: right;
  position: relative;
  top: -30px;
}
h2 {
  font-size: 24px;
  font-style: italic;
  font-weight: normal;
  padding: 0;
  margin: 15px 0;
  display: inline-block;
}
h3 {
  font-size: 20px;
  font-weight: 300;
  padding: 0 0 10px 0;
  margin: 20px 0;
}
h2.secondary {
  color: #ffce07;
}
p {
  font-family: "Merriweather Sans", Helvetica, sans-serif;
  font-size: 14px;
  line-height: 200%;
  font-weight: 300;
  padding: 0;
  margin: 20px 0;
}
img#headshot {
  position: relative;
  bottom: -50px;
  opacity: 0;
  width: 30%;
  max-width: 250px;
  margin-left: 40px;
  border-radius: 10px;
}
section {
  background-color: #383838;
}
div.section-padding {
  padding: 30px 6%;
  position: relative;
}
section#introduction {
  color: #ffffff;
  background-color: #232323;
}
section#work-experience,
section#case-studies {
  background-color: #f0e8da;
  color: #232323;
}
div.slider {
  position: relative;
}
div.slider a.next,
div.slider a.prev {
  font-size: 36px;
  width: 50px;
  height: 100%;
  position: absolute;
  top: 0;
  display: none;
  justify-content: center;
  align-items: center;
  color: #232323;
  cursor: pointer;
}
div.slider a.next {
  right: -50px;
}
div.slider a.prev {
  left: -50px;
}
div.slider div.slides {
  display: grid;
  grid-template-columns: 1fr;
}
section .section-padding {
  opacity: 0;
}
section.viewed .section-padding {
  opacity: 1;
  animation-name: fadeIn;
  animation-iteration-count: 1;
  animation-timing-function: ease-out;
  animation-duration: 500ms;
}

section#technical-skills,
section#widgets {
  background-color: #383838;
  color: #ffffff;
}
section#technical-skills p {
  margin: 0 0 30px;
}
div.slogan-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background-color: #383838;
  padding: 40px 6% 0;
  animation-name: fadeIn;
  animation-iteration-count: 1;
  animation-timing-function: ease-out;
  animation-duration: 1000ms;
}
div.slogan-wrapper span.portfolio {
  display: block;
  font-size: 7vw;
  font-weight: bold;
  text-transform: uppercase;
  color: #ffce07;
  font-style: normal;
}
div.slogan-wrapper span.name {
  font-size: 3.5vw;
  font-style: normal;
  text-transform: capitalize;
}
div#summary {
  position: relative;
  top: 0;
  padding: 0 6% 30px;
  background-color: #232323;
  font-style: italic;
}
div#summary:before {
  background: inherit;
  top: -50px;
  content: "";
  display: block;
  height: 100%;
  left: 0;
  position: absolute;
  right: 0;
  transform: skewY(-4deg);
  transform-origin: 100%;
  z-index: 1;
}
div#summary div#position {
  position: relative;
  text-align: center;
  opacity: 0;
  display: block;
  font-size: 24px;
  grid-template-columns: [first] auto [line] 100px [end];
  grid-template-rows: [row1-start] 50% [row1-end] 50% [last-line];
  position: relative;
  z-index: 1;
}
div#summary span.developer {
  display: block;
}
div#summary span.ampersand {
  font-size: 24px;
  color: #ffce07;
  padding-left: 10px;
  margin: auto;
}
div#summary div#description {
  position: relative;
  font-size: 16px;
  line-height: 28px;
  margin-top: 20px;
  text-align: center;
  opacity: 0;
  z-index: 1;
}
div.skills span {
  font-family: "Merriweather Sans", Helvetica, sans-serif;
  display: inline-block;
  background-color: #232323;
  font-size: 16px;
  position: relative;
  padding: 12px 24px 12px 20px;
  margin: 0 10px 14px 0;
}
div.skills span div {
  width: 4px;
  height: 0;
  background-color: #ffce07;
  content: "";
  display: block;
  position: absolute;
  right: 0;
  bottom: 0;
}
.thumbnail-group {
  background-color: #ffce07;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 30px;
}
.thumbnail,
.thumbnail img {
  width: 100%;
}
.thumbnail img {
  margin-bottom: 20px;
  border-radius: 3px;
}
.thumbnail:last-child {
  margin-bottom: 0;
}
#modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 50px;
  box-sizing: border-box;
  z-index: 3;
  animation-name: fadeIn;
  animation-iteration-count: 1;
  animation-timing-function: ease-out;
  animation-duration: 500ms;
}
#modal #modal-card {
  position: relative;
  background-color: #383838;
  display: grid;
  height: fit-content;
  width: fit-content;
  margin: auto;
}
#modal #modal-card img {
  max-width: 100%;
  max-height: calc(100vh - 100px);
  margin: auto;
  border-radius: 10px;
  position: relative;
}
#modal #modal-card #close-modal-button {
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
  background-color: #383838;
  color: #ffce07;
  padding: 2px;
  width: 40px;
  height: 40px;
  font-size: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}
span.challenge,
span.solution {
  display: inline-block;
  background-color: #383838;
  color: #ffffff;
  padding: 2px 20px 0;
  margin-right: 5px;
  border-radius: 3px;
}
span.solution {
  background-color: #ffce07;
  color: #232323;
}

/* MEDIA QUERIES */

@media screen and (min-width: 576px) {
  div#summary div#position {
    display: grid;
    font-size: 30px;
    text-align: left;
  }
  div#summary span.developer {
    margin: auto 0 0 auto;
    position: relative;
    right: -14px;
  }
  div#summary span.designer {
    margin: 0 0 auto auto;
  }
  div#summary span.ampersand {
    font-size: 100px;
    grid-column-start: line;
    grid-column-end: end;
    grid-row-start: row1-start;
    grid-row-end: last-line;
  }
  div#summary div#description {
    font-size: 18px;
    line-height: 30px;
    text-align: right;
  }
  div#summary:before {
    top: -70px;
  }
}

@media screen and (min-width: 768px) {
  img#headshot {
    width: 50%;
  }
  h1,
  div.slogan-wrapper span.name {
    font-size: 3vw;
  }
  div.slogan-wrapper span.portfolio {
    font-size: 6vw;
  }
  div.slogan-wrapper {
    padding: 50px 10% 0;
  }
  div#summary {
    top: -100px;
    padding: 0 10% 30px;
  }
  div.section-padding {
    padding: 50px 10%;
  }
  div#summary:before {
    top: -100px;
  }
  h1 {
    top: -40px;
  }
  h2 {
    font-size: 36px;
  }
  h3 {
    font-size: 24px;
  }
  div.skills span {
    padding: 16px 26px 16px 20px;
  }
  div.skills span div {
    width: 6px;
  }
  .thumbnail-group {
    display: flex;
    justify-content: space-between;
  }
  .thumbnail {
    position: relative;
    width: 30%;
    z-index: 1;
  }
  .thumbnail img {
    margin-bottom: 0;
  }
}

@media screen and (min-width: 1024px) {
  div.container {
    display: flex;
  }
  main {
    flex-grow: 1;
    margin-left: 25%;
    display: block;
    height: 100vh;
    overflow-y: scroll;
  }
  section {
    min-height: 100vh;
  }
  nav {
    display: block;
  }
  div.slogan-wrapper {
    padding: 50px 15% 0;
  }
  div.slogan-wrapper span.portfolio {
    font-size: 5vw;
  }
  img#headshot {
    width: 35%;
    max-width: initial;
  }
  div#summary {
    top: -100px;
    padding: 0 15% 30px;
  }
  div.section-padding {
    padding: 50px 15%;
  }
  div#summary div#position {
    font-size: 2vw;
  }
  div#summary span.ampersand {
    font-size: 6vw;
  }
  div#summary div#description {
    font-size: 1.25vw;
    line-height: 150%;
  }
  div.slider div.slides {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    overflow: hidden;
  }
  div.slider div.slides > div {
    grid-row-start: 1;
    grid-column-start: 1;
    opacity: 0;
  }
  div.slider div.slides > div.currentSlide {
    opacity: 1;
  }
  div.slider a.next,
  div.slider a.prev {
    display: flex;
  }
  .thumbnail-group {
    margin-bottom: 0;
    position: relative;
  }
  .thumbnail {
    cursor: pointer;
  }
  h1,
  div.slogan-wrapper span.name {
    font-size: 2vw;
  }
  h2 {
    font-size: 2.2vw;
    margin: 0.8vw 0;
  }
  h3 {
    font-size: 1.8vw;
    margin: 1vw 0;
  }
  p {
    font-size: 1vw;
    margin: 1vw 0;
  }
}

@media screen and (min-width: 1920px) {
  nav {
    padding-top: 100px;
  }
  nav ul li {
    font-size: 1.5vw;
  }
  img#headshot {
    margin-left: 75px;
  }
  div.slogan-wrapper span.portfolio {
    font-size: 4vw;
  }
  div#summary:before {
    top: -150px;
  }
  div#summary div#position,
  div#summary div#description {
    top: -40px;
  }
  div.slider a.next,
  div.slider a.prev {
    font-size: 1.2vw;
    width: 2.5vw;
  }
  div.slider a.next {
    right: -2.5vw;
  }
  div.slider a.prev {
    left: -2.5vw;
  }
  div.skills span {
    padding: 1vw;
    padding-right: calc(1vw + 10px);
    margin: 0 0.5vw 0.8vw 0;
    font-size: 1vw;
  }
  div.skills span div {
    width: 10px;
  }
}
