:root {
  --header-image: url('https://sadhost.neocities.org/images/layouts/wp.jpeg');
  --body-bg-image: url('https://gatesoftroy.neocities.org/backgrounds/bg1.jpg');

  --bronze: #c28840;
  --deep-blue: #1b263b;
  --dark-navy: #0d1b2a;
  --stone: #3e4c59;
  --light-text: #f4f1ea;
}

/* Custom Greek font */
@font-face {
  font-family: 'Rusticus';
  src: url('https://gatesoftroy.neocities.org/Fonts/BethanyElingston.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  letter-spacing: 1px;
}

/* Body */
body {
  font-family: 'Rusticus', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--dark-navy);
  background-image: var(--body-bg-image);
  background-attachment: fixed;
  color: var(--light-text);
  line-height: 1.6;
}

/* Box-sizing */
* {
  box-sizing: border-box;
}

/* Main container with border */
#container {
  max-width: 1000px;
  margin: 40px auto;
  background: rgba(27, 38, 59, 0.9);
  padding: 20px;
  border-width: 16px;
  border-style: solid;
  border-image-source: url('https://gatesoftroy.neocities.org/Assets/Border.png');
  border-image-slice: 16;
  border-image-repeat: round;
  border-image-width: 16px;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

/* Header */
#header {
  width: 100%;
  min-height: 150px;
  background-image: var(--header-image);
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 20px 0;
  border-radius: 8px;
}

.header-content img {
  max-height: 120px;
  width: auto;
  border-radius: 8px;
}

/* Navbar */
#navbar {
  background-color: var(--stone);
  border-radius: 8px;
  margin: 15px 0;
}

#navbar ul {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

#navbar li a {
  color: var(--light-text);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

#navbar li a:hover {
  background: var(--bronze);
  color: var(--dark-navy);
}

/* Flex layout for sidebars and main */
#flex {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Sidebars */
aside {
  background-color: var(--stone);
  flex: 0 0 200px;
  padding: 20px;
  font-size: 18px;
  color: var(--light-text);
  border-radius: 8px;
}

/* Main content */
main {
  background-color: var(--deep-blue);
  flex: 1;
  padding: 20px;
  border-radius: 8px;
  min-width: 300px;
}

/* Footer */
footer {
  background-color: var(--stone);
  padding: 15px;
  text-align: center;
  color: var(--light-text);
  margin-top: 20px;
  border-radius: 8px;
}

/* Headings */
h1, h2, h3 {
  color: var(--bronze);
  margin-top: 0;
}

h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }

strong {
  color: #ffd27f;
}

/* Box */
.box {
  background-color: var(--dark-navy);
  border: 1px solid var(--bronze);
  padding: 10px;
  border-radius: 6px;
}

/* Top bar */
#topBar {
  width: 100%;
  padding: 10px;
  font-size: 18px;
  background-color: var(--stone);
  border-radius: 8px;
  text-align: center;
}

/* Responsive */
@media only screen and (max-width: 800px) {
  #flex {
    flex-direction: column;
  }
  aside {
    width: 100%;
  }
}

/* Make the main analysis content scrollable */
#analysis-content {
  max-height: 80vh; /* visible viewport height */
  overflow-y: auto; /* vertical scroll */
  padding-right: 10px;
  margin-top: 10px;
  border: 1px solid var(--bronze);
  border-radius: 6px;
  background-color: rgba(27, 38, 59, 0.85);
}

/* Text size control */
#text-controls {
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--light-text);
}

#text-size {
  padding: 3px 5px;
  font-size: 16px;
}

/* Optional: style blockquotes for readability */
blockquote {
  border-left: 4px solid var(--bronze);
  margin: 10px 0;
  padding-left: 10px;
  font-style: italic;
  background-color: rgba(255, 255, 255, 0.05);
}

