* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 40px 20px;
}

/* Page title */
.page-title {
    color: #e63946; /* red */
    font-size: 36px;
    margin-bottom: 10px;
}

/* Headline */
.headline {
    font-size: 20px;
    font-weight: normal;
    margin-bottom: 40px;
    color: #ddd;
}


/* Squares container */
.container {
    display: grid;
    grid-template-columns: repeat(4, 220px);
    gap: 20px;
    justify-content: center;
}

/* Individual square */
.square {
    background: #111;
    border: 2px solid #333;
    border-radius: 10px;
    height: 240px;
    padding: 16px;

    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;

}

a.square {
    text-decoration: none;
    color: inherit;   /* keeps text white */
}
.square:hover {
    transform: translateY(-5px); /* lifts the box slightly */
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.5); /* green glow */
    border-color: #2ecc71; /* optional border color change */
    cursor: default;
}



.square.offline:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(204, 46, 46, 0.5); /* green glow */
    border-color: #cc2e2e; /* optional border color change */
    cursor: not-allowed;
    opacity: 0.4;
}

/* Image */
.square img {
    max-width: 100%;
    max-height: 110px;
    object-fit: contain;
}

/* Status row */
.status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

/* Green dot */
.dot {
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.dot.red {
    background-color: #e63946;
}

/* Status text */
.label {
    font-size: 14px;
}

.label.online {
    color: #2ecc71;
}

/* Description text */
.description {
    margin-top: 10px;
    font-size: 13px;
    color: #bbb;
    line-height: 1.4;
}

.serverhead {
    margin-top: 10px;
    font-size: 14px;
    color: #bbb;
    line-height: 1.4;
    flex-wrap: nowrap;
}
