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

body {
    font-family: 'Oxanium', sans-serif;
    background-color: #1a1a1a;
    background-image: url('https://files.facepunch.com/paddy/20230704/header.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #cecece;
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%), 
                linear-gradient(rgba(0, 0, 0, 0.5) 1px, transparent 1px);
    background-size: 100% 100%, 100% 4px; /* Scanline effect */
    z-index: 1;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 2rem;
    width: 90%;
}

.logo-area h1 {
    font-size: 5rem;
    font-weight: 700;
    color: #cd412b;
    text-shadow: 
        3px 3px 0px #000,
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    margin-bottom: 0.5rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-family: 'Oxanium', sans-serif;
    transform: skew(-5deg);
}

/* Developer Tag Glitch Effect */
.dev-glitch {
    position: relative;
    font-size: 1.0rem; /* Smaller size */
    font-weight: 700;
    letter-spacing: 3px;
    display: inline-block;
    margin-top: 1rem;
    
    /* Rainbow Gradient */
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8f00ff);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: rainbow 5s linear infinite;
}

@keyframes rainbow {
    to { background-position: 200% center; }
}

.dev-glitch::before,
.dev-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    color: #fff; /* Reset color for glitch slices */
}

.dev-glitch::before {
    left: 2px;
    text-shadow: -1px 0 #cd412b;
    animation: dev-glitch-1 2s infinite linear alternate-reverse;
}

.dev-glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00ffff;
    animation: dev-glitch-2 3s infinite linear alternate-reverse;
}

@keyframes dev-glitch-1 {
    0% { clip-path: inset(20% 0 80% 0); transform: translate(-2px,0); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(2px,0); }
    40% { clip-path: inset(40% 0 50% 0); transform: translate(-2px,0); }
    60% { clip-path: inset(80% 0 5% 0); transform: translate(2px,0); }
    80% { clip-path: inset(10% 0 70% 0); transform: translate(-2px,0); }
    100% { clip-path: inset(30% 0 20% 0); transform: translate(2px,0); }
}

@keyframes dev-glitch-2 {
    0% { clip-path: inset(10% 0 60% 0); transform: translate(2px,0); }
    20% { clip-path: inset(30% 0 20% 0); transform: translate(-2px,0); }
    40% { clip-path: inset(70% 0 10% 0); transform: translate(2px,0); }
    60% { clip-path: inset(20% 0 50% 0); transform: translate(-2px,0); }
    80% { clip-path: inset(50% 0 30% 0); transform: translate(2px,0); }
    100% { clip-path: inset(0% 0 80% 0); transform: translate(-2px,0); }
}

@media (max-width: 600px) {
    .logo-area h1 {
        font-size: 3.5rem;
    }
}

.content-box {
    background: rgba(18, 18, 18, 0.95);
    padding: 3rem 2rem;
    border: 2px solid #555;
    border-top: 4px solid #cd412b; /* Rust Red accent top */
    box-shadow: 0 15px 50px rgba(0,0,0,0.8);
    position: relative;
}

/* Corner details to look like UI panels */
.content-box::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -2px;
    width: 20px;
    height: 20px;
    border-top: 4px solid #cd412b;
    border-left: 2px solid #cd412b;
}

.content-box::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid #555;
    border-right: 2px solid #555;
}

.content-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
    display: inline-block;
}

.content-box p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #a0a0a0;
    margin-bottom: 2.5rem;
}

/* Server Status Widget - Aggressive Rust Style */
.server-status-box {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #444;
    border-left: 4px solid #cd412b;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.server-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.status-badge {
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    padding: 5px 12px;
    background: rgba(0,0,0,0.4);
    border: 1px solid #333;
}

.player-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.player-count .label {
    font-size: 0.8rem;
    color: #aaa;
    margin-left: 5px;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background-color: #111;
    border: 1px solid #333;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    box-shadow: 0 0 10px rgba(205, 65, 43, 0.5);
    transition: width 1s ease-in-out;
    background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
    background-size: 1rem 1rem;
}

.status-loading, .error-msg {
    color: #aaa;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.buttons-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.discord-btn, .bm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 18px 30px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

/* Discord Button Style */
.discord-btn {
    background-color: #5865F2;
    color: #fff;
    border: 1px solid #4752c4;
}

.discord-btn:hover {
    background-color: #4752c4;
    transform: scale(1.02);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3), 0 0 15px rgba(88, 101, 242, 0.4);
    border-color: #5865F2;
}

/* BattleMetrics Button Style */
.bm-btn {
    background-color: #cd412b; /* Rust Red */
    color: #fff;
    border: 1px solid #a83220;
}

.bm-btn:hover {
    background-color: #a83220;
    transform: scale(1.02);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3), 0 0 15px rgba(205, 65, 43, 0.4);
    border-color: #cd412b;
}

.discord-btn i, .bm-btn i {
    margin-right: 12px;
    font-size: 1.6rem;
}

footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 600px) {
    .logo-area h1 {
        font-size: 3rem;
    }
    
    .content-box {
        padding: 2rem 1.5rem;
    }
    
    .server-info-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .buttons-container {
        flex-direction: column;
        gap: 1rem;
    }

    .discord-btn, .bm-btn {
        width: 100%;
    }
}