/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=DotGothic16&family=Jersey+25&display=swap");

/* Times New Pixel by IshPassion */
@font-face {
  font-family: "Times New Pixel";
  src: url("../assets/fonts/TimesNewPixel.ttf");
}

/* HelvetiPixel by pentacom */
@font-face {
  font-family: "HelvetiPixel";
  src: url("../assets/fonts/HelvetiPixel.ttf");
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "DotGothic16", serif;
  font-size: 2rem;
  color: black;
  background-color: #eee4dd;
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: "Jersey 25", serif;
  margin: 3%;
}

h1 {
  font-size: 8rem;
}

h2 {
  font-size: 3rem;
  /* margin-bottom: 10%; */
}

footer {
  font-family: "Jersey 25", serif;
  font-size: 4rem;
  margin: 5% 0;
}

footer a {
  font-size: 2.5rem;
}

a {
  color: black;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1%;
}

#indexIcon a:hover,
a:hover {
  color: #8f1209;
}

#indexIcon a:active,
a:active {
  color: #c47112;
}

/* The navigation bar */
/* Code based on CART 211 Week 9 exercises */
/* The index icon */
#indexIcon a {
  color: #333232;
  margin: 1%;
  left: 2%;
  height: auto;
  position: fixed;
  z-index: 9;
  font-size: 3rem;
  text-decoration: none;
  font-family: "Jersey 25", serif;
}

/* The navigation bar */

/* Code based on CART 211 Week 9 exercises */
/* The index icon */
#indexIcon img {
  margin: 1%;
  width: 2em;
  height: auto;
  position: fixed;
  z-index: 9;
  cursor: pointer;
}

.mainNavigation {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 9;
  top: 0;
  right: 0;
  background-color: black;
  overflow-x: hidden;
  transition: 0.5s;
  z-index: 92;
}

.navigationContent {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: row wrap;
}

.mainNavigation a {
  position: relative;
  padding: 2%;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Jersey 25", serif;
  /* font-size: 2em; */
  text-align: left;
  border: 5px solid white;
  color: white;
  flex: 1 100%;
  transition: all 0.5s;
}

.mainNavigation a:hover {
  background: white;
  color: black;
}

.cancelButton {
  position: absolute;
  z-index: 98;
  top: 2%;
  left: 87%;
  width: 10%;
  height: auto;
  cursor: pointer;
  padding: 0.5%;
  transition: all 0.3s;
}

.hamburgerIcon {
  position: fixed;
  z-index: 8;
  right: 2%;
  margin: 1%;
  width: 4%;
  height: auto;
  cursor: pointer;
  transition: all 0.3s;
}

/* To Top Button */
/* Tutorial from W3Schools */
/* https://www.w3schools.com/howto/howto_js_scroll_to_top.asp */
.toTopIcon {
  display: none;
  position: fixed;
  bottom: 3%;
  right: 2%;
  width: 3%;
  height: auto;
  z-index: 90;
  cursor: pointer;
  transition: all 0.3s;
}

/* Hover Bob code from Ian Lunn */
/* https://ianlunn.github.io/Hover/ */
#indexIcon a:hover,
#indexIcon a:focus,
#indexIcon a:active,
.cancelButton:hover,
.cancelButton:focus,
.cancelButton:active,
.hamburgerIcon:hover,
.hamburgerIcon:focus,
.hamburgerIcon:active,
.toTopIcon:hover,
.toTopIcon:focus,
.toTopIcon:active {
  animation-name: hvr-bob-float, hvr-bob;
  animation-duration: 0.3s, 1.5s;
  animation-delay: 0s, 0.3s;
  animation-timing-function: ease-out, ease-in-out;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards;
  animation-direction: normal, alternate;
}

/* Index */

.indexColor {
  background-color: #dff26b;
}

.indexBody {
  /* Code from W3Schools */
  /* https://www.w3schools.com/css/css_align.asp */
  /* margin: auto; */
  text-align: center;
}

