body {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    color: #f3f3f3;
    background-color: #232526;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
    background-image: var(--background-image, url('./assets/backgrounds/1.png'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: opacity 1s ease-in-out; /* Fade-in effect */
    opacity: 1;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

body::before {
    background-image: var(--background-image-current, url('./assets/backgrounds/1.png'));
}

body::after {
    background-image: var(--background-image-next, url('./assets/backgrounds/1.png'));
    opacity: 0;
}

body.crossfade-active::after {
    opacity: 1;
}

header {
    background: #2d2f31f0;
    padding: .5rem 0 .5rem 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
    color: #7ed957;
    letter-spacing: 2px;
}

header p {
    font-size: 1.2rem;
    color: #bdbdbd;
    margin-top: 0.5rem;
}

.quick-links {
    position: absolute;
    top: 1.2rem;
    right: 2rem;
    z-index: 10;
}

.quick-links-toggle {
    background: #2d2f31f0;
    color: #7ed957;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.quick-links-toggle:hover,
.quick-links-toggle:focus {
    background: #2d2f31;
}

.quick-links-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 2.5rem;
    background: #2d2f31f0;
    border-radius: 8px;
    box-shadow: 0 2px 8px #0004;
    min-width: 160px;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.quick-links-menu.show {
    display: block;
}

.quick-links-menu li {
    width: 100%;
}

.quick-links-menu a {
    display: block;
    color: #f3f3f3;
    padding: 0.5rem 1.2rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.quick-links-menu a:hover,
.quick-links-menu a:focus {
    background: #7ed95722;
    color: #7ed957;
}

@media (max-width: 700px) {
    .quick-links {
        position: static;
        display: block;
        margin-top: 0.5rem;
        text-align: left;
    }

    .quick-links-menu {
        position: static;
        box-shadow: none;
        min-width: 0;
        width: 100%;
    }

    .quick-links-toggle {
        width: 100%;
        text-align: left;
    }
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    background-color: #505050a0;
    padding: 1.5rem;
    padding-top: 0.5rem;
    border-radius: 10px;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.feature {
    background: #232526;
    border-radius: 10px;
    padding: 1rem 1.5rem 0 1.5rem;
    flex: 1 1 12.5vw;
    min-width: 10vw;
    box-shadow: 0 2px 8px #0002;
}

.feature h3 {
    color: #7ed957;
    margin-top: 0;
    text-align: center;
}

.join-section {
    background: #232526;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    box-shadow: 0 2px 8px #0002;
}

.ip {
    font-size: 1.3rem;
    background: #181a1b;
    color: #7ed957;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    margin: 1rem 0;
    letter-spacing: 1px;
}

.ipLink:visited, 
.ipLink:link {
    color: #7ed957;
}

footer {
    text-align: center;
    color: #f3f3f3;
    padding: 1.5rem 0 1rem 0;
    font-size: 0.95rem;
}

@media (max-width: 700px) {
    .features {
        flex-direction: column;
    }
}
