html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, Helvetica, sans-serif;
  font-size: 1.2em;
  color: #000000;
  letter-spacing: 1px;
  min-height: 100vh;
  background-color: #bfe6ed; 
}

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

h1, h2, h3{
	text-align: center;
	margin: 0 0 10px 0;
	line-height: 1;
	font-family: "FONT-Seurat Pro B", system-ui, Helvetica, sans-serif;
}
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){
  transform: translateY(3px);
}

.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;
}

.b {font-weight: bold;}
.center {text-align: center;}
.muted {font-size: 0.9em; }

.sky-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2; 
  overflow: hidden;
  pointer-events: none;
}

.cloud-layer {
  position: absolute;
  width: 200%;
  background-image: url('images/tex1_128x128_e4243ba382cf2188_6v2.png'); /* Deine Wolke */
  background-repeat: repeat-x;
  image-rendering: pixelated;   
  background-size: auto 220px;  
}

.clouds-back {
  bottom: 160px;
  height: 220px;
  opacity: 0.3;
  animation: ghibliDriftBack 140s linear infinite;
}

.clouds-mid {
  bottom: 70px;
  height: 220px;
  opacity: 0.55;
  background-position: 450px bottom; /* Verschiebt die Wolken, damit sie nicht exakt über den anderen stehen */
  animation: ghibliDriftFront 95s linear infinite;
}

.clouds-front {
  bottom: -40px;
  height: 220px;
  opacity: 0.85;
  background-position: 150px bottom;
  animation: ghibliDriftFront 50s linear infinite;
}

@keyframes ghibliDriftBack {
  0% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(-25%) translateY(-6px); }
  100% { transform: translateX(-50%) translateY(0); }
}

@keyframes ghibliDriftFront {
  0% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(-25%) translateY(6px); }
  100% { transform: translateX(-50%) translateY(0); }
}


main {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  position: relative;
}


.site-header {
    display: flex;
    justify-content: space-between; 
    align-items: flex-start;
    padding-right: 20px;            
    position: relative;
}

.site-header .user-area {
    position: relative;
    margin-top: 10px;
    z-index: 10; 
}

.site-header .dropdown-toggle {
    background: #2a1e12;
    color: #fff;
    border: 3px solid #ebd3b2;
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

.site-header .dropdown-toggle:hover {
    background: #3d2c1b;
}

.site-header .dropdown-toggle:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.site-header .dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 5px); 
    background: #dbcfbf;
    border: 2px solid #2a1e12;
    padding: 15px;
    min-width: 240px;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.15), 0 5px 0 rgba(0, 0, 0, 0.15);
    border-radius: 12px;
}

.site-header .dropdown-menu.show {
    display: block;
}

.site-header .login-form-dropdown input {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid transparent;
    color: #1a5b8c;
    box-sizing: border-box;
    border-radius: 5px;
}

.site-header .login-form-dropdown input:focus {
    border-color: #2a1e12;
    outline: none;
}

.site-header .submit-btn {
    width: 100%;
    background: #2a1e12;
    border: 1px solid transparent;
    color: #dbcfbf;
    padding: 8px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.site-header .submit-btn:hover {
    background: #dbcfbf;
	border-color: #2a1e12;
	color: #2a1e12;
}

.site-header .dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 10px;
    color: #2a1e12;
    text-decoration: none;
    font-size: 0.95rem;
    box-sizing: border-box;
    border-radius: 2px;
    transition: background 0.2s;
}

.site-header .dropdown-item:hover {
    background: #2a1e12;
    color: #fff;
}

.site-header .dropdown-divider {
    border: 0;
    border-top: 1px solid #7a5835;
    margin: 8px 0;
}

.site-header .logout-link:hover {
    background: #4a1515;
    color: #ff9999;
}



.site-header .logo-container {
  margin: 10px 20px 10px;
}

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

.logo-container a:hover {
  animation-play-state: paused;
  filter: drop-shadow(0 8px 16px rgba(255,255,255,0.8));
}

.site-header .logo {
  height: 120px;
  display: block;
  z-index: 2;
}

.site-header .title-box {
  position: relative;
  background: #2a1e12;
  padding: 6px 12px;
  border: 4px solid #ebd3b2;
  border-radius: 4px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.site-header .title-box::before,
.site-header .title-box::after {
  content: "";
  position: absolute;
  top: -64px;
  width: 4px;
  height: 65px;
  background: repeating-linear-gradient(
    to bottom,
    #7a5835 0px,
    #7a5835 4px,
    #543d25 4px,
    #543d25 8px    
  );
  z-index: -1;
}

.site-header .title-box::before {
  left: 20%;
}

.site-header .title-box::after {
  right: 20%;
}

.site-header .title {
  font-size: 1.4rem;
  font-weight: bold;
  display: block;
  background: linear-gradient(to bottom, #fff, #f39108);
  background-clip: text;
  color: transparent;
}

@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); }
}


