:root {
  --white: whitesmoke;
}

html {
  height: 100%;
  width: 100%;
}

body {
  height: 100%;
  width: 100%;
  margin: 0px;
  background-color: #444444;
  font-family: Verdana, Arial, sans-serif;
  font-size: 2em;
  color: var(--white);
}

/*--- GENERAL STYLES ---*/

h1, h2, h3, p {
  margin: 0px;
  text-align: center;
}

h1 {
  padding: 1em;
}

button {
  border: none;
  background-color: transparent;
  cursor: pointer;
}

a {
  color: var(--white);
}

hr {
  width: 100%;
  border: solid 2px var(--white)
}

a:hover {
  cursor: pointer;
}

address {
  text-align: center;
}

.horizontal {
  display: flex;
  flex-direction: row;
}

.vertical {
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none;
}

/*--- BACKGROUND ---*/

.diag-bar {
  position: fixed;
  animation: diag-slide 5s ease-in-out infinite alternate;
  background-image: linear-gradient(-45deg, #aa0000 50%, #444444 50%);
  top: 0;
  bottom: 0;
  left: -50%;
  right: -50%;
  opacity: 0.5;
  z-index: -1;
}

.diag-bar2 {
  animation-direction: alternate-reverse;
  animation-duration: 6s;
}

.diag-bar3 {
  animation-duration: 7s;
}

@keyframes diag-slide {
  0% {
    transform: translateX(-25%);
  }

  100% {
    transform: translateX(25%);
  }
}

/*--- BACKGROUND COLORS ---*/

.color-one {
  background-image: linear-gradient(-45deg, #86246a 50%, #444444 50%);
}

.color-two {
  background-image: linear-gradient(-45deg, #583e7a 50%, #444444 50%);
}

.color-three {
  background-image: linear-gradient(-45deg, #324870 50%, #444444 50%)
}

/*--- NAVIGATION ---*/

nav {
  background-image: linear-gradient(rgba(50, 50, 50, 1), rgb(50, 50, 50, 0.8));
  position: fixed;
  height: 2em;
  width: 100%;
  z-index: 2;
  font-size: 80%;
}

nav a {
  text-decoration: none;
}

.nav-content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.nav-content div {
  padding: 0em 0.5em;
  border-right: solid white 1px;
}

.nav-content>div:last-child {
  border-right: none;
}

/*--- MOBILE NAVIGATION BUTTONS ---*/

.nav-button {
  display: none;
  filter: invert(96%);
}

.open-nav {
  top: 0;
  position: fixed;
  z-index: 1;
}

.close-nav {
  top: 10px;
  right: 10px;
  position: absolute;
}

.open-nav img {
  width: 40px;
}

.close-nav img {
  width: 30px;
}

/*--- HERO ---*/

.hero {
  height: 100%;
  background: linear-gradient(-45deg, #ffae00, #d400ff);
  background-size: 400% 400%;
  animation: gradient 8s ease infinite;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0em 3em;
  border-bottom: solid 2px;
}

@keyframes gradient {
  0% {
    background-position: 50% 50%;
  }

  33% {
    background-position: 100% 50%;
  }

  66% {
    background-position: 50% 100%;
  }

  100% {
    background-position: 50% 50%;
  }
}

.hero h1 {
  animation: fade-in 1s ease-in;
}

.hero p {
  opacity: 0;
  animation: fade-in 1s ease-in;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/*--- TITLE ---*/

.title {
  height: 40%;
  overflow: hidden;
  mask-image: linear-gradient(white 50%, transparent);
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
}

.title img {
  opacity: 0;
  animation: fade-in 1s ease-in;
  animation-delay: 0.25s;
  animation-fill-mode: forwards;
}

.title h1 {
  position: absolute;
  text-shadow: 0px 0px 4px black;
}

/*--- MAIN ---*/

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0em 1em 2em 1em;
}

main img {
  width: 50%;
  max-width: 500px;
  border-radius: 1em;
  border: solid 4px black;
  margin: 0.5em 1em;
}

main div {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
  margin: 0.5em 1em;
}

main div>div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 0.8em;
  width: 50%;
}

.alternate>div:nth-child(even) {
  flex-direction: row-reverse;
}

/*--- ABOUT ---*/

.about {
  font-size: 75%;
}

.about div {
  flex-direction: column;
  margin: 1em 0em;
  width: 50%;
}

.about ul {
  width: 100%;
  list-style-type: none;
  text-align: center;
  margin: 0px;
  padding: 0px;
}

/*--- EXPERIENCE ---*/

.work h3 {
  font-size: 90%;
}

.job {
  width: 80%;
  cursor: pointer;
  padding: 1em 0em;
  border-radius: 1em;
  border: solid 2px var(--white);
}

.job-desc {
  border-top: solid 2px var(--white);
  padding-top: 1em;
}

.active {
  background-color: rgba(0, 0, 0, 0.2);
}

/*--- EDUCATION ---*/

.education h2 {
  flex-direction: felx-start;
}

.education ul {
  margin: 0px;
}

.education li {
  margin: 0.5em 0em;
}

/*--- SKILLS ---*/

.skills {
  font-size: 80%;
}

.skills div {
  flex-direction: column;
  margin: 1em 0em;
}

/*--- PROJECTS ---*/

.projects {
  font-size: 80%;
  margin: 0em 4em;
}

.projects>div {
  padding: 2em 0em;
  flex-direction: column;
}

.projects div:first-child {
  padding-top: 0em;
  text-align: center;
}

.projects div:nth-child(2) {
  padding-top: 0em;
}

.projects p {
  width: 75%;
}

.caption {
  font-size: 0.8em;
  font-style: italic;
  height: 4em;
}

.slideshow {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
}

.slideshow>div {
  width: 50%;
  border-radius: 1em;
  border: solid 4px black;
  padding: 0px;
  margin: 0px;
}

.slideshow>div>img {
  min-width: 100%;
  min-height: 100%;
  margin: 0px;
  border: none;
  border-radius: 0px;
}

#faxManagerSlideshow {
  width: 85%;
}

#faxManagerSlideshow>div {
  width: 100%;
}

.slideshow>button>img {
  filter: invert(96%);
  border: none;
}

.ss-prompt {
  display: none;
}

.projects h3 {
  margin-top: 1em;
}

/*--- CONTACT ---*/

.contact div {
  width: 50%;
  margin-bottom: 2em;
}

.email-form {
  align-items: flex-start;
}

.email-form input, .email-form textarea {
  width: 100%;
  padding: 0.5em;
  border-radius: 5px;
  border: solid 1px black;
  margin: 1em 0em;
  background-color: var(--white);
}

.email-form textarea {
  resize: vertical;
  height: 10em;
}

.contact button {
  background-color: var(--white);
  border-radius: 3px;
  padding: 0.5em 1em;
}

/*--- MOBILE STYLES ---*/

@media (max-width: 1000px) {

  /*--- NAVIGATION ---*/

  nav {
    background-image: rgba(80, 80, 80, .8);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    padding-top: 2%;
    height: 100%;
    width: 40%;
    max-width: 256px;
    left: -40%;
    z-index: 2;
    font-size: 100%;
  }

  .nav-transition {
    transition: left 0.5s;
  }

  .nav-button {
    display: block;
  }

  .nav-content {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin: 2em 0em;
  }

  .nav-content div {
    height: 100%;
    width: 80%;
    border-right: none;
    display: flex;
    align-items: center;
  }

  .nav-content div+div {
    border-top: 1px solid var(--white);
  }

  /*--- MAIN ---*/

  main div {
    flex-direction: column;
  }

  .alternate>div:nth-child(even) {
    flex-direction: column;
  }

  /*--- HOME ---*/

  .home div {
    flex-direction: column;
    width: 100%;
  }

  /*--- ABOUT ---*/

  .about {
    font-size: 80%;
    margin: 0em 2em;
  }

  .about div {
    width: 100%;
    text-align: justify;
  }

  /*--- EXPERIENCE ---*/

  .job-desc {
    width: 100%;
  }

  /*--- EDUCATION ---*/

  .education {
    padding: 0em 1em;
  }

  .education div {
    width: 95%;
  }

  /*--- PROJECTS ---*/

  .projects {
    margin: 0em;
    font-size: 80%;
  }

  .projects>div {
    margin-right: 0px;
    margin-left: 0px;
    width: 100%;
    flex-direction: column;
  }

  .projects p {
    width: 95%;
  }

  .slideshow img {
    cursor: pointer;
    width: 100%;
  }

  .slideshow>div {
    min-width: 95%;
  }

  .slideshow button {
    display: none;
  }

  #faxManagerSlideshow {
    width: 100%;
  }

  .ss-prompt {
    display: block;
  }

  /*--- CONTACT ---*/

  .contact div {
    width: 80%;
  }

  .email-form {
    width: 80%;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 4.5vw;
  }

  .close-nav img {
    width: 25px;
  }

}