@font-face {
  font-family: "Roboto";
  src: url("./fonts/Roboto.woff2") format("woff2");
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
img,
h1,
h2,
h3,
p {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  -khtml-user-select: none;
}
body {
  background-color: rgb(250, 235, 215);
}
.dbg {
  background-color: rgb(16, 16, 16);
}
.full_screen {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  inset: 0;
}
.info_page,
.contact_page,
.agreement_page,
.mail_sent_page {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  inset: 0;
}
.agreement_page {
  flex-direction: column;
}
.agreement_title {
  color: rgb(128, 128, 128);
  text-align: center;
  font-size: min(1.3rem, 5vw);
  padding-top: 2rem;
  font-weight: 400;
}
.agreement_text {
  max-width: 800px;
  color: rgb(128, 128, 128);
  text-align: justify;
  padding: 1rem;
  font-size: min(1.2rem, 4vw);
}
.agreement_text span {
  padding-left: 1rem;
}
.browsers li {
  display: inline-block;
  padding: 0.5rem;
  font-size: min(1.2rem, 4vw);
}
a {
  color: rgb(128, 128, 128);
}
.message {
  color: rgb(128, 128, 128);
  padding: 2rem;
  font-size: min(1.5rem, 5vw);
  font-weight: 400;
  text-align: center;
}
.buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.accept,
.refuse {
  margin: 1rem;
  cursor: pointer;
}
.info_text {
  color: rgb(128, 128, 128);
  padding: 2rem;
  padding-left: 0;
  text-align: justify;
  font-size: 1.2rem;
  line-height: 1.5rem;
  max-width: 1600px;
}
.copyright_text {
  position: absolute;
  bottom: 2rem;
  color: rgb(128, 128, 128);
  text-align: center;
  font-size: 0.8rem;
  padding-inline: 16rem;
}
.my_image {
  width: min(180px, 100%);
  border-radius: 50%;
  margin: 2rem;
}
.contact_page_image {
  max-width: 50%;
  aspect-ratio: 3 / 2;
  margin: 2rem;
}
.form_wrapper {
  display: flex;
  flex-direction: column;
  max-width: min(600px, 50%);
  margin-left: 2rem;
  margin-top: 2rem;
}
.form_wrapper a {
  display: inline-block;
  text-decoration: none;
  color: rgb(128, 128, 128);
  font-size: min(1.2rem, 3.7vw);
  width: min-content;
  padding-bottom: 1rem;
}
.contact_page_title,
.contact_page_text,
.agreement_link {
  color: rgb(128, 128, 128);
}
.contact_page_title,
.agreement_link {
  width: min-content;
}
.contact_page_title {
  font-weight: 400;
}
.agreement_link {
  padding-left: 0.8rem;
  padding-top: 0.33rem;
  text-decoration: underline;
  cursor: pointer;
}
.contact_page_text {
  padding-block: 1rem;
  font-size: 1.2rem;
  width: min(600px, 100%);
  text-align: justify;
}
.form {
  display: flex;
  flex-direction: column;
  width: min(600px, 100%);
}
.agreement {
  display: flex;
}
.btn {
  display: block;
  max-width: 150px;
  margin-block: 1rem;
  padding: 0.5rem;
  font-size: min(1.2rem, 4.5vw);
  margin-bottom: 3rem;
  color: rgb(128, 128, 128);
  background-color: rgb(250, 235, 215);
  border: 1px solid rgb(128, 128, 128);
  border-radius: 8px;
  cursor: pointer;
}
input,
textarea {
  padding: 0.5rem;
  margin-block: min(0.5rem, 3%);
  border: 1px solid rgb(128, 128, 128);
  border-radius: 8px;
  font-size: min(1rem, 4vw);
  background-color: rgb(250, 235, 215);
  width: min(600px, 100%);
  outline: none;
}
textarea {
  font-family: "Roboto", sans-serif;
}
#cb {
  accent-color: rgb(128, 128, 128);
  width: min-content;
  cursor: pointer;
}
.info_closing_icon,
.contact_closing_icon {
  max-width: 1.2rem;
  position: absolute;
  top: 2rem;
  right: 2rem;
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
  object-fit: cover;
  border-radius: 1rem;
}
ul {
  list-style: none;
  font-size: 1.5rem;
}
.display_grid {
  display: grid;
}
.display_none {
  display: none;
}
.filter {
  filter: grayscale();
}
.red {
  color: rgb(255, 0, 0);
}
.gray {
  color: rgb(128, 128, 128);
}
.opacity {
  opacity: 0.2;
}
.color_choice_opacity {
  opacity: 0.45;
}
.container {
  margin: 0 auto;
  max-width: 2560px;
  display: flex;
  overflow-y: hidden;
}
.preview_section {
  width: min(1080px, 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}
.itl,
.itr,
.ibr,
.ibl {
  position: absolute;
  width: max(3vw, 2.3rem);
  height: max(3vw, 2.3rem);
}
.itl {
  border-top: 2px solid rgb(128, 128, 128);
  border-left: 2px solid rgb(128, 128, 128);
  left: 1rem;
  top: 1rem;
  border-top-left-radius: 0.5rem;
}
.itr {
  border-top: 2px solid rgb(128, 128, 128);
  border-right: 2px solid rgb(128, 128, 128);
  top: 1rem;
  right: 1rem;
  border-top-right-radius: 0.5rem;
}
.ibl {
  border-bottom: 2px solid rgb(128, 128, 128);
  border-left: 2px solid rgb(128, 128, 128);
  left: 1rem;
  bottom: 1rem;
  border-bottom-left-radius: 0.5rem;
}
.ibr {
  border-bottom: 2px solid rgb(128, 128, 128);
  border-right: 2px solid rgb(128, 128, 128);
  right: 1rem;
  bottom: 1rem;
  border-bottom-right-radius: 0.5rem;
}
.title {
  font-size: 1.1rem;
  position: absolute;
  top: 20%;
}
.title span {
  color: rgb(128, 128, 128);
}
.viewer,
.viewer_display,
.viewer_full_screen {
  overflow: hidden;
  max-width: 70%;
  max-height: 50%;
  aspect-ratio: 3 / 2;
  position: absolute;
}
.viewer_display {
  max-height: 70%;
}
.viewer_full_screen {
  max-width: 80%;
  max-height: 80%;
}
.navigation,
.navigation_full_screen,
.navigation_main {
  display: flex;
  width: min(320px, 40vw);
  justify-content: space-evenly;
  position: absolute;
  bottom: 20%;
  align-items: center;
}
.navigation_full_screen {
  bottom: 3%;
}
.navigation_main {
  bottom: 10%;
}
.navigation:hover {
  cursor: pointer;
}
.left_arrow,
.full_screen_icon,
.screen_icon,
.right_arrow {
  width: min(2rem, 1.5rem);
}
.color_choice {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  outline: 2px solid rgb(33, 33, 33);
}
.scroller,
.main_scroller {
  position: absolute;
  margin-inline: 2rem;
  top: 10%;
  width: min(600px, 70%);
  overflow: hidden;
  mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}
.main_scroller {
  top: 5%;
}
.moving_list {
  display: flex;
  width: max-content;
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  animation: scroll 60s linear infinite;
  font-size: 1.2rem;
}
ul li {
  transition: 500ms;
}
.moving_list li {
  display: inline-block;
}
li:hover {
  cursor: pointer;
  color: rgb(128, 128, 128);
}
.moving_list:hover {
  animation-play-state: paused;
}
@keyframes scroll {
  to {
    transform: translate(calc(-50% - 0.5rem));
  }
}
.header {
  width: min(960px, 100%);
  min-height: 100vh;
  background-image: url("./img/main_background_image.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  aspect-ratio: 1120 / 1500;
  position: relative;
  border-right: 120px solid rgb(250, 235, 215);
}
.photographer,
.photographer_d {
  position: absolute;
  color: rgb(128, 128, 128);
  top: 15%;
  font-size: 2rem;
  right: -5.5rem;
  font-weight: 400;
}
.photographer_d {
  left: min(-6.2rem, 3.9vw);
  width: min-content;
}
.menu,
.menu_d,
.menu_d_wr {
  position: absolute;
  top: 30%;
  right: -6.1rem;
  color: rgb(255, 0, 0);
  z-index: 3;
}
.menu_d,
.menu_d_wr {
  left: 0.15rem;
  width: min-content;
}
.menu_d_wr {
  width: min-content;
}
.galleries,
.galleries_d {
  position: absolute;
  text-align: right;
  right: 0.6rem;
  color: rgb(250, 235, 215);
  font-size: min(1.1rem, 3.6vw);
  top: max(44%, 35vh);
}
.galleries_d {
  color: rgb(250, 235, 215);
  left: -6.6rem;
  width: min-content;
}
.main {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(calc(520px - 2rem), calc(100% - 2rem));
  min-height: 100vh;
  flex-grow: 1;
  position: relative;
}
.main_display {
  border-left: 12vw solid rgb(0, 0, 0);
}
.border {
  position: absolute;
  border: 2px solid rgb(128, 128, 128);
  border-left: none;
  inset: 0;
  left: -9.5rem;
  margin: 2rem;
}
.grid_container {
  max-width: 70%;
  max-height: 70%;
  aspect-ratio: 3 / 2;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.8rem;
}
.aspect_ratio {
  aspect-ratio: 2 / 3;
}
.disabled {
  opacity: 0.5;
}
@media (max-width: 1200px) {
  .preview_section {
    display: none;
  }
  .galleries {
    display: none;
  }
  .galleries_d {
    text-align: left;
    left: 0.3rem;
    color: rgb(0, 0, 0);
    margin-top: 2rem;
  }
  img {
    border-radius: 0.5rem;
  }
  .contact_page {
    flex-wrap: wrap-reverse;
    align-self: flex-start;
  }
  .contact_page_image {
    max-width: 80%;
    margin-bottom: 0;
  }
  .form_wrapper {
    max-width: min(600px, 80%);
    margin-inline: 2rem;
  }
  .contact_page_text {
    font-size: min(1.3rem, 3.8vw);
  }
  .agreement_link {
    font-size: min(1rem, 3.7vw);
  }
  .agreement_page {
    justify-content: start;
  }
}
@media (max-width: 920px) {
  .border {
    display: none;
  }
  .photographer {
    right: min(1.5rem, 1.3vw);
  }
  .photographer_d {
    transform: rotate(-90deg);
    top: 45vh;
    font-size: 1.8rem;
    left: min(-6.5rem, -12.2vw);
    opacity: 0.3;
  }
  .header {
    border: none;
  }
  .menu {
    text-align: right;
    right: 1rem;
  }
  .menu_d_wr {
    width: 240px;
    top: 2%;
    left: calc(50% - 120px);
  }
  .menu_d {
    display: flex;
    justify-content: space-evenly;
    width: 240px;
    font-size: min(1.5rem, 4.8vw);
  }
  .scroller {
    top: 6%;
  }
  .main_scroller {
    top: 5vh;
  }
  .moving_list li {
    font-size: min(1.2rem, 3.7vw);
  }
  .grid_container {
    position: absolute;
    top: 8.5vh;
    grid-template-columns: 1fr;
    overflow-y: scroll;
    aspect-ratio: 9 / 16;
    max-height: 85%;
    max-width: 80%;
  }
  .viewer_display {
    max-width: 90%;
  }
  .galleries_d {
    display: none;
  }
  .info_page {
    flex-direction: column;
    justify-content: space-between;
  }
  .info_text {
    padding: 2rem;
  }
  .copyright_text {
    position: initial;
    padding: 2rem;
  }
  .contact_page_image {
    margin-top: 2rem;
  }
  .contact_page_title {
    font-size: min(1.5rem, 5.2vw);
  }
}
@media (max-width: 680px) {
  .photographer {
    right: min(2.5rem, 4.3vw);
    font-size: min(2rem, 3.8vw);
  }
  .navigation_main,
  .navigation_full_screen {
    justify-content: space-between;
  }
}
@media (max-width: 1200px) and (max-height: 640px) {
  .navigation_main {
    bottom: 5%;
  }
  .menu_d {
    font-size: min(1.3rem, 3.7vw);
    top: 3%;
  }
  .main_scroller {
    top: min(9%, 10vh);
  }
  .main_scroller li {
    font-size: 0.8rem;
  }
  .display_grid {
    top: 16.5%;
    aspect-ratio: 1 / 0.8;
  }
  .itl,
  .itr,
  .ibr,
  .ibl {
    display: none;
  }
  .galleries_d {
    display: none;
  }
}
@media (max-width: 620px) {
  .main {
    border: none;
  }
  .photographer_d {
    display: none;
  }
  .contact_page_image {
    max-width: 90%;
  }
  .form_wrapper {
    max-width: 90%;
  }
  .contact_closing_icon {
    top: 0.5rem;
    right: min(2rem, 5vw);
  }
  .itl,
  .itr,
  .ibr,
  .ibl {
    display: none;
  }
}
@media (max-width: 560px) {
  .grid_container {
    aspect-ratio: 2 / 5;
  }
}
@media (max-width: 420px) {
  .itl,
  .itr,
  .ibr,
  .ibl {
    display: none;
  }
  .info_closing_icon {
    top: 1rem;
    right: 1rem;
  }
  .navigation_main,
  .navigation_full_screen {
    min-width: 80vw;
  }
}
@media (max-width: 2560px) and (max-height: 640px) {
  .navigation_main {
    bottom: 5%;
  }
}
@media (max-width: 2560px) and (max-height: 420px) {
  .viewer_full_screen {
    top: 5%;
  }
}
