body {
  font-family: Jost, sans-serif;
  font-weight: 400;
  font-size: 14px;
  font-style: normal;
  color: #454545;
  line-height: 1.65;
  margin: 0;
}

a {
  text-decoration: none;
}

h1 {
  font-family: Jost, sans-serif;
  font-weight: 600;
  font-style: normal;
  text-transform: uppercase;
  font-size: 1.25em;
  letter-spacing: 0.2em;
  color: #454545;
  line-height: 1.65;
}

h2 {
  font-family: Jost, sans-serif;
  font-weight: 600;
  font-style: normal;
  text-transform: uppercase;
  font-size: 1.25em;
  letter-spacing: 0.2em;
  color: #454545;
  line-height: 1.65;
}

/* navigation */
header {
  background-color: #fff;
  padding: 0.5em;
  color: #454545;
  box-shadow: 0 -1px #e3e3e3 inset;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition:
    background 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
}

nav li {
  display: inline-block;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-flex-item {
  align-items: center;
  color: #454545;
}

.header-flex-item a {
  color: #454545;
}

.header-flex-item-menu {
  flex: 1;
}

.nav-link:hover {
  color: #467d4e;
}

.header-links {
  text-align: right;
}

.logo {
  font-weight: 400;
  font-style: normal;
  font-size: 3em;
  margin: 0;
  margin-bottom: -0.3em;
}

.mobile-logo {
  display: none;
}

.sub-logo {
  margin: 0;
  font-size: 0.75em;
  text-align: center;
  padding-bottom: 0.5em;
}

.nav-link {
  margin-right: 3em;
}

.icon {
  max-height: 1.5em;
  margin-right: 1.5em;
}

/* French language icon  */

.french-link-hover {
  display: none;
}

.french-link-class:hover .french-link-regular {
  display: none;
}

.french-link-class:hover .french-link-hover {
  display: inline;
}

/* Change email icon on hover */

.email-link-hover {
  display: none;
}

.email-link-class:hover .email-link-regular {
  display: none;
}

.email-link-class:hover .email-link-hover {
  display: inline;
}

/* Change instagram icon on hover */

.instagram-link-hover {
  display: none;
}

.instagram-link-class:hover .instagram-link-regular {
  display: none;
}

.instagram-link-class:hover .instagram-link-hover {
  display: inline;
}

/* Change behance icon on hover */

.behance-link-hover {
  display: none;
}

.behance-link-class:hover .behance-link-regular {
  display: none;
}

.behance-link-class:hover .behance-link-hover {
  display: inline;
}

/* Dropdown Button */
.dropbtn {
  background-color: #fff;
  color: white;

  border: none;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  width: 18em;
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: #454545;
  padding: 0.5em;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  color: #467d4e;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  color: #467d4e;
}

@media (max-width: 1280px) {
  .header-wrapper {
    font-size: 0.75em;
  }
}

@media (max-width: 960px) {
  .header-wrapper {
    display: flex;
    flex-direction: column;
  }

  .header-social {
    display: none;
  }

  .header-flex-item-logo {
    display: none;
  }

  .mobile-logo {
    display: block;
  }

  .logo {
    text-align: center;
  }

  .dropdown-content a {
    display: none;
  }

  .behance-link {
    margin-right: 0;
  }
}

/* footer style */
footer {
  font-size: 0.75em;
  padding: 1em;
}

.footer-class {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 960px) {
  .footer-class {
    flex-direction: column;
    text-align: center;
  }
}

/* homepage style */

.homepage {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.portfolio-title {
  margin-top: 1.5em;
}

.flower-sketch {
  width: 100%;
  margin: 0;
  padding: 0 auto;
}

.portfolio-buttons {
  position: absolute;
  color: white;
  z-index: 1;
}

.portfolio-link {
  margin: 3em;
  display: inline-block;
  transition: all 0.2s ease-in;
  position: relative;
  overflow: hidden;
  z-index: 1;
  color: #454545;
  padding: 1em 2em;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 0.5em;
  background: #fff;
  border: 1px solid #fff;
  box-shadow:
    6px 6px 12px #c5c5c5,
    -6px -6px 12px #fff;
}

.portfolio-link:active {
  color: #454545;
  box-shadow:
    inset 4px 4px 12px #c5c5c5,
    inset -4px -4px 12px #fff;
}

.portfolio-link:before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scaleY(1) scaleX(1.25);
  top: 100%;
  width: 140%;
  height: 180%;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: block;
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: -1;
}

.portfolio-link:after {
  content: "";
  position: absolute;
  left: 55%;
  transform: translateX(-50%) scaleY(1) scaleX(1.45);
  top: 180%;
  width: 160%;
  height: 190%;
  background-color: #4b6b50;
  border-radius: 50%;
  display: block;
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: -1;
}

.portfolio-link:hover {
  color: #ffffff;
  border: 1px solid #4b6b50;
}

.portfolio-link:hover:before {
  top: -35%;
  background-color: #4b6b50;
  transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.portfolio-link:hover:after {
  top: -45%;
  background-color: #4b6b50;
  transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

@media (max-width: 960px) {
  main {
    font-size: 0.75em;
  }

  .portfolio-link {
    margin: 1em;
  }
}

@media (max-width: 600px) {
  main {
    font-size: 0.75em;
  }

  .portfolio-buttons {
    display: flex;
    flex-direction: column;
  }

  .portfolio-link {
    margin: 1em;
  }

  .flower-sketch {
    height: 30em;
    width: auto;
  }
}

/* graphic design page style */
.gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns */
  gap: 20px;
  margin: 1em 2em;
}

.gallery-image {
  width: 100%;
  height: 30em;
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.gallery-image:hover {
  transform: scale(1.03);
}

/* Popup pages style */

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: white;
  width: 65%;
  padding: 2em;
  border-radius: 5px;
  text-align: center;
  max-height: 70%;
  overflow-y: auto;
}

.popup-content-text {
  margin: 1em 7em;
  text-align: left;
}

.popup-content-image {
  width: 80%;
  max-width: 1500px;
  margin-bottom: 1.5em;
}

.scary-stories-images {
  margin-bottom: 0;
}
.hidden {
  display: none;
}

.close {
  cursor: pointer;
  font-size: 20px;
  float: right;
}

@media (max-width: 1280px) {
  .gallery-image {
    height: 21em;
  }
}

@media (max-width: 960px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .popup-content {
    width: 90%;
    padding: 1em;
  }

  .gallery-image {
    height: 25em;
  }

  .popup-content-text {
    margin: 1em 2em;
  }
  .popup-content-image {
    width: 90%;
  }
}

/* illustration page style */

.popup-content-image-illo {
  margin-bottom: 0;
  margin-top: 1em;
}

/* sketchbook page style */
/* Style the Image Used to Trigger the Modal */

/* old 
.sketchbook-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 1em 2em;
}

.gallery-img {
  width: 100%;
  height: 30em;
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.gallery-img:hover {
  transform: scale(1.03);
}

*/

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  padding: 40px; /* space around the image */
  box-sizing: border-box;
}

/* Modal Content (Image) */
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  width: auto;
  height: auto;
}

