body {
    font-family: Arial, sans-serif;
    background-color: #1e1e2e;
    color: #E4E4E6;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.content-container {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    overflow-y: auto;
}

.container {
    width: 90%;
    margin: auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.header h1 {
    margin: 0;
}

.header .buttons {
    display: flex;
    gap: 10px;
}

.server-browser {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.server-browser .server-card {
    background-color: #2e2e4e;
    padding: 20px;
    border-radius: 10px;
    width: calc(33.333% - 20px);
    box-sizing: border-box;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.server-browser .server-card .content {
    background: rgba(46, 46, 78, 0.9);
    padding: 20px;
    border-radius: 10px;
}

.server-browser .server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.server-browser .server-card h3, 
.server-browser .server-card p {
    margin: 10px 0;
}

.server-browser .server-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center; /* Center the text */
    font-weight: bold;  /* Make the text bold */
}

.server-browser .server-card p {
    color: #b3b3b3;
    font-size: 0.9rem;
}

.server-browser .server-card .tag {
    display: inline-block;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 30px;
    background: linear-gradient(135deg, #FF3131, #FF3131);
    color: #e2e8f0;
    padding: 5px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    border: 1px solid #FF3131;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 0.8rem;
    margin: 3px;
    text-align: center;
}

.server-browser .server-card .tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.server-browser .server-card .tag.active {
    background: linear-gradient(135deg, #67C656, #67C656);
    border-color: #67C656;
}

.server-browser .server-card .tag.placeholder {
    background: transparent;
    border: 1px dashed #555;
    color: #555;
    min-width: 60px;
    height: 30px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.server-browser .server-card .button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.server-browser .server-card .button-container button,
.server-browser .server-card .button-container a {
    flex: 1;
    margin-right: 5px;
}

.server-browser .server-card .button-container button:last-child,
.server-browser .server-card .button-container a:last-child {
    margin-right: 0;
}

.server-browser .server-card a {
    display: inline-block;
    margin-top: 10px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.pagination button {
    background-color: #2e2e4e;
    border: none;
    color: #ffffff;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    min-width: 40px;
    text-align: center;
}

.pagination button:hover {
    background-color: #444466;
}

@media (max-width: 768px) {
    .server-browser .server-card {
        width: calc(50% - 20px);
    }

    .pagination button {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .server-browser .server-card {
        width: 100%;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header .buttons {
        flex-direction: column;
        gap: 5px;
    }

    .pagination button {
        padding: 6px;
        font-size: 0.9em;
    }

    .container {
        width: 100%;
        padding: 0 10px;
    }

    .mb-4.flex {
        flex-direction: column;
    }

    .mb-4.flex .flex {
        width: 100%;
    }

    .mb-4.flex .flex div {
        width: 100%;
        margin-bottom: 10px;
    }

    .mb-4 .flex-wrap {
        flex-direction: column;
    }
}

@media (max-width: 758px) and (min-width: 469px) {
    .flex-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .flex-wrap > div,
    .flex-wrap select {
        width: 100%;
    }

    .mb-4.flex .flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .mb-4.flex .flex > div {
        width: 100%;
        margin-bottom: 10px;
    }

    .mb-4.flex .flex select {
        width: 100%;
    }

    .mb-4.flex label {
        width: 100%;
        text-align: left;
    }
}

.slick-slide {
    margin: 0 10px;
}

.slick-prev, .slick-next {
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 30px;
    height: 30px;
}

.slick-prev {
    left: -15px;
}

.slick-next {
    right: -15px;
}

.slick-prev:before, .slick-next:before {
    font-size: 30px;
    color: white;
}

.slick-dots li button:before {
    color: #ffffff;
}

.server-item h3,
.server-item p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    width: 100%;
    display: block;
}

.server-item h3 {
    max-height: 3em;
    line-height: 1.5em;
    word-wrap: break-word;
    text-align: center; /* Center the text */
    font-size: 1.5rem;  /* Increase font size */
    font-weight: bold;  /* Make the text bold */
    color: #ffffff;     /* Change text color */
}

.server-item {
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.carousel {
    position: relative;
    max-width: 100%;
    margin: 20px auto;
}

.carousel .server-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #1F2937;  /* Different color for bumped servers */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

.carousel .server-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.carousel .server-item h3 {
    color: #ffffff;  /* Lighter text color for bumped servers */
    text-align: center; /* Center the text */
    font-size: 1.5rem;  /* Increase font size */
    font-weight: bold;  /* Make the text bold */
}

.carousel .server-item p {
    color: #ffffff;  /* Lighter text color for bumped servers */
}

.carousel .server-item a {
    color: #88c0d0;  /* Highlight color for links */
    text-decoration: underline;
}

.carousel .server-item a:hover {
    color: #81a1c1;  /* Darker highlight color on hover */
}

.paginationButton {
    cursor: pointer;
    padding: 5px 10px;
    margin: 0 4px;
    background-color: #4a5568;
    color: #fff;
    border: none;
    border-radius: 3px;
}

.paginationButton.active {
    background-color: #2c5282;
}

.ellipsis {
    padding: 5px 10px;
    color: #bbb;
}

#singleServerContainer {
    background-color: #2e2e4e;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

input[type="text"],
input[type="number"],
input[type="url"],
input[type="search"],
select,
textarea {
    background-color: #3a3a3a;
    color: #ffffff !important;
    border: 1px solid #555;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input[type="search"]::placeholder {
    color: #ffffff !important;
}

select {
    background-color: #3a3a3a;
    color: #ffffff !important;
}

select option {
    background-color: #3a3a3a;
    color: #ffffff !important;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
    border-color: #6c757d;
    outline: none;
}

button,
input[type="submit"],
#searchButton {
    background-color: #5865F2;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover,
input[type="submit"]:hover,
#searchButton:hover {
    background-color: #4856C5;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background-color: #2d3748;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.search-form input,
.search-form select {
    flex: 1;
    margin-bottom: 10px;
    max-width: calc(50% - 10px);
}

.search-form input[type="search"] {
    flex: 2;
    max-width: calc(100% - 90px);
}

.search-form button {
    flex: none;
    max-width: 100px;
    margin: 0;
}

.server-item:hover {
    transform: translateY(-5px);
}

.server-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.server-item p {
    margin: 0.25rem 0;
}

.server-item .actions {
    margin-top: 10px;
}

#serverFormElement, #singleServerContainer {
    background-color: #2e2e4e;
    color: #ccc;
    padding: 20px;
    border-radius: 8px;
}

#searchInput {
    background-color: #3a3a3a;
    color: #ffffff !important;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    border: 1px solid #555;
    autocomplete: "off";
}

#searchInput::placeholder {
    color: #ffffff !important;
}

#searchButton {
    background-color: #5865F2;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#searchButton:hover {
    background-color: #4856C5;
}

#toggleConfettiButton {
    padding: 5px 10px;
    font-size: 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 5px;
}

.tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.tag {
    display: inline-block;
    background: #4A5568; /* Grey background */
    color: #E2E8F0; /* Light text color */
    padding: 5px 10px;
    border-radius: 5px;
    margin: 2px;
    font-size: 0.75rem;
    border: 1px solid #2D3748; /* Darker border color */
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    transition: background 0.3s, color 0.3s; /* Smooth transition */
}

.tag:hover {
    background: #2D3748; /* Darker background on hover */
    color: #CBD5E0; /* Lighter text color on hover */
}

.tag.active {
    background: linear-gradient(135deg, #67C656, #67C656);
    border-color: #67C656;
}

.tag.placeholder {
    background: transparent;
    border: 1px dashed #718096;
    color: #718096;
    min-width: 60px;
    height: 30px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

a.no-underline {
    text-decoration: none;
}

a.no-underline:hover {
    text-decoration: none;
}

.bg-blue-500:hover {
    background-color: #4299e1;
}

.bg-blue-500 {
    background-color: #3182ce;
}

/* New Styles for Bumped Server Cards */
.server-ad-item {
    background-color: #2e334d; /* Subtle blue-grey for a sleek look */
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    margin: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
}

.server-ad-item:hover {
    transform: scale(1.05); /* Slight enlargement on hover for interactivity */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.server-ad-item h3 {
    font-size: 1.5rem; /* Larger title for emphasis */
    margin-bottom: 8px; /* Optimized spacing */
}

.server-ad-item p {
    font-size: 0.9rem; /* Smaller font for details */
    color: #b3b3b3; /* Light grey for secondary information */
    margin-bottom: 12px; /* More space before the call-to-action */
}

.server-ad-item .bio {
    color: #e2e8f0;
    margin-bottom: 10px; /* Space between bio and tags */
    height: 100px; /* Fixed height for bio */
    overflow: hidden; /* Hide overflow content */
}

.server-ad-item .tags {
    margin-bottom: 12px; /* Space between tags and call-to-action */
}

.tag {
    display: inline-block;
    background: linear-gradient(135deg, #FF3131, #FF3131);
    color: #e2e8f0;
    padding: 5px 10px;
    border-radius: 20px;
    margin: 3px;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    border: 1px solid #FF3131;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.server-ad-item .tag.placeholder {
    background: transparent;
    border: 1px dashed #555;
    color: #555;
}

.server-ad-item a {
    display: block;
    text-decoration: none;
    text-align: center;
    background-color: #5865F2; /* Discord blue for brand consistency */
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.server-ad-item a:hover {
    background-color: #4856C5; /* Darker blue on hover */
}

/* New Styles for Server Table */
.server-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.server-table td {
    padding: 5px;
    border-bottom: 1px solid #444;
    color: #b3b3b3;
}

.server-table td:first-child {
    font-weight: bold;
    color: #e2e8f0;
}

/* Tags container grid layout */
.tags-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-top: 10px;
}

.server-bio {
    color: #b3b3b3;
    font-size: 0.9rem;
    margin-bottom: 10px;
    height: 100px; /* Fixed height for bio */
    overflow: hidden; /* Hide overflow content */
}
#backToTop {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: #333; /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 10px; /* Some padding */
    border-radius: 50%; /* Rounded corners to make it circular */
    font-size: 18px; /* Increase font size */
    width: 40px; /* Fixed width */
    height: 40px; /* Fixed height */
    text-align: center; /* Center the text */
    line-height: 20px; /* Adjust line height */
}

#backToTop:hover {
    background-color: #555; /* Add a dark-grey background on hover */
}

