﻿/* ===== CSS Variables ===== */
:root {
  --primary-color: #2c3e50;   /* Dark Slate Blue */
  --secondary-color: #3498db; /* Bright Blue */
  --accent-color: #e74c3c;    /* Red for accents */
  --text-color: #34495e;      /* Wet Asphalt */
  --light-bg: #f8f9fa;        /* Lighter background */
  --header-height: 60px;
}

/* --------------------------------------------------
   RESET
-------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* --------------------------------------------------
   BASE + TYPOGRAPHY
-------------------------------------------------- */
body {
  font-family: 'Merriweather', serif;
  line-height: 1.7;
  color: #fff;
  background: url('../mm/bookshelf.jpg') center/cover no-repeat fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
}

body.light {
  color: #222;
  background: #fdfdfd;
}

body.sepia {
  color: #3b2f2f;
  background: #f5ebd2;
}


/* --------------------------------------------------
   HEADER + NAVIGATION
-------------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 51, 102, 0.7);
  backdrop-filter: blur(6px);
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  padding: 0.8rem 1rem 0.3rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

body.light header,
body.light footer {
  background: rgba(240, 240, 240, 0.9);
  color: #222;
}

body.sepia header,
body.sepia.footer {
  background: rgba(200, 180, 140, 0.9);
  color: #3b2f2f;
}

nav {
  background: rgba(247, 149, 51, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
}

body.light nav {
  background: rgba(60, 120, 200, 0.9);
}

body.sepia nav {
  background: rgba(160, 120, 60, 0.9);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav li {
  margin: 0.3rem 1rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: #003366;
}


/* Main scroll area */
main-contents {
  flex: 1;
  max-width: 960px;
  margin: 1.5rem auto;
  padding: 1.2rem;
  background: rgba(0,0,0,0.65);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  overflow: auto;
}

main-contents p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  text-align: justify;
}

.disclaimer {
  font-size: 0.9rem;
  color: #ddd;
  border-left: 3px solid #f79533;
  padding-left: 1rem;
  margin-top: 2rem;
}


/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
footer {
  position: sticky;
  bottom: 0;
  background: rgba(0, 51, 102, 0.7);
  backdrop-filter: blur(6px);
  text-align: center;
  font-size: 0.9rem;
  padding: 0.8rem;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.4);
}

footer a {
  color: #f79533;
  text-decoration: none;
}


/* --------------------------------------------------
   LANGUAGE SELECTOR
-------------------------------------------------- */
#langselector {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.3rem 0.5rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: 1px solid #fff;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  z-index: 1100;
}



/* --------------------------------------------------
   RESPONSIVE ADJUSTMENTS
-------------------------------------------------- */

/* Tablets */
@media (max-width: 768px) {
  header {
    position: static;
    font-size: 1.4rem;
  }

  footer {
    position: static;
    font-size: 0.8rem;
  }

  #langselector {
    top: 0.3rem;
    right: 0.3rem;
    font-size: 0.85rem;
  }
}

/* Phones */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  header {
    font-size: 1rem;
  }

}

/* --------------------------------------------------
   PRINT STYLES
-------------------------------------------------- */
@media print {
  body {
    background: #fff;
    color: black;
  }

  .cssNovel {
    box-shadow: none;
    padding: 0;
  }

  header,
  nav,
  footer,
  .controls,
  #langselector {
    display: none;
  }
}