html, body{
    margin: 0; 
    padding: 0;
    width: 100vw;
    height: 100dvh;
    font-size: 1vw;
    scroll-behavior: smooth;
    overflow-x: hidden; 
    overflow-y: auto;  

    background-color: var(--color-dark);
    color: var(--color-light);

    scrollbar-width: none; 
    -ms-overflow-style: none;
}

    html::-webkit-scrollbar,
    body::-webkit-scrollbar,
    *::-webkit-scrollbar {
      display: none; /* Chrome, Safari, Opera */
    }



@font-face {
    font-family: "Running-Text";
    src: url(../fonts/JTPulpo-Light.woff) format(woff);
    src: url(../fonts/JTPulpo-Light.woff2) format(woff2);

    text-rendering: geometricPrecision;
}
@font-face {
    font-family: "bold";
    src: url(../fonts/JTPulpo-Fett.woff) format(woff);
    src: url(../fonts/JTPulpo-Fett.woff2) format(woff2);

    text-rendering: geometricPrecision;
}


/* MOBILE */
  :root{
    /* font */
    --running-text: 10px;

    /* colors  */
    --color-dark: rgb(35, 35, 35);
    --color-light: rgb(237, 237, 237);

  }

  body{
      font-family: "Running-Text";
      font-size: var(--running-text);

  }

  ::-moz-selection { /* Code for Firefox */
    background: var(--color-light);
    color: var(--color-dark);
  }
  
  ::selection {
    background: var(--color-light);
    color: var(--color-dark);
  }

  .horizontal-spacer-1{
    position: relative;
    width: 100vw;
    height: 0;
  }

  header{
    position: absolute;
    z-index: 9999999;
    padding: 0 7px 4px 0;

    top: 100dvh;
    left: 100vw;
    width: 28rem;

    transform: translate(-100%, -100%);

    text-align: right;
    mix-blend-mode: difference;
     cursor: pointer;
  }
  main {
    position: absolute;

    display: flex;
    height: 10dvh;
    transition: height 0.4s ease;


    z-index: 999;

    flex-direction: row;
    overflow-x: auto;
    overflow-y:hidden;
  }

  footer {
    position: absolute;

    width: 100vw;
    height: 100dvh;

    top: 0;
    left: 0;
    background-color: var(--color-dark);

    transform: scaleY(0);
    transform-origin: top;

    transition: transform 0.3s ease;

    z-index: 1;
  }
  footer.collapsed {
    transform: scaleY(1);
  }


    /* image-navigation */
    nav.thumb-bar {
      position: fixed;
      top: 75dvh;
      left: 0;
      width: 100vw;
      height: 8dvh;
      display: flex;
      align-items: center;
      overflow-x: auto;
      overflow-y: hidden;
      z-index: 99999;
      scrollbar-width: none;   /* Firefox */
    }
    nav.thumb-bar::-webkit-scrollbar {
      display: none; /* Chrome/Safari */
    }

    nav.thumb-bar a {
      display: block;
      flex-shrink: 0;
      height: 100%;
      margin:0;
    }
    .hidden {
    display: none !important;
}

    nav.thumb-bar img {
      height: 100%;
      width: auto;
      object-fit: contain;
      display: block;
    }

    #mainScroll {
      position: absolute;
      display: flex;
      flex-direction: row;

      height: 100dvh;
      width: 100vw;

      overflow-x: auto;
      overflow-y: hidden;

      z-index: 999;
      scrollbar-width: none;


      transform: scaleY(1);
      transform-origin: bottom;
      transition: transform 0.3s ease;
    }

    #mainScroll.expanded {
      transform: scaleY(0);
      opacity: 1;
    }



    /*stilll not woking, until input-line*/
    .filter-menu{
      position: fixed;

      width: auto;
      height: 18px;

      top: 100dvh;
      left: 7px;

      transform: translate(0, -100%);

      display: flex;
      z-index: 99999;
      mix-blend-mode: difference;

    }

    label {
      display: inline-block;
      cursor:default;
      position: relative;
      padding-left: 17px;
      margin-right: 10px;
    }

    label:before {
      content: "";
      display: inline-block;

      width: 12px;
      height: 12px;

      position: absolute;
      top: 1px;
      left: 0;
      background-color: var(--color-light);
    }
    input[type=checkbox] {
      display: none;
    }
    .filter-menu label:before {
      border-radius: 1px;
    }

    input[type=checkbox]:checked + label:before {
      content: "×";
      font-size: 20px;
      color: var(--color-dark);
      text-align: center;
      line-height: 7px;
    }

    .project.hidden {
      display: none !important;
}






  /* project text/description */
  .project-txt {
    position: absolute;
    display: none;
    background-color: none;
  }
  .fixed-project-txt {
    position: fixed;
    top: 35px;
    left: 7px;
    z-index: 9999999;
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 1rem;
    width: 250px;
    pointer-events: pointer;
    user-select: none;
    border-radius: 2px;
  }
  /*button to show and hide text + / - */
  .more-project-txt{
    position: absolute;
    z-index: 99999999;
    height: 14px;
    width: 14px;
    top: 7px;
    left: 7px;

    font-size: 12px;
    text-align: center;
    padding: 0;
    background-color: var(--color-light);
    border: none;
  }
    .fixed-project-txt p {
      padding: 5px 0 10px 0;
      margin: 0;
    }


  .fixed-project-txt a{
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--color-light);
    text-decoration-thickness: 1px;
    color: var(--color-light);
  }




  main > .img-container {
    flex-shrink: 0;
    display: flex;
    align-items: top;
    justify-content: top;
  }
  .img-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: 100dvh;
  }
  img, video {
    height: 100dvh;
    width: auto;
    display: block;
  }

  footer p{
    width: 80vw;
    padding-left:7px;
    margin: 0;
  }

  footer a{
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--color-light);
    text-decoration-thickness: 1px;
    color: var(--color-light);
  }
  .about-column-1{
    padding-top: 4px;
  }

  /* cv table  */
  table{
    width: 100vw;
    padding-left: 3px;
  }
  /* Year column */
  .about-column-2 table th:nth-child(1),
  .about-column-2 table td:nth-child(1),
  .about-column-3 table th:nth-child(1),
  .about-column-3 table td:nth-child(1) {
    width: 15vw; 
    align-content: start;
    min-width: 15vw;
    max-width: 15vw;

  }
  /* Name column */
  .about-column-2 table th:nth-child(2),
  .about-column-2 table td:nth-child(2),
  .about-column-3 table th:nth-child(2),
  .about-column-3 table td:nth-child(2) {
    width: 70vw; 
    align-content: start;
    min-width: 70vw;
    max-width: 70vw;
  }
  
  details{
    padding-left: 7px;

  }
  details summary{
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--color-light);
    text-decoration-thickness: 1px;  }

  details > summary {
    list-style: none;
  }

  details > summary::-webkit-details-marker {
    display: none;
  }