.content {
  position: relative;
  display: flex;
  flex-direction: column; 
  gap: 1.5rem;
  padding: 2.5rem;
  margin: 20px 20px 140px 20px; 
  z-index: auto;
}

.content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('images/tex1_128x128_7cd75c9aa508d384_6.png');
  background-repeat: repeat;
  image-rendering: pixelated;
  background-size: 128px 128px; 
  border-radius: 24px;
  filter: url(#rugged-edge) drop-shadow(0 4px 0.5px #163517); 
    z-index: 2;
}

.content::after {
  content: "";
  position: absolute;
  top: calc(100% - 20px); 
  left: 25px;   
  right: 25px;
  height: 160px;
  
  background: 
    linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.4) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, transparent 15%, transparent 85%, rgba(0, 0, 0, 0.15) 100%),
    repeating-linear-gradient(
      90deg,
      #dbcfbf 0px,
      #dbcfbf 40px,
      #d5c8b6 40px,
      #d5c8b6 50px,
      #d2c4b2 50px,
      #d2c4b2 90px,
      #dbcfbf 90px,
      #dbcfbf 130px
    );
  
  border-radius: 0 0 24px 24px;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 85%, transparent 100%);
}

 .bottom-cloud-layer {
  width: 100%;
  height: 220px;
  
  margin-top: -150px; 
      position: relative;
    z-index: 99999;
  
  background-image: url('images/tex1_128x128_e4243ba382cf2188_6v2.png');
  background-repeat: repeat-x;
  image-rendering: pixelated;
  background-size: auto 220px;
  animation: driftBottomLayerClouds 10s linear infinite;
  pointer-events: none;
}

@keyframes driftBottomLayerClouds {
  from { background-position-x: 0; }
  to { background-position-x: -220px; }
}

.island-body {
  display: flex;
  flex-direction: row; /* Menü und Inhalt nebeneinander */
  gap: 2rem;
  width: 100%;
  flex: 1; 
}

.mobile-menu-toggle {
    display: none;
}

nav, .main-content {
  position: relative;
  z-index: 3;
}

nav {
  flex: 0 0 250px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 35px; 
}

nav .nav-box {
  background-color: #dbcfbf; 
  border: 2px solid #2a1e12; 
  border-radius: 12px;
  text-align: center;
  padding: 20px 10px 15px 10px;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.15), 0 5px 0 rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}

nav .nav-box header {
  position: relative;
  background: #FFFFFF;
  color: #000000;
  padding: 6px 22px;
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: -35px; 
  margin-bottom: 10px;
  border: 3px solid #000000;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
  display: inline-block;
  border-radius: 42px 35px 45px 38px / 20px 25px 22px 24px;
}

nav .nav-box header::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: #2a1e12 transparent;
}

nav .nav-box .nav-content {
  width: 100%;
  box-sizing: border-box;
}

nav .nav-box ul {
  margin: 0;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

nav .nav-box a {
  display: block;
  padding: 6px 10px 6px 25px;
  color: #2a1e12;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  background: url('images/arrow.png') no-repeat -20px center / auto 14px;
  transition: all 0.15s ease-in-out;
}

nav .nav-box a:hover {
  background-position: 8px center;
  background-color: rgba(255, 255, 255, 0.5);
  color: #1a5b8c; 
  padding-left: 32px;
}

/* Right column: main content */
.main-content {
  position: relative;
  z-index: 3;
  
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
}

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

.main-content .box {
  background-color: #f7f5f0; 
  background-image: url('images/tex1_128x128_e5232d37f03bca01_14.png');
  background-position: top left;
  background-repeat: repeat;
  background-blend-mode: multiply; 
  
  padding: 10px; 
  margin: 5px 0; 
  
  border: 2px solid #000000; 
  border-radius: 12px; 
  line-height: 1.4;
  
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.05), 0 3px 0 rgba(0, 0, 0, 0.1);
}

.main-content .box a:hover {
	text-decoration: underline;
}

/* homeland grid ***************************************************** */
.homelands-grid {
  display: grid;
  gap: 0.75em;
  width: 100%;
}

