:root {
  --fake-beige: #f1f1f1;
  --fake-black: #212d32;
  --fake-carbon: #525252;
  --sea-dark: #879697;
  --sea-light: #c9d9d8;

  --item-h: 250px;
  --item-w: 100%;

  --page-transition-time: 1s;
}

* {
  -webkit-tap-highlight-color: transparent;
}

.filter-hue1 {
  transform: rotate(2deg) !important;
  transition: all 0.2s cubic-bezier(0.175, 5.885, 0.32, -5.275) !important;
}

.filter-hue2 {
  transform: skew(1deg, 1.2deg) !important;
  transition: all 0.3s cubic-bezier(0.175, 5.885, 0.32, -5.275) !important;
}

.filter-hue3 {
  transform: skew(-2deg, 1.2deg) !important;
  transition: all 0.4s cubic-bezier(0.175, 5.885, 0.32, -5.275) !important;
}

.fa-solid {
  font-weight: 900;
}

.btn {
  font-size: 1.0em;
  display: flex;
  flex-direction: row;
  position: relative;
  align-items: center;
  font-family: Raleway, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  cursor: pointer;
  text-align: center;
  width: max-content;
  border-radius: 40px;
  border: 3px solid var(--fake-carbon);
  color: var(--sea-dark);
  background-color: var(--fake-beige);
  padding: 5px 20px;
  padding-right: 3px;
  margin: 0.3em;
}

.btn::after {
  align-self: center;
  font-family: 'Font Awesome 6 Free';
  font-size: 1.6em;
  content: "\f138";
  font-weight: 900;
  margin-left: 20px;
  padding-right: 5px;
  color: var(--fake-black);
}

.btn.back::after {
  display: none;
}

.btn.back {
  padding-right: 20px !important;
}

.btn.back::before {
  margin-right: 20px;
  font-family: 'Font Awesome 6 Free';
  content: "\f137";
  font-weight: 900;
  color: var(--fake-black);
}

.btn.close::after {
  content: "\f057";
}

.btn.close.special {
  position: absolute;
  right: 2.2rem;
  top: 1.5rem;
  z-index: 33;
  display: none;
}

.btn.close.special.show {
  display: flex;
}

/* button to scroll up */
#back-up {
  display: none;
}

.transparent {
  opacity: 0.7;
  transition: opacity 1s;
}

.fade-out {
  opacity: 0 !important;
  transition: opacity 1s !important;
}

#wrp-intro-vid {
  position: fixed;
  width: 100dvw;
  height: 100dvh;
  display: grid;

  grid-template-rows: repeat(1, 1fr);
  grid-template-columns: repeat(1, 1fr);

  z-index: 30;
  top: 0;
  left: 0;
  background: var(--fake-beige);

}

#vid-intro {
  grid-column: 1;
  grid-row: 1;
  display: block;
  position: absolute;
  height: 130%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid #000;
  z-index: 25;
}

#skip {
  background-image: url("/src/logo_black.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  width: 40%;
  height: calc(40vw / 1.3);
  cursor: pointer;
  justify-self: center;
  align-self: center;
  background-color: var(--sea-light);
  grid-column: 1;
  grid-row: 1;
  opacity: 0.9;
  z-index: 26;
  border-radius: 30px;
  justify-content: end;

  h2 {
    text-align: right;
    margin-right: 27px;
    margin-bottom: 22px;
    font-size: 2em;
  }
}

a:is(a:link,
  a:visited,
  a:active,
  a:hover) {
  text-decoration: none;
  color: inherit;
}

#icons {
  display: flex;
  justify-content: center;
  gap: 1rem;

  img {
    height: 100%;
  }
}

#icons #patronite {
  width: 1.5rem;
  filter: brightness(0) saturate(100%);
}

#icons #coffee {
  width: 1.5rem;
}

.fab {
  color: var(--fake-black);
  font-size: 1.5rem;
  text-decoration: none;
}

* {
  box-sizing: border-box;
}

/* h1, */
/* h2, */
/* .h2, */
span#h2 {
  font-size: 1.8rem;
  font-family: Raleway, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  width: 100dvw;
  min-height: 100dvh;
  background: var(--sea-light);
  margin: 0;
  padding: 0 2rem;
  color: var(--fake-black);
}

