
/* ===============================
   Reset & Base
   =============================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table,
caption, tbody, tfoot, thead, tr, th, td {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-family: 'Catamaran', Helvetica, Arial, sans-serif;
  vertical-align: baseline;
}

html { font-size: 62.5%; }
body {
  margin: 0;
  padding: 0;
  line-height: 1.5;
  background: #E6ECF0 url("images/topbackground.jpg") repeat-x top;
  color: #000;
  font-size: 1.4rem;
}

/* ===============================
   Headings
   =============================== */
h1 {
  font-size: 3.0rem;
  line-height: 3.5rem;
  color: #EC4120;
  font-family: 'Fredericka the Great', cursive, sans-serif;
}
h2 {
  font-size: 2.8rem;
  line-height: 3.5rem;
  color: #EC4120;
  padding: 40px 0 10px;
}
h3 {
  font-size: 1.8rem;
  line-height: 2rem;
  color: #EC4120;
  padding: 20px 0 10px;
}
h4 {
  font-size: 1.8rem;
  line-height: 1.8rem;
  font-weight: bold;
  color: #EC4120;
  padding: 10px 0;
}

/* ===============================
   Header & Logo
   =============================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: #32363A; /* ensures dark background */
}
.pageheader.logo {
  font-size: 3.5rem;
  font-weight: bold;
  color: #FFF; /* better contrast than #CCC */
  line-height: 1;
}

/* ===============================
   Social Buttons
   =============================== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Facebook button */
.fb-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 12px;
  background: #4267B2;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: background .2s;
}
.fb-share-button:hover { background: #365899; }
.fb-share-button i { margin-right: 8px; font-size: 18px; }
.fb-share-button span {
  border-left: 1px solid #fff;
  padding-left: 8px;
  margin-left: 8px;
  text-transform: uppercase;
}

/* Square social icons */
.share-icons { display: flex; gap: 8px; }
.share-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: background .2s, opacity .2s;
}
.share-icons a:hover { opacity: 0.8; }

.share-twitter { background: #1DA1F2; }
.share-linkedin { background: #0077b5; }
.share-whatsapp { background: #25D366; }
.share-pinterest { background: #E60023; }

/* ===============================
   Layout
   =============================== */
#maincontainer { max-width: 1400px; margin: auto; }
#topsection { background: #32363A; min-height: 100px; margin-bottom: 16px; }
#contentwrapper { float: left; width: 100%; }
#contentcolumn { margin: 0 340px 0 0; padding-bottom: 16px; max-width: 1000px; }
#rightcolumn { float: left; width: 340px; margin-left: -340px; background: #E6ECF0; }

/* Inner padding */
.innertube, .innertuberight, .innertubecontent {
  margin: 10px 0 0 10px;
  background: #fff;
  padding: 30px;
}

/* Footer */
#footer {
  clear: left;
  width: 100%;
  background: #32363A;
  color: #FFF;
  text-align: center;
  padding: 15px 0;
  font-size: 1.4rem;
  line-height: 2.5rem;
}
#footer a {
  color: #FFF;
  text-decoration: none;
}
#footer a:hover { text-decoration: underline; }

/* ===============================
   Navigation
   =============================== */
.topnav {
  overflow: hidden;
  background-color: #32363A;
  width: 95%;
}
.topnav a {
  display: inline-block;
  color: #f2f2f2;
  padding: 5px 7px;
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: 400;
}
.topnav a:hover { text-decoration: underline; }
.topnav .icon { display: none; }
.onpage { background-color: #EC4120; color: #f2f2f2; }

/* ===============================
   Breadcrumbs
   =============================== */
#breadcrumb ol { display: flex; gap: 5px; padding: 0; margin: 0; }
#breadcrumb li { font-size: 1.4rem; color: #555; }
#breadcrumb li a {
  text-decoration: none;
  color: #0066cc;
}
#breadcrumb li a:hover { text-decoration: underline; }

/* ===============================
   Typography & Content
   =============================== */
.underheading {
  margin-top: 1.6rem;
  line-height: 2.6rem;
  font-size: 1.9rem;
  font-weight: 200;
  color: #000;
}
section ul {
  list-style: disc;
  padding-left: 20px;
  max-width: 600px;
}
section li {
  margin: 1.4rem 0;
  line-height: 2rem;
  font-size: 1.6rem;
  font-weight: 200;
}

/* ===============================
   Index & Download Buttons
   =============================== */
#printable-index-container {
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #333;
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
#printable-index-container h2 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 2rem;
}
#printable-index-container .link-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
#printable-index-container .link-index a {
  display: inline-block;
  font-weight: 600;
  font-size: 1.9rem;
  color: #333;
  background-color: #fff;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border: 2px solid red;
  border-radius: 4px;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}
#printable-index-container .link-index a:hover {
  color: #0077cc;
  border-color: #0077cc;
  background-color: #eef6fc;
}

/* Download buttons */
.downloadlink, .downloadlink:visited {
  text-decoration: none;
  color: #007BFF;             /* blue text */
  background: #fff;           /* white background */
  border: 2px solid #007BFF;  /* blue border */
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.65rem;
  transition: all 0.2s ease-in-out;
  width: 100%;
  max-width: 900px;
  margin-top: 1.8rem;
  box-sizing: border-box;
}

.downloadlink:hover {
  background-color: #007BFF;  /* blue background */
  border-color: #0056b3;      /* darker blue border */
  color: #fff;                /* white text */
  transform: translateY(-1px);
}

.downloadlink svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: opacity 0.2s, stroke 0.2s;
}

/* ===============================
   Utilities
   =============================== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Footer social profile links */
.social-links {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  background: #32363A;
  transition: background 0.3s, transform 0.2s;
}

.social-links a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.social-links a[aria-label="Facebook"] { background: #4267B2; }
.social-links a[aria-label="Twitter"] { background: #1DA1F2; }
.social-links a[aria-label="Pinterest"] { background: #E60023; }
.social-links a[aria-label="Instagram"] { background: #C13584; }


/* ===============================
   Responsive Layout
   =============================== */
@media (max-width: 840px) {
  #rightcolumn { float: none; width: 100%; margin-left: 0; clear: both; }
  #contentcolumn { margin-right: 0; }
}

@media (max-width: 600px) {
  #contentcolumn { float: none; width: 100%; margin-left: 0; clear: both; }
  .topnav a:not(:first-child) { display: none; }
  .topnav a.icon { float: right; display: block; }
  .topnav.responsive { position: relative; }
  .topnav.responsive .icon { position: absolute; right: 0; top: 0; }
  .topnav.responsive a { float: none; display: block; text-align: left; }
  
  /* Existing media queries for responsive layout */
@media (max-width: 400px) {
  /* Adjust download link font size for tiny screens */
  .downloadlink {
    font-size: 1.2rem; /* smaller font so text doesn't feel squashed */
    padding: 10px 12px; /* optional: reduce padding slightly if needed */
  }
}

  /* Social buttons mobile */
  .header-actions { flex-wrap: wrap; gap: 4px; justify-content: center; }
  .fb-share-button, .share-icons a {
    width: 32px;
    height: 32px;
    font-size: 12px;
    padding: 0;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .fb-share-button span { display: none; }
  .fb-share-button i, .share-icons a i { margin: 0; font-size: 16px; }
  header { padding: 4px 8px; }
}
