:root {
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    width: 100%;
    background: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    color: #fff;
}

#status-box {
    width: 600px;
    background: rgba(128, 128, 128, 0.4);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#header {
    display: flex;
    justify-content: center;
    align-items: center;
}

#host {
    font-size: 28px;
    font-weight: bold;
}

#server-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

#performance-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

#server-status {
    padding: 4px;
    border-radius: 6px;
    font-weight: bold;
}

.status {
    color: #fff;
}

.status.online {
    background: #4caf50;
}

.status.offline {
    background: #f44336;
}

.status.unknown,
.tps.unknown,
.mspt.unknown,
.ping.unknown {
    background: gray;
}

.ping {
    font-weight: bold;
}

.tps.exceptional,
.mspt.exceptional,
.ping.exceptional {
    color: #4caf50;
}

.mspt.good,
.ping.good {
    color: #8bc34a;
}

.tps.acceptable,
.mspt.acceptable,
.ping.acceptable {
    color: #ffeb3b;
}

.mspt.tolerable,
.ping.tolerable {
    color: #ff9800;
}

.tps.poor,
.mspt.poor,
.ping.poor {
    color: #f44336;
}

#player-count,
#tps,
#mspt,
#cpu-text,
#ram-text,
#version-text,
#protocol-text {
    font-weight: bold;
}

#motd-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#motd-text {
    background: rgba(0, 0, 0, 0.75);
    font-size: 18px;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 8px;
    white-space: pre-line;
}

#technical-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

#players-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    justify-content: center;
}

.player {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player img {
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.player a {
    color: inherit;
    text-decoration: none;
    font-size: 18px;
}