.indexBody a,
.worksBody a {
  font-size: 2rem;
}

.indexBody h2 a {
  font-size: 3rem;
}

.indexBody header,
.indexBody .siteLinks {
  width: 60%;
  margin: auto;
}

.indexBody ul {
  /* Removing ul padding */
  /* https://stackoverflow.com/questions/9620594/removing-ul-indentation-with-css */
  padding: 0;
}

.indexBody li {
  list-style-type: none;
  margin: 0;
  height: 400px;
  width: auto;
}

.siteLinks {
  margin-top: 5%;
  text-align: right;
}

.siteLinks li {
  height: 100px;
  width: auto;
}

/* https://www.w3schools.com/howto/howto_css_style_header.asp */
.workHeaders ul {
  text-align: center;
  color: white;
  font-size: 30px;
}

.workHeaders ul a {
  font-size: 3rem;
  text-align: center;
  /* padding: 200px; */
  color: white;
}

.selectedWork1,
.selectedWork2,
.selectedWork3 {
  background-repeat: no-repeat;
  background-size: cover;
  font-family: "Jersey 25", serif;
  /* Centering with Flexbox by Josh Comeau*/
  /* https://www.joshwcomeau.com/css/center-a-div/ */
  display: flex;
  justify-content: center;
  align-items: center;
  /* cursor: pointer; */
}

.selectedWork1 a:hover,
.selectedWork2 a:hover,
.selectedWork3 a:hover {
  color: #8f1209;
}

.selectedWork1 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../assets/images/JoanSword_Closeup.jpg");
}

.selectedWork2 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../assets/images/MelancholiaThumb.png");
}

.selectedWork3 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../assets/images/EyeThumb.png");
}

/* About Section */
.aboutColor {
  background-color: #cde2fd;
}

.aboutText p {
  padding: 0.5% 15%;
}

/* Works */

.worksBody {
  margin: 3%;
  font-size: 1.5rem;
  background-color: #ea9fc2;
}

.worksBody h1,
footer {
  text-align: center;
}

.worksBody h3 {
  font-size: 3rem;
}

.worksArea {
  /* Code from CSS Grid Generator by by sarah_edo */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* grid-template-rows: repeat(3, 1fr); */
  column-gap: 5px;
  row-gap: 5px;
}

/* Cards */

/* Card Code from W3Schools */
/* https://www.w3schools.com/howto/howto_css_cards.asp */
.card {
  /* Add shadows to create the "card" effect */
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  min-width: 400px;
  min-height: 300px;
  max-height: 725px;
  /* width: 15%; */
  /* display: flex;
  align-items: center;
  justify-content: center; */
  background-color: #a13f6c;
  margin: 1%;
}

/* On mouse-over, add a deeper shadow */
.card:hover {
  box-shadow: 0px 0px 49px -8px #000000;
}

.cardContainer {
  /* padding: 4%; */
  min-height: 720px;
  min-width: 360px;
  border: solid 3px black;
}

/* Add some padding inside the card container */
.cardContainer h3,
.cardContainer p {
  padding: 2.5%;
}

.cardContainer a {
  padding: 3% 2%;
}

.cardContainer h3 {
  font-size: 3rem;
  border-bottom: solid 2px black;
  padding: 2%;
  font-family: "HelvetiPixel";
  line-height: 40px;
}

.cardContainer p {
  font-size: 1.3rem;
  margin: 0;
}

/* Code from W3Schools */
/* https://www.w3schools.com/howto/howto_css_image_center.asp */
.cardContainer img {
  /* border: thick double black; */
  display: block;
  /* margin-left: auto;
  margin-right: auto; */
  width: 100%;
  height: 250px;
  /* padding: 10px; */
  object-fit: cover;
}

/* Work Showcase */

.workShowcase {
  /* background: #000000; */
  color: white;
  width: 90%;
  height: 500px;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: left;
  padding: 5%;
}

.workBottomText {
  text-align: right;
  margin: 0;
  font-size: 1.5rem;
}