.homeland-row {
  position: relative;
  display: block; 
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #000000;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  width: 100%;
}

.homeland-row:hover {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.homeland-link {
  display: grid;
  grid-template-columns: 2fr minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 2rem; 
  align-items: center; 
  padding: 0.5em 1.5em; 
  text-decoration: none;
  color: #000000;
  width: 100%;
  box-sizing: border-box;
}

.homeland-link:has(+ .server-meta-row) {
  padding-bottom: 0.3rem;
}

.homeland-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background-color: #ccc;
  z-index: 2;
}
.homeland-row.status-lobby::before { background-color: #FFA500; }
.homeland-row.status-active::before { background-color: #5cff85; }
.homeland-row.status-dormant::before { background-color: #bdc3c7; }
.homeland-row.status-finished::before { background-color: #ffc107; }

.grid-col.text-center { align-items: center; text-align: center; }
.grid-col.text-right  { align-items: flex-end;  text-align: right; }

.grid-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.grid-col.text-center { align-items: center; text-align: center; }
.grid-col.text-right  { align-items: flex-end;  text-align: right; }

.grid-col + .grid-col { position: relative; }

.grid-col + .grid-col::before {
  content: '';
  position: absolute;
  left: -1rem; 
  top: 20%;          
  height: 60%;
  width: 1px;
  background-color: rgba(22, 53, 23, 0.2);
  pointer-events: none;
}

.cell-label {
  font-size: 0.6em;
  font-weight: 700;
  color: #263E2C;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.cell-value, 
.text-large, 
.time-values {
  font-size: 0.95em; 
  color: #000000;
  white-space: nowrap;
}

.name-value {
  font-weight: bold;
  font-size: 1.1em;
  display: flex;
  justify-content: space-between; 
  align-items: center;
  width: 100%;
}

.name-value .comment-tag {
  font-size: 0.7em;
  font-weight: normal;
  padding: 1px 5px;
  display: inline-flex;
  align-items: center;
  border-color: rgba(0, 0, 0, 0.2);
  background: #fff;
}

.tech-tag {
  display: inline-block;
  font-size: 0.7em;
  font-weight: bold;
  color: #000000;
  border: 1px solid #000000;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  background: #FFFFFF;
}

.name-value .comment-tag {
  font-size: 0.7em;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
}

.val-align {
  display: flex;
  align-items: center;
  gap: 4px;
}

.location-flag {
  font-size: 1.2em;
  line-height: 1;
  text-shadow: 0 0 3px rgba(0,0,0,0.3);
  display: inline-block;
}

.server-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 4px 1rem 4px 1.5rem;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px dashed rgba(0, 0, 0, 0.05);
}

.server-comment {
  font-size: 0.7em;
  color: #555555;
  white-space: normal;
  word-break: break-word;
  flex: 1;
  min-width: 200px;
}

.server-meta-row .meta-tags {
  display: flex;
  gap: 4px;
  margin-left: auto;
}


.homeland-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.homeland-container .box-title {
  font-size: 1.1em;
  font-weight: bold;
  color: #222;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  padding: 0.2rem 0;
}

.homeland-main {
    flex: 2 1 400px;
}

.homeland-sidebar {
    flex: 1 1 280px;
}

.info-grid {
  display: flex;
  flex-direction: column;
}

.info-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px dotted #000000;
}

.info-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.90em;
}

.info-value {
  font-weight: 500;
}

.info-group.full-width {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding-top: 0.75rem;
}

.info-group:last-child {
	border-bottom: none;
}

.info-group.full-width .info-value {
  width: 100%;
  font-weight: normal;
  line-height: 1.4;
  word-break: break-word;
}

.player-sidebar-list {
    padding: 5px 0;
    line-height: 1.6;
}


.log-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.log-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 15px;
    padding: 8px 0;
    border-bottom: 1px dotted #000000;
}

.log-row:last-child {
    border-bottom: none;
}

.log-time {
    color: #555;
    font-size: 0.9em;
    white-space: nowrap;
    flex: 0 0 140px;
}

.log-text {
    word-break: break-word;
    flex: 1 1 350px;
}


.comment-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.comment-row {
  padding: 0.5rem 0; 
  border-bottom: 1px dotted #000000;
}

.comment-row:first-child {
  padding-top: 0;
}

.comment-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.comment-author {
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.comment-author:hover {
  text-decoration: underline;
}

.comment-time {
  font-size: 0.85em;
  color: #666;
  margin-left: 6px;
}

.comment-body {
  line-height: 1.4;
  color: #222;
  word-break: break-word;
}

.comment-actions {
  font-size: 0.85em;
}

.comment-actions form {
  display: inline;
}

.action-edit {
  color: #007bff;
  text-decoration: none;
  margin-right: 8px;
}

.action-delete {
  background: none;
  border: none;
  color: #ff4d4d;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.action-edit:hover,
.action-delete:hover {
  text-decoration: underline;
}


.reward-icon {
    display: inline-block;
    background-image: url('images/rewards2x.png');
    background-repeat: no-repeat;
    image-rendering: auto;
}


.comment-form-inline {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.comment-form-inline input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.comment-form-inline input[type="text"]:focus {
    border-color: #007bff;
}

.comment-form-inline .submit-btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.comment-form-inline .submit-btn:hover {
    background-color: #0056b3;
}


.selection-grid {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	justify-content: center;
	margin: 10px 0;
}

.selection-grid label:not(:has(input[type="checkbox"]:checked)) img {
    filter: grayscale(70%);
    opacity: 0.7;
    transition: filter 0.2s ease, opacity 0.2s ease;
}
.selection-grid label:has(input[type="checkbox"]:checked) img {
    filter: grayscale(0%);
    opacity: 1;
}
.selection-grid label:not(:has(input[type="checkbox"]:checked)):hover img {
    filter: grayscale(30%);
    opacity: 0.9;
}

.selection-grid label:not(:has(input[type="checkbox"]:checked)) .reward-icon {
    filter: grayscale(70%);
    opacity: 0.6;
    transition: filter 0.2s ease, opacity 0.2s ease;
}
.selection-grid label:has(input[type="checkbox"]:checked) .reward-icon {
    filter: grayscale(0%);
    opacity: 1;
}
.selection-grid label:not(:has(input[type="checkbox"]:checked)):hover .reward-icon {
    filter: grayscale(30%);
    opacity: 0.8;
}

.alert {
    padding: 12px 20px;
    margin: 15px 0;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}
.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert.danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


footer {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #3b523d;
  text-align: center;
  border-top: 3px dashed rgba(22, 53, 23, 0.2); 
}

footer .credits {
	display: inline-block;
	margin: 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);
	color: rgb(181, 195, 204);
}


/* 1200px - 901px phone desktop mode + tablet size */
@media (max-width: 1200px) and (min-width: 901px) {
  .homeland-link {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
      "name zeit"
      "loc  play";
    gap: 0.8rem 2rem;
    padding: 0.8rem 1.5rem;
  }

  .grid-col:nth-child(1) { grid-area: name; }
  .grid-col:nth-child(2) { grid-area: loc; }
  .grid-col:nth-child(3) { grid-area: play; }
  .grid-col:nth-child(4) { grid-area: zeit; }

  .grid-col,
  .grid-col.text-center, 
  .grid-col.text-right { 
    align-items: center; 
    text-align: center; 
  }

  .name-value {justify-content: center ;gap: 8px;}

  .grid-col:nth-child(1),
  .grid-col:nth-child(4) {position: relative; padding-bottom: 0.4rem;}

  .grid-col:nth-child(1)::after,
  .grid-col:nth-child(4)::after {
    content: '';
    position: absolute;
    bottom: -0.4rem;
    left: 10%;
    width: 80%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.06);
  }
  
.grid-col:nth-child(2),
.grid-col:nth-child(3) {
  padding-bottom: 0.4rem;
}

  .grid-col + .grid-col::before {display: none;}
}

/* everything under 900px */
@media (max-width: 900px) {
  body {
    font-size: 1.1em;
  }
    
  h1, h2, h3 {
    text-align: center;
    margin: 0 0 10px 0;
    line-height: 1;
  }
  h1 { font-size: 1.1em; }
  h2 { margin-top: 0.5em; font-size: 1.0em; }
  h3 { margin-top: 0.5em; font-size: 0.8em; }
    
  h1 .letter, h2 .letter, h3 .letter {
    padding: 1px 4px;
    margin: 1px;
    box-shadow: 2px 2px 1px rgba(0,0,0,.3);
  }

  .word { margin: 2px; }
  .space { width: 6px; }
  .island-body { flex-direction: column; }

  .mobile-menu-toggle {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    background-color: #dbcfbf;
    border: 2px solid #2a1e12;
    border-radius: 12px;
    padding: 10px;
    font-size: 1rem;
    font-weight: bold;
    z-index: 3;
  }
  
  .island-body {
	  gap: 1rem;
  }

  nav {
    flex: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 35px;
  }

  nav.nav-closed {
    display: none !important;
  }

  nav.nav-open {
    display: flex;
    flex-direction: column;
  }
    
  nav .nav-box { padding: 20px 10px 10px 10px; }
    
  .nav-status {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 12px;
    align-items: center;
  }

  .nav-status > div:last-child { margin-top: 0 !important; }
  nav .nav-box ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 6px;
  }

  nav .nav-box a {
    display: block;
    text-align: center;
    padding: 4px;
    background-image: none;
  }
  
	nav .nav-box a:hover {
	  padding: 4px;
	}

  .content {
    padding: 1rem;
    margin: 10px 10px 140px 10px;
  }

  .homeland-link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
      "name zeit"
      "loc  play";
    gap: 0.6rem 1rem;
    padding: 0.6rem 1rem;
  }

  .grid-col:nth-child(1) { grid-area: name; }
  .grid-col:nth-child(2) { grid-area: loc; }
  .grid-col:nth-child(3) { grid-area: play; }
  .grid-col:nth-child(4) { grid-area: zeit; }

  .grid-col,
  .grid-col.text-center, 
  .grid-col.text-right { 
    align-items: center !important; 
    text-align: center !important; 
  }

  .name-value {
    justify-content: center !important;
    gap: 8px;
  }

  .grid-col:nth-child(1),
  .grid-col:nth-child(4) {
    position: relative;
    padding-bottom: 0.3rem;
  }

  .grid-col:nth-child(1)::after,
  .grid-col:nth-child(4)::after {
    content: '';
    position: absolute;
    bottom: -0.3rem;
    left: 10%;
    width: 80%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.06);
  }

