/* MAIN COMPONENTS - body, html, hamburger, header, footer */
* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Figtree", sans-serif;
}

a {
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

.navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 1rem;
  color: #bcbcbc;
  height: 60px;
  position: relative;
}

.email {
  margin-top: 0.3rem;
  margin-right: 2rem;
  font-size: 0.8rem;
}

.email a {
  color: darkgray;
  text-decoration: none;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 5;
}

.overlay.show {
  display: block;
}

.nav-links {
  display: none;
  flex-direction: column;
  text-align: left;
  position: absolute;
  top: 60px;
  right: 8px;
  width: 240px;
  padding: 1rem;
  z-index: 10;
  background-color: white;
}

.nav-links a {
  color: black;
  margin-bottom: 1rem;
}

.nav-links a:hover {
  text-decoration: underline;
}

.nav-links.show {
  display: flex;
}

.hamburger {
  font-size: 2.5rem;
  cursor: pointer;
  position: sticky;
  top: 0;
  z-index: 999;
  user-select: none;
}

.nav-links,
.dropdown-menu {
  transition: all 0.3s ease;
}

.dropdown-menu {
  display: none;
  flex-direction: column;
  background-color: white;
  margin-top: 0.5rem;
  transition: max-height 0.3s ease;
  margin-right: 1rem;
}

.dropdown-menu a {
  font-size: 0.9rem;
  margin: 0.3rem 0;
  color: #444;
  padding-left: 2rem;
  text-align: left;
}

.dropdown-menu.show {
  display: flex;
  max-height: 500px;
}

.caret {
  margin-left: 2rem;
  color: darkgray;
}

.logo-and-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.logo-and-name img {
  height: 50px;
}

.logo-and-name h1 {
  font-weight: lighter;
  font-size: 60px;
  margin: 0;
  letter-spacing: 2px;
}

.logo-and-name h2 {
  font-weight: lighter;
  font-size: 24px;
  margin: 2px 0;
}

.logo-and-name-small {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 12px 0;
}

.logo-and-name-small img {
  height: 50px;
  margin-bottom: 8px;
}

.logo-and-name-small h1 {
  font-weight: lighter;
  font-size: 32px;
  margin: 0;
  letter-spacing: 1px;
}

.logo-and-name-small h2 {
  font-weight: lighter;
  font-size: 16px;
  margin: 2px 0;
}

footer {
  margin: 32px 0;
  text-align: center;
  font-size: 12px;
}

/* HOME PAGE */

