/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
        
/* General Reset */
:root {
  color-scheme: light only;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #f7f8fa;
  color: #333;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Layout */
.content-container {
  display: flex;
  flex-grow: 1; /* Take remaining space */
  flex-flow: row wrap;
  margin-top: 60px; /* Offset for sticky header */
}

.content-container > * {
    flex: 1 100%;
}

/* Main Content Area */
.main-content {
  flex-grow: 1; /* Take remaining space */
  padding: 40px; 
  overflow-y: auto; 
  background: white; 
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 4px;
}

.main-content h1 {
  margin-bottom: 20px;
  font-weight: 600;
}

.main-content h2 {
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

.main-content p {
  line-height: 1.6em;
  margin-bottom: 15px;
}

.main-content ul,
.main-content ol {
  margin-bottom: 15px;
  padding-left: 2em;
}

.main-content li {
  line-height: 1.6em;
  margin-bottom: 6px;
}

.main-content code {
  background-color: #f0f2f5;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.main-content blockquote {
  border-left: 4px solid #ddd;
  padding: 10px 16px;
  margin-bottom: 15px;
  color: #555;
}

.main-content blockquote.callout {
  border-radius: 6px;
  background-color: #f8f9fa;
}

.main-content blockquote.callout-tip {
  border-left-color: #28a745;
}

.main-content blockquote.callout-note {
  border-left-color: #0969da;
}

.main-content blockquote.callout-important {
  border-left-color: #8250df;
}

.main-content blockquote.callout-warning {
  border-left-color: #d1a400;
}

.main-content a {
  color: #0969da;
}

.main-content a:hover {
  text-decoration: underline;
}

/* Media query for smaller screens */

@media all and (min-width: 500px) {
    .nav-column {
        flex: 1 auto;
    }
}

@media all and (min-width: 800px) {
    .main-content {flex: 500 0px;}
    .nav-column {order: 0;}
}
