html, body {
  font-family: 'Gill Sans', 
               'Gill Sans MT', 
               Calibri, 
               'Trebuchet MS', 
               sans-serif;
  background-color: rgb(20, 20, 20);
  cursor: crosshair; 
  margin: 0;
  padding: 0;
  overflow: hidden;
}

sup {
  color: white;
}

#topBorder {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 96px;
  background-color: rgb(26, 26, 26);
  box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
  z-index: 2;
}

#back {
  position: absolute;
  left: 20px;
  top: 32px;
  visibility: hidden;
  z-index: 4;
  border: 2px solid rgb(80, 80, 80);
}

#title {
  position: absolute;
  top: 20px;
  right: 20px;
  margin-right: 20px;
  width: 100px;
  font-size: 30px;
  color: white;
  text-align: center;
  z-index: 4;
}

#title p {
  margin: 0;
  width: auto;
}

#title:hover {
  cursor: pointer;
}

#btn-symbol {
  font-size: 20px;
}

#sideInfo {
  position: absolute;
  z-index: 4;
  top: 74px;
  right: -208px;
  background-color: rgba(20, 20, 20, 0.95);
  border: 2px solid rgb(80, 80, 80);
  border-radius: 20px 0 0 20px;
  padding: 10px 30px 10px 28px;
  color: white;
  width: 16%;
  height: auto;
  max-height: 16px;
  min-width: 300px;
  transition: 0.3s ease;
}

#info-btn {
  position: absolute;
  right: 73%;
  top: 4px;
  font-size: 16px;
  color: white;
  background: none;
  border: none;
  width: 90px;
  padding-left: 5px;
  transition: position 1.5s ease;
  border-radius: 15px;
  align-self: center;
}

#info-btn:hover {
  cursor: pointer;
  background-color: white;
  color: rgb(20, 20, 20);
}

.info-text {
  visibility: hidden;
  display: flex;
  opacity: 0;
  transition: opacity 0.5s ease;
  padding-top: 10px;
}

#content-nav {
  position: absolute; 
  z-index: 6;
  top: 180px;
  left: -10px; 
  width: 288px;
  height: 56vh;
  color: white;
  background-color: rgb(20, 20, 20);
  padding: 20px 6px 20px 40px;
  border: 2px solid rgb(80, 80, 80);
  box-shadow: rgba(0, 0, 0, 0.5) 0px -50px 36px -28px inset;
  border-radius: 0 20px 20px 0;
  overflow-y: hidden;
  transition: 0.5s ease;
  transition-delay: 0.3s ease;
}

#content-nav:hover {
  cursor: default;
}

#inhalt-container {
  position: relative;
  margin-top: 1rem;
  margin-bottom: 5rem;
  height: 90%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scroll-behavior: smooth;
}

#inhalt-container::-webkit-scrollbar {
  width: 6px;
}

#inhalt-container::-webkit-scrollbar-track {
  display: none;
}

#inhalt-container::-webkit-scrollbar-thumb {
  background: rgb(160, 160, 160);
  border-radius: 20px;
}

#content-nav h1 {
  position: relative;
  width: 280px; 
  margin: 8px 0 0 0;
  padding: 0;
  font-weight: normal;
}

#content-nav h2 {
  margin: 6px 0 2px 6px;
  padding: 0;
  color: rgb(180, 180, 180);
  font-weight: normal;
  font-size: 20px;
}

.nav-link {
  display: block;
  height: 30px;
  width: auto;
  margin: 2px 0 2px 26px;
  padding: 6px;
  color: rgb(160, 160, 160);
  font-weight: lighter;
  font-size: 16px;
  text-decoration: none;
}

.sketch {
  display: block;
  height: 30px;
  width: auto;
  margin: 2px 0 2px 50px;
  padding: 6px;
  color: rgb(160, 160, 160);
  font-weight: lighter;
  font-size: 16px;
  text-decoration: none;
}

#content-nav a:hover {
color: black;
background-color: white;
}

#gallery {
  position: relative;
  z-index: 1;
  margin-top: 12rem;
  margin-left: 328px;
  padding: 2rem 2rem 2rem 4vw;
  height: 52vh;
  background-color: none;
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  white-space: nowrap;
  gap: 3rem;
  align-items: center;
}

#gallery::-webkit-scrollbar {
  display: none;
}

.tile {
  flex: 0 0 auto;
  display: inline-block;
  width: 34vw;
  min-width: 520px;
  height: 48vh;
  background: #222;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 14px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px, rgba(0, 0, 0, 0.2) 0px 14px 20px 0px inset;
  border: 2px solid rgb(60, 60, 60);
  border-radius: 14px;
  color: white;
  font-size: 3vh;
  font-weight: lighter;
  text-align: center;
  cursor: pointer;
  scroll-snap-align: center;
  transition: transform 0.3s;
}

.tile:hover {
  transform: scale(1.1);
}

.tile p {
  margin: 0;
}

.tile img {
  width: 100%;
  height: 41vh;
  margin-bottom: 10px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  box-shadow: rgba(0, 0, 0, 0.5) 0px 5px 15px inset;
} 

.doku-section {
  display: flex;
  flex-direction: row;
  position: fixed;
  height: 72vh;
  max-height: 760px;
  top: 0;
  margin-top: 8rem;
  width: 100vw;
  padding: 2rem 0 2rem 0;
  gap: 2rem;
  box-sizing: border-box;
  visibility: hidden;
  opacity: 0;
}

#pdf-display {
  display: flex;
  padding-left: 30vw;
  width: 36%;
  min-width: 610px;
  height: 65vh;
  object-fit: cover;
  overflow: scroll;
}

