:root {
  font-size: 20px;
  --bg-gradient: rgba(30, 20, 60, 0);
  --nav-bg: rgba(0, 38, 255, 0.555);
  --accent-purple: rgba(130, 94, 230, 0.25);
  --accent-blue: rgba(53, 56, 235, 0.26);
  --text-color: #f3f3f3;
  --shadow-light: rgba(130, 94, 230, 0.18);
  --shadow-dark: rgba(31, 38, 135, 0.37);
  --modal-bg: rgba(30, 20, 60, 0.92);
  --text-stroke: 0.03rem #3804f5;
  --text-shadow: 0 0.15rem 0.4rem #000;
}

@media (max-width: 767px) {
  :root {
    font-size: 16px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  :root {
    font-size: 18px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
}

body {
  background: linear-gradient(120deg, #b80992, #07376b, #165009 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-color);
  font-family: Arial;
}

main {
  flex: 1;
}

.version-heading {
  color:#002df7;
}

div.container {
  max-width: 100%;
}

.navbar {
  height: 75px;
  background: rgba(34, 37, 38, 0.95);
}

@media (max-width: 991px) {
  .navbar {
    height: auto;
  }
  
  .navbar-brand {
    position: relative;
    left: 0;
  }
  
  .navbar-brand img {
    height: 35px;
  }
}

@media (min-width: 992px) {
  .navbar-brand {
    position: absolute;
    left: 250px;
  }
  
  .navbar-brand img {
    height: 50px;
    margin-right: 10px;
    left: relative;
  }

  .navbarlist {
    position: absolute;
    right: 250px;
  }
}

@media (min-width: 992px) and (max-width: 1399px) {
  .navbar-brand {
    left: 100px;
  }
  
  .navbarlist {
    right: 100px;
  }
}

@media (min-width: 1400px) and (max-width: 1799px) {
  .navbar-brand {
    left: 150px;
  }
  
  .navbarlist {
    right: 150px;
  }
}

.navbar-nav {
  gap: 10px;
}

.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
  max-width: 1000px;
}

.image-gallery img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}

.image-gallery img:hover {
  transform: scale(1.05);
}

.page-content.blurred {
  filter: blur(8px);
  transition: filter 0.3s ease;
}

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 100000;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.serverlist {
  background: var(--text-shadow);
  color: var(--text-color);
  border-radius: 8px;
  padding: 12px 20px;
  margin: 8px 0;
  gap: 8px;
  display: none;
  flex-direction: column;
}
.serverlist.active {
  display: flex;
}
.serverlist li {
  list-style: none;
  margin: 4px 0;
}
.serverlist li span.list {
  font-size: 0.9rem;
  color: #00a2ff;
}

.hero {
  background: url('/assets/server/Spawn.png') right/cover no-repeat;
  color: #fff;
  position: relative;
  margin-bottom: 30px;
  min-height: 586px;
  background-size: 1193px 586px !important;
  background-position: right center !important;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 60px;
}

@media (max-width: 767px) {
  .hero {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 300px;
    padding: 40px 15px;
    background-size: cover !important;
    justify-content: flex-start;
    text-align: left;
  }
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(34, 37, 38, 0.479);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.server-ip {
  font-size: 1.3rem;
  background: rgba(0, 0, 0, 0.3);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 12px;
  margin-top: 10px;
  font-weight: 500;
  letter-spacing: 1px;
}

@media (max-width: 767px) {
  .server-ip {
    font-size: 1rem;
    word-break: break-all;
  }
}

.project-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-list li {
  margin: 12px 0;
  font-size: 1.12rem;
}

@media (max-width: 767px) {
  .project-list li {
    font-size: 1rem;
  }
}

.project-list a {
  color: #3ecf8e;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.project-list a:hover {
  color: #fff;
}

.site-footer {
  background: #232526;
  color: #d2d2d2;
  padding: 15px 0 0 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  max-width: 90%;
  margin: 0 auto;
  gap: 20px;
}

.footer-center {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.footer-left img {
  height: 32px;
  width: auto;
  max-width: 100%;
  vertical-align: middle;
  margin-right: 8px;
}

.footer-right {
  margin-right: 5%;
}

.footer-left {
  margin-left: 5%;
  align-items: center;
  min-width: 0;
}

@media (max-width: 767px) {
  .footer-left {
    margin-left: 0;
    justify-content: center;
  }

  .footer-right {
    margin-right: 0;
    text-align: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .footer-left {
    margin-left: 3%;
  }

  .footer-right {
    margin-right: 3%;
  }

  .social-icons a {
    margin-right: 20px;
  }
}

.social-icons a {
  color: #7289da;
  margin-right: 30px;
  font-size: 1rem;
}

@media (max-width: 767px) {
  .social-icons a {
    margin-right: 0;
  }
}

.theme-toggle {
  cursor: pointer;
  font-size: 1.4rem;
  margin-left: 15px;
  background: none;
  border: none;
  color: var(--text-color);
}

@media (max-width: 767px) {
  .theme-toggle {
    font-size: 1.2rem;
    margin-left: 10px;
  }
}

.list {
  font-size: 0.9rem;
  color: #00a2ff;
  color:#07376b;
}

.contact-form {
  text-align: center;
  padding-top: 50px;
}

.server form {
  max-width: 600px;
  margin: 20px auto;
  background: rgba(34, 37, 38, 0.85);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 20px var(--shadow-dark);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.server form label {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 5px;
  display: block;
  color: var(--text-color);
}

.server form input,
.server form textarea {
  width: 100%;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  font-size: 1rem;
  outline: none;
  transition: all 0.2s ease-in-out;
  font-family: inherit;
  -webkit-text-fill-color: #ffffff; /* Fix for iOS/Safari */
}

.server form input:focus,
.server form textarea:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple);
  background: rgba(255,255,255,0.25);
  color: #ffffff;
}

.server form input::placeholder,
.server form textarea::placeholder {
  color: rgba(255,255,255,0.7);
  opacity: 1; /* Fix for Firefox */
}

.server form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Reply preview styling */
.reply-preview {
  font-size: 0.9rem;
}

.reply-preview hr {
  margin: 0.5rem 0;
  opacity: 0.3;
}

.reply-preview .preview-body {
  font-family: monospace;
  font-size: 0.85rem;
  line-height: 1.5;
}

.d-flex.gap-2 {
  gap: 0.5rem;
}

.flex-grow-1 {
  flex-grow: 1;
}

.server form button {
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  background: var(--accent-purple);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

.server form button:hover {
  background: var(--accent-blue);
  box-shadow: 0 0 15px var(--accent-blue);
}

@media (max-width: 767px) {
  .server form {
    padding: 20px;
    margin: 15px;
  }
}


[data-theme='light'] body {
  background: linear-gradient(120deg, #ff00f2, #0864c5, #239908 100%);
  color: #222;
}

[data-theme='light'] .navbar,
[data-theme='light'] .navbar-brand,
[data-theme='light'] .nav-link,
[data-theme='light'] .serverlist,
[data-theme='light'] .site-footer {
  background: #fff;
  color: #000000;
}

[data-theme='light'] .hero-overlay {
  background: rgba(0, 0, 0, 0.199);
}

[data-theme='light'] .project-list,
[data-theme='light'] .server {
  color: #ffffff;
}

[data-theme='light'] .list {
  color: #1504ff;
}

[data-theme='light'] .project-list a:hover {
  color: #eeff00;
}

/* Reply chain styling */
.reply-chain {
  background: rgba(0, 0, 0, 0.2);
  border-left: 3px solid var(--accent-purple);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.reply-chain h6 {
  color: var(--text-color);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.reply-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  border-left: 2px solid rgba(130, 94, 230, 0.5);
}

.reply-item:last-child {
  margin-bottom: 0;
}

.reply-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.reply-header strong {
  color: rgba(130, 94, 230, 1);
  font-size: 0.9rem;
}

.reply-header .badge {
  font-size: 0.75rem;
}

.reply-message {
  color: var(--text-color);
  margin-top: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.5;
}