body {
  font-family: "Segoe UI", sans-serif;
  background-color: #050505;
  padding: 40px;
  color: #000000;
  overscroll-behavior: none;
}

.haupt {
  display: flex;
  gap: 40px; /*space between canvases*/
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /*stack when viewed on small screens*/
}

.window {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.windowOutput {
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 12px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 40px;
}

.canvas-row {
  display: flex;
  flex-direction: row;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.controls {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

button,
select {
  padding: 5px 3px;
  font-size: 16px;
  font-variant: normal;
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease;
}

button:hover,
select:hover {
  background-color: #cdcbcb;
}

canvas {
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  touch-action: manipulation;
  -ms-touch-action: none;
}

.canvasAndCoordsLayout {
  position: relative;
}

#canvasPlaceholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #bbb;
  font-size: 1.4rem;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.4s ease;
}

#canvasPlaceholder.hidden {
  opacity: 0;
}

.canvasShell {
  position: relative;
  overflow: hidden;
}
.canvasOverlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.canvasOverlay.visible {
  opacity: 1;
  pointer-events: all;
}
.overlayBlurTarget {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.25);
}
.overlayLabel {
  position: relative;
  z-index: 1;
  font-size: 13px;
}

.sliderLine {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
}
.institutText {
  color: white;
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
}

.coordinates {
  height: 20px;
  line-height: 20px;
  min-width: 180px;
  white-space: nowrap;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.canvasAndCoordsLayout {
  position: relative;
  display: inline-block;
  color: white;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 200px;
  height: 8px;
  background: white;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  margin: 10px;
  padding: 0;
  display: block;
  touch-action: none;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #efeded;
  border: 2px solid black;
  cursor: pointer;
}

#infoBox {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px 30px 10px 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-width: 90%;
  text-align: center;
  font-size: large;
}

#infoBox.hidden {
  display: none;
}

#infoBox button {
  position: absolute;
  top: 5px;
  right: 8px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

#infoBtn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #007bff;
  color: white;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#pageMenu {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  border-radius: 10%;
  border: none;
  background: #0f0f0f;
  color: white;
  font-weight: bold;
  font-size: 40px;
  cursor: pointer;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  display: flex;
  align-items: center;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

#pageMenu span {
  width: 35px;
  height: 5px;
  background-color: white;
  border-radius: 4px;
  display: block;
}

#pageMenu:hover {
  background: #333;
}

#pageBox {
  position: fixed;
  top: 90px;
  left: 20px;
  background: #0f0f0f;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 4px 4px 10px rgba(198, 196, 196, 0.2);
  width: 150px;
  display: none;
  z-index: 1000;
}

#pageBox.active {
  display: block;
  color: #5f5959;
  cursor: default;
}

#pageList {
  list-style: none;
  margin: 0;
  padding: 0;
}

#pageList li {
  margin-bottom: 10px;
}
.menu-link.active {
  background: #333;
  color: #fff;
  padding: 5px 8px;
  border-radius: 6px;
  text-decoration: none;
  font-family: sans-serif;
  font-size: 25px;
  display: block;
  transition: color 0.2s;
}
.menu-link {
  text-decoration: none;
  color: white;
  font-family: sans-serif;
  font-size: 25px;
  display: block;
  transition: color 0.2s;
}

.menu-link:hover {
  color: #8d8a8a;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 2.5px solid rgba(0, 0, 0, 0.15);
  border-top-color: #292929;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  position: relative;
  z-index: 1;
}


.toggle-disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}


@keyframes spin {
  to { transform: rotate(360deg); }
}

.api-table-wrapper.hidden {
  display: none;
}


.api-table-wrapper {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  background: white;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow-x: auto;   
  overflow-y: hidden;
}

#apiTable {
  width: 100%;
  min-width: 900px;        
  border-collapse: collapse;
  table-layout: fixed;     
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}

#apiTable th,
#apiTable td {
  text-align: center;
  padding: 8px 10px;       
  border-bottom: 1px solid #eee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#apiTable th:first-child,
#apiTable td:first-child {
  width: 110px;      
  white-space: nowrap;
  text-align: left;
  font-weight: 600;
  background-color: #f9f9f9;
}

#apiTable th {
  background-color: #f4f4f4;
  font-weight: 600;
}

#apiTable tbody tr:hover {
  background-color: #fafafa;
}