/* Add Animation - Zoom in the Modal */
.modal-content,
#caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
  .modal-content {
    width: 100%;
  }
}

/* arrows */

.arrow {
  position: absolute;
  top: 50%;
  font-size: 50px;
  color: white;
  cursor: pointer;
  padding: 10px;
  user-select: none;
  transform: translateY(-50%);
}

.left {
  left: 40px;
}

.right {
  right: 40px;
}

.arrow:hover {
  color: #bbb;
}

@media (max-width: 900px) {
  .sketchbook-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .sketchbook-gallery {
    grid-template-columns: 1fr;
  }
}

/* about page */

.about-container {
  display: flex;
  flex-direction: row;
  margin: 1em 0;
  align-items: center;
}

.about-container a {
  text-decoration: none;
  color: #467d4e;
}
.about-text {
  margin: 0 10em;
}

.about-image {
  width: 70%;
  height: 70%;
  margin-right: 10em;
}

.hidden-image {
  display: none;
}

@media (max-width: 1200px) {
  .about-text {
    margin: 0 5em;
  }

  .about-image {
    width: 80%;
    height: 80%;
    margin-right: 5em;
  }
}

@media (max-width: 960px) {
  .about-text {
    margin: 0 3em;
  }

  .about-image {
    width: 80%;
    height: 80%;
    margin-right: 3em;
  }
}

@media (max-width: 600px) {
  .about-container {
    flex-direction: column;
    margin-bottom: 0;
  }

  .about-container h1,
  .about-container h2 {
    text-align: center;
  }

  .about-container h2 {
    margin: 2em;
  }

  .about-image {
    display: none;
  }

  .hidden-image {
    display: block;
    justify-content: center;
    margin: 0 auto;
    padding: 1em;
    width: 70%;
  }
}