#doku-img {
  flex: 2;
  display: flex;
  width: 100%;
  gap: 1rem;
  flex-direction: column;
  border: 2px solid rgb(60, 60, 60);
  border-radius: 0 20px 20px 0;
  border-left: none;
  overflow: hidden;
}

#doku-img img {
  width: 100%;
  height: 65vh;
  border-radius: 8px;
  object-fit: cover;
  border-radius: 0 16px 16px 0;
}

.doku-text-content {
  position: relative;
  padding-right: 1rem;
  margin-top: 1rem;
  height: 90%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scroll-behavior: smooth;
}

#doku-text {
  display: flex;
  flex: 1;
  max-height: 640px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  background-color: rgb(20, 20, 20);
  border: 2px solid rgb(60, 60, 60);
  box-shadow: rgba(0, 0, 0, 0.5) 0px -50px 36px -28px inset;
  border-right: none;
  border-radius: 20px 0 0 20px;
}

#doku-text h2 {
  position: relative;
  width: auto; 
  margin: 8px 0 0 10px;
  padding: 0;
  font-weight: normal;
  color: white;
  font-size: 26px;
}

#doku-text p {
  display: block;
  width: auto;
  margin: 2px 0 2px 26px;
  padding: 6px;
  color: rgb(185, 185, 185);
  font-weight: lighter;
  font-size: 18px;
}

#doku-text a {
  display: inline-block;
  color: white;
  text-decoration: none;
}

#doku-text a:hover {
  background-color: white;
  color: rgb(20, 20, 20);
}

.doku-text-content::-webkit-scrollbar {
  width: 6px;
}

.doku-text-content::-webkit-scrollbar-track {
  display: none;
}

.doku-text-content::-webkit-scrollbar-thumb {
  background: white;
  border-radius: 20px;
}

.sliderCaption {
  color: rgb(160, 160, 160);
  font-family: 'Gill Sans', 
               'Gill Sans MT', 
               Calibri, 
               'Trebuchet MS', 
               sans-serif;
}

.sliderCaption:hover {
  cursor: default;
}

.sizeSlider:hover, .spacingSlider:hover, .strokeSlider:hover {
  cursor: pointer;
}

.mainButton {
  font-family: 'Gill Sans', 
               'Gill Sans MT', 
               Calibri, 
               'Trebuchet MS', 
               sans-serif;
  font-size: 14px;
  text-align: center;
  color: white;
  background-color: rgb(100, 100, 100);
  border: none;
  border-radius: 60px;
  padding: 5px 10px;
  transition: transform 0.3s;
}

.mainButton:hover {
  cursor: pointer;
  transform: scale(1.05);
}

/* ---------- Responsive: Mobile & Tablet ---------- */

@media (max-width: 900px) {
  html, body {
    overflow: hidden;
    cursor: default;
  }

  #topBorder {
    height: 90px;
  }

  #sideInfo {
    top: 68px;
    right: -208px;
  }

  #content-nav {
    left: -10px;
    top: 120px;
    width: 240px;
    height: 72vh;
    padding: 12px;
    padding-left: 24px;
    overflow: hidden;
  }

  #gallery {
    margin-top: 10rem;
    margin-left: 270px;
    padding: 1rem;
    height: 48vh;
    gap: 1.5rem;
    overflow-y: hidden;
  }

  .tile {
    min-width: 46vw;
    min-width: 340px;
    height: 44vh;
    font-size: 2.6vh;
    text-align: center;
  }

  .tile img {
    height: 38vh;
    margin: 0 0 8px 0;  
  }

  .tile:hover{
    transform: scale(1);
  }

  .doku-section {
    margin-top: 7rem;
    padding: 0.75rem 0 0.75rem 0;
    height: 76vh;
    max-height: 900px;
    gap: 1em;
    display: block;
    flex-direction: column;
    overflow: visible;
  }

  #doku-img {
    width: auto;
    max-height: 340px;
    min-height: 340px;
    border-radius: 0 20px 20px 0;
    margin-right: 1rem;
  }

  #doku-img img {
    height: auto;
    width: 100%;
    max-height: 35vh;
    min-height: 340px;
  }

  #doku-text {
    max-height: 320px;
    margin-left: 1rem;
  }
}

@media (max-width: 620px) { /* --------- mobile portrait ---------- */
  html, body {
    overflow-x: hidden;
  }

  #topBorder {
    height: 80px;
  }

  #sideInfo {
    top: 58px;
    right: -236px;
    position: fixed;
  }

  #title {
    top: 10px;
    right: 24px;
    width: 80px;
    padding: 8px;
    margin: 0px;
    font-size: 22px;
    box-shadow: none none none none none;
    position: fixed;
  }

  #back {
    left: 20px;
    top: 22px;
    visibility: hidden;
    position: fixed;
  }

  #content-nav {
    display: none;
  }

  #gallery {
    margin-top: 5rem;
    margin-left: 0;
    padding: 0.75rem;
    height: 100vh;
    gap: 1rem;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    white-space: normal;
    align-items: stretch;
  }

  .tile {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
    font-size: 4vw;
    flex: none;
  }

  .tile img {
    width: 100%;
    max-height: 50vh;
    margin-bottom: 3px;
  }

  .tile p {
    margin-bottom: 6px;
  }

  #doku-text p {
    font-size: 16px;
    margin-left: 8px;
    padding: 8px 6px;
  }
}

@media (max-width: 430px) {
  html, body {
    font-size: 14px;
  }

  #title {
    font-size: 20px;
    width: 70px;
  }

  .mainButton {
    padding: 6px 8px;
    font-size: 13px;
  }

  .tile img {
    border-radius: 10px 10px 0 0;
  }

  #doku-text h2 {
    font-size: 20px;
  }

  #doku-text {
    max-height: 260px;
  }

  #doku-text p {
    font-size: 15px;
    margin-left: 6px;
    padding: 6px;
  }
}



