/* General Branding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  overflow-x: hidden;
  background-color: #f7f7f7;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #e5e5e5;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #777777;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #32b8c6;
}

h1, h3, h4 {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: bold;
  color: #f4ac45;
}

h2 {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: bold;
  color: #32b8c6;
}

h1 {
  font-size: 40pt;
}

h2 {
  font-size: 20pt;
}

h3 {
  font-size: 18pt;
}

p, li {
  font-size: 10.5pt;
  color: #777777;
  line-height: 20pt;
}

a {
  text-decoration: none;
  color: #32b8c6;
  transition: .2s;
  font-size: 10.5pt;
}

a:hover, a:focus {
  color: #f6b456;
}

button {
  background-color: #f6b456;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  font-size: 12pt;
  transition: .2s;
  display: inline-block;
  max-width: 100%;
}

button:hover, button:focus {
  background-color: #32b8c6;
}

button:active {
  background-color: grey;
}

img {
  image-rendering: -webkit-optimize-contrast;
}

/* Nav Bar */

nav {
  width: 100%;
  position: fixed;
  top: 0;
  background-color: white;
  z-index: 2;
}

.nav-container {
  width: 50vw;
  min-width: 960px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
}

.nav-logo {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 20pt;
  text-decoration: none;
  font-weight: bold;
  color: #f6b456;
  transition: .2s;
  padding-top: 2px;
}

.nav-logo:hover, .nav-logo:focus {
  color: #32b8c6;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  width: 225px;
}

.nav-links li {
  text-align: center;
  font-weight: bold;
  list-style: none;
  transition: .2s;
}

.nav-links a {
  color: #32b8c6;
  text-decoration: none;
  transition: .2s;
  font-size: 11pt;
}

.nav-links a:hover, .nav-links a:focus{
  color: #f6b456;
}

.nav-links a:active {
  color: grey;
}

.hamburger {
  background-color: transparent;
  border: none;
  display: none;
  cursor: pointer;
}

.hamburger div {
  width: 15px;
  height: 2px;
  background-color: #32b8c6;
  margin: 3px 0 3px 0;
  transition: 0.3s;
}

.hamburger:focus div {
  background-color: white;
}

.hamburger:hover div {
  background-color: white;
}

.hamburger:active div {
  background-color: white;
}

/* Dark Mode */

.dark-mode {
  background-color: #202020;
}

.dark-mode::-webkit-scrollbar-track {
  background: #101010;
}

.dark-mode::-webkit-scrollbar-thumb {
  background: #707070;
}

.dark-mode::-webkit-scrollbar-thumb:hover {
  background: #32b8c6;
}

.dark-mode h1, .dark-mode h3, .dark-mode h4 {
  color: #ababab;
}

.dark-mode h2 {
  color: #d5d5d5;
}

.dark-mode p, .dark-mode li {
  color: #ababab;
}

.dark-mode a {
  color: #32b8c6;
}

.dark-mode a:hover, .dark-mode a:focus {
  color: #32b8c6;
}

.dark-mode button {
  background-color: #32b8c6;
  color: white;
}

.dark-mode button:hover, .dark-mode button:focus {
  background-color: #f6b456;
}

.dark-mode button:active {
  background-color: grey;
}

/* Dark Mode Nav Bar*/

.dark-mode nav {
  background-color: #303030;
}

.dark-mode .nav-logo {
  color: #f6b456;
}

.dark-mode .nav-logo:hover, .dark-mode .nav-logo:focus {
  color: #32b8c6;
}

.dark-mode .nav-links a {
  color: #32b8c6;
}

.dark-mode .nav-links a:hover, .dark-mode .nav-links a:focus{
  color: #f6b456;
}

.dark-mode .nav-links a:active {
  color: grey;
}

.dark-mode .hamburger {
  background-color: transparent;
}

.dark-mode .hamburger:hover, .dark-mode .hamburger:hover {
  background-color: #32b8c6;
}

.dark-mode .hamburger div {
  background-color: white;
}

.dark-mode .hamburger:focus div {
  background-color: white;
}

.dark-mode .hamburger:hover div {
  background-color: white;
}

.dark-mode .hamburger:active div {
  background-color: white;
}

/* Basic Pages */

.container {
  width: 100%;
  height: 100%;
  display: none;
}

.wrapper {
  margin-top: 100px;
  height: calc(100% - 120px);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Work Page */
.work-wrapper {
  margin: 100px auto;
  height: calc(100% - 120px);
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  width: 50vw;
  min-width: 960px;
}

.work-link {
  font-size: 10pt;
  font-weight: bold;
  color: grey;
}

.work-image {
  flex-basis: 33.33%;
  text-align: center;
}

.work-image a {
  width: 97.5%;
  margin: 5.5% .75% 0 .75%;
}

.work-image img {
  width: 97.5%;
  margin: 5.5% .75% 0 .75%;
  transition: .5s ease;
}

.work-image:hover img {
  opacity: 1;
}

.work-image:hover a {
  color: #f6b456;
}

/* LD Page */
.ld-wrapper {
  margin: 80px auto;
  width: 50vw;
  min-width: 960px;
}

.ld-tile {
  position: relative;
  height: 350px;
  margin-bottom: 10px;
}

.ld-tile img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: .5s ease;
}

