:root {
    --primary-color: #4caf50; /* Minecraft Green */
    --dark-bg: #1a1a1a;
    --darker-bg: #121212;
    --card-bg: #252525;
    --text-color: #ffffff;
    --text-secondary: #b0b0b0;
    --font-heading: 'Press Start 2P', cursive;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--darker-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--primary-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    text-shadow: 2px 2px 0px #000;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-shadow: 3px 3px 0px #000;
}

.highlight {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* IP Copy Box */
.server-ip-container {
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--primary-color);
    padding: 15px 30px;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    position: relative;
}

.server-ip-container:hover {
    transform: scale(1.05);
    background-color: rgba(0, 0, 0, 0.8);
}

.ip-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.ip-address {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.copy-hint {
    font-size: 0.8rem;
    margin-top: 5px;
    color: #fff;
    opacity: 0.7;
}

.copy-success {
    margin-top: 10px;
    color: var(--primary-color);
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
    height: 20px;
}

.copy-success.show {
    opacity: 1;
}

/* Online Status */
.online-container {
    margin-top: 15px;
}

.online-status {
    display: inline-flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.8rem; /* Slightly smaller font for online count */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.online-dot {
    width: 10px;
    height: 10px;
    background-color: #4caf50;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px #4caf50;
    animation: pulse 2s infinite;
}

#player-count {
    margin-right: 5px;
}

.max-players {
    color: var(--text-secondary);
    margin-left: 5px;
    margin-right: 5px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: var(--dark-bg);
}

.section-title {
    font-family: var(--font-heading);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.8rem;
    color: var(--text-color);
    text-shadow: 2px 2px 0px #000;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Connect Section */
.connect {
    padding: 4rem 0;
    background-color: var(--darker-bg);
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #000;
    font-weight: bold;
    border-radius: 50%;
    line-height: 40px;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.step h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.highlight-text {
    color: var(--primary-color);
    font-weight: bold;
}

/* Footer */
footer {
    background-color: #000;
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .nav-links {
        display: none; /* Simple hide for mobile for this demo */
    }
    
    .navbar .container {
        justify-content: center;
    }
}