@font-face {
    font-family: 'rubik_dirtregular';
    src: url('/public/font/rubikdirt-regular-webfont.woff2') format('woff2'),
         url('/public/font/rubikdirt-regular-webfont.woff') format('woff');
         
    font-weight: normal;
    font-style: normal;
}

@media (max-width: 1440px) {
    .custom-navbar .navbar-brand img {
        height: 52px;
    }

    .custom-navbar .navbar-brand span {
        font-size: 1.7rem;
    }
}

@media (max-width: 1080px) {
    .custom-navbar .navbar-brand img {
        height: 48px;
    }

    .custom-navbar .navbar-brand span {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .server-panel {
        margin-left: auto;
        margin-right: auto;
        width: 90%;
    }
}

body {
    background-color: #000000;
    background-image: url('/public/img/background.webp'); /* Add your page background image here */
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    color: #7d7d7d !important;
    z-index: 1; /* Ensure background image is behind particles */
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1; /* Ensure particles are above background image */
}

.card {
    background-color: rgba(0, 0, 0, 0) !important;
    border: none !important;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.container {
    max-width: 1200px;
    margin: auto;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.0); /* Make the container fully transparent */
    border-radius: 10px;
    flex: 1;
    position: relative;
    z-index: 2; /* Ensure container is above particles */
}

.header {
    background-color: #343a40;
    color: white;
    padding: 15px;
    text-align: center;
}

.banner {
    text-align: center;
    margin-bottom: 20px;
}

.server-panel {
    border: none;
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    background-size: cover; /* Ensure the background image covers the entire panel */
    background-position: center; /* Center the background image */
}

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

.server-panel .card-img-top {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.server-panel .card-body {
    padding: 15px;
    text-align: center;
    font-family: 'rubik_dirtregular', sans-serif;

    /* Lighter gradient overlay for better visibility of background */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
                url('/public/img/ServerPanel1.webp') center/cover no-repeat !important;

    backdrop-filter: blur(5px); /* slight blur */
    border: 1px solid rgba(255, 255, 255, 0.1);

    color: #e0e0e0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}


.server-panel .card-title {
    font-size: 1.1rem;
    font-weight: normal;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}



.server-panel h5 {
    margin-top: 10px;
    font-size: 1.25rem;
    color: #c3c3c3;
    font-family: 'rubik_dirtregular', sans-serif;
}

.server-status {
    font-weight: normal;
    margin-bottom: 10px;
}

.status-online {
    color: green;
}

.status-offline {
    color: red;
}

.discord-widget {
    text-align: center;
    margin-top: 20px;
}

.footer {
    text-align: center;
    padding: 10px;
    background-color: #343a40;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 4; /* Ensure footer is above everything */
}

.server-logo {
    max-width: 100px;
    max-height: 100px;
    display: block;
    margin: 0 auto;
}

#server-container {
    margin-bottom: 100px;
}

.server-ip {
    cursor: pointer;
    position: relative;
}

.server-ip::after {
    content: 'Click to copy';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    color: #fff;
    padding: 5px;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
}

.server-ip:hover::after {
    opacity: 1;
}

.custom-tooltip {
    position: absolute;
    background-color: #000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    z-index: 1000;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0.9;
}


.custom-navbar {
    background-color: rgba(0, 0, 0, 0.85);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    position: sticky;
    top: 0;
    z-index: 10;
}

.custom-navbar .navbar-brand span {
    font-family: 'rubik_dirtregular', sans-serif;
    color: #ffffff;
    font-size: 2rem;
    letter-spacing: 1px;
}

.custom-navbar .navbar-brand img {
    height: 60px;
    width: auto;
    max-height: 64px;
    vertical-align: middle;

}

.custom-navbar .nav-link {
    color: #c3c3c3 !important;
    font-size: 1.1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    transition: color 0.3s ease;
}

.custom-navbar .nav-link:hover {
    color: #fff !important;
    text-shadow: 0 0 8px #0ff; /* light glow */
}

.custom-navbar .nav-link.active {
    color: #fff !important;
    font-weight: bold;
}

.modal-body iframe {
    max-height: 80vh;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    transform: translateY(-10px);
}
.modal.show .modal-dialog {
    transform: translateY(0);
}

.navbar-shrink .navbar-brand img {
    height: 48px !important;
}

.back-to-top {
    position: fixed;
    bottom: 60px;
    right: 30px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 20px;
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: none;
    transition: opacity 0.3s, transform 0.3s;
}

.back-to-top:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}


.badge-success {
    animation: pulse 1.5s infinite;
}

.badge-danger {
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.badge-danger {
    background-color: #dc3545;
    color: #fff;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0); }
}

h1, h2 {
  text-align: center;
  margin-top: 20px;
  color: #ffffff;
}

