/* DOCUMENT SECTION */

* {
  box-sizing: border-box;
  /* font-family: Georgia, serif; */
  font-family: Georgia, 'Times New Roman', Times, serif;
  /* font-family: Verdana, Geneva, Tahoma, sans-serif; */
}
:root {
  --accentColor: #4fd5ff;
  --mainColor: #2e2e2e;
  --backgroundColor: #4d4d4d;
  --gridThickness: 6px;
  --ourPurple: #1f0270;
  --navbarThicness: 45px;
  /* --accentColor: #f2e9e4;
    --mainColor: #c9ada7;
    --backgroundColor: #b2aba8;
    --gridThickness: 6px;
    --ourPurple: #22223b; */
}
html,
body {
  overflow-x: hidden;
  scroll-behavior: smooth;
  z-index: -3;
  display: block;
  margin: 0;
  padding: 0;
}
body {
  overflow-y: hidden;
  background-color: var(--mainColor);
  position: relative;
}

/* DOCUMENT SECTION */
/* PHONE SECTION  */

.flexWrap {
  display: none;
  height: 100%;
}
.phoneFlex {
  display: flex;
  flex-direction: row;
  gap: 10px;
  overflow: auto;
  /* white-space: nowrap; */
  height: calc(100% - 60px);
  width: 100%;
  scroll-snap-type: x mandatory;
}
.phoneFlex img {
  border: 1px solid var(--accentColor);
  border-radius: 10px;
  scroll-snap-align: center;
  height: 99%;
  min-width: 99%;
  object-fit: cover;
}

/* PHONE SECTION  */
/* NAVBAR SECTION */

.navbar {
  height: var(--navbarThicness);
  z-index: 999;
  background-color: var(--mainColor);
  position: fixed;
  border-bottom: 2px solid var(--accentColor);
  width: 100%;
  display: flex;
}
.navbarItem:first-child {
  margin-left: 15%;
}
.navbarItem {
  margin-top: auto;
  margin-bottom: auto;
  margin-left: 50px;
}

.toRightNav {
  display: flex;
  margin-left: auto !important;
  /* margin-bottom: 6px; */
}
.flagIco {
  margin-inline: 10px;
}
.flagIco img {
  vertical-align: middle;
  height: 21px;
  width: 28px;
}
.navico svg {
  fill: var(--accentColor);
}
.navbarItem a {
  font-weight: 800;
  text-shadow: 1px 1px 0px var(--ourPurple);
  color: var(--accentColor);
  text-decoration: none;
}
/* .navbarItem img {
  height: 21px;
  width: 28px;
} */
.navbarItem a:hover {
  color: white;
}

/* NAVBAR SECTION */
/* MAIN SECTION */
#logo {
  position: absolute;
  min-width: 100px !important;
  width: 20% !important;
  /* top: 20px; */
  /* left: 100px; */
  filter: drop-shadow(2px 2px 3px var(--ourPurple));
}
.mainContent {
  background-color: var(--backgroundColor);
  display: flex;
  position: relative;
  height: calc(100vh - var(--navbarThicness));
  height: calc(100dvh - var(--navbarThicness));
}

#mainPicture {
  top: var(--navbarThicness);
  position: relative;
  display: flex;
}

#mainPicture img {
  width: 100%;
  object-fit: cover;
  object-position: center;
  max-height: calc(100vh - (2 * var(--navbarThicness)));
}

/* MAIN SECTION */
/* GRID SECTION  */

.contentWrapper {
  position: relative;
  margin: auto;
  width: 90%;
  height: 90%;
}
.gridWrapper {
  height: 100%;
}
.grid::-webkit-scrollbar {
  display: none;
}
.gridWrapper::-webkit-scrollbar {
  display: none;
}
.grid {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  gap: 5px;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: calc(100% * (1 / 3) - 4px);
}

.photo {
  transition: translate 0.3s cubic-bezier(0.5, 1, 1, 1),
    transform 0.3s cubic-bezier(0.5, 1, 1, 1), opacity 0.5s ease-out;
  background-size: cover;
  background-position: center;
  scroll-snap-align: center;
  opacity: 0.7;
  border-radius: 10px;
  border: 1px solid var(--accentColor);
}
.grid:has(.transformed) > .photo {
  opacity: 0;
}

.photo:hover {
  opacity: 1;
  cursor: pointer;
}

/* GRID SECTION  */
/* FOOTER  */

.footer {
  top: var(--navbarThicness);
  border-top: 2px solid var(--accentColor);
  display: flex;
  justify-content: space-around;
  position: relative;
  padding: 15px 70px 50px;
}
.footer span {
  color: var(--accentColor);
  text-shadow: 1px 1px 0px var(--ourPurple);
}
.footer svg {
  position: relative;
  top: -5px;
  margin-left: 5px;
  fill: var(--accentColor);
  vertical-align: middle;
}
.footer pre,
p,
a {
  color: white;
  margin: 0;
}
p:is(.headerInfo) {
  text-shadow: 1px 1px 0px #1f0270;
  font-weight: 800;
  color: var(--accentColor);
}

div:has(.headerInfo) {
  margin-bottom: 1em;
}
p:has(+ svg) {
  display: inline;
}

/* FOOTER  */

input[type='button'] {
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 2;
  opacity: 0;
  cursor: pointer;
}
.arrow {
  right: -45px;
  width: 45px;
  height: 45px;
  position: absolute;
}
.arrowPhone {
  width: 60px;
  height: 60px;
  position: absolute;
  bottom: 0;
}
.arrow svg {
  fill: var(--accentColor);
}
.arrow:hover svg {
  fill: #289bbe;
}
#arrow1 {
  transform: rotate(270deg);
}
#arrow2 {
  transform: rotate(90deg);
  bottom: 0;
}
#arrow3 {
  right: 0;
}
#arrow4 {
  left: 0;
  transform: rotate(180deg);
}

/* LANDSCAPE MODE */

@media screen and (max-width: 950px) and (min-width: 501px) {
  .footer {
    flex-direction: column;
  }
  #arrow1,
  #arrow2 {
    display: none;
  }
  .grid {
    display: none;
  }

  ::-webkit-scrollbar {
    display: none;
  }

  .flexWrap {
    display: block;
  }
  /* NAVBAR SECTION  */

  .navbarWrapper {
    flex-wrap: wrap;
  }
  .navbar {
    height: var(--navbarThicness);
  }
  .navico #img {
    fill: var(--accentColor);
    display: block;

    /* NAVBAR SECTION  */
  }
  /* LANDSCAPE MODE */
  /* VERTICAL MODE */
}

@media screen and (max-width: 500px) {
  .footer {
    top: 0;
    flex-direction: column;
    padding: 1em 2em 5em;
    justify-content: flex-start;
  }
  #arrow1,
  #arrow2,
  #arrow3,
  #arrow4 {
    display: none;
  }
  #mainPicture {
    top: 0;
    height: 300px;
    background-size: contain;
  }
  .firstItem {
    margin-left: 0;
  }
  .grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: calc(100% * (1 / 3) - 4px);
  }
  /* NAVBAR SECTION  */

  .navbar {
    height: auto;
    position: relative;
    flex-wrap: wrap;
  }
  .navbarItem:not(:last-child) {
    margin-left: 0;
    padding: 10px;
  }
  .navbarItem {
    width: 100%;
  }
  .toRightNav {
    width: 80px;
    position: absolute;
    margin-top: 10px;
    right: 60px;
  }
  /* NAVBAR SECTION  */
}

/* VERTICAL MODE */