.wrp-logo {
  position: absolute;
  top: 0;
  left: 0;
}

#logo {
  padding: 0;
  margin: 0;
  position: absolute;
  top: 0;
  object-fit: cover;
  width: 20vh;
}


#main {
  height: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

#text {
  flex-basis: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: Raleway, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--fake-black);

  h1 {
    font-size: 3em;
  }

  span {
    /* font-size: 1.6em; */
  }
}

#text>* {
  text-align: center;
  text-wrap: wrap;
}

#bottom-menu {
  font-family: Nunito, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  --li-height: 100px;
}

#bottom-menu li {
  cursor: pointer;
  list-style: none;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 5px;
  text-align: center;


  @media (min-width: 1025px) {

    &::before,
    &::after {
      height: 3px;
      width: 80%;
      content: "";
      position: absolute;
      background-color: var(--fake-beige);
      transition: all 1s, transform 0.5s;
    }

    &::before {
      left: 10%;
      transform-origin: left;
      top: 0;
    }

    &::after {
      bottom: 0;
      right: 10%;
      transform-origin: right;
    }

    &:hover::before,
    &:hover::after {
      width: var(--li-height);
      background-color: var(--fake-beige);
      transition: all 0.5s, transform 1s;
    }

    &:hover::before {
      left: 0;
      transform-origin: left;
      transform: rotate(90deg) translateX(0px);
    }

    &:hover::after {
      left: unset;
      transform-origin: right;
      transform: rotate(90deg) translateX(0px);
      right: 0;
    }
  }
}



.right-side {
  background-color: var(--fake-beige);
  height: 100dvh;
  width: 100%;
  overflow: scroll;
  padding-left: 3%;
  border-radius: 20px;
}

.right-side :is(a:link,
  a:visited,
  a:active,
  a:hover) {
  color: var(--sea-dark);
}

.loader-error {
  display: flex;
  justify-content: center;
  grid-column: 1/-1;
  height: 90vh;
  color: var(--fake-carbon);

  h1 {
    align-self: center;
    font-size: 1rem !important;
  }
}

.items-loader {
  display: flex;
  justify-content: center;
  grid-column: 1/-1;
  height: 90vh;
  animation: item_loading 1s alternate infinite;

  h1 {
    align-self: center;
  }
}

@keyframes item_loading {
  from {
    color: white;
    background-color: var(--sea-dark);
  }

  to {
    color: var(--sea-dark);
    background-color: var(--sea-light);
  }
}

#itemswrp {
  /* scroll-behavior: smooth; */
  overflow: hidden;
  height: 100dvh;
  flex-basis: 50%;
  flex-grow: 1.2;
  color: var(--fake-black);

  h1 {
    /* font-size: 24px; */
  }

  h2 {
    /* font-size: 20px; */
  }
}

.page {
  padding: 6rem 3rem;
  position: relative;
}

.page h2 {
  margin-top: 3rem;
}

.page .btn,
.btn.special {
  color: var(--fake-carbon);
  background-color: var(--sea-light);
  position: absolute;
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: 900;
  top: 1rem;
  right: 1rem;
}




#items {
  scroll-margin-top: 10px;
  margin: 0;
  /* margin-top: 3rem; */
  margin-bottom: 3rem;
  padding: 0;
  padding-top: 2rem;
  padding-bottom: 50%;
  width: 100%;
  height: 100%;
  min-width: 300px;
  list-style: none;
  overflow-y: scroll;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  transition: all 0.1s;
}

/* orcostrated by main.js with js media query max-with 420px*/
/* see main.js reAddClickToItems()
/* 4 content class animations --  */
/* 1)out of small 2)into large */
/* 3)out of large 4)into small */
#items .visible {
  height: 100vh;
  width: 100dvw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 33;
  background-color: var(--sea-dark);
  animation: slide-inout 0.5s;
  overflow-y: scroll;

  .long {
    margin-top: 10px;
    overflow-y: auto;
  }


  /* .content { */
  /*   grid-row: 1/-1; */
  /*   height: max(100dvh, max-content); */
  /* } */
}

#items .item-large-out {
  height: 100dvh;
  width: 100dvw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 33;
  background-color: var(--sea-dark);
  animation: slide-outin 0.5s;
}

