@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Lora:wght@400;700&family=Montserrat:wght@400;600;700&display=swap');

:root {
  --color-bg: #f5f5db;           /* Background */
  --color-text: #333333;         /* Primary text */
  --color-text-muted: #666666;   /* Secondary text */
  --color-primary: #4CAF50;      /* Buttons/links */
  --color-primary-light: #81C784;/* Hover/secondary accent */
  --color-code-bg: #F5F5F5;      /* Code block background */
  --color-border: #E0E0E0;       /* Borders/dividers */
  --color-accent: #FFB74D;       /* Optional highlights */
  --color-help: #cc507a;       /* Help section background */
  --color-card-bg: #FFFFFF;      /* Card/sidebar background */
  --navbar-bg: #3f8b72;          /* Navbar background */
  --navbar-bg-darker: #3f8b72;   /* Slightly darker background */
  --navbar-link: #ffffff;        /* Navbar links */
  --navbar-link-hover: #d3b58d;  /* Navbar link hovers */

}

.welcome-background {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background: url("/static/title-screen.svg") no-repeat center center fixed;
  background-size: cover;
  z-index: -1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  padding: 10rem;
}

.welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2%;
  text-align: center;
}

.welcome-content img {
  max-width: 80%;
  height: 80%;
}

.button-row {
  margin-top: auto;
  gap: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.button-row img {
  max-width: 100%;
  max-height: 100%;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.button-row img:hover {
  transform: scale(1.25);
}

.forums-background {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  min-height: 100vh;
  background: url("/static/forums-screen.svg") no-repeat center center fixed;
  background-size: cover;
  z-index: -10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  padding: 10rem;
  overflow: visible;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  margin-top: 5rem;
  font-family: 'Lora', serif;
  font-size: 1rem;
  line-height: 1.6;
  padding-top: 20px;
}

h1, h2, h3, h4, h5, h6 {
  color: #444444;
  font-family: 'Montserrat', serif;
  font-weight: 700;
  line-height: 1.3;
}

code, pre {
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 0.95rem;
  background-color: var(--color-code-bg);
  color: #212529;
  border-radius: 4px;
}

code {
  padding: 0.2em 0.4em;
}

pre {
  padding: 1em;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  margin: 1em 0;
}

.bg-steel {
  background-color: var(--navbar-bg);
}

.navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.navbar-brand img {
    vertical-align: middle;
}

.side-link{
  font-family: 'Lora', serif;
  color: var(--color-text-muted);
}

.site-header .navbar-nav .nav-link {
  font-family: 'Montserrat', sans-serif;
  color: var(--navbar-link);
}

.site-header .navbar-nav .nav-link:hover {
  color: var(--navbar-link-hover);
}

.site-header .navbar-nav .nav-link.active {
  font-weight: 500;
}

/* Proper shrinking in media and content sections */
*, *::before, *::after {
  box-sizing: border-box;
}

.content-section,
.media,
.media .media-body,
.article-content {
  min-width: 0;
}

.content-section,
.article-content {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.article-content img,
.article-content video,
.article-content iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

.article-content pre,
.article-content code {
  white-space: pre;
  overflow-x: auto;
  word-break: normal;
}

.media {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
.media .article-img {
  flex: 0 0 auto;
  margin-right: 1rem;
  max-width: 64px;
}

@media (max-width: 576px) {
  .media .article-img { max-width: 48px; }
  .article-title { font-size: 1.1rem; }
}

.content-section {
  background: var(--color-card-bg);
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  margin-bottom: 20px;
}

.content-preview {
  max-height: 14em;
  overflow: hidden;
  position: relative;
  padding-bottom: 0.5em;
  box-sizing: border-box;
  word-break: break-word;
}

.content-preview p,
.content-preview h1,
.content-preview h2,
.content-preview h3,
.content-preview h4,
.content-preview h5,
.content-preview h6,
.content-preview pre,
.content-preview ul,
.content-preview ol,
.content-preview blockquote {
  margin: 0 0 0.75em 0;
}

.content-preview pre,
.content-preview code {
  font-size: 0.9em;

  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  display: block;
}

.content-preview::after {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6em;
  background: linear-gradient( rgba(255,255,255,0), white 90% );
}

.article-title {
  font-family: 'Montserrat', sans-serif;
  color: #444444;
}

a.article-title:hover {
  color: var(--color-primary);
  text-decoration: none;
}

a.article-title {
    display: inline-block;
    margin-bottom: 1rem;
}

.article-content {
  font-family: 'Lora', serif;
  white-space: normal;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.article-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
}

.article-img {
  height: 65px;
  width: 65px;
  margin-right: 16px;
}

.article-metadata {
  padding-bottom: 1px;
  margin-bottom: 4px;
  border-bottom: 1px solid #e3e3e3
}

.article-metadata a:hover {
  color: #333;
  text-decoration: none;
}

.article-svg {
  width: 25px;
  height: 25px;
  vertical-align: middle;
}

.article-content img,
.article-content video {
    max-width: 100%;
    height: auto;
}

.account-img {
  height: 125px;
  width: 125px;
  margin-right: 20px;
  margin-bottom: 16px;
}

.account-heading {
  font-size: 2.5rem;
}

.btn-info {
  background-color: var(--navbar-bg);
  border-color: var(--navbar-bg);
  color: #fff;
}

.btn-info:hover {
  background-color: var(--navbar-bg-darker);
  border-color: var(--navbar-bg-darker);
  color: #fff;
}

.btn-outline-info {
  border-color: var(--navbar-bg);
  color: var(--navbar-bg);
}

.btn-outline-info:hover {
  background-color: var(--navbar-bg);
  color: #fff;
}

/* News */
.news-background {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  min-height: 100vh;
  background: url("/static/news-screen.svg") no-repeat center center fixed;
  background-size: cover;
  z-index: -10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  padding: 10rem;
  overflow: visible;
}

.news-titles{
  font-family: 'Montserrat', sans-serif;
  color: #444444;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.news-card {
    background: var(--color-code-bg);
    border: 0.5rem solid var(--color-accent);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
}

.news-card:hover {
    background: #eef4ff;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.06);
}

.news-card a {
    font-size: 1.2rem;
    font-weight: 500;
}

.news-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2%;
  text-align: center;
}

.news-content img {
  margin-top: -2rem;
  max-width: 80%;
  height: 80%;
}

.news-content-section {
  position: relative;
  background: var(--color-card-bg);
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  margin-bottom: 20px;
}

.news-body {
  color: var(--color-text);
  font-family: 'Lora', serif;
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

.news-scrollable {
    position: relative;
    z-index: 0;
    transform: translateX(25%);
}

.help-background {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  min-height: 100vh;
  background: url("/static/help-screen.svg") no-repeat center center fixed;
  background-size: cover;
  z-index: -10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  padding: 10rem;
  overflow: visible;
}

.help-card {
    background: var(--color-code-bg);
    border: 0.5rem solid var(--color-help);
    border-radius: 8px;
    padding: 10px 18px;
    margin-bottom: 12px;
    min-width: 50vh;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
}

.help-card:hover {
    background: #eef4ff;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.06);
}

.help-card a {
    font-size: 1.2rem;
    font-weight: 500;
}

.list-container {
  width: 100%;
  margin: 0 auto;
  max-height: 60vh;
  overflow-y: auto;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(255,255,255,0);
  -webkit-overflow-scrolling: touch;
}

.help-titles,
.list-container {
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 768px) {
  .list-container { max-height: 55vh; padding: .75rem; }
}

.help-content{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

.help-content img {
  margin-top: -2rem;
  margin-bottom: -2rem;
  max-width: 80%;
  height: 80%;
}