html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
	font-family: system-ui, Helvetica, sans-serif;
	font-size: 1.2em;
	color: #000000;
	letter-spacing: 1px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a, a:link, a:visited {
	text-decoration: none;
	color: blue;
}
a:hover, a:active, a:focus {
	color: blue;
}

h1, h2, h3{
	text-align: center;
	margin: 0 0 10px 0;
	line-height: 1;
	text-transform: uppercase;
}
h1 {
	font-size: 1.2em;
}
h2 {
	margin-top: 1em;
	font-size: 1.1em;
}
h3 {
	margin-top: 1em;
	font-size: 0.8em;
}

h1 .letter,
h2 .letter,
h3 .letter {
  display: inline-block;
  background-color: #ffffff;
  padding: 2px 8px;
  margin: 2px;
  border-radius: 4px;
  color: black;
  border: 1px solid #CCCCCC;
  box-shadow: 3px 3px 1px rgba(0, 0, 0, 0.3);
	
  transition: transform 0.3s ease;
}

h1 .letter:nth-child(odd), h2 .letter:nth-child(odd) {
  transform: translateY(3px);
}

/* h1 .letter:nth-child(even), h2 .letter:nth-child(even) {
  transform: translateY(2px);
} */

.word {
  display: inline-block;
  white-space: nowrap;
  margin: 5px 5px;
}

.space {
  display: inline-block;
  width: 12px;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
	font-style: italic;
	background-repeat: no-repeat;
	background-size: cover;
	shape-margin: 1rem;
}

p {
	margin: 0 auto;
	padding 5px;
}

.b {font-weight: bold;}
.center {text-align: center;}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sky {
  position: relative;
  height: 250px;
  overflow: hidden;
  background-color: #87CEEB; /* Base sky blue */
  background-image: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6));
  background-position: center top,;
  background-repeat: no-repeat;
  background-size: cover;
}

.sky .clouds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px;
	z-index: 2;
}

.sky .cloud {
  position: absolute;
  background-image: url('images/clouds2.png');
  background-repeat: no-repeat;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-name: moveCloudLeftToRight;
	transform: translate3d(0, 0, 0);
  opacity: 0.85;
}

/* Cloud 1 */
.sky .cloud1 {
  width: 90px;
  height: 65px;
  background-position: 0 -45px;
  top: 30px;
  left: 100vw;
  animation-duration: 83s;
  animation-delay: 2s;
}

/* Cloud 2 */
.sky .cloud2 {
  width: 70px;
  height: 40px;
  background-position: 0 0;
  top: 50px;
  left: 100vw;
  animation-duration: 61s;
  animation-delay: 12s;
}

/* Cloud 3 */
.sky .cloud3 {
  width: 180px;
  height: 95px;
  background-position: 0 -125px;
  top: 20px;
  left: 100vw;
  animation-duration: 127s;
  animation-delay: 30s;
}

/* Cloud 4 */
.sky .cloud4 {
  width: 70px;
  height: 40px;
  background-position: 0 0;
  top: 90px;
  left: 100vw;
  animation-duration: 89s;
  animation-delay: 52.5s;
}

/* Animations for each cloud */
@keyframes moveCloudRightToLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100vw - 100%));
  }
}

@keyframes moveCloudLeftToRight {
  from {
    transform: translateX(calc(-100vw - 100%));
  }
  to {
    transform: translateX(0);
  }
}


.sky .cloud-layer {
  background: url('images/clouds.png') repeat-x center bottom;
  background-size: auto 100px;
  position: absolute;
  width: 200%;
  height: 100%;
  bottom: 0;
  left: 0;
  animation: moveFloatClouds 100s linear infinite;
  opacity: 0.85;
  z-index: 1;
	transform: translate3d(0, 0, 0);
}

@keyframes moveFloatClouds {
  0%   { transform: translateX(-50%) translateY(0); }
  15%  { transform: translateX(-42%) translateY(6px); }
  30%  { transform: translateX(-34%) translateY(10px); }
  45%  { transform: translateX(-26%) translateY(6px); }
  60%  { transform: translateX(-18%) translateY(8px); }
  75%  { transform: translateX(-10%) translateY(4px); }
  90%  { transform: translateX(-2%)  translateY(2px); }
  100% { transform: translateX(0%)   translateY(0); }
}

.sky .grass-barrier {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60px;
  background: url('images/grassbarrier.png') repeat-x center bottom;
  background-size: 80% 60px;
  z-index: 3;
  pointer-events: none;
}

.sky .logo-container {
	position: absolute;
	top: 20px;
	left: 40px;
	z-index: 4;
}

.sky .logo-container a {
  display: inline-flex;
	flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: floaty 8s ease-in-out infinite;
  transition: transform 0.3s ease;
  text-decoration: none;
	transform: translate3d(0, 0, 0);
}

