/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #131626;
  z-index: -2;
}

/* Prevent image blurring */
img,
.corner,
.border .tile {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
  /* For IE */
}

@font-face {
  font-family: 'cherish';
  /* Name you'll use in CSS */
  src: url('assets/Cherish.ttf') format('truetype');
  /* Path to the font file */
  font-weight: normal;
  /* Specify the font weight */
  font-style: normal;
  /* Specify the font style */
  font-display: swap;
  /* Optional: Improves font loading behavior */
  z-index: 9999;
}

@font-face {
  font-family: '000webfont';
  src: url('assets/basiic.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
  z-index: 9999;
}
@keyframes flicker {
  0% {
    opacity: 0.27861;
  }
  5% {
    opacity: 0.34769;
  }
  10% {
    opacity: 0.23604;
  }
  15% {
    opacity: 0.90626;
  }
  20% {
    opacity: 0.18128;
  }
  25% {
    opacity: 0.83891;
  }
  30% {
    opacity: 0.65583;
  }
  35% {
    opacity: 0.67807;
  }
  40% {
    opacity: 0.26559;
  }
  45% {
    opacity: 0.84693;
  }
  50% {
    opacity: 0.96019;
  }
  55% {
    opacity: 0.08594;
  }
  60% {
    opacity: 0.20313;
  }
  65% {
    opacity: 0.71988;
  }
  70% {
    opacity: 0.53455;
  }
  75% {
    opacity: 0.37288;
  }
  80% {
    opacity: 0.71428;
  }
  85% {
    opacity: 0.70419;
  }
  90% {
    opacity: 0.7003;
  }
  95% {
    opacity: 0.36108;
  }
  100% {
    opacity: 0.24387;
  }
}
@keyframes textShadow {
  0% {
    text-shadow: 0.4389924193300864px 0 1px rgba(0,30,255,0.5), -0.4389924193300864px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  5% {
    text-shadow: 2.7928974010788217px 0 1px rgba(0,30,255,0.5), -2.7928974010788217px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  10% {
    text-shadow: 0.02956275843481219px 0 1px rgba(0,30,255,0.5), -0.02956275843481219px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  15% {
    text-shadow: 0.40218538552878136px 0 1px rgba(0,30,255,0.5), -0.40218538552878136px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  20% {
    text-shadow: 3.4794037899852017px 0 1px rgba(0,30,255,0.5), -3.4794037899852017px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  25% {
    text-shadow: 1.6125630401149584px 0 1px rgba(0,30,255,0.5), -1.6125630401149584px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  30% {
    text-shadow: 0.7015590085143956px 0 1px rgba(0,30,255,0.5), -0.7015590085143956px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  35% {
    text-shadow: 3.896914047650351px 0 1px rgba(0,30,255,0.5), -3.896914047650351px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  40% {
    text-shadow: 3.870905614848819px 0 1px rgba(0,30,255,0.5), -3.870905614848819px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  45% {
    text-shadow: 2.231056963361899px 0 1px rgba(0,30,255,0.5), -2.231056963361899px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  50% {
    text-shadow: 0.08084290417898504px 0 1px rgba(0,30,255,0.5), -0.08084290417898504px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  55% {
    text-shadow: 2.3758461067427543px 0 1px rgba(0,30,255,0.5), -2.3758461067427543px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  60% {
    text-shadow: 2.202193051050636px 0 1px rgba(0,30,255,0.5), -2.202193051050636px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  65% {
    text-shadow: 2.8638780614874975px 0 1px rgba(0,30,255,0.5), -2.8638780614874975px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  70% {
    text-shadow: 0.48874025155497314px 0 1px rgba(0,30,255,0.5), -0.48874025155497314px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  75% {
    text-shadow: 1.8948491305757957px 0 1px rgba(0,30,255,0.5), -1.8948491305757957px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  80% {
    text-shadow: 0.0833037308038857px 0 1px rgba(0,30,255,0.5), -0.0833037308038857px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  85% {
    text-shadow: 0.09769827255241735px 0 1px rgba(0,30,255,0.5), -0.09769827255241735px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  90% {
    text-shadow: 3.443339761481782px 0 1px rgba(0,30,255,0.5), -3.443339761481782px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  95% {
    text-shadow: 2.1841838852799786px 0 1px rgba(0,30,255,0.5), -2.1841838852799786px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  100% {
    text-shadow: 2.6208764473832513px 0 1px rgba(0,30,255,0.5), -2.6208764473832513px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
}
.pixel-art-container::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(18, 16, 16, 0.1);
  opacity: 0;
  z-index: 10000;
  pointer-events: none;
  animation: flicker 0.15s infinite;
}
#pixel-art-container::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 10000;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}


/* Container Styling */
#pixel-art-container {
  font-family: 'Courier New', 'font';
  position: relative;
  width: 100vw;
  /* Fill the full viewport width */
  height: 100vh;
  /* Fill the full viewport height */
  min-width: 256px;
  min-height: 256px;
  margin: 0 auto;
  background-color: #131626;
  /* Background color for your pixel art */
  overflow: hidden;
  /* Prevent overflow */
  animation: textShadow 1.6s infinite;
}


/* Corner Styling */
.corner {
  position: absolute;
  width: 32px;
  /* Width of your corner tile */
  height: 32px;
  /* Height of your corner tile */
  background-size: cover;
  /* Prevent scaling */
  flex-shrink: 0;
}

.top-left {
  top: 0;
  left: 0;
  background-image: url('../tiles/top-left.png');
  /* Replace with your corner tile */
}

.top-right {
  top: 0;
  right: 0;
  background-image: url('../tiles/top-right.png');
}

.bottom-left {
  bottom: 0;
  left: 0;
  background-image: url('../tiles/bottom-left.png');
}

.bottom-right {
  bottom: 0;
  right: 0;
  background-image: url('../tiles/bottom-right.png');
}

/* Border Containers */
.border {
  position: absolute;
  background-size: cover;
  display: flex;
  flex-wrap: nowrap;
}

.border.top,
.border.bottom {
  height: 32px;
  /* Height of your horizontal border tile */
  left: 32px;
  /* Starting after the top-left corner */
  right: 32px;
  /* Ending before the top-right corner */
}

.border.top {
  top: 0;
  background-image: url('../tiles/top-border.png');
  /* Replace with your border tile */
}

.border.bottom {
  bottom: 0;
  background-image: url('../tiles/bottom-border.png');
}

.border.left,
.border.right {
  width: 32px;
  /* Width of your vertical border tile */
  top: 32px;
  /* Starting after the top-left corner */
  bottom: 32px;
  /* Ending before the bottom-left corner */
  flex-direction: column;
}

.border.left {
  left: 0;
  background-image: url('../tiles/left-border.png');
}

.border.right {
  right: 0;
  background-image: url('../tiles/right-border.png');
}

/* Border Tile Styling */
.border .tile {
  flex: 0 0 auto;
  width: 32px;
  /* Width of your tile */
  height: 32px;
  /* Height of your tile */
  background-size: cover;
  /* Prevent scaling */
}

/* Content Styling */
.content {
  color: #e6a1cf;
  font-family: 'Courier New', 'font';
  position: absolute;
  top: 32px;
  left: 32px;
  right: 32px;
  bottom: 32px;

}

.titletext {
  font-family: 'cherish', 'font', monospace;
  text-align: center;
  color: #e6a1cf;
  font-size: 24px;
  padding-top: 60px;
  margin: auto;
  max-width: 55%;
  z-index: 2;
}

.maintext {
  font-family: 'Courier New', 'font';
  color: #e6a1cf;
  font-size: 24px;
  padding-top: 60px;
  margin: auto;
  max-width: 55%;
  z-index: 9999;
}

.maintext iframe {
  width:100%;
  height: 55vh;
  display: block;
  border: none;
}

.bottombar {
  margin-bottom: 20px;
  margin-left: 20px;
  position: fixed;
  width: 15vh;
  bottom: 10vh;
  text-align: center;
  color: rgb(124, 233, 73);
}

.smalltext {
  font-family: 'Courier New', 'font';
  text-align: center;
  color: #e6a1cf;
  font-size: 12px;
  padding-top: 60px;
  margin: auto;
  max-width: 55%;
}

.bottomtext {
  font-family: 'Courier New', 'font';
  text-align: center;
  color: #e6a1cf;
  font-size: 14px;
  max-width: 60%;
  margin: auto;
  margin-bottom: 20px;
  overflow: hidden;
  z-index: 2;
}

.sidebar {
  margin-left: 20px;
  margin-top: 20px;
  width: 50%;
  padding: 20px;
  position: absolute !important;
}

.sidebar a {
  display: block;
  color: #e6a1cf;
  padding: 10px;
  text-decoration: none;
  font-size: 18px;
}

.sidebar a:hover {
  color: #ffe6ea;
}

/* Button Base Styling */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
  font-family: 'Courier New', 'font';
  /* Ensure it matches your existing font */
}

/* Primary Button */
.btn-primary {
  background-color: #4d4d80;
  /* Medium Blue/Purple */
  color: #ffe6ea;
  /* Very Light Pink */
}

/* Primary Button Hover Effect */
.btn-primary:hover {
  background-color: #e6a1cf;
  /* Light Pink */
  color: #131626;
  /* Dark Background */
  transform: scale(1.05);
  /* Slightly enlarge on hover */
}

/* Secondary Button */
.btn-secondary {
  background-color: #131626;
  /* Dark Background */
  color: #e6a1cf;
  /* Light Pink */
  border: 2px solid #4d4d80;
  /* Optional: Adds a border matching the primary button */
}

/* Secondary Button Hover Effect */
.btn-secondary:hover {
  background-color: #4d4d80;
  /* Medium Blue/Purple */
  color: #ffe6ea;
  /* Very Light Pink */
  transform: scale(1.05);
  /* Slightly enlarge on hover */
}

/* Optional: Disabled Button Styling */
.btn:disabled {
  background-color: #4d4d80;
  color: #ffe6ea;
  opacity: 0.6;
  cursor: not-allowed;
}

/* Change color of visited links */
.maintext a:visited {
  color: #ffe6ea;
  /* Change this to your desired visited color */
}

/* Change color of links on hover */
.maintext a:hover {
  color: #e6a1cf;
  /* Change this to your desired hover color */
}

.maintext a {
  color: #4d4d80;
}

/* Content Container Styling */
.content-container {
  position: absolute;
  top: 32px;
  left: 32px;
  right: 32px;
  bottom: 32px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  z-index: 5;
}

/* Adjust Sidebar Positioning */
.content-container .sidebar {
  position: absolute;
  top: 20px;
  width: 20%;
  margin: 0;
  z-index: 3;
}

.nfty-box {
  border: 3px solid #4d4d80;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 8px;
  font-family: 'Courier New', Courier, monospace;
}

#nfty-input {
  color: #e6a1cf;
  font-size: 14px; 
  padding: 5px; 
  border: 1px solid #4d4d80;

}
/* Adjust Title and Main Text Positioning */
.content-container .titletext,
.content-container .maintext,
.content-container .bottomtext {

  z-index: 2;
}

/* Ensure titletext and maintext have appropriate spacing */
.content-container .titletext {
  margin-top: 20px;
  text-align: center;
}

.content-container .maintext {
  margin-top: 20px;
}

/* Bottom Text Positioning */
.content-container .bottomtext {
  margin-top: 40px;
  text-align: center;
  margin-bottom: 20px;
  /* Optional spacing at the bottom */
}

/* Preserve Maintext Styling */
.maintext {
  font-family: 'Courier New', 'font';
  color: #e6a1cf;
  font-size: 16px;
  line-height: 1.5;
  z-index: 2;
  /* Ensure it appears above other content */
  margin: 0 auto;
  /* Center the text */
}

/* Adjust Links in Maintext */
.maintext a {
  color: #4d4d80;
  text-decoration: none;
}

.maintext a:visited {
  color: #ffe6ea;
}

.maintext a:hover {
  color: #e6a1cf;
}

.bottomtext img {
  margin: 10px auto;
}

/* Adjust Z-Index for Overlapping Elements */
.corner,
.border {
  z-index: 1;
}

.content-container {
  z-index: 2;
}

.content-container .sidebar {
  z-index: 3;
}

.comet {
  position: relative;
  pointer-events: none;
  /* So it doesn't interfere with user interactions */
}

/* Additional Styles for Dynmap iframe */
.dynmap-container {
  margin-top: 20px;
  border: 2px solid #555;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dynmap-container iframe {
  width: 100%;
  height: 600px;
  /* Adjust height as needed */
  border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .dynmap-container iframe {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .dynmap-container iframe {
    height: 300px;
  }
}
ul { /* yea yea yea */
  list-style: none;

}
/* Outer container for grouping comments */
.comments-container {
  font-family: '000webfont', 'font', monospace;
  color: #e6a1cf;
  font-size: 18px;
  padding: 20px;
  margin: auto;
  max-width: 55%;
  z-index: 9999;
  border: 3px solid #e6a1cf; /* Border for the big container */
  border-radius: 2px; /* Rounded corners for the big container */
}

/* Individual comment box */
.comment {
  margin: 10px 0; /* Spacing between comments */
  padding: 15px;
  border: 2px solid #e6a1cf; /* Border for individual comments */
  border-radius: 1px; /* Rounded corners for comments */
  color: #e6a1cf; /* Text color */
}

/* Links inside comments */
.comment a {
  color: #e6a1cf; /* Match link color to overall theme */
}

.comment a:hover {
  color: #fff; /* Highlight link on hover */
}

.split-layout {
  position: relative;
  z-index: 2; 
  width: 60%; 
}

.split-left {
  float: left;
  width: 50%;            
  box-sizing: border-box;
  padding-right: 10px;   
}

.split-right {
  float: left;

}

.split-right img {
  max-width: 100%; 
}

/* Clear floats so content below doesn’t wrap under */
.split-layout::after {
  content: "";
  display: block;
  clear: both;
}