.grid-col:nth-child(2),
.grid-col:nth-child(3) {
  padding-bottom: 0.4rem;
}

  .grid-col + .grid-col::before {
    display: none !important;
  }

	.server-meta-row {
	  padding: 6px 1rem;
	  display: flex;
	  justify-content: space-between;
	  align-items: center;
	}

	.server-meta-row .meta-tags {
	  margin-left: auto;
	  display: flex;
	  gap: 4px;
	}
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column; 
        align-items: stretch;   
        padding-right: 0;
    }

    .site-header .logo-container {
        display: flex;
        justify-content: center;
        margin: 10px 0 20px 0;
    }

    .site-header .user-area {
        align-self: flex-end;  
        margin-top: 0;
        margin-bottom: 10px;
		padding-right: 20px;
    }
}

@media (max-width: 600px) {
  .homeland-link {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "name"
      "loc"
      "play"
      "zeit";
    gap: 0.25rem; 
    padding: 0.6rem 1rem;
  }

  .homeland-link .grid-col:nth-child(1) { grid-area: name; }
  .homeland-link .grid-col:nth-child(2) { grid-area: loc; }
  .homeland-link .grid-col:nth-child(3) { grid-area: play; }
  .homeland-link .grid-col:nth-child(4) { grid-area: zeit; }

  .homeland-link .grid-col:nth-child(1) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 0.3rem;
    margin-bottom: 0.1rem;
  }

  .homeland-link .grid-col:nth-child(1) .cell-label {
    display: none;
  }

  .homeland-link .name-value {
    position: relative;
    display: block;
    width: 100%;
  }

  .homeland-link .name-text {
    font-size: 1.25em;
    display: block;
    text-align: center;
    width: 100%;
  }

  .homeland-link .comment-tag {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }

  .homeland-link .grid-col:not(:first-child) {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .homeland-link .grid-col:not(:first-child) .cell-label {
    flex: 0 0 50%;
    text-align: left;
    white-space: nowrap;
    opacity: 0.7;
    font-size: 0.9rem;
  }

  .homeland-link .grid-col:not(:first-child) .cell-value,
  .homeland-link .grid-col:not(:first-child) .time-values {
    flex: 0 0 50%;
    text-align: left;
    font-size: 0.95rem;
  }

  .server-meta-row {
    padding: 6px 1rem;
  }
  
  .server-meta-row .server-comment {
	  font-size: 0.8em;
  }

  .homeland-link .grid-col::before,
  .homeland-link .grid-col::after {
    display: none;
  }
}

@font-face {
    font-family: 'FONT-Seurat Pro B';
    src: url('font.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
	
	font-display: swap;
	unicode-range: U+0020-007E, U+3040-309F, U+30A0-30FF, U+FF00-FFEF;
}