body {
  margin: 0;
  overflow: hidden;
  background: #000;
  font-family: sans-serif;
}

#graph-container {
  width: 100vw;
  height: 100vh;
}

h1 {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #ddd;
  z-index: 10;
}

#menu {
  position: absolute;
  top: 80px;
  left: 10px;
  width: 220px;
  padding: 14px 16px 6px 16px;
  color: #ddd;
  z-index: 10;
  font-size: 12px;
  backdrop-filter: blur(6px);
  background: rgba(20, 20, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

#menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  text-align: center;
  margin: 6px 0;
  font-weight: bold;
  font-size: 15px;
  border-radius: 6px;
  transition: transform 0.2s;
}

#menu a:hover {
  transform: scale(1.05);
  text-shadow: 0 0 8px #d7cbcb;
}

#menu a.disabled {
  color: #555;
  cursor: not-allowed;
  pointer-events: none;
}

#menu-bottom {
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

#menu-table td a {
  display: block;
  margin: 0;      /* don't fuck with this. sonst verrutscht die tabelle!! */
  padding: 2px 0;
  font-size: 13px;
}


#search-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  box-sizing: border-box;   /* wichtig! fix */
  width: 100%;  
}

#keywordsearch {
  flex: 1;
  padding: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  box-sizing: border-box;   /* wichtig! fix */
  min-width: 0; 
  color: #fff;
  font-size: 13px;
}

#search-form button {
  padding: 5px 12px;
  background: rgba(60, 60, 60, 0.8);
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}

#search-form button:hover {
  background: rgba(80, 80, 80, 0.9);
}

#node-modal,
#statistics-modal,
#help-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#node-modal.hidden,
#statistics-modal.hidden,
#help-modal.hidden {
  display: none;
}

.modal-content {
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 36px;           
  min-width: 420px;        
  position: relative;
  color: #fff;
  margin: 40px;             
}

.modal-title {
  font-size: 24px;
  margin: 0 0 20px 0;
  color: #fff;
}

.modal-meta {
  margin-bottom: 24px;
  color: #fff;
}

.meta-item {
  margin-bottom: 12px;
}

.meta-label {
  color: rgba(255, 255, 255, 0.7);
}

#modal-keywords {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

#modal-keywords span {
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 12px;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-buttons button {
  padding: 14px;
  background: rgba(60, 60, 60, 0.8);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
}

.modal-buttons button:hover {
  background: rgba(80, 80, 80, 0.9);
}

.btn-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 28px;
  cursor: pointer;
}

.btn-close:hover {
  color: #fff;
}