.ld-tile:hover .tile-title {
  opacity: 1;
}

.ld-tile a:focus .tile-title {
  opacity: 1;
}

.tile-title {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(69, 69, 69, 0.65);
  opacity: 0;
  transition: .5s ease;
}

.tile-title h2 {
  position: absolute;
  color: white;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}

.game-wrapper {
  margin: -15px auto 100px auto;
  height: calc(100% - 120px);
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  width: 50vw;
  min-width: 960px;
}

.game-link {
  font-size: 10pt;
  font-weight: bold;
  color: grey;
}

.game-image {
  flex-basis: 32.5%;
  text-align: center;
}

.game-image a {
  width: 97.5%;
  margin: 5.5% 0 0 0;
}

.game-image img {
  width: 100%;
  margin: 5.5% 0 0 0;
  transition: .5s ease;
}

.game-image:hover img {
  opacity: 1;
}

.game-image:hover a {
  color: #f6b456;
}



/* Portfolio Pages */
.to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-weight: bold;
  padding: 10px 19px 15px 19px;
  font-size: 15pt;
  display: none;
}

.portfolio-wrapper {
  margin: 100px auto;
  width: 50vw;
  min-width: 960px;
}

.portfolio-container {
  width: 100%;
  margin: 6px 0 10px 0;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  row-gap: 14px;
  align-items: stretch;
}

.project-description {
  width: 100%;
  padding-bottom: 15px;
}

.project-description h2 {
  font-size: 25pt;
}

.portfolio-list {
  margin-left: 30px;
}

.caption-text-left {
  font-size: 9pt;
  margin-top: -3px;
  width: 100%;
  text-align: left;
  line-height: 12pt;
}

.caption-text-center {
    font-size: 9pt;
    margin-top: -3px;
    width: 100%;
    text-align: center;
    line-height: 12pt;
}

.portfolio-content-half .caption-text-center {
    margin-top: 2px;
}

.caption-text-right {
    font-size: 9pt;
    margin-top: -3px;
    width: 100%;
    text-align: right;
    line-height: 12pt;
}

.portfolio-content-half {
  width: 49.25%;
  object-fit: cover;
}

.portfolio-content-thirds {
  width: 32.35%;
  object-fit: cover;
}

.split1 {
  width: 67.25%;
  object-fit: cover;
}

.split2 {
  width: 31.25%;
  object-fit: cover;
}

.split3 {
  width: 63.25%;
  object-fit: cover;
}

.split4 {
  width: 35.25%;
  object-fit: cover;
}

.portfolio-image {
  width: 100%;
}

.portfolio-slider {
  width: 100%;
  position: relative;
  margin-bottom: 375px;
}

.portfolio-slider img {
  position: absolute;
  width: 100%;
}

/*Slider Gallery Styles*/

.video-container {
    position: relative;
    padding-bottom: 56.25%;
}

.image-container {
    position: relative;
    padding-bottom: 56.25%;
}

iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    border: 0;
}

.image-container img {
    width: 100%;
    height: 100%;
    position: absolute;
    border: 0;
}

.thumbnail-slider {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
}

.thumbnail-slider-buttons {
    position: absolute;
    top: calc(50% - 25px);
    z-index: 1;
    width: 100%;
}

.thumb-next, .thumb-prev {
    position: absolute;
    width: auto;
    padding: 10px 16px 12px 14px;
    font-size: 15pt;
    font-family: 'Josefin Sans', sans-serif;
}

.thumb-next {
    right: 0;
}

.thumb-prev {
    left: 0;
}

.thumbnail-page {
    display: flex;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    flex-flow: row nowrap;
    justify-content: space-between;
}

.thumbnail {
    flex-basis: 23%;
    flex-shrink: 0;
    opacity: .5;
}

.thumbnail img {
    object-fit: cover;
    width: 100%;
    height: 120px;
    transition: .5s ease;
}

.thumbnail:hover {
    opacity: 1;
}

.thumbnail-selected {
    opacity: 1;
}

/* Horizontal Photography Viewer */
.photo-viewer {
  overflow-y: hidden;
  overflow-x: scroll;
  width: 100vw;
  height: 65vh;
  margin-top: -75px;
  margin-bottom: 50px;
  white-space: nowrap;
}

.photo-image-container {
  display: inline;
  height: 100%;
}

.photo-image {
  height: 99%;
}

/* About Page */
.social-icon {
  margin-right: 5px;
  fill: grey;
  transition: .2s;
  margin-top: 7px;
}