.sky .logo {
  height: 80px;
  display: block;
}

.sky .title-box {
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 4px;
  border-radius: 10px;
}

.sky .title {
  font-size: 1.4rem;
  font-weight: bold;
  color: white;
  display: block;
	background: linear-gradient(to bottom, #241E01, #F39108);
	background-clip: text;
	color: transparent;
}

/* Hover: pause animation and scale the entire block */
.logo-container:hover a {
  animation-play-state: paused;
	filter: drop-shadow(0 8px 16px rgba(255,255,255,0.8));
}

@keyframes floaty {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  20% {
    transform: translate(-2px, -3px) scale(1.02) rotate(-2deg);
  }
  40% {
    transform: translate(2px, -1px) scale(1.01) rotate(2deg);
  }
  60% {
    transform: translate(-1px, 2px) scale(0.99) rotate(-1deg);
  }
  80% {
    transform: translate(1px, -2px) scale(1.01) rotate(1deg);
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
}

.relik-transition {
  height: 40px;
  background: #494C36 url('images/relik.png') repeat-x center top;
  background-size: auto 100%;
}

.content {
  position: relative;
  background-color: #F5DAB4;

  /* symbols + base dirt gradient */
  background-image:
    url('images/tex1_128x128_5d06936d4d88769b_6_2.png');

  /* Layout settings */
  display: flex;
  flex-direction: row;
	flex-grow: 1;
  gap: 2rem;
  padding: 0.5rem;
}

/* Left column: nav */
nav {
  flex: 0 0 250px;
  padding: 10px;
  box-sizing: border-box;
}

nav .nav-box {
	background: #FFFFFF;
	background-image: url('images/tex1_128x128_e5232d37f03bca01_14.png');
	background-position: top left;
	margin: 20px 0 20px 0;
	border-radius: 15px;
	text-align: center;
}

nav .nav-box:first-child {
	margin-top: 0;
}

nav .nav-box:last-child {
	margin-bottom: 0;
}

nav .nav-box header {
	border-bottom: 4px solid #BBBBBB;
	padding: 3px 10px 5px;
	font-weight: bold;
}

nav .nav-box .nav-content {
	padding: 5px 10px;
}

nav .nav-box ul {
	margin: 0;
	padding: 0;
	text-align: left;
}

nav .nav-box a {
	display: block;
	padding-left: 15px;
}

nav .nav-box a:hover {
	background: url('images/arrow.png');
	background-repeat: no-repeat;
	background-position: left 5px;
	background-size: auto 16px;
}

/* Right column: main content */
.main-content {
  flex: 1;
  padding: 0.5rem 0.5rem 1rem;
  box-sizing: border-box;
}

.main-content section {
	margin: 30px 0;
}
.main-content section:first-child {
	margin-top: 0;
}
.main-content section:last-child {
	margin-bottom: 0;
}

.main-content .box {
	background-color: rgba(255,255,255,0.8);
	background-image: url('images/tex1_128x128_e5232d37f03bca01_14.png');
	background-position: top left;
	padding: 10px;
	margin: 5px 0;
	border: 2px dashed #BBBBBB;
	border-radius: 15px;
	line-height: 1.4;
}

.homelands-grid {
  display: grid;
  gap: 0.5rem;
}

.homeland-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.homeland-row {
  position: relative;
  padding: 5px 5px 5px 12px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
}

.homeland-row:hover {
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.homeland-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background-color: #ccc;
  border-radius: 10px 0 0 10px;
}

.homeland-row.not-yet::before {
  background-color: #FFA500;
}

.homeland-row.active::before {
  background-color: #5cff85;
}

.homeland-row.dormant::before {
  background-color: #777;
}

.homeland-row .info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.homeland-row .info a {
	color: #000000;
}

.location-flag {
  font-size: 1em; /* adjust size */
  vertical-align: text-top;
  margin: 0 0 0 6px;
  text-shadow: 0 0 3px rgba(0,0,0,0.5);
}

.homeland-row .lock {
  color: #aaa;
}

.homeland-row .comment {
	font-size: 0.9em;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.homeland-row .meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #444;
  gap: 1rem;
}

.homeland-row .user-comment {
	border: 1px dashed #BBBBBB;
	border-width: 2px 0 0 0;
  width: 100%;
}

.homeland-row .user-comment a {
	color: blue;
}

.homeland-row .meta, .homeland-row .user-comment, .homeland-row .timestamps {
  font-size: 0.9rem;
}

footer {
	background: url('images/tex1_128x128_1f947318333351d0_6.png') center center;
	text-align: center
}

footer .credits {
	display: inline-block;
	margin: 10px auto;
	padding: 5px 10px;
	border-radius: 10px;
	border: 2px solid transparent;
	background-color: rgba(60, 65, 68, 0.6);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	blur: 3px;
	color: rgb(181, 195, 204);
}