/* ------------------ COLORES ------------------ */
:root {
  --color-fondo: #222a27;
  --color-texto: #0d302a;
  --color-titulo: #007c57;
  --color-nav: #853E51;
  --color-nav-hover: #1f7056;
  --color-subpage: #78bea8;
  --color-archive-hover: #e29e8f;
  --color-footer-text: #37BB92;
  --color-footer-link: #c8d32b;
  --color-footer-link-hover: #868d26;
  --color-link: #853E51;
  --color-link-hover: #106855;
}

/* ------------------ BASE RESET & GLOBAL STYLES ------------------ */
body, div, main, section, article {
  box-sizing: border-box; 
}

html, body {
  margin: 0;
}

body {
  font-family: 'MyCustomFont', Arial, sans-serif;
  background-color: var(--color-fondo);
  /* background-image: url('/img/background leafs.png');*/
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--color-texto);
}

/* ------------------ FONTS ------------------ */
@font-face {
  font-family: 'MyCustomFont';
  src: url('/font/PammigrafiaNormal-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'SPPAM';
  src: url('/font/Sppam-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

#showComic, header, h1, h2, h3, h4, h5 {
  font-family: 'SPPAM', Arial, sans-serif;
  color: var(--color-titulo);
}

.subPage p, footer, #authorNotes, .archiveTable {
  font-family: 'MyCustomFont', Arial, sans-serif;
  font-size: large;
}

/* ------------------ HEADER ------------------ */
header img {
  display: block;
  margin: 0 auto;
  width: 500px;
  max-width: 98%;
  transition: filter 0.3s ease;
}

header #nav {
  color: var(--color-nav);
  font-size: 20px;
  width: 98%;
  margin: auto;
  text-align: center;
}

header #nav a {
  text-decoration: none;
  color: inherit;
  margin: 0 10px;
  display: inline-block;
  font-size: 24px;
  font-weight: bold;
  margin-top: 15px;
}

header #nav a:hover {
  color: var(--color-nav-hover);
}

#nav a img {
  width: 100px;
  max-width: 100%;
  height: auto;
  transition: transform 0.2s ease;
}

#nav a:hover img {
  transform: scale(1.05);
}

/* ------------------ HOMEPAGE ------------------ */
.comicNav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

.comicNav img {
  width: 80px;
  max-width: 98%;
  padding-right: 30px;
}

.comicPage img {
  width: 900px;
  max-width: 98%;
}

/* ------------------ SUBPAGE STYLES ------------------ */
.subPage {
  width: 1000px;
  max-width: 98%;
  background-color: var(--color-subpage);
  margin: 25px auto 10px;
  padding: 15px 25px 25px 25px;
  border-radius: 12px;
  font-family: 'MyCustomFont', Arial, sans-serif;
  border-image-slice: 757 718 821 728;
  border-image-width: 55px;
  border-image-outset: 30px 30px 30px 25px;
  border-image-repeat: stretch;
  /*border-image-source: url('/img/test.png');*/
}

.subPage:not(.archivePage) {
  text-align: center;
}

.leftPic {
  clear: left;
  float: right;
  margin-left: 20px;
}

.rightPic {
  clear: right;
  float: left;
  margin-left: 20px;
}

.charTable, .charTable td {
  width: 100%;
}

/* ------------------ AUTHOR NOTES ------------------ */
#authorNotes {
  background-color: var(--color-subpage);
  margin: auto;
  padding: 15px 25px 25px 25px;
  width: 900px;
  max-width: 98%;
  border-radius: 12px;
  border-image-slice: 757 718 821 728;
  border-image-width: 55px;
  border-image-outset: 30px 30px 30px 25px;
  border-image-repeat: stretch;
 /* border-image-source: url('/img/test.png');*/
}

/* ------------------ ARCHIVE PAGE ------------------ */
.archiveTable {
  width: 90%;
  border-collapse: collapse;
}

.archiveTable td {
  padding: 3px;
  vertical-align: center;
}

.archiveCellTitle:not(.leftAlignTableText) {
  max-width: 300px;
  text-align: center;
}

.archiveCellDate {
  text-align: right;
  min-width: 120px;
}

.archiveCellNum {
  text-align: center;
  min-width: 30px;
}

.archiveCellThumb {
  width: 500px;
  max-width: 60px;
}

.archiveCellThumb img {
  max-width: 100%;
}

.leftAlignTableText td {
  text-align: left;
}

.archiveRow:hover {
  background-color: var(--color-archive-hover);
  cursor: pointer;
}

/* ------------------ FOOTER ------------------ */
footer {
  color: var(--color-footer-text);
  margin: 12px 0 15px 0;
  width: 100%;
  font-size: 12px;
  text-align: center;
  padding: 10px 0;
  float: none;
}

footer p {
  margin: auto;
}

footer a {
  color: var(--color-footer-link);
}

footer a:hover {
  color: var(--color-footer-link-hover);
}

/* ------------------ LINKS ------------------ */
a {
  color: var(--color-link);
}

a:hover {
  color: var(--color-link-hover);
}

/* ------------------ MISC ------------------ */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}
