body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000000;
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    position: relative;
}

body::before, body::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}
body::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ffffff, transparent 60%);
    top: -10%;
    left: -10%;
    animation: drift-one 25s infinite alternate ease-in-out;
}
body::after {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #ffffff, transparent 60%);
    bottom: -15%;
    right: -15%;
    animation: drift-two 30s infinite alternate ease-in-out;
}
@keyframes drift-one {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(100px, 80px) rotate(60deg); }
}
@keyframes drift-two {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(-120px, -60px) rotate(-70deg); }
}

header, footer {
    position: fixed;
    z-index: 10;
    padding: 30px;
}
header { top: 0; left: 0; }
footer { bottom: 0; right: 0; }

.corner-logo {
    width: 64px;
    height: auto;
    opacity: 0.75;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.corner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}
.discord-logo {
    filter: invert(1);
}

.main-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    perspective: 1000px;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(30, 30, 30, 0.6);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #333;
    backdrop-filter: blur(8px);
}
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #28a745;
    box-shadow: 0 0 8px #28a745, 0 0 16px #28a745;
    animation: pulsate 2s infinite;
}
@keyframes pulsate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.join-text {
    margin: 10px 0 20px 0;
    color: #a0a0a0;
    font-size: 1rem;
}
.minecraft-green {
    color: #55FF55;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(85, 255, 85, 0.5);
}

.ip-container {
    display: flex;
    align-items: center;
    background-color: rgba(20, 20, 20, 0.7);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s linear, box-shadow 0.4s ease;
    transform-style: preserve-3d;
}
.ip-container:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}

#server-ip {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}
#copy-button {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    margin-left: 20px;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.5s ease;
}
#copy-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.motto {
    margin-top: 20px;
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 300;
    color: #a0a0a0;
}

#popup-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.popup {
    background-color: #28a745;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInOut 3s ease-in-out forwards;
}
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    15% { opacity: 1; transform: translateY(0); }
    85% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}