/* =======================
Body & Background
======================= */
html, body {
height:100%;
margin: 0;
padding: 0;
background-color: #0b0c10;
background: radial-gradient(circle at top, #0b0c10, #000000);
overflow-x: hidden;
position: relative;
color: #e8f8f5;
font-family: Arial, Helvetica, sans-serif;
min-height: 100vh;
}

/* =======================
Star Background
======================= */
body::before {
content: "";
position: fixed;
top: 0;
left: 0;
width: 200%;
height: 200%;
background: transparent;
z-index: -1;
pointer-events: none;
box-shadow:
50px 80px #fff,
200px 150px #fff,
400px 300px #7fffd4,
600px 500px #fff,
800px 100px #40e0d0,
1000px 400px #fff,
1200px 200px #fff,
1400px 350px #7fffd4,
1600px 150px #fff,
1800px 500px #fff;
animation: twinkle 8s linear infinite;
}

@keyframes twinkle {
0%, 100% { opacity: 0.8; }
50% { opacity: 1; }
}

/* =======================
Headings
======================= */
h1, h2 {
text-align: center;
color: #e0ffff;
text-shadow: 0 0 5px #7fffd4, 0 0 15px #40e0d0;
margin-top: 30px;
}

/* =======================
Paragraphs & Lists
======================= */
p, li {
color: #e8f8f5;
max-width: 800px;
margin: 15px auto;
}

ul {
max-width: 800px;
margin: 20px auto;
}

/* =======================
Glowing Divider
======================= */
.glow-divider {
border: none;
height: 2px;
background: linear-gradient(90deg, transparent, #7fffd4, transparent);
margin: 40px auto;
width: 80%;
animation: shimmer 3s infinite;
}

@keyframes shimmer {
0% { opacity: 0.3; }
50% { opacity: 1; }
100% { opacity: 0.3; }
}

/* =======================
Blockquote Glow
======================= */
blockquote {
border-left: 4px solid #7fffd4;
padding-left: 15px;
margin: 30px auto;
font-style: italic;
max-width: 700px;
background: rgba(127, 255, 212, 0.05);
box-shadow: 0 0 10px rgba(127, 255, 212, 0.3);
color: #e0ffff;
}

/* =======================
Navigation - All
======================= */
.navigation {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

.navigation a {
display: block;
margin: 25px auto;
font-weight: bold;
font-size: 1.3em;
color: #e0ffff;
text-decoration: none;
opacity: 0.9;
transition: all 0.4s ease-in-out;
}

.navigation a:hover {
color: #7fffd4;
text-shadow: 0 0 8px #7fffd4, 0 0 15px #40e0d0, 0 0 25px #1e90ff;
transform: scale(1.1);
}

.navigation .prev {
  float: left;
}

.navigation .next {
  float: right;
}

/* =======================
GIF Pulse + Portal Ripple
======================= */
.intro-gif {
width: 300;
z-index: 2;
position: relative;
display: block;
margin: 0 auto;
}

.circle {
	width: 275px;
	height: 275px;
	object-fit: cover;
	border-radius: 50%;
}

@keyframes pulse {
0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px #fff); }
50% { transform: scale(1.05); filter: drop-shadow(0 0 15px #7fffd4); }
}

.ripple {
position: absolute;
top: 50%;
left: 50%;
width: 250px;
height: 250px;
border: 2px solid #7fffd4;
border-radius: 50%;
transform: translate(-50%, -50%) scale(1);
opacity: 0.7;
animation: ripple 6s infinite;
}

.ripple:nth-child(1) { animation-delay: 0s; }
.ripple:nth-child(2) { animation-delay: 2s; }
.ripple:nth-child(3) { animation-delay: 4s; }
.ripple:nth-child(4) { animation-delay: 6s; }

@keyframes ripple {
0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

/* =======================
Misc
======================= */
.intro {
text-align: center;
margin-top: 40px;
position: relative;
}

.portal {
position: relative;
display: inline-block;
}

.article-credit {
  text-align: right; 
  font-size: 0.9em;
  color: #7fffd4;
  margin-top: 40px;
  font-style: italic;
}

.page-container::after {
	content: "";
	display: table;
	clear: both;
}

/* --- Media Query for smaller screens --- */
@media (max-width: 768px) {
	.container {
		flex-direction: column;
	}
	
	.article-image {
		max-width: 100%;
	}
}

/* =======================
Footer
======================= */
footer {
text-align: center;
color: #e0ffff;
padding: 20px 10px;
font-size: 0.9em;
border-top: 2px solid #7fffd4;
box-shadow: 0 0 10px rgba(127, 255, 212, 0.3);
margin-top: 50px;
}

/* Optional: make links in footer glow on hover */
footer a {
color: #e0ffff;
text-decoration: none;
transition: all 0.3s ease-in-out;
}

footer a:hover {
color: #7fffd4;
text-shadow: 0 0 8px #7fffd4, 0 0 15px #40e0d0;
}

/* =======================
Responsive Tweaks
======================= */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.4em;
  }

  .article-credit {
    text-align: center;
    font-size: 0.85em;
  }

  .intro-gif {
    width: 180px;
  }
}

@media (max-width: 480px) {
  p, li {
    font-size: 0.95em;
    line-height: 1.75;
  }
}