/* Use Minecraftia font for headings */
@import url('https://fonts.cdnfonts.com/css/minecraftia');

body {
    height: 100%;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #e3f2fd; /* Light blue */
    color: #222;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f5fbff; /* Very light blue for content */
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.minecraft-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.cube {
    position: absolute;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ffe9a3 60%, #fff 100%);
    border: 2px solid #e6b800;
    border-radius: 8px;
    box-shadow: 0 4px 16px #e6b80033;
    animation: floatCube 8s infinite ease-in-out;
}

.cube.c1 { left: 10vw; top: 12vh; animation-delay: 0s; }
.cube.c2 { left: 30vw; top: 25vh; animation-delay: 2s; }
.cube.c3 { left: 60vw; top: 8vh; animation-delay: 1s; }
.cube.c4 { left: 80vw; top: 18vh; animation-delay: 3s; }
.cube.c5 { left: 20vw; top: 70vh; animation-delay: 1.5s; }
.cube.c6 { left: 50vw; top: 80vh; animation-delay: 2.5s; }
.cube.c7 { left: 75vw; top: 60vh; animation-delay: 0.5s; }

@keyframes floatCube {
    0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
    50% { transform: translateY(-30px) scale(1.1); opacity: 0.8; }
}

header {
    background: rgba(255,255,255,0.6);
    text-align: left;
    padding: 2rem 2rem 2rem 1rem; /* left and right padding */
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border-bottom: 1px solid #eee;
    width: 100%;
    font-family: 'Minecraftia', 'Segoe UI', Arial, sans-serif;
    backdrop-filter: blur(4px);
    position: relative;
}

.top-welcome-title {
    background: rgba(255,255,255,0.6);
    text-align: left;
    padding: 2rem 2rem 2rem 1rem; /* left and right padding */
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border-bottom: 1px solid #eee;
    width: 100%;
    font-family: 'Minecraftia', 'Segoe UI', Arial, sans-serif;
    backdrop-filter: blur(4px);
    position: relative;

    /* The Fix: Add space on the left */
    margin-left: 300px; /* Adjust this value (e.g., 50px, 150px) until it looks right */
}

header img {
    width: 48px;
    height: 48px;
    margin-right: 1rem;
}

header h1 {
    font-family: 'Minecraftia', 'Segoe UI', Arial, sans-serif;
    font-size: 2.2rem;
    color: #ffce1a;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 1px 1px 0 #fff, 2px 2px 0 #ffce1a;
    font-weight: bold;
}

header p {
    color: #222;
    font-size: 1rem;
    margin: 0.5rem 0 0 0;
    font-weight: 600;
}

nav {
    background: #fff;
    padding: 0.5rem 2rem;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    text-align: center;
}

nav ul {
    list-style: none;
    display: inline-flex;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: #222;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

nav a:hover, nav a.active {
    color: #ffce1a;
    border-bottom: 2px solid #ffce1a;
}

main {
    flex: 1;
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

h2 {
    font-family: 'Minecraftia', 'Segoe UI', Arial, sans-serif;
    color: #ffce1a;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

section {
    margin-bottom: 2rem;
}

section ul, section ol {
    background: #f6f6f6;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255,206,26,0.05);
    color: #222;
}

a.button, section a {
    display: inline-block;
    background: #ffce1a;
    color: #222;
    font-family: 'Minecraftia', 'Segoe UI', Arial, sans-serif;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 0.5rem;
    box-shadow: 0 4px 0 #e6b800;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

a.button:hover, section a:hover {
    background: #ffe066;
    color: #222;
    box-shadow: 0 6px 12px #ffce1a44;
}

footer {
    background: rgba(255,255,255,0.7);
    border-top: 1px solid #eee;
    padding: 0.1rem 0 0.1rem 0; /* minimal vertical padding */
    color: #888;
    font-size: 0.85rem;
    font-family: 'Minecraftia', 'Segoe UI', Arial, sans-serif;
    width: 100%;
    backdrop-filter: blur(4px);
}

.footer-content {
    gap: 1rem; /* reduce spacing between sections */
}

.footer-left {
    min-width: 220px;
    margin-left: 1.5rem; /* adds gap on the left side */
}
.footer-right ul {
    margin: 0.2rem 0; /* less margin between lines */
}

.footer-cube {
    width: 40px;
    height: 40px;
}

.footer-right {
    flex: 1;
    min-width: 220px;
    text-align: right;
}

.footer-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.footer-right li {
    margin-bottom: 0.3rem;
}

.footer-right a {
    color: #ff9800;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Segoe UI', Arial, sans-serif;
    transition: color 0.2s;
}

.footer-right a:hover {
    color: #ffce1a;
}

.footer-cherry {
    font-size: 1.1em;
    vertical-align: middle;
}

footer a {
    color: #ff9800;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #ffce1a;
}

/* Server Status Card Styles */
.server-status-card {
    background: #ffa600;
    border-radius: 16px;
    width: 220px;
    padding: 18px 16px;
    margin: 20px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    font-family: 'Minecraftia', Arial, sans-serif;
    text-align: center;
    position: relative;
}
.server-status-header {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 8px;
}
.wifi-icon {
    font-size: 1.2em;
    margin-right: 4px;
}
.server-status-players {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 8px;
    color: #fff;
}
.server-status-bar {
    background: #ffd580;
    border-radius: 8px;
    height: 10px;
    width: 90%;
    margin: 0 auto 12px auto;
    position: relative;
    overflow: hidden;
}
.server-status-bar-fill {
    background: #ff7f00;
    height: 100%;
    border-radius: 8px;
}
.server-ip-btn {
    background: #ffd580;
    color: #333;
    border: none;
    border-radius: 8px;
    padding: 8px 0;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    font-size: 1em;
    margin-top: 8px;
    box-shadow: 0 2px 6px #e6b80044;
    transition: background 0.2s, box-shadow 0.2s;
}
.server-ip-btn:hover {
    background: #ffe066;
    box-shadow: 0 4px 12px #ffce1a44;
}

/* Header flex container for right-aligned server status */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 2rem;
    position: relative;
}

.header-container header {
    flex: 1;
    text-align: left;
    padding-right: 2rem;
}

.header-container .server-status-card {
    margin: 0;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Top bar layout */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 0 0 0;
    position: relative;
}

.logo-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-logo {
    width: 64px;
    height: 64px;
    margin-right: 8px;
}

.logo-header h1 {
    font-family: 'Minecraftia', 'Segoe UI', Arial, sans-serif;
    font-size: 2.1rem;
    color: #ffce1a;
    margin: 0;
    letter-spacing: 2px;
    font-weight: bold;
    text-shadow: 1px 1px 0 #fff, 2px 2px 0 #ffce1a;
}

.subtitle {
    display: block;
    font-size: 1rem;
    color: #222;
    font-weight: 600;
    margin-top: 2px;
}

.staff-pic {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 10px;
    vertical-align: middle;
}

.login-container {
            max-width: 400px;
            margin: 4rem auto;
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 4px 24px rgba(0,0,0,0.07);
            padding: 2rem;
            text-align: center;
        }
        .login-container h2 {
            font-family: 'Minecraftia', 'Segoe UI', Arial, sans-serif;
            color: #ffd600;
            margin-bottom: 1.5rem;
        }
        .login-container input {
            width: 90%;
            padding: 0.7rem;
            margin: 0.5rem 0;
            border-radius: 8px;
            border: 1px solid #eee;
            font-size: 1rem;
        }
        .login-container button {
            background: #ffd600;
            color: #222;
            font-family: 'Minecraftia', 'Segoe UI', Arial, sans-serif;
            border: none;
            border-radius: 8px;
            padding: 0.7rem 2rem;
            font-size: 1rem;
            margin-top: 1rem;
            cursor: pointer;
            box-shadow: 0 2px 0 #e6b800;
            transition: background 0.2s;
        }
        .login-container button:hover {
            background: #ffe066;
        }
        .login-container .switch-link {
            display: block;
            margin-top: 1rem;
            color: #00796b;
            text-decoration: underline;
            cursor: pointer;
        }

.login-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: #ffd600;
    color: #222;
    font-family: 'Minecraftia', 'Segoe UI', Arial, sans-serif;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 0 #e6b800;
    transition: background 0.2s;
    z-index: 10;
}
.login-btn:hover {
    background: #ffe066;
}
header {
    position: relative;
}

.copy-box {
      padding: 12px 20px;
      background: #1f1f1f;
      color: #fff;
      border: 2px solid #00ffff;
      border-radius: 8px;
      font-family: 'Segoe UI', sans-serif;
      cursor: pointer;
      transition: 0.3s;
      box-shadow: 0 0 10px #00ffff;
    }
    .copy-box:hover {
      background: #00ffff;
      color: #000;
    }

/* --- VARIABLES (OPTIONAL BUT RECOMMENDED) --- */
:root {
    --primary-color: #6a0dad; /* Deep Purple */
    --accent-color: #ffcc00;  /* Gold/Yellow */
    --dark-bg: #7a1d7a;       /* Darker purple for background boxes */
    --error-color: #cc0000;   /* Red for IP warning */
    --font-family: 'Arial', sans-serif;
}

/* --- MAIN CONTAINER STYLES --- */
.welcome-message {
    font-family: var(--font-family);
    color: #333;
    padding: 20px 25px;
    background-color: rgba(255, 255, 255, 0.85); /* Slightly transparent white box */
    max-width: 750px;
    margin: 30px auto; /* Center the block and give it space */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    line-height: 1.5;
}

/* --- HEADINGS --- */
.welcome-message h2, .welcome-message h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    margin-top: 25px;
}

.header-title {
    color: var(--accent-color);
    text-align: center;
    text-shadow: 2px 2px #555;
    margin-bottom: 5px;
    font-size: 2.2em;
}

.header-motto {
    text-align: center;
    font-style: italic;
    font-size: 1.1em;
    border-bottom: 2px solid #aaa;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* --- MOTTO BOX --- */
.motto-box {
    background-color: var(--dark-bg);
    color: white;
    padding: 10px;
    text-align: center;
    letter-spacing: 3px;
    font-weight: bold;
    margin-bottom: 20px;
    border-radius: 5px;
}

/* --- TEXT STYLES --- */
.italic-text {
    font-style: italic;
    color: #555;
    margin-top: -10px;
}

.intro-list {
    list-style-type: none;
    padding-left: 10px;
    line-height: 1.6;
}

/* --- FEATURES --- */
.feature-item {
    margin-bottom: 15px;
}

.feature-title {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.features-list {
    list-style-type: '⚡ '; /* Custom lightning bolt symbol */
    padding-left: 25px;
    margin-top: 5px;
}

/* --- CONNECTION & IP --- */
.connect-section {
    border: 3px solid var(--accent-color);
    padding: 15px;
    text-align: center;
    margin-top: 30px;
    border-radius: 8px;
}

.connect-section h2 {
    color: var(--accent-color);
    border-bottom: none;
    margin: 0 0 10px 0;
}

.ip-address {
    font-size: 1.4em;
    font-weight: bold;
}

.ip-address span {
    color: var(--error-color); /* Highlight the "soon!" warning in red */
    text-shadow: 1px 1px #000;
}

/* --- CLOSING STATEMENT --- */
.closing-statement {
    color: var(--accent-color);
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 3px dashed var(--accent-color);
}

/* --- LINKS --- */
.discord-link, .updates-link {
    color: #4CAF50; /* Green for Discord */
    text-decoration: underline;
    font-weight: bold;
}

.updates-link {
    color: var(--primary-color);
}

button {
  display: block;
  margin: 1.5rem auto 0 auto; /* top auto bottom auto centers it */
  background: linear-gradient(to right, #ff69b4, #ff00ff);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 10px #ff69b4;
  transition: transform 0.2s ease;
}

button:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  body {
    padding: 10px;
    font-size: 16px;
  }
  .banner-text {
    font-size: 24px;
    text-align: center;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
  }
}

.banner-text {
  font-family: 'Press Start 2P', cursive;
  color: #ffeb3b;
  text-shadow: 0 0 5px #ffeb3b, 0 0 10px #9c27b0;
}

.container {
      background: #1a1a1a;
      border-radius: 16px;
      padding: 24px;
      max-width: 360px;
      width: 100%;
      box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
      text-align: center;
      position: relative;
    }

    .status-dot {
      width: 12px;
      height: 12px;
      background: #00ff88;
      border-radius: 50%;
      position: absolute;
      top: 16px;
      right: 16px;
    }

    h2 {
      margin-bottom: 8px;
      font-size: 1.2rem;
    }

    .upi-id {
      font-size: 0.9rem;
      color: #ccc;
      margin-bottom: 16px;
    }

    .qr img {
      width: 180px;
      height: 180px;
      border-radius: 8px;
      box-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
    }

    .powered {
      font-size: 0.8rem;
      color: #888;
      margin-top: 16px;
    }

    .buttons {
      display: flex;
      justify-content: space-between;
      margin-top: 20px;
    }

    .buttons button {
      flex: 1;
      margin: 0 5px;
      padding: 10px;
      border: none;
      border-radius: 8px;
      font-weight: bold;
      cursor: pointer;
      transition: 0.3s;
    }

    .pay-btn {
      background: #007bff;
      color: white;
    }

    .share-btn {
      background: #00cc66;
      color: white;
    }

    .pay-btn:hover {
      background: #0056b3;
    }

    .share-btn:hover {
      background: #00994d;
    }
