@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --bg-primary: #f0f4f8;
    --bg-secondary: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #34495e;
    --accent-blue: #3498db;
    --accent-green: #2ecc71;
    --accent-red: #e74c3c;
    --border-light: #e0e6ed;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary), #e9ecef);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

h1 {
    color: var(--text-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
}

.server {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-light);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 500px;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.server:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.server h2 {
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 15px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1.8rem;
}

.server p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 400;
}

.status-online {
    color: var(--accent-green);
    font-weight: 600;
}

.status-offline {
    color: var(--accent-red);
    font-weight: 600;
}

#java-motd span, #bedrock-motd span {
    font-family: 'Courier New', monospace;
    color: var(--accent-blue);
    white-space: pre-wrap;
}

footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 15px;
    margin-top: auto;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

footer a {
    color: #3498db;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #2980b9;
    transform: scale(1.05);
}

footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    animation: moveBackground 10s linear infinite;
}

footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

@keyframes moveBackground {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    footer {
        padding: 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 800px) {
    main {
        flex-direction: column;
        gap: 20px;
    }

    .server {
        width: 90%;
        max-width: 500px;
    }
}

div:where(.swal2-container) .swal2-html-container {
    line-height: 32px !important;
}