/* Import fonts from Adobe Fonts */
@import url("https://use.typekit.net/mix4uty.css");

/* Removing margin from all site elements */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
}

/* Setting HTML height */
html {
  height: 100%;
  scroll-behavior: smooth;
}

/* General rules for body */
body {
  background-color: #fffef5;
  font-family: utopia-std, serif;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: auto;
  height: 15.5vh;
}
header img {
  width: 280px;
}
nav {
  width: 450px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
nav a {
  color: black;
  text-decoration: none;
  font-size: 15pt;
}
nav a::after {
  content: "";
  border-bottom: 2px solid black;
  width: 0%;
  transition: width 0.3s ease-out;
  display: block;
}
nav a:hover::after {
  width: 100%;
}

/* Burgermenu */
.fa-bars {
  font-size: 18pt;
  display: none;
}

#burger-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 0;
  width: 100%;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  background-color: #fffef5;
  overflow-x: hidden;
  transition: 0.5s ease;
}
#burger-links {
  height: 80%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
}
#burger-links a {
  text-decoration: none;
  color: black;
  font-size: 23pt;
  padding: 15px;
}
#burger-logo {
  width: 230px;
  margin-bottom: 30px;
}
#close {
  padding: 15px;
  margin-top: 50px;
  font-size: 25pt;
}

/* Footer */
footer {
  background-color: #eeece0;
}
#footer-content {
  height: 230px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}
footer a {
  font-family: mr-eaves-modern, sans-serif;
  font-weight: 200;
  padding: 7px 0px;
  text-decoration: none;
  color: black;
  font-size: 14pt;
  transition: 0.2s;
}
footer a:hover {
  color: #63625b;
}
footer h3 {
  font-size: 15pt;
  font-weight: 400;
}
#practical div,
#contact div,
#socials {
  display: flex;
  flex-direction: column;
  margin-top: 35px;
}
footer i {
  font-size: 20pt;
  transition: 0.2s;
}
footer i:hover {
  color: #63625b;
}
#socials a {
  display: flex;
  align-items: center;
  gap: 5px;
}
#credit {
  color: white;
  background-color: #8d8b7a;
  font-size: 10pt;
  text-align: center;
  padding: 10px;
}
#credit a {
  color: white;
  font-size: 12pt;
}

/* Front page main */
#main-wrap {
  display: flex;
  height: 84.5vh;
}

#fp-pictures {
  width: 85%;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 35px;
  padding-bottom: 50px;
}

#fp-pictures div {
  width: 100%;
  padding-top: 38%;
  opacity: 1;
  transition: opacity 0.8s ease-in-out;

  background-size: cover;
  background-position: center;
}

#fp-pictures div:nth-child(1) {
  background-image: url(images/rot1.jpg);
}

#fp-pictures div:nth-child(2) {
  background-image: url(images/front2.jpg);
  width: 80%;
}

#fp-pictures div:nth-child(3) {
  background-image: url(images/portrait4.jpg);
  width: 80%;
}

/* Gallery main */

/* Filtering */
#filtering {
  position: relative;
  margin-top: 50px;
  margin-left: 5%;
  margin-bottom: 50px;
  width: 500px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#filtering h2 {
  font-size: 15pt;
  font-weight: 500;
}
.filter-type {
  cursor: pointer;
  font-family: mr-eaves-modern, sans-serif;
  font-weight: 400;
  display: flex;
  align-items: flex-end;
  gap: 5px;
}
.filter-drop {
  width: 130px;
  position: absolute;
  top: 100%;
  background-color: #eeece0;
  flex-direction: column;
  display: none;
}
.filter-drop p {
  text-align: center;
  width: 100%;
  padding: 12px 0px;
}
.filter-show {
  display: flex;
}
.fa-check {
  display: none;
}

#all {
  background-color: #8d8b7a;
  color: #ffff;
}
#reset {
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  background-color: #8d8b7a;
  transition: 0.2s;
}
#reset:hover {
  background-color: #63625b;
}
#reset-mobile {
  width: 100px;
  text-align: center;
  color: white;
  padding: 8px 10px;
  border-radius: 20px;
  background-color: #8d8b7a;
  transition: 0.2s;
  display: none;
}

