:root {
    --bloom-alpha: 0.45; /* Define a global variable */
  }

html, body {
	margin: 0;
	padding: 0;
}

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;	  
	/* height: calc(var(--vh, 1vh) * 100); */
	/* display: flex; */
	/* justify-content: center; */
	/* align-items: center; */
	/* overflow: hidden; */
	background-color: #1d1d1d;
	color: #888888;
	font-family: 'Bebas Neue', 'Lexend', 'Teko', sans-serif;
}

hr {
    border: none;
    height: 1px;
    background-color: #444444;
    margin: 10px 0 10px 0;
}

.page-center {
	/* height: calc(var(--vh, 1vh) * 100); */
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	height: 100vh;
	text-align: center;
	
	/* opacity: 0;
	visibility: hidden;
	transition: opacity 1.4s ease-in-out; */
}

.page-center.font-loading {
	opacity: 0;
	transition: opacity 1.8s ease-in-out;
	visibility: hidden;
}

.page-center.font-loaded {
	opacity: 1;
	visibility: visible;
}

.page-container {
    height: 100%;
    width: 100%;
    position: relative;
    min-height: 60vh;
}

.content-wrapper {
    width: 100%;
    /* height here can fix centering divs, ie socials page*/
}

h1 {
	position: relative;
	color: #ffffff;
	font-family: 'Bebas Neue', 'Lexend', 'Teko', sans-serif;
	font-weight: normal;
	margin: 6px 0 6px 0;
	z-index: 1;
	
	animation: glowPulse 3s ease-in-out infinite;
}

h1::before {
	content: attr(data-text);
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	color: #ffffff;
	filter: blur(24px);
	opacity: 0.22;
}

a:hover {
    color: #333333;
}
a {
    color: #FFFFFF; text-decoration: none;
}

@keyframes glowPulse {
	0%, 100% {
		text-shadow: 0 0 6px rgba(255,255,255,0.2), 0 0 20px rgba(255,255,255,0.1);
	}
	50% {
		text-shadow: 0 0 8px rgba(255,255,255,0.25), 0 0 25px rgba(255,255,255,0.15);
	}
}

/* Blog post CSS  */

.post-wrapper {
  max-width: 800px;
  margin: 60px auto 20px auto; /* Adds 100px bottom margin */
  padding: 40px;
  background-color: #2b2b2b;
  color: #f1f1f1;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
  font-family: sans-serif;
}
.post-comment-wrapper {
  max-width: 800px;
  margin: 60px auto 50px auto; /* Adds 100px bottom margin */
  padding: 40px;
  background-color: #2b2b2b;
  color: #f1f1f1;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
  font-family: sans-serif;
}
.blog-wrapper {
  max-width: 1200px;
  margin: 60px auto 100px auto; /* Adds 100px bottom margin */
  padding: 20px 40px 20px 40px;
  background-color: #191919;
  color: #f1f1f1;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  line-height: 1.0;
  font-family: sans-serif;
}
.blog-seg-wrapper {
  position: relative;
  width: 600px;
  margin: 40px 10px 40px 10px;
  padding: 14px;
  background-color: #2b2b2b;
  color: #f1f1f1;
  border-radius: 8px;
  /* box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); */
  line-height: 1.0;
  font-family: sans-serif;
}

.comment-counter {
    /* position: absolute; */
    bottom: 0rem;
    /* right: 2.0rem; */
	/* margin-top: 10px;	 */
    background: rgba(91, 66, 46, 0.796);
    color: #aaa;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 4px;
    pointer-events: none;
}

.blog-button {
	display: inline-block;
	margin-bottom: 8px;
	color: #66ccff;
	text-decoration: none;
	font-weight: bold;
	font-size: 14px;
	background: rgba(255, 255, 255, 0.05);
	padding: 8px 14px;
	border-radius: 6px;
	border: 1px solid #444;
	transition: background 0.2s ease;
}

.read-more-link {
	/* position: absolute; */
	/*bottom: 1rem;
    left: 1rem; */
	/* margin-top: 10px; */
	color: #66ccff;
	text-decoration: none;
	font-weight: bold;
	transition: color 0.2s ease;
}
  
.read-more-link:hover {
	color: #ffffff;
	text-decoration: underline;
}
  
.post-wrapper h1,
.post-wrapper h2,
.post-wrapper h3 {
  color: #ffffff;
}

.post-wrapper a {
  color: #66ccff;
  text-decoration: none;
}
.post-wrapper a:hover {
  text-decoration: underline;
}

.post-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.post-meta-table-end {
    margin-top: 1.0rem;
    width: 100%;
}
.post-meta-table-end table {
    width: auto; /* 100% full-width */
    border-collapse: collapse;
    color: #aaa;
    font-size: 0.85rem;
}
.post-meta-table-end td {
    padding: 0.0rem 0.3rem;
    vertical-align: middle;
    white-space: nowrap;
    text-align: left;
}

.post-meta-table {
    margin-top: 1.5rem;
    width: 100%;
}
.post-meta-table table {
    width: auto; /* 100% full-width */
    border-collapse: collapse;
    color: #aaa;
    font-size: 0.85rem;
}
.post-meta-table td {
    padding: 0.0rem 0.1rem;
    vertical-align: middle;
    white-space: nowrap;
    text-align: left;
}


.post-readmore {
    text-align: right;
    width: 100%;
}
.post-author {
    text-align: left;
    /* width: 100%; */
}
.post-date {
    text-align: left;
    /* width: 100%; */
}

.read-more-link {
    color: #66ccff;
	font-size: 1.0em;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.read-more-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.source-badge {
    position: absolute;
    top: 1.4rem;
    right: 1.2rem;
    background-color: #444;
    color: #fff;
    font-size: 1.0rem;
    font-weight: bold;
    padding: 8px 8px;
    border-radius: 20%;
    width: 24px;
    height: 20px;
    text-align: center;
    line-height: 16px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    font-family: sans-serif;
    opacity: 0.7;
}

/* WordPress badge = blue */
.source-badge.wordpress {
    background-color: #00567e;
}

/* Markdown badge = gold */
.source-badge.markdown {
    background-color: #141414;
}

.post-thumbnail {
    background-color: #181818; /* dark placeholder color */
    margin-bottom: 16px;
    
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 180px;
    border-radius: 6px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

figure {
    margin: 2em 0;
    text-align: center;
}

figcaption {
    font-size: 0.85em;
    color: #888;
    margin-top: 0.5em;
}

.markdown pre {
    background: #1e1e1e8b;
    color: #f8f8f2;
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
}

.markdown code {
    background: #233437;
    padding: 2px 4px;
    border-radius: 4px;
}

.markdown blockquote {
    border-left: 4px solid #555;
    padding: 10px 20px;
    margin: 1em 0;
    background-color: #222;
    color: #ccc;
    font-style: italic;
    border-radius: 4px;
}
