/* --- Modern & Clean Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #121212;
    color: #ffffff;
    line-height: 1.6;
    padding-top: 80px; /* Accounts for fixed header */
}

/* --- Header --- */
header {
    background-color: #1e1e1e;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

header h1 {
    display: none;
}

header img {
    height: 50px;
    width: 50px;
    object-fit: cover;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

header nav ul a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

header nav ul a:hover {
    background-color: #4CAF50;
}

/* --- Hero Section (.main-box) --- */
.main-box {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("friendsSelfie.png") no-repeat center center/cover;
    height: calc(95vh - 80px);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.main-box h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 10px;
}

.main-box p {
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 25px;
}

.main-box a {
    background-color: #ffaa00;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.main-box a:hover {
    background-color: #e69500;
}

/* --- Cards Grid Section (.box) --- */
.box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.box div {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.box div:hover {
    transform: translateY(-5px);
}

.icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid #4CAF50;
}

.box h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.box p {
    color: #bbb;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.box a {
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.box a:hover {
    background-color: #45a049;
}

/* --- Map Background Modifiers --- */
.lobby {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url("maps/lobby.png") no-repeat center center/cover;
}
.build {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url("maps/build.png") no-repeat center center/cover;
}
.ezsmp {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url("maps/ezsmp.png") no-repeat center center/cover;
}
.other {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url("maps/realm.jpg") no-repeat center center/cover;
}

/* --- Donate Section --- */
.donate {
    background-color: #161616;
    display: flex;
    flex-direction: column;
    padding: 50px 20px;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-top: 1px solid #222;
}

.donate h3 {
    color: #4CAF50;
    font-size: 2rem;
    margin-bottom: 20px;
}

.donate div {
    display: flex;
    gap: 20px;
    align-items: center;
}

.donate img {
    height: 40px;
    transition: opacity 0.2s ease;
}

.donate img:hover {
    opacity: 0.8;
}

/* --- Footer --- */
footer {
    background-color: #1e1e1e;
    color: #777;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border-top: 1px solid #2a2a2a;
}

/* --- Responsive Adjustments --- */
@media screen and (max-width: 768px) {
    header nav ul {
        display: none; /* Hides top links cleanly on smaller mobile screens */
    }
    
    header {
        padding: 0 20px;
    }
}
