* {
  background-color: inherit;
  font-family: Verlag, Monsterrat, sans-serif;
}

html {
  background-color: #2292D0;
}

body {
  background-color: white;
  margin-top: 0;
}

img {
  max-width: 100%;
  height: auto;
  transition: .5s ease-in;
}

main {
  padding-bottom: 2em;
  padding-left: 1em;
  padding-right: 1em;
}

h1 {
  font-family: Gotham Rounded, Quicksand, sans-serif;
  color: #2292D0;
  text-align: center;
  font-size: 2em;
  margin-top: 2em;
  margin-bottom: 2em;
}

h2 {
  font-family: Gotham Rounded, Quicksand, sans-serif;
  color: #2292D0;
  font-size: 1.25em;
}

h3 {
  font-family: Gotham Rounded, Quicksand, sans-serif;
  color: white;
}

p {
  display: block;
}

a {
  text-decoration: none;
}

a:hover,
a:focus-within {
  color: rebeccapurple;
  transition: .5s ease-in;
  /* transform: scale(1.15, 1.15); */
}

footer {
  background-color: #2292D0;
}

/* Scrolling translucent navbar */
.nav-positioning {
  background: rgba(255, 255, 255, 0.80);
  position: fixed;
  width: stretch;
  width: -webkit-fill-available;
  top: 0;
  left: 0;
  z-index: 2;
}

/* Grid for logo and nav */
.main-nav-container {
  background: none;
  display: grid;
  grid-template-columns: 18% 88%;
  padding-top: 1rem;
  padding-left: 1rem;
}

/* Navlinks spacing */
.main-nav {
  display: flex;
  justify-content: space-evenly;
}

#main-logo {
  padding-top: 1.25em;
  padding-left: 1.25em;
  padding-bottom: 1em;
}

/*Hidden mobile menu */
.mobile-menu img {
  height: 0;
  opacity: 0;
  overflow: hidden;
}

/* Navlinks Styling */
.main-nav-link a {
  font-family: Gotham Rounded, Quicksand, sans-serif;
  color: #2292D0;
  font-size: 2em;
  font-weight: bold;
}

.dropdown-link a {
  font-family: Gotham Rounded, Quicksand, sans-serif;
  color: #2292D0;
  font-size: 1em;
}

/* Hover dropdown desktop menu */
ul.main-nav {
  list-style-type: none;
}

li.main-nav-link,
li.dropdown-link {
  display: block;
  height: auto;
}

li:hover {
  cursor: pointer;
}

ul li ul {
  opacity: 0;
  height: 0;
  overflow: hidden;
}

ul li:hover>ul,
ul li:focus-within>ul,
ul li ul:hover {
  opacity: 1;
  height: auto;
  display: block;
}

/* Text content spacing */
.home-desc,
.about-desc,
.contact-desc {
  padding-left: 3em;
}

/* About page grid layout */
.about-grid {
  display: grid;
  grid-template-columns: 50% 50%;
  grid-column-gap: 2em;
}

.about-image {
  margin: auto;
}

/* Resume button styling */
.resume-button {
  border-radius: 10px;
  padding: .5em;
  margin-left: 3em;
  border: solid #2292D0;
  color: #2292D0;
  transition: .5s ease-in;
}

.resume-button:hover,
.resume-button:focus-within {
  background-color: #2292D0;
  color: white;
  transform: scale(1.25, 1.25);
}

/* Homepage grid layout */
.homepage-main {
  display: grid;
  grid-template-columns: 50% 50%;
}

.homepage-sidebar {
  margin-top: -8em;
  margin-left: 20em;
  background: none;
}

.main-header {
  width: 50%;
}

/* Homepage buttons styling */
.home-sidebar-button {
  border-radius: 15%;
  padding: 1.75em;
  border: solid #2292D0;
  color: #2292D0;
  transition: .5s ease-in;
  display: flex;
  flex-direction: column;
  margin-bottom: 2em;
  font-size: 2.5em;
}

.home-sidebar-button a {
  transition: .5s ease-in;
  color: #2292D0;
  background: none;
}

.home-sidebar-button:hover,
.home-sidebar-button:focus-within {
  background-color: #2292D0;
}

.home-sidebar-button:hover a,
.home-sidebar-button:focus-within a {
  color: white;
}

/* Image grid layouts */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  grid-row-gap: 3em;
  grid-column-gap: 3em;
  align-content: center;
  justify-content: space-between;
  margin: 0 3em 0 3em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 2em;
  align-content: center;
  justify-content: space-between;
}

/* Anchor Nav Links Styling */

ul.gallery-nav-ul {
  list-style-type: disc;
}

/* Thumbnail styling */
.portfolio-grid-item {
  position: relative;
  transition: .5s ease-in;
}

.image-title {
  color: #2292D0;
  text-align: center;
  position: absolute;
  bottom: 2em;
  width: stretch;
  width: -webkit-fill-available;
  padding-top: .5em;
  padding-bottom: .5em;
  z-index: 2;
  opacity: 0;
  transition: .5s ease-in;
}

.portfolio-grid-item:hover,
.portfolio-grid-item:focus-within {
  background: rgba(0, 0, 0, 0.15);
}

.portfolio-grid-item:hover img,
.portfolio-grid-item:focus-within img {
  opacity: .5;
}

.portfolio-grid-item:hover>.image-title,
.portfolio-grid-item:focus-within>.image-title {
  opacity: 1;
  background: rgba(255, 255, 255, 0.50);
}

/* Project text content spacing */
.project-desc {
  padding-left: 3em;
  padding-right: 3em;
  margin-bottom: 2em;
}

/* Footer text content styling */
.social-media-header {
  color: white;
  text-align: center;
  padding-top: 2em;
}

.copyright {
  color: white;
  font-size: .6em;
}

/* Footer social media grid layout */
.social-media {
  display: flex;
  justify-content: space-evenly;
}

/* First media query - mobile nav menu */
@media screen and (max-width: 700px) {

  a:hover,
  a:focus-within {
    transition: none;
    transform: none;
  }

  .main-nav-container {
    grid-template-columns: 50% 50%;
  }

  .mobile-menu img {
    display: flex;
    height: auto;
    opacity: 1;
    margin: 1em auto 2em 7em;
    z-index: 2;
  }

  .mobile-menu[data-state='close']+.main-nav li,
  ul {
    height: 0;
    opacity: 0;
  }

  .mobile-menu[data-state='open']+.main-nav,
  li,
  ul {
    display: block;
    height: auto;
    opacity: 1;
    margin: auto auto 1.5em auto;
  }
}