/* Gallery */
#gallery-wrap {
  min-height: 84.5vh;
}
#gallery {
  column-count: 3;
  column-gap: 20px;
  max-width: 90%;
  margin: 0 auto;
  margin-bottom: 50px;
  /* break-inside: avoid; */
}
.image-box {
  break-inside: avoid;
}
#gallery img {
  width: 1000px;
  height: auto;
  max-width: 100%;
  cursor: pointer;
  transition: 0.2s;
}
.image-text {
  font-family: mr-eaves-modern, sans-serif;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 11pt;
}
.right-text {
  text-align: right;
}
#sold {
  color: #bf0000;
  font-weight: 600;
  font-size: 12pt;
}
#reserved {
  color: #e77e05;
  font-weight: 600;
  font-size: 12pt;
}

#noMatch {
  display: flex;
  align-items: center;
  flex-direction: column;
  font-family: mr-eaves-modern, sans-serif;
  margin-top: 100px;
  font-size: 35pt;
}
#noMatch p:last-child {
  font-size: 30pt;
  font-weight: 300;
}

#toTop {
  text-align: center;
  margin-bottom: 50px;
}
#toTop a {
  text-decoration: none;
  color: white;
  font-family: mr-eaves-modern, sans-serif;
  font-size: 15pt;
  background-color: #8d8b7a;
  padding: 10px 30px;
  border-radius: 20px;
}

/* Fullscreen image */
#fullscreen-container {
  position: fixed;
  top: 0;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
  transition: opacity 2s ease-in-out;
  display: none;
  backdrop-filter: brightness(50%) blur(5px);
  transition: 1s ease-in-out;
}

#fullscreenImage {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  height: 97%;
  cursor: pointer;
}
#fullscreenImage img {
  z-index: -1000;
  max-height: 100%;
  max-width: 95%;
}

/* Classes for showing and hiding images when filtering (used in JS) */
.show-class {
  display: block;
}
.hide-class {
  display: none;
}

/* About page */
#about-container {
  height: 84.5vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
}
#about-container p {
  font-family: mr-eaves-modern, sans-serif;
  font-weight: 300;
  font-size: 15pt;
  width: 40%;
  line-height: 30px;
}
#about-image {
  width: 35%;
  padding-top: 35%;
  background-image: url(images/portrait4.jpg);
  background-size: cover;
  background-position: center;
}

/* Contact page */
#contact-wrap {
  height: 84.5vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#contact-container {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 50px;
}
form {
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
form input {
  border-radius: none;
  border: 1px solid #b9b6a4;
  height: 50px;
  padding-left: 10px;
  text-align: top;
  overflow: hidden;
}
form input::placeholder {
  font-family: mr-eaves-modern, sans-serif;
  font-weight: 100;
  font-size: 15pt;
}
textarea {
  padding-top: 10px;
  padding-left: 10px;
  font-family: mr-eaves-modern, sans-serif;
  font-weight: 100;
  font-size: 15pt;
  resize: none;
  height: 200px;
  border: 1px solid #b9b6a4;
  border-radius: none;
}
#submit {
  border: none;
  background-color: #8d8b7a;
  cursor: pointer;
  margin-top: 20px;
  font-family: mr-eaves-modern, sans-serif;
  color: white;
  font-size: 18pt;
  font-weight: 700;
  transition: 0.2s;
}
#submit:hover {
  background-color: #63625b;
}
#contact-info {
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 25%;
}
#contact-info h2 {
  margin-bottom: 20px;
}
#contact-info li {
  display: flex;
  align-items: center;
  gap: 25px;
  font-family: mr-eaves-modern, sans-serif;
  list-style-type: none;
  margin-bottom: 10px;
  font-size: 15pt;
  font-weight: 300;
}
.fa-circle {
  color: #8d8b7a;
  font-size: 10pt;
}
#contact-info p {
  font-family: mr-eaves-modern, sans-serif;
  font-size: 15pt;
  font-weight: 300;
  line-height: 30px;
}
#formSent p {
  text-align: center;
  margin-top: 10px;
  font-size: 18pt;
  font-weight: 400;
  color: rgb(16, 155, 11);
  font-family: mr-eaves-modern, sans-serif;
}
#formSent p:nth-child(2) {
  color: black;
  font-size: 14pt;
}

