/* === Base === */

body {
  margin: 0;
  padding: 0;
  background: #111;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  color: #333;
}

a {
  color: #1a7ad9;
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
  color: #145ca3 !important;
}

/* === Header === */

#header {
  position: relative;
  height: 75px;
  margin-top: 20px;
  padding-left: 105px;
  color: white;
  background: linear-gradient(to bottom,
    #b7fa3e 0% 16%,
    #4dc330 16% 32%,
    #269447 32% 48%,
    #367ab4 48% 64%,
    #0925c0 64% 80%,
    #010398 80% 100%
  );
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
}

#header h1,
#header h3 i {
  /* shared 4-way text outline */
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

#header h3 {
  display: none;
  margin: -8px 0 0 10px;
  padding: 0;
  font-size: 13px;
  line-height: 16px;
  letter-spacing: +0.6px;
  opacity: 0.8;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

#header h3 i {
  font-style: normal;
  color: black;
  text-shadow:
    -1px -1px 0 #fff,
     1px -1px 0 #fff,
    -1px  1px 0 #fff,
     1px  1px 0 #fff;
}

#header h3 span {
  opacity: 0.7;
}

#header #coin-slot {
  height: 96px;
}

#header #coin-slot-wrap {
  position: absolute;
  top: -8px;
  left: 18px;
  z-index:500;
}

#header #coin-slot-wrap::before {
  content: "";
  position: absolute;
  top: 16px; /* move above slot */
  left: 57px;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: url('https://arcarc.xmission.com/images/quarter.png') center/contain no-repeat;
  opacity: 0;
  transition: 0.2s ease;
  pointer-events: none;
  z-index: 100;
  filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.6));  
}

#header #coin-slot-wrap:hover::before {
  opacity: 1;
  transform: translate(-40px, 0) scale(1);  
}

#header .grady {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50px 50%, rgba(255, 255, 255, 0.1) 10%, rgba(0, 0, 0, 0.3) 100%);
}

#header .grady::before,
#header .grady::after {
  display: block;
  content: '';
  height: 2px;
  background: white;
}

#header .grady::before {
  opacity: 0.5;
}

#header .grady::after {
  margin-top: 71px;
  opacity: 0.1;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

#arc-arc-logo {
  position: absolute;
  z-index: 50;
  margin-top: 6px;
  left: 105px;
}

/* === Body content — shared container/table chrome === */

.body-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
}

.body-content .container,
.body-content table {
  max-width: 760px;
  margin: 0;
  padding: 20px;
  color: #222;
  background: white;
  border: 3px solid #666;
  border-radius: 14px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.body-content .container {
  flex: 1 1 300px;  /* grows/shrinks, wraps below ~300px */
}

.body-content table {
  flex: 0 0 auto;   /* preferred size, doesn't shrink */
  width: 100%;
}

/* === Container (dark theme override) === */

.body-content .container {
  color: #eee;
  background: radial-gradient(circle at 50px 50%, #1a1a1a 10%, #0a0a0a 100%);
  border-color: #333;
  text-shadow: 1px 1px 2px black;
}

.body-content .container p {
  margin: 0 0 1em 0;
}

.body-content .container a {
  color: #66b8f5;
}

.body-content .container a:hover {
  color: #9cd1f8 !important;
}

.body-content .container h2 {
  margin: -19px -19px 20px -19px;
  padding: 10px 10px 10px 20px;
  color: white;
  background: rgba(255, 255, 255, 0.05) !important;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  box-shadow: 0 1px black;
  text-shadow: 1px 1px 3px black;
}

/* === Table === */

.body-content table {
  font-size: 16px;
  table-layout: fixed;
  border-spacing: 0;
}

.body-content table a {
  font-weight: 500;
}

.body-content table th {
  padding: 2px 0;
  font-size: 90%;
  font-weight: 900;
  border-bottom: 1px solid #ccc;
}

.body-content table th a {
  font-weight: 700;
}

.body-content table th img,
.body-content table hr {
  display: none;
}

.body-content table td,
.body-content table th {
  padding: 4px 0 2px 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* column widths + alignment */
.body-content table tr th:nth-child(1),
.body-content table tr td:nth-child(1) {
  width: 35px;
}

.body-content table tr th:nth-child(2),
.body-content table tr td:nth-child(2) {
  width: 100%;
}

.body-content table tr th:nth-child(3),
.body-content table tr td:nth-child(3) {
  width: 120px;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.body-content table tr th:nth-child(4),
.body-content table tr td:nth-child(4) {
  width: 80px;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.body-content table tr th:nth-child(5),
.body-content table tr td:nth-child(5) {
  display: none;
  width: 1px;
}

.body-content table tr th:nth-child(1),
.body-content table tr th:nth-child(2) {
  text-align: left;
}

.body-content table tr th:nth-child(3),
.body-content table tr th:nth-child(4), .indexcolsize {
  text-align: right;
}

.body-content table tr:nth-child(2) {
  display: none;
}

.body-content table tr:hover {
  background: #ffffcc;
}

th.indexcollastmod a {
    padding-right: 6px;
}

/* === Archive grid === */

.archive-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  max-width: 2000px;
  margin: 0;
}

.archive-card {
  flex: 1 1 360px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  padding: 16px;
  color: #eee;
  background:radial-gradient(circle at 30% 20%, #1a1a1a 10%, #0a0a0a 100%);
  border: 3px solid #333;
  border-radius: 14px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
  text-shadow: 1px 1px 2px black;
  box-sizing: border-box;
  transition:box-shadow 0.2s;
}

.archive-card:hover {
  transition:all 0.4s;
  box-shadow:2px 2px 16px black;
}

.archive-card h3 {
  margin: 12px 0 6px 0;
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.archive-card p {
  margin: 0 0 8px 0;
  font-size: 14px;
  line-height: 1.4;
}

.archive-card p.archive-meta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 12px;
  opacity: 0.75;
}

.archive-card a {
  color: #66b8f5;
}

.archive-card a:hover {
  color: #9cd1f8 !important;
}

.archive-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  width: 100%;
  height: 140px;
  padding: 10px;
  background: #0a0a0a;
  border: 2px solid #181818;
  border-radius: 8px;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, outline-color 0.2s ease;
  outline: 2px solid transparent;
  outline-offset: 0;
}

.archive-thumb:hover {
  transform: scale(1.03);
  outline-color: #66b8f5;
  box-shadow: 0 8px 24px rgba(102, 184, 245, 0.35), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.archive-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.archive-thumb-multi {
  align-content: center;
}

.archive-thumb-multi img {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.archive-thumb-grid {
  align-content: center;
}

.archive-thumb-grid img {
  flex: 0 1 calc(50% - 3px);
  max-width: calc(50% - 3px);
  max-height: calc(50% - 3px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.archive-thumb-text {
  font-family: initial;
  font-size: 34px;
  color: white;
  text-align: center;
  padding: 16px;
  text-decoration:none !important;
}

.archive-thumb-text span {
  display: block;
}

/* === Responsive === */

@media (max-width: 459px) {
  #header #coin-slot {
    display: none;
  }
  #arc-arc-logo {
    left: 18px;
    max-width: calc(100% - 36px);
  }
}

