/* =========================
   About HUD
========================= */

#aboutHud {

  position: absolute;

  right: 20px;
  bottom: 20px;

  width: 360px;
  max-height: 80vh;
  /* height: 80vh; */

  background-color: rgb(58,68,84);
  background-color: rgba(58,68,84,0.8);

  border-radius: 10px;

  overflow: hidden;

  z-index: 3000;

  display: none;

  flex-direction: column;

  cursor: default;

  backdrop-filter: blur(4px);
}

#aboutHud.visible {
  display: flex;
}

/* =========================
   Header
========================= */

#aboutHudHeader {

  position: relative;

  min-height: 40px;

  padding: 0 40px;

  background-color: rgb(58,68,84);
  background-color: rgba(58,68,84,0.8);

  display: flex;

  align-items: center;

  justify-content: center;

  cursor: grab;

  box-sizing: border-box;

  z-index: 2;
}

#aboutHudTitle {

  font-size: 16px;

  font-weight: 500;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
}

#aboutHudClose {

  position: absolute;

  right: 0;
  top: 0;

  width: 40px;
  height: 40px;

  background-color: rgb(103,115,131);
  background-color: rgba(103,115,131,0.8);
}

#aboutHudClose .icon {

  position: absolute;

  top: 5px;
  right: 5px;

  width: 30px;
  height: 30px;
}

/* =========================
   Content
========================= */

#aboutHudContent {

  padding: 12px;

  overflow-y: auto;

  max-height: calc(80vh - 100px);

  background-color: rgba(58,68,84,0.8);

  position: relative;

  z-index: 1;
}

.about-slide {
  display: none;
}

.about-slide.active {
  display: block;
}

.about-image {

  width: 100%;

  border-radius: 8px;

  margin-bottom: 12px;
}

.about-slide-title {

  font-size: 20px;

  font-weight: bold;

  margin-bottom: 12px;

  text-align: center;
}

.about-slide-text {

  line-height: 1.6;
}

/* =========================
   Controls
========================= */

#aboutHudControls {

  height: 50px;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 16px;

  background: rgba(103,115,131,0.9);
}

#aboutHudControls button {

  width: 36px;
  height: 36px;

  border: none;

  border-radius: 6px;

  background: rgba(255,255,255,0.15);

  color: white;

  cursor: pointer;
}

#aboutHudControls button:hover {

  background: rgba(255,255,255,0.3);
}

/* =========================
   Mobile
========================= */

.mobile #aboutHud {

  left: 10px;
  right: 10px;

  width: auto;

  bottom: 10px;

  max-height: 75vh;
}

/* =========================
   About toggle
========================= */

#aboutToggle {
  position: absolute;
  top: 0;
  left: 80px;

  width: 40px;
  height: 40px;

  background-color: rgba(103,115,131,0.8);

  z-index: 2000;

  cursor: pointer;
}

.mobile #aboutToggle {
  width: 40px;
  height: 40px;

  left: 80px;
}

#aboutToggle .aboutIcon {

  position: absolute;

  top: 50%;
  left: 50%;

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

  font-size: 24px;

  line-height: 1;

  color: white;

  font-family:
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
}

.mobile #aboutToggle .aboutIcon {
  font-size: 24px;
}

.no-touch #aboutToggle:hover {
  background-color: rgba(58,68,84,0.8);
}

#aboutHud.dragging #aboutHudHeader {
  cursor: grabbing;
}

.no-touch #aboutHudClose:hover {

  background-color: rgba(58,68,84,0.8);
}

#aboutHud {
  cursor: grab;
}

#aboutHud.dragging {
  cursor: grabbing;
}

/* =========================
   Realtime View Data
========================= */

.about-realtime {

  display: flex;

  flex-direction: column;

  gap: 12px;

  margin-top: 20px;
}

.about-realtime-row {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 10px 14px;

  border-radius: 8px;

  background: rgba(255,255,255,0.08);

  font-family: monospace;

  font-size: 15px;
}

.about-realtime-row span:last-child {

  color: #7fdcff;

  font-weight: bold;
}

.about-link {

  color: #9ecbff;

  text-decoration: none;

  word-break: break-word;
}

.about-link:hover {

  text-decoration: underline;
}

