/* site.css - shared layout for every page (root pages and release pages).
   Colors and artwork live in themes/<name>.css. */

/* ===== Base ===== */
body {
  margin: 0;
  font-family: verdana, tahoma, arial, helvetica, sans-serif;
  font-size: 9px;
  color: var(--text);
  overflow-y: scroll;
}

td { font-size: 9px; color: var(--text-strong); font-family: verdana; }
td.crap, .crap { font-size: 10px; color: var(--text); font-family: verdana; }

input {
  font-size: 10px;
  color: var(--text-strong);
  border: 1px solid var(--input-border);
  font-family: tahoma, arial, helvetica;
  background-color: var(--input-bg);
}

/* ===== Page frame ===== */
.bigbox { width: 575px; margin: 0 auto; padding-top: 31px; position: relative; z-index: 2; }
.logo { display: block; width: 57px; height: 60px; margin-bottom: 4px; background-repeat: no-repeat; }
.frame { width: 576px; margin: 0 auto; padding-top: 2px; padding-bottom: 1px; position: relative; }

.trans_box1 {
  width: 573px;
  height: 70px;
  margin: 0 auto;
  background-color: var(--panel);
  font-family: verdana;
  padding: 6px 8px;
  box-sizing: border-box;
}
.headerbox { padding: 15px 0 0 30px; font-size: 10px; color: var(--text-strong); }
#trademarkLink { color: inherit !important; font-weight: inherit !important; }

.nav { width: 560px; margin: 4px 0; text-align: right; font-weight: bold; font-size: 9px; line-height: 1; }

.main {
  width: 573px;
  height: 539px;
  margin: 0 auto;
  background-color: var(--panel);
  padding: 20px 40px;
  box-sizing: border-box;
  color: var(--text-strong);
  position: relative;
  overflow: visible;
}
.content-wrapper { width: 100%; }

/* ===== Footer ===== */
.copy { font-size: 8px; font-family: verdana; color: var(--copy); width: 100%; margin-top: 0; }
.footer { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.footer-left { width: 30%; display: flex; }
.footer-center { width: 70%; text-align: left; }
.footer-right { white-space: nowrap; font-weight: bold; }
.release-page .footer-center, .special-page .footer-center { width: 50%; }
.special-page .main { padding: 2px 0 0 0; height: auto; min-height: 539px; }
.special { width: 86%; margin: 0 auto; }
.special td.crap { color: var(--text-strong); }
.footer a { text-decoration: none; }
.badge { display: block; width: 80px; height: 15px; margin-right: 2px; background-repeat: no-repeat; }
.theme-switch .on { font-weight: bold; }

/* ===== Trademark popup ===== */
#trademarkPopup {
  display: none;
  position: absolute;
  z-index: 10002;
  max-width: 300px;
  padding: 10px;
  font-size: 10px;
  background: var(--popup-bg);
  color: var(--popup-text);
  border: 1px solid var(--popup-border);
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* ===== Theme dots canvas (themes that enable it) ===== */
#dotCanvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; }

/* ===== Release pages ===== */
.release-wrap { position: relative; min-height: 240px; box-sizing: border-box; }
.release-left { float: left; width: 225px; margin-right: 12px; box-sizing: border-box; }
.release-left img { display: block; width: 100%; height: auto; border: 0; box-shadow: var(--cover-shadow); }
.release-right { position: absolute; top: 0; left: 252px; right: 0; box-sizing: border-box; z-index: 5; }
.maintxt { max-width: 320px; word-wrap: break-word; line-height: 1.2; }
.after-release { clear: both; margin-top: 12px; box-sizing: border-box; }
.tracklist { border-collapse: collapse; }
.tracklist td { padding: 0; }
.tracklist td.tsize { text-align: right; padding-left: 20px; white-space: nowrap; }
.downloadLink { cursor: pointer; position: relative; z-index: 6; }
.downloadLink img { height: 10px; vertical-align: top; margin-left: 2px; pointer-events: none; filter: var(--icon-filter); }
.shareLink { cursor: pointer; position: relative; z-index: 6; text-decoration: none !important; }
.shareLink img { height: 10px; vertical-align: top; margin-left: 4px; border: 0; pointer-events: none; filter: var(--icon-filter); }
.shareNote { position: absolute; left: 100%; top: 0; margin-left: 4px; white-space: nowrap; font-size: 10px; color: var(--text-strong) !important; pointer-events: none; }
.release-nav .off { opacity: 0.4; }

#lightboxOverlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 2147483600; }
#lightboxOverlay.show { display: block; }
#lightboxOverlay .lb-frame { position: absolute; }   /* placed on whole pixels by site.js: keeps the caption sharp */
#lightboxOverlay img {
  display: block;
  box-shadow: 0 0 30px #000;
}
#lightboxOverlay .lb-caption,
#lightboxOverlay .lb-caption:link,
#lightboxOverlay .lb-caption:visited,
#lightboxOverlay .lb-caption:hover,
#lightboxOverlay .lb-caption:active {
  position: absolute;
  right: 8px;
  bottom: 6px;
  font: normal 10px/1 verdana, sans-serif !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #bbbbbb !important;
  text-decoration: none !important;
}
#lightboxOverlay .lb-prev, #lightboxOverlay .lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 14px;
  font: normal 48px/1 verdana, sans-serif;
  color: #fff !important;
  opacity: 0.6;
  text-decoration: none !important;
  user-select: none;
}
#lightboxOverlay .lb-prev { left: 8px; }
#lightboxOverlay .lb-next { right: 8px; }
#lightboxOverlay .lb-prev:hover, #lightboxOverlay .lb-next:hover { opacity: 1; }
#lightboxOverlay.single .lb-prev, #lightboxOverlay.single .lb-next { display: none; }

/* ===== Small screens ===== */
@media (max-width: 600px) {
  .bigbox, .frame, .trans_box1, .main { width: 100%; max-width: 100%; box-sizing: border-box; }
  .bigbox { padding-left: 6px; padding-right: 6px; }
  .main { height: auto !important; min-height: 0 !important; padding: 14px; }
  .main * { max-width: 100%; box-sizing: border-box; }
  .nav { width: 100%; text-align: center; }
  .footer { flex-direction: column; gap: 6px; align-items: center; }
  .footer-left, .footer-center { width: auto; text-align: center; }

  .release-left { float: none; width: auto; margin: 0 auto 12px auto; }
  .release-left img { max-width: 225px; margin: 0 auto; }
  .release-right { position: static; }
  .maintxt {
    max-width: none;
    line-height: 1.6;
    max-height: calc(1.6em * 6);
    overflow: auto;
    padding-right: 12px;
  }
  .maintxt { scrollbar-color: auto; } /* don't inherit the page's scrollbar-color, so the ::-webkit-scrollbar rules below apply */
  .maintxt::-webkit-scrollbar { width: 8px; height: 8px; }
  .maintxt::-webkit-scrollbar-thumb, .maintxt::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-soft); border-radius: 6px; }
  .maintxt::-webkit-scrollbar-track { background: transparent; }
}

@media (max-width: 420px) {
  .main { padding: 10px; }
  .release-left img { max-width: 160px; }
  .maintxt { max-height: calc(1.6em * 5); }
}
