/* ==== RESET & BASE ==== */
*, *::before, *::after { box-sizing: border-box; }
html { font-family: system-ui, sans-serif; line-height: 1.5; }
body { margin:0; background:#ffffcc; }

/* ==== CONTAINER ==== */
.container { max-width: 900px; margin:0 auto; padding:0 1rem; }

/* ==== TYPOGRAPHY ==== */
h1 { font: 700 4rem/1.1 "Just Skinny", cursive, sans-serif; margin:0.5rem 0; }
.byline { font: 1.25rem/1.4 "Just Skinny", cursive, sans-serif; margin:0; }
h2 { font: 700 2rem/1.2 "Just Skinny", cursive, sans-serif; }

/* ==== HEADER ==== */
#titlewrap { text-align:center; padding:2rem 0; }
#titleing { max-width:90%; height:auto; display:block; margin:1rem auto; }

/* ==== DIVIDERS ==== */
.divider { border:none; height:2px; background:#555; margin:2rem 0; }

/* ==== COMIC ==== */
#comic-wrap { text-align:center; margin:2rem auto; }
#comic-date { display:block; font-weight:700; color:#333; margin-bottom:.75rem; font-size:1.1rem; }
#comic-title { margin:0.4rem auto 1.2rem; font-style:italic; font-size:1.15rem; color:#222; font-weight:500; }

#comic {
  border: 4px solid #555;
  border-radius: 0;
  padding: 1rem;
  background: #fff;
  display: inline-block;
  box-shadow: -8px 8px 0 #000;
  max-width: 95vw;
  width: 95%;
  margin: 0 auto;
}
#comicpanel { display:block; max-width:100%; height:auto; box-shadow:0 4px 8px rgba(0,0,0,.15); }

/* ==== CHARACTER IMAGE ==== */
.character-img {
  max-width: 420px;
  width: 90%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border: 2px solid #555;
  border-radius: 4px;
}

/* ==== SOCIAL GRID ==== */
.social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 1.5rem 0;
}
.social-link {
  text-decoration: none;
  color: inherit;
  text-align: center;
  flex: 1 1 180px;
}
.social-link img { max-width:80px; height:auto; margin-bottom:.5rem; }

/* ==== FOOTER ==== */
footer { padding:2rem 0; font-size:.9rem; text-align:center; }

/* ==== BEAUTIFUL NAVIGATION BUTTONS ==== */
#comic-nav {
  margin: 2rem auto 1rem;
  text-align: center;
  font-size: 0;                     /* removes gaps between inline-block */
}

#comic-nav button,
#comic-nav label {
  font-size: 1rem;
  margin: 0 0.4rem;
  padding: 0.7rem 1.2rem;
  background: #E1E1FF;
  color: black;
  border: 3px solid #000;
  border-radius: 0;
  box-shadow: -5px 5px 0 #000;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
  display: inline-block;
  min-width: 110px;
  vertical-align: middle;
}

#comic-nav button:hover:not(:disabled) {
  background: #blue;
  transform: translate(-2px, -2px);
  box-shadow: -7px 7px 0 #333;
}
#comic-nav button:active:not(:disabled) {
  transform: translate(3px, 3px);
  box-shadow: -2px 2px 0 #333;
}
#comic-nav button:disabled {
  background: #999;
  color: #ccc;
  cursor: not-allowed;
  box-shadow: -3px 3px 0 #666;
}

/* Calendar picker — matches the buttons */
#comic-nav input[type="date"] {
  padding: 0.6rem;
  font-size: 1rem;
  border: 3px solid #000;
  background: white;
  box-shadow: 5px 5px 0 #000;
  cursor: pointer;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 600px) {
  h1 { font-size:2.8rem; }
  #comic-nav button,
  #comic-nav label { display: block; width: 90%; margin: 0.5rem auto; }
  #comic-nav input[type="date"] { width: 90%; margin: 0.5rem auto; }
}
/* ——— FIX CENTERING FOR THESE SECTIONS ——— */
.text-center,
.text-center p,
.text-center h2,
.text-center .social-grid {
  text-align: center !important;
}

.text-center a img.character-img {
  margin-left: auto;
  margin-right: auto;
}