.content-base-transition-in {
  animation: slide-inout 0.3s;
}

.content-out {
  animation: slide-outin 0.2s;
  animation-fill-mode: forwards;
}

.content img {
  background-color: none;
  width: 100%;
}

@keyframes slide-inout {
  0% {
    clip-path: rect(0 0% 100% 0);
  }

  100% {
    clip-path: rect(0 100% 100% 0);
  }
}

@keyframes slide-outin {
  0% {
    clip-path: rect(0 100% 100% 0);
  }

  100% {
    clip-path: rect(0 0% 100% 0);
  }
}

@media screen and (min-width: 1025px) {
  #itemswrp .items-as-page {
    --fake-beige: #c9d9d8;
    --sea-light: #f1f1f1;
    border-radius: 20px;
    background-color: var(--sea-light);
    padding-top: 6rem;
    margin-top: 0;
    transition: all 0.5s;
    align-items: center;
    justify-items: center;
    gap: 20px;

    .item {
      /* --sea-dark: var(--sea-light); */
      /* transform: scale(0.92); */
      width: calc(var(--item-w)*0.95);
      transition: all 0.5;
    }
  }

  .items-as-page::before {
    position: absolute;
    top: 3rem;
    left: 3rem;
    font-size: 2rem;
    font-weight: 800;
    content: 'MEETINGS';
  }
}

/* item tile events */
.item {
  font-size: 1.0em;
  position: relative;
  cursor: url(nat994.cur), pointer;
  background: var(--fake-beige);
  border: solid var(--sea-dark);
  aspect-ratio: 1/1.3;
  /* width: var(--item-w); */
  display: grid;
  grid-template-rows: 1fr max-content 1fr;
  transition: transform 0.4s;
}

.item>.content {
  position: relative;
  z-index: 22;
  grid-row: 2/3;
  /* font-size: 36px; */
  /* font-size: clamp(0.3, 1.5em, 4rem); */
  /* font-size: 2.3vw; */
  font-family: Nunito, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;

  h1 {
    /* font-size: 0.6em; */
    padding-bottom: 0.1em;
  }

  * {
    /* font-size: 0.5em; */
    margin: 0;
    padding: 0;
  }


  small {
    /* font-size: 0.8em; */
    display: block;
    padding-top: 0.4em;
  }
}

.item>.content::before {
  content: "";
  background: var(--sea-light);
  opacity: 0.7;
  z-index: -1;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.item svg {
  grid-column: 1/-1;
  grid-row: 1/-1;
  height: 100%;
  width: 100%;
  opacity: 0.3;
  border: 20px solid var(--fake-beige);
  margin: 0;
  padding: 0;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  position: absolute;

}

.item:nth-child(3n+1),
.item:nth-child(3n+3) {
  position: relative;
  top: 50%;
}

/* for orpan item in a line to be in the middle*/
.item:nth-child(3n+1):last-child {
  grid-column: 2/3;
  top: 0%;
}

dialog {
  text-align: center;
  margin-right: 5%;
  aspect-ratio: 10/3;
  background-color: var(--sea-light);
  border: none;
  box-shadow: 0px 0px 50px var(--fake-black),
    0px 0px 90px var(--fake-black),
    0px 0px 40px var(--fake-black);

  #btn-close {
    font-size: 1.5em;
    margin-left: auto;
    margin-top: 20px;
    margin-right: 20px;
  }

  p {
    font-size: 1.6em;
    margin: 0;
  }

  h1 {
    margin: 2rem;
    padding: 0;
  }
}

dialog>#wrp {
  width: 100%;
  font-size: 1.3rem;

  .content {
    display: flex;
    flex-flow: column;
    justify-content: center;
    height: max-content;
    padding: 0;
    margin: 0;

    /* & p, */
    /* div.long { */
    /*   padding: 1rem 3rem; */
    /*   margin-top: 1rem; */
    /* } */

    small {
      display: block;
      font-size: 1.1em;
    }

  }
}


dialog.visible {
  width: 40vw;
  aspect-ratio: 1/1.4;
  border-radius: 10px;
  transition: all 0.2s;
  scrollbar-width: none;
  padding: 0;
  border: none;
}

dialog.visible svg {
  opacity: 0.2;
  transition: all 1s;
}

dialog.visible h1 {
  font-size: 2em;
}

