/* ---------------- General Reset ---------------- */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    background: #f0f8ff;
    color: #333;
    text-align: center;
}

/* ---------------- Header ---------------- */
header {
    position: relative;
    background: linear-gradient(90deg, #a8e6cf, #ffd3b6, #ffaaa5);
    padding: 2rem 1rem 7rem 1rem; /* extra bottom for floating PFPs */
    text-align: center;
}

/* Banner Image */
header .banner {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Header Text */
.header-text {
    position: relative;
    z-index: 2;
    margin-top: 1rem;
}

.header-text h1 {
    margin: 0;
    font-size: 2.5rem;
}

.header-text p {
    margin: 0.5rem 0 0;
    font-size: 1.2rem;
}

/* Floating PFPs with balanced tilt */
header .pfp {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 20%;
    border: 3px solid white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    position: absolute;
    transition: transform 0.3s;
}

/* Hover zoom resets tilt slightly */
header .pfp:hover {
    transform: scale(1.05) rotate(0deg);
}

/* Left and Right PFP positioning with correct swap */
header .pfp-left {
    left: 18%;    /* left side */
    top: 210px;
    transform: rotate(-4deg);
}

header .pfp-right {
    right: 18%;   /* right side */
    top: 210px;
    transform: rotate(4deg);
}

/* ---------------- Navigation ---------------- */
nav {
    margin: 1rem 0;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #4CAF50;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 12px;
    transition: 0.3s;
}

nav a:hover {
    background-color: #dcedc1;
}

/* ---------------- Cards / Sections ---------------- */
.card {
    background: #ffffff;
    margin: 2rem auto;
    padding: 2rem;
    max-width: 800px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: left;
}

.card:nth-child(3) { background: #fff3e0; } /* About */
.card:nth-child(4) { background: #e0f7fa; } /* Rules */
.card:nth-child(5) { background: #f3e5f5; } /* Links */

.card h2 {
    text-align: center;
    color: #4CAF50;
}

/* ---------------- Links Buttons ---------------- */
.links a {
    display: inline-block;
    margin: 10px;
    padding: 10px 15px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4, #ffecd2);
    transition: 0.3s;
}

.links a:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ---------------- Footer ---------------- */
footer {
    background: linear-gradient(90deg, #ffecd2, #a8e6cf);
    color: #333;
    padding: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    border-radius: 10px 10px 0 0;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 768px) {
    header {
        padding-bottom: 4rem;
    }

    header .pfp {
        position: relative;
        top: 0;
        margin: 15px auto;
        display: block;
        transform: rotate(0deg); /* remove tilt on mobile */
    }

    header .pfp-left,
    header .pfp-right {
        left: auto;
        right: auto;
    }
}