.largeImage img {
  width: 70%;
  height: auto;
  /* max-width: fit-content; */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2%;
}

.largerImages {
  /* Code from CSS Grid Generator by by sarah_edo */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 20px;
  row-gap: 20px;
  /* Centering in CSS code by Josh Comeau */
  /* https://www.joshwcomeau.com/css/center-a-div/ */
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2%;
}

.largerImages img {
  width: 600px;
  /* max-height: fit-content; */
  height: auto;
}

.imageGrid {
  /* Code from CSS Grid Generator by by sarah_edo */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* grid-template-rows: repeat(3, 1fr); */
  column-gap: 10px;
  row-gap: 10px;
  /* Centering in CSS code by Josh Comeau */
  /* https://www.joshwcomeau.com/css/center-a-div/ */
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.imageGrid img {
  width: 300px;
  /* max-height: fit-content; */
  height: auto;
  transition: all 0.2s;
}

/* Zoom on Hover by W3Schools */
/* https://www.w3schools.com/howto/howto_css_zoom_hover.asp */
.imageGrid img:hover {
  transform: scale(2);
}

.futureSection {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../assets/images/FutureNowThumb.png");
}

.melancholiaSection {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("../assets/images/MelancholiaThumb.png");
}

.notesSection {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../assets/images/NotesThumb.png");
}

.eyeSection {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../assets/images/EyeThumb.png");
}

.twentyFortySection {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../assets/images/2040Thumb.png");
}

.joanSection {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../assets/images/JoanSword_Closeup.jpg");
}

/* Credits */

.creditsBody {
  background-color: #f2eda0;
}

.creditsLinks h2 {
  margin-bottom: 0;
}

.creditsLinks li {
  height: 5rem;
}

/* Animations */

/* Hover Bob code from Ian Lunn */
/* https://ianlunn.github.io/Hover/ */
@keyframes hvr-bob {
  0% {
    transform: translateY(-8px);
  }
  50% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(-8px);
  }
}

@keyframes hvr-bob-float {
  100% {
    transform: translateY(-8px);
  }
}

/* Responsive Design */
/* For mobile viewports */
@media only screen and (max-width: 890px) {
  body {
    /* background-size: cover !important; */
    font-size: 1rem;
  }

  h1 {
    font-size: 3rem;
  }

  #indexIcon a {
    font-size: 2rem;
  }

  .hamburgerIcon {
    width: 8%;
    box-shadow: none;
    margin-top: 5%;
  }

  .toTopIcon {
    width: 6%;
    box-shadow: none;
  }

  .cancelButton {
    width: 20%;
    left: 65%;
  }

  .indexBody h2 a {
    font-size: 2rem;
  }

  .indexBody p {
    font-size: 1rem;
    margin-bottom: 5%;
  }

  .indexBody a {
    font-size: 1.5rem;
  }

  ul {
    list-style-type: none;
  }

  li {
    font-size: 0.8rem;
    margin-top: 5%;
    line-height: 2;
  }

  table {
    width: 65%;
  }

  /* Index */
  .workHeaders ul a {
    font-size: 2rem;
  }

  /* Works Page */
  .worksArea {
    display: flex;
    flex-direction: column;
    /* margin: 5%; */
  }

  .card {
    min-width: 250px;
    margin: 1% 0;
  }

  .cardContainer {
    min-width: 280px;
  }

  .cardContainer img {
    width: 100%;
    height: 200px;
  }

  /* Work Showcase */

  a h2 {
    font-size: 2rem;
  }

  .workShowcase {
    height: 635px;
  }

  .largerImages img {
    width: 90%;
    margin: 0 5%;
  }

  .imageGrid,
  .videoSection,
  .largerImages {
    display: flex;
    flex-direction: column;
  }

  .videoSection img {
    width: 90%;
    height: auto;
    margin: 2% 5%;
  }

  /* Credits */
  .creditsLinks li {
    height: 5rem;
    font-size: 1.5rem;
  }
}
