/* Styles for Digitize Phi project. */

body {
  /* --- Space It --- */
  margin: 0;
  padding: 1rem;

  /* --- Style It --- */
  background-color: #fdfdfd;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #333;
}

.container {
  /* --- Size It --- */
  max-width: 900px;

  /* --- Space It --- */
  margin: 32px auto;
  padding: 1rem;
}

.back-to-til {
  color: purple;
  text-decoration: underline;
  display: block;
}

.page-histogram-archive h1,
.page-histogram-archive h2,
.page-heatmap-archive h1,
.page-heatmap-archive h2 {
  /* --- Space It --- */
  text-align: center;
}

.page-histogram-archive h1,
.page-heatmap-archive h1 {
  /* --- Space It --- */
  padding-bottom: 0.5rem;

  /* --- Style It --- */
  color: #2a2a2a;
  border-bottom: 2px solid #f0f0f0;
}

.page-histogram-archive h2,
.page-heatmap-archive h2 {
  /* --- Size It --- */
  font-size: 1.1rem;

  /* --- Space It --- */
  margin-top: 0;

  /* --- Style It --- */
  font-weight: 600;
  color: #555;
}

.histogram-archive,
.heatmap-archive {
  /* --- Space It --- */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.histogram-entry,
.heatmap-entry {
  /* --- Space It --- */
  padding: 16px;

  /* --- Style It --- */
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgb(0 0 0 / 5%);
}

img {
  /* --- Size It --- */
  max-width: 100%;
  height: auto;

  /* --- Space It --- */
  display: block;
}

.histogram-date,
.heatmap-date {
  /* --- Size It --- */
  font-size: 0.9rem;

  /* --- Space It --- */
  margin-top: -0.75rem;
  margin-bottom: 1.5rem;
  text-align: center;

  /* --- Style It --- */
  font-style: italic;
  color: #6c757d;
}

/* Responsive styling for Digitize Phi images */
.digitize-phi-img {
  /* --- Size It --- */
  max-width: 100%;
  height: auto;
}

/* Archive Link Styling */
.archive-link {
  /* --- Size It --- */
  font-size: 1.125rem;

  /* --- Space It --- */
  display: inline-flex;
  padding-left: 12px;
  text-indent: 12px;

  /* --- Style It --- */
  color: goldenrod;
  text-decoration: underline;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><text x="0" y="22" fill="currentColor" font-size="24">📁</text></svg>') no-repeat left center;
  background-size: 24px 24px;
}
