/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;700&family=Nunito+Sans:wght@400;700&display=swap');

:root {
    --bg-color: #15243A;
    --text-color: #B7CEDD;
    --accent-gold: #ECBC62;
    --btn-border: #816632;
    --btn-top: #3C91C5;
    --btn-bottom: #225B8B;
}

body {
    margin: 0;
    padding: 0;
    background-image: url('https://hytale.com/static/images/backgrounds/content-upper-new-1920.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-color);
    font-family: 'Nunito Sans', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

h1,
h2,
h3 {
    font-family: 'Lexend', sans-serif;
    text-transform: uppercase;
    color: white;
    margin: 0;
    letter-spacing: 1px;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Navbar (Simple Top Bar) */
nav {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Hero Section */
.hero {
    text-align: center;
    z-index: 1;
    padding: 40px;
    animation: float 6s ease-in-out infinite;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Server Status Box */
.server-status {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    backdrop-filter: blur(5px);
}

.server-status:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--accent-gold);
    transform: scale(1.02);
}

.status-indicator {
    width: 12px;
    height: 12px;
    background-color: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 10px #2ecc71;
}

.ip-address {
    font-family: 'Lexend', sans-serif;
    font-size: 1.5rem;
    color: var(--accent-gold);
    font-weight: 700;
}

.copy-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: #1b2e46;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.server-status:active .copy-tooltip,
.server-status.copied .copy-tooltip {
    opacity: 1;
}

/* Download Button */
.btn-primary {
    display: inline-block;
    background-color: var(--btn-border);
    /* Fallback/Border color */
    padding: 2px;
    /* Simulates the border */
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.1s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-inner {
    background: linear-gradient(to bottom, var(--btn-top), var(--btn-bottom));
    display: block;
    padding: 15px 40px;
    border-radius: 4px;
    color: #fff;
    /* White text looks better on this blue than gold usually, but checking ref */
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-inner span {
    position: relative;
    z-index: 2;
    color: var(--accent-gold);
    /* Using the gold accent for text as seen on site */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Subtle shine effect */
.btn-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}