.main-container-homepage {
  overflow: hidden;
  height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.home-page-items {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.home-page-items img {
  max-width: 200px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 20px;
}

/* ABOUT PAGE */

.main-container-about-page {
  padding: 0 20px;
}
.about-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 48px;
}

.contact-container h2 {
  font-weight: lighter;
  font-size: 24px;
  margin: 0;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.about-container h2 {
  font-weight: lighter;
  font-size: 24px;
  margin: 0;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.exhibitions-container h2 {
  font-weight: lighter;
  font-size: 24px;
  margin: 0;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.about-me-container {
  display: flex;
  flex-direction: row;
  max-width: 90%;
  flex-wrap: wrap;
}

.about-me-container p {
  margin: 20px;
  font-size: 1rem;
  display: flex;
  padding-left: 1rem;
}

.contact-container {
  margin-bottom: 48px;
}

.contact-link {
  color: #333;
}

.contact-link:hover {
  font-weight: bold;
  color: darkgray;
}

.img-container {
  flex: 1;
  aspect-ratio: 1 / 1;
  max-width: 300px;
  margin: 20px 20px 20px 0;
  display: flex;
  justify-content: center;
  align-items: start;
}

.img-container img {
  max-width: 300px;
  max-height: 300px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.text-container {
  flex: 2;
  min-width: 0;
}

.exhibitions-list li {
  list-style-type: none;
  line-height: 2rem;
}

.exhibitions-list {
  padding-left: 0;
  margin-left: 0;
}

.exhibitions-list span {
  font-weight: lighter;
  padding-right: 8px;
  font-size: larger;
}

/* COLLECTION PAGE */

#collection-container a {
  color: black;
}

#collection-container a:hover {
  color: darkgray;
  font-style: bold;
  text-decoration: none;
}

#collection-container {
  margin-top: 100px;
}

.collection-section {
  display: flex;
  flex-direction: column;
}

.category-tag {
  margin-left: 20px;
  font-style: italic;
  color: darkgray;
  margin-top: 20px;
}

.content-wrapper h3 {
  font-weight: lighter;
  font-size: 24px;
  margin: 0;
  letter-spacing: 1px;
  margin: 0px 20px 12px 20px;
}

.prize {
  margin: 0 20px 20px 20px;
}

.type {
  margin: 20px 20px 0 20px;
  font-weight: bold;
}

.materials {
  margin: 0 20px 0 20px;
}

.designer {
  margin: 0 20px 0 20px;
}

.maker {
  margin: 0 20px 0 20px;
}

.photographer {
  margin: 0 20px 20px 20px;
}

.text {
  margin: 20px 20px 0 20px;
}

.for-sale {
  margin: 40px 20px 0 20px;
  font-weight: bold;
}

.item {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  width: 100%;
}

.img-wrapper {
  width: 60%;
}

.item img {
  width: 100%;
  height: auto;
  display: block;
}

.content-wrapper {
  width: 40%;
}

.scrollToTopBtn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  border: 2px solid darkgray;
  background-color: white;
  color: darkgray;
  cursor: pointer;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scrollToTopBtn.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scrollToTopBtn:hover {
  background-color: darkgray;
  color: black;
  border-color: black;
}

.overlay:not(.show) {
  pointer-events: none;
}

/* RESPONSIVE */

/* Slightly smaller screens */
@media screen and (max-width: 950px) {
  /* General components */

  .logo-and-name h1 {
    font-size: 48px;
    margin-top: 24px;
    margin-bottom: 12px;
  }

  .main-container-homepage {
    overflow: auto;
    justify-content: start;
  }

  .home-page-items {
    flex-wrap: wrap;
    max-width: 460px;
  }

  .home-page-items img {
    margin: 10px;
  }
}

/* Mobile screens */
@media screen and (max-width: 550px) {
  /* General components */

  .logo-and-name h1 {
    font-size: 32px;
    margin-top: 24px;
    margin-bottom: 12px;
    text-align: center;
  }

  /* Home page */

  .main-container-homepage {
    margin-top: 32px;
    overflow: auto;
    justify-content: start;
  }
  .home-page-items {
    flex-wrap: wrap;
    max-width: 350px;
  }

  .home-page-items img {
    max-width: 150px;
    margin: 10px;
  }

  /* About page */

  .navbar {
    display: flex;
    justify-content: flex-end;
    padding: 0 0.5rem;
    text-align: right;
  }

  .main-container-about-page {
    margin: 0;
    padding: 0 12px;
  }

  .about-container {
    margin: 0;
    text-align: center;
    justify-content: center;
    align-items: center;
  }

  .about-container h2 {
    margin-top: 32px;
  }

  .about-me-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .img-container {
    margin: 0;
  }

  .contact-container {
    text-align: center;
    margin-top: 32px;
  }

  .exhibitions-container {
    text-align: center;
    margin-left: 12px;
    margin-right: 12px;
  }

  /* Collection page */

  .content-wrapper h3 {
    font-size: 14px;
    margin: 0px 20px 12px 12px;
  }

  .content-wrapper {
    width: 100%;
    font-size: 12px;
    margin: 0px 20px 12px 12px;
  }

  .content-wrapper p {
    margin: 0px 20px 12px 12px;
  }

  .img-wrapper {
    width: 100%;
  }

  .item {
    flex-direction: column;
    flex-wrap: nowrap;
    margin-bottom: 24px;
  }
}
