/* Style the header */
.header {
    padding: 10px 16px;
}

header img {
    height: auto;
    width: 80px;
}

/* Page content */
.content {
    padding: 16px;
}

/* The sticky class is added to the header with JS when it reaches its scroll position */
.sticky {
    position: fixed;
    top: 0;
    width: 100%
}

/* Add some top padding to the page content to prevent sudden quick movement (as the header gets a new position at the top of the page (position:fixed and top:0) */
.sticky + .content {
    padding-top: 170px;
}

.numbers {
    width: 65px;
}

:root {
    color-scheme: light only;
}

/* from https://github.com/sindresorhus/github-markdown-css */
.markdown-body, .markdown-input {
		box-sizing: border-box;
		min-width: 200px;
		max-width: 980px;
		margin: 0 auto;
		padding: 20px;
		font-size: 0.9em;
}

/* from http://markdowncss.github.io/air/ */
blockquote {
  margin: 0;
  border-left: 5px solid #7a7a7a;
  font-style: italic;
  padding: 1.33em;
  text-align: left;
}

@media (max-width: 767px) {
		.markdown-body, .markdown-input {
			  padding: 15px;
		}
		.sticky + .content {
			  padding-top: 100px;
		}
		.content {
			  padding: 8px;
		}
		[class*='col-'] {
			  margin: 5px 0;
			  padding-right: 5px;
		}
}

.wide {
  width: 100% important;
}

/* Markdown editor page styles */
.md-page {
  background-color: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.page-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
}

.page-header h2 {
  margin: 0;
  color: #333;
  font-weight: 500;
}

.page-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.editor-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.markdown-input textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.75rem;
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-size: 0.9em;
  resize: vertical;
  background: #fafafa;
  box-sizing: border-box;
}

.markdown-input textarea:focus {
  outline: none;
  border-color: #0078d4;
  box-shadow: 0 0 0 2px rgba(0,120,212,0.15);
}

.button-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 0.75rem;
}

.md-page .pure-button {
  background: #0078d4;
  color: #fff;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.md-page .pure-button:hover {
  background: #106ebe;
}

.output-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 0.75rem;
}

.markdown-body {
  line-height: 1.6;
}
