body{
	max-width: 60rem;
	margin: auto;
	padding: 10px;
}

#title {
	#border-bottom: 1px dashed #00869A;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#title h1>a {
	color: #e1aa5d;
	text-decoration: none;
}

.logo {
	height: 1.3em;
	margin-right: 0.2em;
	vertical-align: middle;
}

#title h1 {
	font-size: 2.4em;
	margin:10px 0 0;
	border-bottom: none;
	padding-bottom: 0.1em;
	display: flex;
	align-items: center;
	flex: 1;
}
#title h1::before{
	content: '';
}

#footer{
	padding-top:10px;
	margin:10px 0 20px;
	border-top: 1px dashed #00869A;
	text-align:center;
}

a{text-decoration:underline;color:#3377AA;}
a:visited{text-decoration:none;color:#336699;}
blockquote{background-color:#f9f9f9;border-left:solid 4px #e9e9e9;margin-left:12px;padding:12px 12px 12px 24px;}
blockquote img{margin:12px 0px;}
blockquote iframe{margin:12px 0px;}

#title{ font-size: x-large; }
li{
	margin-bottom:8px;
}

pre{
	display: block;
	padding: 1rem;
	word-break: break-all;
	word-wrap: break-word;
	background-color: #f9f9f9;
}
code{
	display: block;
	padding: 1rem;
	word-break: break-all;
	word-wrap: break-word;
	background-color: #f9f9f9;
}

.subtitle{
	color:#F39D21
}
h1{	
	margin:50px 0 8px;
	color:#3377AA;
	font-size: 1em;
	padding-bottom: .5em;
	border-bottom: 1px solid #3377AA;
}
h1::before{
	#content: '# ';
}

a.posttitle {
	text-decoration: none;
}

h2{
	font-size:1em;
	#color:#b5e853;
	color:#3377AA;
}
h2::before{
	#content: '## ';
}
h3{
	font-size:1em;
	margin-top:42px;
	margin-bottom:8px;
	width:100%;
}
img{max-width:100%;}
#description{font-size:large;margin-bottom:12px;}
#main-links {
	font-size:large;
	float:right;
}
#main-links a {
	margin: 0 10px;
	font-size: 1em;
	color: #3377AA;
	text-decoration: none;
}

#main-links a:hover {
	text-decoration: underline;
}
#all_posts{margin-top:24px;text-align:center;}

table {
	width: 100%;
	table-layout: fixed;
}

tr:hover {background-color: #f2f2f2;}

th {
	background-color: #ddd;
}

th.opener {
	width: 18em;
}

td {
	overflow: hidden;
}

.input {
	width: 80%;
}

.addfeed {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.addfeed-input-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.search-input {
	flex: 1;
	width: 100%;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.addfeed.with-button .addfeed-input-row .search-input {
	flex: 1;
}

.addfeed.with-button .addfeed-input-row {
	display: grid;
	grid-template-columns: 1fr auto;
	width: 100%;
}

.search-input {
	font-size: 1.1em;
	padding: 0.8rem;
	border: 2px solid #ddd;
	border-radius: 6px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input:focus {
	border-color: #3377AA;
	box-shadow: 0 0 0 3px rgba(51, 119, 170, 0.1);
	outline: none;
}

.search-results {
	margin-top: 0.5rem;
	font-size: 0.9em;
	color: #666;
}

.search-info {
	padding: 0.5rem;
	background-color: #f8f9fa;
	border-radius: 4px;
	border-left: 3px solid #3377AA;
}

.search-info.no-results {
	border-left-color: #ff9800;
	background-color: #fff3e0;
	color: #e65100;
}

#addFeedBtn {
	background-color: #3377AA;
	color: white;
	border: none;
	padding: 0.8rem 1.5rem;
	border-radius: 6px;
	cursor: pointer;
	font-size: 1em;
	transition: background-color 0.3s ease;
	height: 100%;
	box-sizing: border-box;
}

#addFeedBtn:hover {
	background-color: #286090;
}

/* Spinner/Lightbox overlay */
.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 1000;
	display: none;
	justify-content: center;
	align-items: center;
}

.overlay.active {
	display: flex;
}

.spinner-container {
	background: white;
	padding: 2rem;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	max-width: 400px;
}

.spinner {
	border: 4px solid #f3f3f3;
	border-top: 4px solid #3377AA;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 1rem;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.spinner-text {
	color: #3377AA;
	font-size: 1.1em;
	margin-bottom: 0.5rem;
}

.spinner-status {
	color: #666;
	font-size: 0.9em;
}

.error-message {
	color: #d32f2f;
	background-color: #ffebee;
	padding: 1rem;
	border-radius: 4px;
	margin-top: 1rem;
	border-left: 4px solid #d32f2f;
}

/* Feed state styles */
.feed-active {
	color: inherit;
}

.feed-broken {
	color: #999;
	font-style: italic;
	opacity: 0.7;
}

.feed-broken:hover {
	color: #666;
	opacity: 1;
}

.feed-state-indicator {
	font-size: 0.8em;
	margin-left: 0.5rem;
}

.state-active {
	color: #4caf50;
}

.state-broken {
	color: #f44336;
}

.state-warning {
	color: #ff9800;
}

/* Statistics modal styles */
.stats-container {
	background: white;
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	max-width: 500px;
	width: 90%;
	position: relative;
}

.stats-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
	border-bottom: 2px solid #3377AA;
	padding-bottom: 0.5rem;
}

.stats-header h3 {
	margin: 0;
	color: #3377AA;
	font-size: 1.3em;
}

.close-btn {
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: #666;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.close-btn:hover {
	background-color: #f0f0f0;
	color: #333;
}

.stats-content {
	display: flex;
	justify-content: space-around;
	margin-bottom: 1.5rem;
}

.stat-item {
	text-align: center;
	flex: 1;
	padding: 1rem;
	border-radius: 6px;
	background-color: #f8f9fa;
	margin: 0 0.5rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-number {
	font-size: 2rem;
	font-weight: bold;
	color: #3377AA;
	margin-bottom: 0.5rem;
}

.stat-label {
	font-size: 0.9rem;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.stats-footer {
	text-align: center;
	color: #999;
	border-top: 1px solid #eee;
	padding-top: 1rem;
}

/* Responsive design for statistics */
@media (max-width: 600px) {
	.stats-content {
		flex-direction: column;
	}
	
	.stat-item {
		margin: 0.5rem 0;
	}
	
	.stats-container {
		width: 95%;
		padding: 1.5rem;
	}
}