/* DESKTOP */
@media screen and (min-width: 992px) {
  #mainScroll {
    overflow-x: auto !important;
    overflow-y: hidden;
    cursor: grab;
    user-select: none;
  }
  #mainScroll:active {
    cursor: grabbing;
  }


/* footer  */
  .table-layout-about{
  display: flex;
  position: relative;
  flex-wrap: wrap;

  }
  /* .about-column-2, .about-column-2{
    border: red solid 1px;
  } */




    footer p{
    width: 400px;
    padding-left:7px;
    margin: 0;
  }
  .about-column-1{
    padding-top: 6px;
  }
/* cv table  */
  table{
    width: 400px;
    padding-left: 3px;

  }
/* Year column */
  .about-column-2 table th:nth-child(1),
  .about-column-2 table td:nth-child(1),
  .about-column-3 table th:nth-child(1),
  .about-column-3 table td:nth-child(1) {
    width: 60px; 
    align-content: start;
    min-width: 60px;
    max-width: 60px;
  }

/* Name column */
  .about-column-2 table th:nth-child(2),
  .about-column-2 table td:nth-child(2),
  .about-column-3 table th:nth-child(2),
  .about-column-3 table td:nth-child(2) {
    width: 360px; 
    align-content: start;
    min-width: 360px;
    max-width: 360px;
  }
  .about-column-3{
    position: relative;
    float: top;
  }
}