.social-icon:hover {
  fill: #32b8c6;
}

.contact {
  margin-bottom: 6px;
}

#resume {
  font-weight: bold;
}

#origin {
  font-weight: bold;
  color: #32b8c6;
  cursor: pointer;
  transition: .2s;
}

#origin2 {
  font-weight: bold;
  color: #32b8c6;
  cursor: pointer;
  transition: .2s;
  display: none;
}

#origin:hover, #origin:focus, #origin2:hover, #origin2:focus  {
  color: #f6b456;
}

#origin-text {
  display: none;
}

#pho-tho {
  max-width: 375px;
  width: 35vw;
}

#yellow-accent {
  width: 150px;
  height: 200px;
  background-color: #f6b456;
  mix-blend-mode: multiply;
  position: fixed;
  margin: 50px 0 0 -50px;
  z-index: 1;
  display: none;
}

#about-section {
  margin-left: 45px;
  margin-top: 25px;
  max-width: 450px;
  width: 50vw;
}


/* RESPONSIVE */

/* Medium Breakpoint*/
@media screen and (max-width: 1280px) {

  nav {
    padding: 0 10%;
  }
  /* Responsive Work Page */
  .work-wrapper {
    width: 80vw;
    min-width: 80vw;
  }

  .work-image {
    flex-basis: 50%;
  }

  /* Responsive LD page */
  .ld-wrapper {
    width: 80vw;
    min-width: 80vw;
  }

  .game-wrapper {
    width: 80vw;
    min-width: 80vw;
  }

  .game-image {
    flex-basis: 50%;
  }

  /*Responsive slider gallery*/
  .thumbnail {
      flex-basis: 30%;
  }

  /* Responsive portfolio columns*/
  .portfolio-content-half {
    flex-basis: 100%;
    justify-content: center;
  }

  .portfolio-content-thirds {
    flex-basis: 100%;
    padding-bottom: 16px;
  }

  .split1 {
    flex-basis: 100%;
  }

  .split2 {
    flex-basis: 100%;
  }

  .split3 {
    flex-basis: 100%;
  }

  .split4 {
    flex-basis: 100%;
  }
}

/* Smallest Breakpoint */
@media screen and (max-width: 800px) {

  /* Responsive Nav Bar */
  nav {
    padding: 0 5%;
  }

  .nav-container {
    width: 90vw;
    min-width: 90vw;
  }

  .hamburger {
    padding: 7px 9px 7px 9px;
    margin-right: -5px;
  }

  .nav-links {
    padding: 0;
    position: absolute;
    height: 225px;
    top: -300px;
    margin-left: -5%;
    width: 100%;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    transition: transform 0.5s;
  }

  .dark-mode .nav-links {
    background-color: #303030;  /* Dark Mode */
  }

  .nav-links li {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    height: 75px;
    align-items: center;
    opacity: 0;
  }

  .nav-links a {
    padding: 28px 0;
    width: 100%;
  }

  .nav-links a:hover{
    color: #32b8c6;
    background-color: #d0d0d0;
  }

  .nav-links a:focus{
    color: #f6b456;
  }

  .nav-links a:active {
    color: white;
    background-color: #32b8c6;
  }

  .hamburger {
    display: block;
    z-index: 2;
  }

  .nav-active {
    transform: translateY(355px);
  }

  @keyframes navLinkFade {
    from {
      opacity: 0;
      transform: translateX(-50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .toggle .top-bun {
    transform: rotate(-45deg) translate(-3px, 4px);
  }

  .toggle .patty {
    opacity: 0;
  }

  .toggle .bottom-bun {
    transform: rotate(45deg) translate(-3px, -4px);
  }

  /* Responsive Basic Page */

  .wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* Responsive Work Page */
  .work-wrapper {
    width: 90vw;
    min-width: 90vw;
  }

  .work-image {
    flex-basis: 100%;
  }

  /* Responsive LD page */
  .ld-wrapper {
    width: 90vw;
    min-width: 90vw;
  }

  .ld-tile {
    height: 250px;
  }

  .ld-tile img {
    height: 250px;
  }

  .game-wrapper {
    width: 90vw;
    min-width: 90vw;
  }

  .game-image {
    flex-basis: 100%;
  }

  /* Responsive Portfolio Pages */
  .portfolio-wrapper {
    width: 90vw;
    min-width: 90vw;
  }

  /* Responsive About Page */
  #pho-tho {
    width: 90vw;
    min-width: 90vw;
  }

  #about-section {
    margin: 25px 0 50px 0;
    width: 90vw;
    min-width: 90vw;
  }

  #yellow-accent {
      position: absolute;
  }

}

@media screen and (min-width: 1921px) { /* Largest breakpoint */
  .nav-container, .work-wrapper, .ld-wrapper, .game-wrapper, .portfolio-wrapper {
    max-width: 960px;
  }

  .about-section {
    max-width: 550px;
  }
}
