@import url('https://fonts.googleapis.com/css2?family=Anton&family=Press+Start+2P&display=swap');
/* Basic Reset & Body Styling */
body {
    margin: 0;
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif; /* Family Guy appropriate font */
    background-color: #f0e4d0; /* Light beige background, similar to Quahog */
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* ADD THIS LINE */
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #007bff; /* Standard link blue, can adjust */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header & Navigation */
header {
    background-color: #4a7c59;
    color: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0; /* This remains important for sticky positioning */
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    /* transition: transform 0.3s ease-in-out; */ /* REMOVE THIS LINE */
}



nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav .logo {
    display: flex;
    align-items: center;
}

nav .logo img {
    height: 40px; /* Ensure height is constrained */
    width: auto; /* Maintain aspect ratio */
    margin-right: 10px;
}

nav .logo span {
    font-size: 1.5em;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    font-weight: bold;
}

nav ul li a:hover {
    color: #f0e4d0; /* Light beige on hover */
    text-decoration: none;
}

nav .social-links a {
    color: #fff; /* Stays the same, doesn't hurt */
    margin-left: 15px; /* Stays the same for spacing */
    display: inline-block; /* Better layout for images and transforms */
    line-height: 0; /* Prevents potential extra vertical space */
    transition: transform 0.2s ease, opacity 0.2s ease; /* Add transitions for hover */
    /* font-size: 1.2em; /* REMOVED - No longer needed for image logos */
}

nav .social-links img {
    height: 24px;  /* <<< ADJUST THIS VALUE TO SET ICON SIZE (e.g., 20px, 28px) */
    width: auto;   /* Maintain aspect ratio */
    vertical-align: middle; /* Good practice for inline images */
}

/* Main Content Sections */
main {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
}

section {
    padding: 40px 20px;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}

section h1, section h2 {
    color: #d9534f; /* Reddish color, like Stewie's overalls */
    margin-bottom: 20px;
}

/* Hero Section */
#hero {
    background-color: transparent; /* Use banner image */
    box-shadow: none;
    padding: 0;
    position: relative; /* For text overlay if needed */
}

#hero .banner-img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

#hero h1 {
    margin-top: 20px;
    font-size: 2.5em;
}

#hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    background-color: #f0ad4e; /* Yellow/Orange color */
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #ec971f; /* Darker yellow/orange */
    text-decoration: none;
    color: #fff;
}

/* About Section */
#about p {
    max-width: 800px;
    margin: 0 auto 20px auto;
}

/* Tokenomics Section */
#tokenomics .token-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

#tokenomics .token-info div {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin: 10px;
    min-width: 200px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#tokenomics .token-info h3 {
    margin-top: 0;
    color: #4a7c59; /* Green */
}

#tokenomics .token-info span {
    font-size: 0.9em;
    color: #666;
}

/* Character Images */
.character-img {
    max-height: 150px;
    margin-top: 20px;
}

.character-img-large {
    max-height: 300px;
    margin-top: 20px;
}

/*HODL Section*/
.exchange-buttons {
    display: flex;          /* Arrange buttons side-by-side */
    flex-wrap: wrap;        /* Allow buttons to wrap to the next line if needed */
    justify-content: center; /* Center the group of buttons */
    align-items: center;    /* Align items vertically */
    gap: 15px;              /* Space between buttons */
    margin-top: 20px;       /* Space above the container */
    margin-bottom: 30px;    /* Space below the container */
    padding: 10px 0;
}

/* Individual button styling (the link itself) */
.exchange-button {
    display: inline-flex; /* Treat the link like a flexible inline box */
    align-items: center; /* Vertically center the image and text */
    padding: 8px 15px;   /* Space inside the button (top/bottom, left/right) */
    border: 1px solid #a0a0a0; /* Grey border */
    border-radius: 6px;  /* Slightly rounded corners (use 0px for perfect square) */
    background-color: #ffffff; /* White background */
    color: #333333;      /* Dark grey text color */
    text-decoration: none; /* Remove default link underline */
    font-size: 1em;      /* Adjust text size */
    font-weight: 500;    /* Make text slightly bolder */
    gap: 8px;            /* Space between the logo and the text */
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease; /* Smooth hover effects */
    box-shadow: 0 1px 2px rgba(0,0,0,0.05); /* Subtle shadow */
}

