/* ==========================================================================
   Theme variables: change colours here and they update across the whole site
   ========================================================================== */
:root {
  --text: #4B5D1E;
  --accent: #758C5B;
  --border: #FFFFFF;

  --page-bg: #F7FBE6;
  --pattern: #E5F39C;        /* pink checker on the page background */

  --container-bg: #4B5D1E;
  --container-border: #76962A;
  --container-glow: #D4E968;

  --panel-bg: #F7FBE6;       /* nav, sections, scroll boxes, tables */
  --row-alt: #FBF6D2;

  --button-bg: #D4E968;
  --button-hover: #BDDC52;
  --link: #758C5B;
}

* { box-sizing: border-box; }

/* ==========================================================================
   Fonts
   ========================================================================== */
@font-face {
  font-family: headers;
  src: url(fonts/BlueScreenPersonalUseRegular-0W1M9.ttf);
}

@font-face {
  font-family: body;
  src: url(fonts/CozetteVector.otf);
}

/* ==========================================================================
   Page
   ========================================================================== */
body {
  padding: 9px;
  font-family: body;
  font-size: 12px;
  color: var(--text);
  cursor: url(https://cur.cursors-4u.net/cursors/cur-9/cur817.cur), auto !important;

  background-color: var(--page-bg);
  background-image:
    linear-gradient(135deg, var(--pattern) 25%, transparent 25%),
    linear-gradient(225deg, var(--pattern) 25%, transparent 25%),
    linear-gradient(45deg,  var(--pattern) 25%, transparent 25%),
    linear-gradient(315deg, var(--pattern) 25%, var(--page-bg) 25%);
  background-position: 40px 0, 40px 0, 0 0, 0 0;
  background-size: 40px 40px;
  background-repeat: repeat;
}

.container {
  max-width: none !important;
  width: 75% !important;
  background-color: #8FA0BF;
  margin: 1vw auto 12px;
  padding: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  background-color: var(--container-bg);
  border: 6px ridge var(--container-border);
  outline: 3px solid var(--container-glow);
  outline-offset: 4px;
  border-radius: 10px;
}

/* ==========================================================================
   Layout columns
   ========================================================================== */
.small { flex: 1 1 9%; }
.large { flex: 1 1 82%; }
.full  { flex: 1 1 100%; }
.half  { flex: 1 1 49%; }

.stamps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

/* ==========================================================================
   Header
   ========================================================================== */
header {
  position: relative;
  width: 100%;
  height: 120px;
  background: url('https://arcanechariot.neocities.org/graphics/Untitled%20Design%20(25).png') center / cover;
  border: 2px ridge var(--border);
  border-radius: 5px;
}

header span {
  position: absolute;
  bottom: 0;
  right: 10px;
  margin: 10px;
  font-family: headers;
  font-size: 40px;
  color: #FFFFFF;
  text-shadow: 2px 2px 0 var(--text);
}

/* ==========================================================================
   Panels and navigation
   ========================================================================== */
nav,
section {
  padding: 5px;
  background: var(--panel-bg);
  border: 2px ridge var(--border);
  border-radius: 5px;
}

nav div {
  margin: 5px 5px 10px;
  text-align: center;
  font-size: 1.25rem;
}

nav a {
  display: block;
  margin: 5px;
  padding: 2px 7px;
  background: var(--button-bg);
  border-radius: 5px;
}

nav a:hover,
nav a:focus {
  background: var(--button-hover);
  font-style: italic;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6, p {
  margin: 5px;
  line-height: 1.2;
}

h1 {
  padding-bottom: 5px;
  font-size: 1.4rem;
  letter-spacing: 2px;
  text-align: center;
  border-bottom: 2px ridge var(--border);
}

h2 { font-size: 1.25rem; text-align: center; }
h4 { padding-left: 12px; color: var(--accent); }

li {
  margin-bottom: 6px;   /* space between items */
  line-height: 1.4;     /* space between wrapped lines inside one item */
}

ul {
  padding-left: 15px;   /* smaller = bullets closer to the edge */
}

/* ==========================================================================
   Links
   ========================================================================== */
a {
  color: var(--link);
  text-decoration: none;
}

a:visited {
  color: var(--link);
  opacity: 0.8;
}

a:hover,
a:focus {
  font-style: italic;
  text-decoration: underline;
}

/* nav buttons shouldn't get the underline */
nav a:hover,
nav a:focus {
  text-decoration: none;
}

/* ==========================================================================
   Components
   ========================================================================== */
img { max-width: 100%; }

.small > img {
  display: block;
  margin: 5px auto;
  border-radius: 5px;
}

.stamps img {
  width: 100px;
  margin: 0;
  border-radius: 5px;
}

.scroll-box {
  height: 180px;
  padding: 10px;
  font-size: 10px;
  color: var(--text);
  background-color: var(--panel-bg);
  border: 3px solid var(--accent);
  border-radius: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.scroll-box::-webkit-scrollbar { width: 8px; }
.scroll-box::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

progress {
  width: 100%;
  height: 20px;
  accent-color: var(--container-bg);
}

.blinkies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  margin-top: 10px;
}

.blinkies img {
  margin-top: 2px;
  height: 25px;
  object-fit: contain;
}

.userboxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  margin-top: 10px;
}

.userboxes img {
  margin-top: 2px;
  height: 40px;
  object-fit: contain;
}

.lilguys {
  height: 40px;
  text-align: center;
}

.clock-container { text-align: center; }

.emoji {
  height: 1.2em;          /* scales with the text size */
  width: auto;
  vertical-align: middle; /* lines it up with the text; try -0.2em for a baseline nudge */
  image-rendering: pixelated; /* keeps pixel art crisp if you scale it up */
}

/* ==========================================================================
   Tables
   ========================================================================== */
.chariot-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  font-family: body;
  font-size: 0.9em;
  color: var(--text);
}

