/* CSS Reset for cross-browser consistency */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #111111;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 600px;
    padding: 15px;
    text-align: center;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.status-card {
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 600px;
}

.status-card h1 {
    font-size: 1em;
    font-weight: 600;
    color: #bb86fc;
    margin: 0 0 10px;
    text-align: center;
}

.map-container {
    margin: 10px 0;
}

.map-container img#map-image {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #bb86fc;
}

.server-info {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
    text-align: left;
    margin: 10px 0;
    font-size: 0.95em;
    color: #b0b0b0;
}

.server-info div {
    padding: 8px;
    background-color: #222222;
    border-radius: 4px;
}

.server-info .label {
    font-weight: 600;
    color: #e0e0e0;
}

.status-circle {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.status-circle.online {
    background-color: #00ff88;
    animation: pulse 2s infinite;
}

.status-circle.offline {
    background-color: #ff5555;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.connect-button, .donate-button {
    display: block;
    padding: 8px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95em;
    margin-top: 10px;
    transition: background-color 0.2s ease-in-out;
}

.connect-button {
    background-color: #bb86fc;
    color: #111111;
}

.connect-button:hover {
    background-color: #9f5ae5;
}

.donate-button {
    background-color: #ffd700;
    color: #111111;
}

.donate-button:hover {
    background-color: #e6c200;
}

.support-section {
    margin: 30px 0 20px 0;
}

.support-section h3 {
    color: #bb86fc;
    font-size: 0.95em;
    margin-bottom: 8px;
}

.logos {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.support-logo {
    max-width: 60px;
    height: auto;
}

footer {
    font-size: 0.75em;
    color: #666666;
    text-align: center;
    padding: 10px 0;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        max-width: 90%;
        padding: 10px;
    }

    .status-card {
        max-width: 100%;
    }

    .server-info {
        grid-template-columns: 80px 1fr;
        font-size: 0.9em;
    }

    .connect-button, .donate-button {
        padding: 7px;
        font-size: 0.9em;
    }

    .support-logo {
        max-width: 50px;
    }

    .map-container img#map-image {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }

    .status-card {
        padding: 10px;
    }

    .server-info {
        grid-template-columns: 70px 1fr;
        font-size: 0.85em;
        gap: 8px;
    }

    .server-info div {
        padding: 6px;
    }

    .connect-button, .donate-button {
        padding: 6px;
        font-size: 0.85em;
    }

    .support-logo {
        max-width: 40px;
    }

    .support-section h3 {
        font-size: 0.9em;
    }

    .map-container img#map-image {
        max-height: 200px;
    }
}

/* Cross-browser compatibility */
@-webkit-keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

@-moz-keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}