/* Image inside the button */
.exchange-button img {
    height: 24px;         /* Adjust logo height as needed */
    width: auto;          /* Maintain aspect ratio */
    vertical-align: middle; /* Ensure proper alignment */
}

/* Text span inside the button */
.exchange-button span {
    /* You can add specific styles here if needed, but defaults might be fine */
    line-height: 1; /* Helps with vertical alignment consistency */
}

/* Hover effect for the button */
.exchange-button:hover {
    background-color: #f5f5f5; /* Slightly grey background on hover */
    border-color: #555555; /* Darker border on hover */
    color: #000000;      /* Black text on hover */
    cursor: pointer;     /* Show pointer cursor */
    transform: translateY(-1px); /* Slight lift effect */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Slightly larger shadow */
}

/* Optional: Active state (when clicked) */
.exchange-button:active {
    transform: translateY(0px); /* Remove lift effect */
    box-shadow: 0 1px 1px rgba(0,0,0,0.1); /* Smaller shadow */
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: #e7e7e7;
    color: #555;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }

    nav ul {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    nav .social-links {
        margin-top: 10px;
    }

    #tokenomics .token-info {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    nav ul li {
        margin-left: 10px;
    }

    section h1 {
        font-size: 2em;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 1em;
    }
}


/* Add hover effect for character images */
.character-img, .character-img-large {
    transition: transform 0.3s ease;
}

.character-img:hover, .character-img-large:hover {
    transform: scale(1.05);
}

/* Add subtle pulse animation to CTA buttons */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(240, 173, 78, 0.5);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 15px rgba(240, 173, 78, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(240, 173, 78, 0.5);
    }
}

.cta-button {
    /* existing styles */
    animation: pulse 2s infinite;
}

/* Ensure social links have hover effect */
nav .social-links a:hover {
    opacity: 0.8; /* Keep existing opacity change */
    transform: scale(1.1); /* Add slight zoom effect */
    /* color: #f0e4d0; /* REMOVED - Color change isn't visible on an image */
}

.contract-address-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 25px auto; /* This keeps the container centered on the page */
    padding: 10px 15px;
    background-color: #fffaf0;
    border: 1px solid #e0dacd;
    border-radius: 8px;
    /* width: 100%; */ /* ADD or ENSURE this line is present */
    /* max-width: 90%; */ /* REPLACE this line */
    max-width: 660px;   /* CHANGED: Adjust 550px as needed to make it smaller or larger */
                        /* This will be the maximum width on larger screens. */
                        /* On smaller screens, it will shrink responsively. */
    box-sizing: border-box;
    overflow: hidden; /* Kept from previous fixes, generally good for safety */
}

.contract-address-label {
    color: #333;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    font-size: 1em;                   /* ADJUSTED: Was 1.1em, slightly smaller for balance */
    letter-spacing: 0.5px;
}

.contract-address-value { /* This is the <input> field */
    font-family: 'Press Start 2P', cursive;
    font-size: 0.75em;
    color: #333;
    background-color: transparent;
    border: none;
    flex-grow: 1;
    flex-shrink: 1;
    /* text-align: left; */ /* REPLACE this line */
    text-align: center; /* CHANGED: This will center the address string within the input field */
    padding: 5px 0;
    margin: 0 5px;
    text-transform: uppercase;
    line-height: 1.5;
    overflow: hidden;
 /* This will still add "..." if the centered text is too long */
    white-space: nowrap;
    min-width: 0;
}

.copy-button {
    background-color: #f0ad4e;
    color: #000;
    border: none;
    padding: 8px 12px;                /* ADJUSTED: Was 8px 15px. Slightly less padding. */
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Anton', sans-serif;
    font-size: 0.9em;                 /* ADJUSTED: Was 1em. Slightly smaller. */
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.1s ease;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

/* Keep your existing :hover and :active states for .copy-button */
.copy-button:hover {
    background-color: #ec971f;
    transform: translateY(-1px);
}

.copy-button:active {
     transform: translateY(0px);
}

/* Your #hero .cta-button style can remain as is or be adjusted if needed */
#hero .cta-button {
    margin-top: 10px;
}