.chariot-table th,
.chariot-table td {
  padding: 10px;
  text-align: left;
  background-color: var(--panel-bg);
  border: 1px solid var(--text);
}

.chariot-table thead th {
  color: #FFFFFF;
  background-color: var(--text);
  border-bottom: 3px solid var(--accent);
}

.chariot-table tbody tr:nth-child(even) td {
  background-color: var(--row-alt);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  margin: 5vw 0;
  text-align: center;
  font-size: 0.8rem;
}

/* ==========================================================================
   Year in pixels  (paste this at the bottom of newcss2.css)
   ========================================================================== */
:root {
  --px-empty:      #ffffff;   /* days with nothing logged yet */
  --px-happy:      #5FD380;
  --px-motivated:  #FF8661;
  --px-average:    #FFD666;
  --px-angry:      #FF5E5E;
  --px-down:       #78B2F1;
  --px-depressive: #4770C2;
  --px-fatigued:   #D2DE68;
  --px-seizure:    #736ED4;
  --px-amazing:    #FF5CA8;
}

/* the key */
.pixel-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin: 10px 5px;
}

.pixel-key span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pixel-key .px {
  display: inline-block;
  width: 12px;
  height: 12px;
}

/* all the year grids sit in rows, wrapping to fit; the last row is centred */
.year-grids {
  --grid-width: 320px;         /* width of each grid: smaller = tinier squares */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin: 10px 0;
}

.year-block {
  flex: 0 0 auto;
  width: var(--grid-width);
  max-width: 100%;
}

/* one label column + 12 month columns */
.pixels {
  display: grid;
  grid-template-columns: 2em repeat(12, minmax(0, 1fr));
  gap: 3px;
  padding: 10px;
  background-color: var(--panel-bg);
  border: 3px solid var(--accent);
  border-radius: 8px;
}

.px-label {
  align-self: center;
  text-align: center;
  font-size: 10px;
  color: var(--text);
}

.px-month {
  font-size: 12px;
  font-weight: bold;
}

/* the pixels: square + completely flat (no gradient, no shine) */
.px {
  aspect-ratio: 1 / 1;
  background: var(--px-empty);
  border-radius: 2px;          /* set to 0 for sharp corners */
}

.px.void { background: transparent; }       /* e.g. 30th feb */

.px.happy      { background: var(--px-happy); }
.px.motivated  { background: var(--px-motivated); }
.px.average    { background: var(--px-average); }
.px.angry      { background: var(--px-angry); }
.px.down       { background: var(--px-down); }
.px.depressive { background: var(--px-depressive); }
.px.fatigued   { background: var(--px-fatigued); }
.px.seizure    { background: var(--px-seizure); }
.px.amazing    { background: var(--px-amazing); }

/* outlines today's square */
.px.today {
  outline: 2px solid var(--link);
  outline-offset: 1px;
}