@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900");

* {
    margin: 0;
    padding: 0;
}

html {
  scroll-behavior: smooth;
}
/*     background: url('../images/background.png') no-repeat center center fixed;
    background-size: cover; */
body {
    font-family: 'Poppins', sans-serif;
    background: url('../images/background.png') no-repeat center center fixed;
    background-size: cover;
    /*background: linear-gradient(-45deg, #f71069, #151515, #000000);
    background-size: 400% 400%;*/
    animation: gradient 15s ease infinite;
    padding: 0;
    color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@media (max-width: 768px) {
    body {
        background: url('../images/hchat_mobile_background.png') no-repeat center center fixed;
        background-size: cover;
    }
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #22222200;
    padding: 10px 20px;
    color: white;
    margin-top: 30px;
}

.navbar-left {
    position: absolute;
    left: 20px;
    display: flex;
    align-items: center;
}

.navbar-center {
    display: flex;
    gap: 24px;
}

.navbar-center a {
    color: white;
    text-decoration: none;
    padding: 10px;
    transition: color 0.3s ease;
    text-align: center;
}

.navbar-center a:hover {
    color: #f71069;
}

.navbar-left img {
    vertical-align: middle;
}

.navbar-left a {
    float: left;
    display: block;
    color: white;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar-left a:hover {
    color: #f71069;
}

.navbar-right {
    font-size: 14px;
    color: #ccc;
}

/* Container that holds content in the center */
.container {
    display: flex;
    height: 100%;
}

.content {
    text-align: center; /* Optional: centers text within content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.center-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Keeps it centered vertically */
    width: 100%;
    padding-top: 60px; /* Optional: Add padding to prevent overlap with navbar */
    box-sizing: border-box;
    text-align: center; /* To center text content */
    color: white;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.form-container {
    max-width: 400px;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #222;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
}

.form-container h2 {
    padding-bottom: 10px;
}
.logo-large {
    margin-bottom: 40px;
    max-width: 450px;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: left;
    margin-bottom: 15px;
}

.input-group label {
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left;
}

.input-group input {
    width: 200px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

input[type="submit"] {
    background: #f71069;
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
    display: inline-block; /*CHANGED from flex */
}

input[type="submit"]:hover {
    background: #f71069;
}

.message, .error {
    margin-bottom: 15px;
}

.message {
    color: white;
}

.error {
    color: red;
}

.button-group {
    display: block;
    width: auto;
}

/*     Order Pages     */
.item-list {
    margin-bottom: 20px;
}

.item-list label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    text-align: left;
}

.center-container form {
    width: 100%;
    max-width: 400px;
}

.btn-group {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn-group a, .btn-group button {
    flex: 1;
}

.scrollable-list {
    max-height: 300px; /* Increased from 150px to 300px */
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #444;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    background-color: #2b2b2b;
    width: 100%;
}

.scrollable-list label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}

.scrollable-list input[type="number"] {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #555;
    background-color: #111;
    color: white;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.order-table th,
.order-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #222;
}

.order-table th {
    background-color: #222;
    text-align: left;
}

.order-table td:last-child,
.order-table th:last-child {
    text-align: right;
}

.timestamp {
    font-size: 0.9rem;
    color: #888;
    margin-top: -10px;
    margin-bottom: 20px;
}

/* Footer styling */
footer {
    position: relative;
    bottom: 6px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin-top: 40px;
    padding: 20px 0;
    background-color: #222;
}

footer a {
    text-decoration: none;
    color: white;
}

/* Discord Bot */
/* ---------------------------
   Home Hero Section Layout
---------------------------- */
.logo-desktop {
    width: 250px;
    display: inline-block;
}

.logo-mobile {
    height: 40px;
    display: none;
}

.logo-text {
    width: 350px;
    display: inline-block;
}

@media (max-width: 768px) {
    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: inline-block;
    }
}

.home-hero {
    height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .home-hero {
        background: url('../images/hchat_mobile_background.png') no-repeat center center fixed;
        background-size: cover;
    }
}

/* Text content on the left */
.text-section {
    max-width: 600px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.text-section h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.text-section p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #ccc;
}

/* Button Row */
.button-row {
    display: flex;
    gap: 12px;
}

/* Button Row: align side by side */
.button-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

/* Base Button Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: white;
    border: none;
    border-radius: 6px;
    height: 48px;
    min-width: 180px;
    padding: 0 24px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

/* Add To Server Button */
.home-btn {
    background-color: #f71069;
    /*background-color: #222;*/
}

.home-btn:hover {
    background-color: #c90651;
    /*background-color: #333;*/
}

/* Manage Servers Button */
.manage-btn {
    background-color: #747474;
}

.manage-btn:hover {
    background-color: #414141;
}

@media (max-width: 768px) {
    .container.home-layout {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
        height: auto;
        width: 100%;
        box-sizing: border-box;
    }

    .text-section {
        max-width: 100%;
        text-align: center;
        align-items: center;
        margin: 0 auto;
    }

    .text-section h1 {
        font-size: 28px;
    }

    .text-section p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .button-row {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .home-btn,
    .manage-btn {
        width: 100%;
        max-width: 250px;
    }
}

.main-section {
    background-color: #333;
    padding: 60px 20px;
    min-height: 100vh;
    color: white;
}

/* Features */
.features-section {
    padding: 60px 20px;
    background-color: #333; /* body background */
    text-align: center;
}

.features-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    color: white;
}

.features-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    flex-wrap: nowrap;
}

.feature-box {
    width: 300px;
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: white;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-align: center;
}

.feature-box:hover {
    transform: translateY(-5px);
    background-color: #444;
}

.feature-box h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.feature-box p {
    font-size: 16px;
    color: #ccc;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #f71069;
}

@media (max-width: 768px) {
    .features-container {
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin: 0 auto;
        width: 100%;       
        box-sizing: border-box;
    }

    .feature-box {
        width: 100%;
        max-width: 400px;
        margin: 0 auto 20px auto;
        box-sizing: border-box;
    }
}

/* Stats */
.stats-section {
    padding: 60px 20px;
    background-color: #333; /* body background */
    text-align: center;
}

.stats-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    color: white;
}