.content .long {
  display: none;
  overflow-wrap: break-word;
  margin: 0;
  text-align: left;
  padding: 1rem 3rem;
  margin-top: 1rem;
}

.visible .long {
  display: block;
}

.visible img.long {
  background-color: none;
}

.visible div.long {
  background-color: var(--fake-beige);
}

.visible div.long.wrp-btn {
  background-color: revert;
  font-size: 1em;
  display: flex;
  justify-content: space-between;
  padding: 0;
  margin: 1.25rem;

  .btn {
    padding: 5px;
    position: revert;
  }

  .btn::after,
  btn::before {
    font-size: 1em;
  }
}

.visible img.long {
  padding: 0;
  object-fit: fill;
}

::backdrop {
  /* backdrop-filter: blur(2px); */
}

dialog.remove {
  width: 0;
  opacity: 0;
  transition: all 0.1s;
}

.bottom-btns {
  display: flex;
  position: absolute;
  bottom: 10px;
}

#btn-change {
  user-select: none;
  cursor: pointer;
}

.page-transition {
  animation: slide-inout 0.3s linear;
}

@media (max-width: 1024px) {
  * {
    /* scroll-behavior: smooth; */
  }


  body {
    padding: 0;
  }

  #main {
    flex-direction: column;
    padding: 0;
  }

  dialog {
    position: fixed;
    margin: auto;
    width: 0vw;
    height: 0vh;
  }

  dialog.visible {
    width: 100vw;
    height: 90vh;
  }

  #bottom-menu {
    display: grid;
    grid-auto-columns: 80%;
    grid-auto-flow: row;
    justify-content: center;
    cursor: pointer;
    padding: 0px;
    gap: 2px;

    li {
      padding: 3% 0;
      border: solid 1px var(--fake-beige);
    }
  }


  #items {
    overflow-y: visible;
  }

  #logo {
    position: sticky;
    z-index: -1;
  }

  .item>.content {
    /* font-size: 1.5rem; */
    /* grid-row: 1/-1; */
  }

  #wrp-intro-vid {
    #skip {
      width: 100%;
      height: 50vh;
      border-radius: 0;

      h2 {
        font-size: 1em !important;
      }
    }
  }

  /* button to scroll up */
  #back-up {
    font-size: 3rem;
    position: sticky;
    top: 90dvh;
    left: 30px;
    z-index: 100;
    display: block;
    width: 5rem;
    margin: 1%;
    opacity: 0.7;
    background: var(--sea-dark);
    border-radius: 10px;
    text-align: center;
  }

}


@media (max-width: 900px) {
  #main {
    display: block;
    height: 100vh;
  }

  #h1 {
    font-size: 0.8em;
  }

  .wrp-logo {
    transform: translate(-9%, -17%) scale(0.6);
  }

  .bottom-btns,
  .btn.close {
    display: none;
  }

  .page {
    margin: 0;
    padding: 3vw;

  }

  #bottom-menu {
    grid-auto-columns: 100%;
    grid-auto-flow: row;
    width: 100%;

    li {
      width: 100%;
    }
  }

  #h2 {
    /* font-family: Raleway, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
    font-size: 1rem !important;
    /* font-weight: normal !important; */
  }

  .items-loader {
    width: 100vw;
  }

  #items {
    /* display: flex; */
    /* flex-wrap: wrap; */
    gap: 1px;
  }

  .item {
    /* width: 100vw; */
    font-size: 2.0vw;
  }

  .item svg {
    border: 10px solid var(--fake-beige);
  }

  .item>.content {
    grid-row: 2/3;
    /* font-size: max(1rem, 13vw); */
    /* overflow: scroll !important; */
  }

  .item .content>*:not(h1) {
    display: none;
  }

  div.visible.content>* {
    display: block;
    font-size: 2.7em;
  }

  .item>.content img {
    background-color: none !important;
  }

  .visible div.long.wrp-btn btn {
    /* padding: 0; */
  }

  div.long.wrp-btn {
    justify-content: space-between;
    background-color: black;
    height: 100px;
  }

  .btn {
    justify-self: center;
    align-self: center;
    border: none;
    border-radius: 0;
    max-height: 100%;
    width: min-content;
    font-size: 1em !important;
  }
}
