/* Full-page background */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'VT323', monospace;
    color: #fff;
    background-color: #000;
    image-rendering: pixelated;
}

/* Responsive fallback: on small screens, use cover and disable fixed attachment
   so the background stays visually pleasing and doesn't become tiny */
@media (max-width: 900px), (max-height: 700px) {
    body, html {
        background-size: cover;          /* fill the viewport on small screens */
        background-position: center top; /* prefer top alignment on narrow viewports */
        background-attachment: scroll;   /* mobile browsers often do not support fixed */
    }
}

/* Center container */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Logo */
.logo {
    width: 250px;
    height: auto;
    margin-bottom: 40px;
    image-rendering: pixelated; /* pixel-art style */
    filter: drop-shadow(15px 15px 12px rgb(0, 0, 0));

    animation: zoom 3s ease-in-out infinite alternate;
    transform-origin: center center;
}

/* Keyframes for zoom in/out */
@keyframes zoom {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Servers container */
.servers {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Individual server cards */
.server-card {
    background: #1a1a1a;
    border: 4px solid #ffcc00;
    padding: 20px;
    width: 220px;
    text-align: center;
    image-rendering: pixelated;
    font-size: 12px;
    box-shadow: 0 0 0 2px #000 inset, 4px 4px 0 #333;
    border-radius: 4px;
}

.server-card:hover {
    background: #303030;
}

/* Emphasized server name (larger, more contrast, small badge-like styling) */
.server-name {
    display: inline-block;
    font-weight: 900;
    color: #ffdd55;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 22px; /* increased size */
    padding: 6px 10px;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.06));
    box-shadow: 0 2px 0 rgba(0,0,0,0.6);
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,204,0,0.15);
}

/* Hover: bright yellow background with black text for clear CTA */
.server-name:hover {
    color: #000 !important;
    background: #ffcc00 !important; /* yellow */
    transform: translateY(-1px);
}

.server-info {
    margin: 4px 0;
    color: #ddd;
    font-size: 16px;
}

/* Description shown in a distinct section at the bottom of the card */
.server-description {
    margin-top: 12px;
    padding: 10px;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.04);
    border-radius: 3px;
    color: #d7d7d7;
    text-align: left;
    font-size: 13px;
    line-height: 1.3;
    max-height: 160px; /* prevent cards from growing too large */
    overflow: auto;
}

/* Markdown element adjustments inside description */
.server-description p {
    margin: 6px 0;
}
.server-description a {
    color: #9ad;
    text-decoration: underline;
}
.server-description ul {
    margin: 6px 0 6px 18px;
}
.server-description strong, .server-description b {
    color: #fff;
}

.error {
    color: red;
    font-weight: bold;
}

/* Section placed below the main content for scrolling test */
.below-content {
    max-width: 900px;
    margin: 40px auto 120px auto;
    padding: 24px;
    background: rgba(0,0,0,0.85);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 6px;
    color: #eaeaea;
    line-height: 1.6;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.below-content h2 {
    margin-top: 0;
    color: #ffd84d;
}

.config-desc {
    font-weight: 700;
    display: block;
    text-align: center;
    width: 100%;
    margin: 0 0 6px 0;
}

.server-unavailable {
    font-size: 20px;
    font-weight: bold;
    color: #44ff0f;
    display: inline-block;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.links-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
}

.social-links {
    display: flex;
    gap: 30px;
}

.social-links img {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    transition: transform 0.2s, filter 0.2s;
    filter: drop-shadow(0 6px 6px rgba(0,0,0,0.9));
}

.social-links img:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 8px 12px rgba(0,0,0,1));
}

.launched-info {
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 4px;
}