/* Sales page */
#sale-container {
  height: 100%;
  margin-top: 100px;
  margin-bottom: 100px;
}
#sale-wrap {
  width: 80%;
  max-width: 1200px;
  display: flex;
  gap: 10%;
  margin: auto;
}
#sale-wrap h2 {
  margin-bottom: 25px;
}
#sale-wrap p {
  font-family: mr-eaves-modern, sans-serif;
  line-height: 25px;
  font-size: 15pt;
  font-weight: 300;
}
#howBuy h2 {
  margin-top: 40px;
}
#howBuy p {
  margin-bottom: 30px;
}
#howBuy a {
  font-family: mr-eaves-modern, sans-serif;
  font-size: 15pt;
  color: white;
  text-decoration: none;
  padding: 6px 40px;
  border-radius: 20px;
  background-color: #8d8b7a;
  transition: 0.2s;
}
#howBuy a:hover {
  background-color: #63625b;
}

@media screen and (max-width: 1024px) {
  /* Header */
  header {
    width: 87%;
  }
  nav {
    display: none;
  }
  header img {
    width: 200px;
  }

  /* Burgermenu */
  .fa-bars {
    display: block;
  }

  /* Footer */
  #footer-content {
    height: 450px;
    width: 80%;
    margin: auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  footer h3 {
    font-size: 17pt;
  }
  footer a {
    font-size: 14pt;
  }
  #practical div,
  #contact div {
    margin-top: 20px;
    margin-bottom: 30px;
  }
  #socials {
    flex-direction: row;
    gap: 15px;
    margin-top: 20px;
  }
  #socials i {
    font-size: 25pt;
  }

  /* Front page */
  #main-wrap {
    margin-top: 30px;
    margin-bottom: 30px;
    height: auto;
  }
  #fp-pictures {
    width: 87%;
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }
  #fp-pictures div {
    width: 20%;
    padding-bottom: 50%;
  }
  #fp-pictures div:nth-child(1),
  #fp-pictures div:nth-child(2),
  #fp-pictures div:nth-child(3) {
    width: 100%;
  }

  /* Gallery */
  #gallery {
    column-count: 2;
  }
  #filtering {
    margin-bottom: 20px;
    width: 480px;
  }

  /* About page */
  #about-container {
    height: auto;
    width: 87%;
    flex-direction: column-reverse;
    margin: auto;
    margin-top: 30px;
    margin-bottom: 50px;
  }
  #about-container p {
    width: 100%;
  }
  #about-image {
    width: 100%;
    padding-top: 70%;
  }

  /* Contact page */
  #contact-wrap {
    width: 87%;
    height: auto;
    margin: auto;
    margin-top: 30px;
    margin-bottom: 50px;
  }
  #contact-container {
    flex-direction: column-reverse;
    align-items: center;
    margin: auto;
  }
  #contact-info {
    width: 100%;
  }
  form {
    width: 100%;
  }

  /* Sales page */
  #sale-container {
    height: auto;
    margin-top: 30px;
    margin-bottom: 50px;
  }
  #sale-wrap {
    width: 87%;
    flex-direction: column;
    gap: 50px;
  }
}

@media screen and (max-width: 500px) {
  /* Gallery */
  #gallery {
    column-count: 1;
  }
  #filtering {
    width: 320px;
  }
  #reset {
    display: none;
  }
  #reset-mobile {
    display: block;
    margin-left: 5%;
    margin-bottom: 50px;
  }
  #noMatch {
    align-items: left;
  }
}