.stats-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    flex-wrap: nowrap;
}

.stats-box {
    width: 300px;
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: white;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-align: center;
}

.stats-box:hover {
    transform: translateY(-5px);
    background-color: #444;
}

.stats-box h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.stats-box p {
    font-size: 16px;
    color: #ccc;
}

.stats-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #f71069;
}

@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin: 0 auto;
        width: 100%;       
        box-sizing: border-box;
    }

    .stats-box {
        width: 100%;
        max-width: 400px;
        margin: 0 auto 20px auto;
        box-sizing: border-box;
    }
}

/* REGISTER / LOGIN */
.register-container {
    max-width: 400px;
    margin: 50px auto;
    background: #2c2c2c;
    padding: 30px;
    border-radius: 8px;
}

input[type="text"], input[type="email"], input[type="password"] {
    width: 100%; padding: 12px; margin: 10px 0;
    border: none; border-radius: 4px; background: #444; color: white;
}

input[type="submit"] {
    background: #a71df7; color: white;
    border: none; padding: 12px;
    border-radius: 4px; cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
}

input[type="submit"]:hover { background: #7e11bd; }

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: white;
    position: relative;
    user-select: none;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Hide the native checkbox */
.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Custom checkmark box */
.custom-checkbox .checkmark {
    height: 18px;
    width: 18px;
    background-color: #222;
    border: 2px solid #1d7bf7;
    border-radius: 4px;
    margin-right: 10px;
    transition: background-color 0.3s, border-color 0.3s;
    position: relative;
}

/* Show checkmark when checked */
.custom-checkbox input[type="checkbox"]:checked ~ .checkmark {
    background-color: #1d7bf7;
    border-color: #1d7bf7;
}

/* Add a tick mark using a pseudo-element */
.custom-checkbox .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Show the tick when checked */
.custom-checkbox input[type="checkbox"]:checked ~ .checkmark::after {
    display: block;
}