@font-face {
  font-family: "fatpixel";
  src: url('fonts/fatpixel.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: "lesspixelfont";
  src: url('fonts/lesspixelfont.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: "lesspixelfont";
  src: url('fonts/lesspixelfont.woff') format('woff');
  font-display: swap;

}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  color: black;
  font-family: "fatpixel", ms pgothic, ms ui gothic, simsun, arial, sans-serif;
  -webkit-font-smoothing: none;
  font-smooth: never;
  font-size: 1.5rem;

  background-image: url('images/background.png');
  background-color: #cfd8dc;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.asscrack {
  border: dotted none none none;
}

#grid-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.18) 1px, transparent 1px),
    linear-gradient(to right, rgba(0,0,0,0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.07) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 5px 5px, 5px 5px;
}

.custom-tooltip {
  position: fixed;
  background: #333;
  color: #fff;
  font-style: normal;
  font-family: "lesspixelfont", monospace;
  text-shadow: 1px 1px 0 black;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.15s ease;
  width: 260px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  overflow: hidden;
}
.custom-tooltip.visible { opacity: 1; }

.highlight {
  color: red;
  text-decoration: underline;
  font-size: 2.5em;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 150px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.92);
  border-right: 3px solid black;
  display: flex;
  flex-direction: column;
  z-index: 500;
}

.sidebar-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: scroll;
  padding: 16px 12px;
}

.sidebar-title {
  font-size: 1.4em;
  margin: 0 0 12px;
}

.webring-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.webring-list li {
  border-bottom: 2px solid black;
  padding: 10px 2px;
}
.webring-list a {
  color: black;
  text-decoration: none;
  font-size: 0.8em;
}

.sidebar-people {
  margin-top: 20px;
  font-size: 1.6em;
  text-align: center;
}

.sidebar-footer {
  flex: 0 0 auto;
  border-top: 3px solid black;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7em;
  background: rgba(255,255,255,0.92);
}

#desktop {
  position: relative;
  min-height: 100vh;
  margin-left: 220px;
}

.age-warning {
  text-align: center;
  padding-top: 30px;
  margin: 0;
}

.id-card {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  border: 3px solid black;
  border-radius: 14px;
  box-shadow: 6px 6px 14 rgba(0,0,0,0.4);
  overflow: hidden;
  cursor: default;
  user-select: none;
}
.id-card--pink { background: #ffc9de; }
.id-card--green { background: #c9ffd6; }

.id-card-header {
  background: linear-gradient(to bottom, #444, #111);
  color: white;
  font-size: 0.9em;
  letter-spacing: 2px;
  padding: 12px 14px;
  cursor: grab;
}
.id-card-header:active { cursor: grabbing; }

.id-card-body {
  display: flex;
  gap: 18px;
  padding: 24px;
}

.id-photo-box {
  width: 140px;
  height: 140px;
  background: white;
  border: 2px solid black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  flex-shrink: 0;
}

.id-fields-box {
  flex: 1;
  background: white;
  border: 2px solid black;
  padding: 12px;
  font-size: 0.8em;
  text-align: center;
}


.default {
  display: block;
  margin: 0 20px 20px auto;
  padding: 12px 32px;
  font-family: inherit;
  font-size: 1.1em;
  color: white;
  border: 1px solid #2f6b0f;
  border-radius: 6px;
  cursor: pointer;
  background: linear-gradient(to bottom, #a8e063 0%, #56ab2f 45%, #3d8b1f 46%, #2f6b0f 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 2px 3px rgba(0,0,0,0.3);
  text-shadow: 0 1px 1px rgba(0,0,0,0.4);
}
.default:hover {
  background: linear-gradient(to bottom, #baf07a 0%, #66c93a 45%, #479c26 46%, #386f13 100%);
}
.default:active {
  background: linear-gradient(to bottom, #2f6b0f 0%, #3d8b1f 55%, #56ab2f 100%);
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.4);
}

#loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 9998;
}
#loading-screen.visible {
  opacity: 1;
  pointer-events: all;
}

.topnav-scroll {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 16px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-color: #dfdfdf silver;
}

.topnav-logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
}

.topnav-scroll a {
  color: black;
  text-decoration: none;
  font-size: 0.8em;
  flex-shrink: 0;
}
.topnav-scroll a:hover {
  text-decoration: underline;
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 1500px;
  height: 5vh;
  background: rgba(255, 255, 255, 0.92);
  border-right: 3px solid black;
  display: flex;
  flex-direction: column;
  z-index: 500;

}