/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #4d004d;
    background-color: #ffe6f0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background-color: #ff66cc;
    color: #fff;
    padding: 0 20px; /* Padding around the content */
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px; /* Fixed height */
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center; /* Centers content vertically */
    justify-content: center; /* Centers content horizontally */
}

.header-content {
    display: flex;
    align-items: center; /* Align logo and text vertically */
    gap: 15px; /* Space between logo and text */
}

.token-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    flex-shrink: 0; /* Prevent logo from shrinking */
}

header h1 {
    font-size: 1.8rem; /* Default font size */
    margin: 0;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide overflow if necessary */
    text-overflow: ellipsis; /* Add ellipsis for long titles */
    line-height: 1.2;
}

header p {
    font-size: 0.9rem; /* Smaller subtitle */
    margin: 5px 0 0;
    line-height: 1.2;
}
/* Main Content */
main {
    flex: 1;
    margin-top: 120px; /* Avoids overlap with the fixed header */
    margin-bottom: 60px; /* Avoids overlap with the fixed footer */
    padding: 20px;
    text-align: center;
}

.about {
    margin: 20px 0;
}

.about h2 {
    font-size: clamp(1.2rem, 3vw, 1.8rem); /* Responsive heading */
    color: #ff0099;
    margin-bottom: 15px;
}

.about p {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem); /* Responsive paragraph */
    color: #660033;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Cat Memes Section */
.cat-memes h2 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #ff0099;
    margin-bottom: 15px;
}

.meme-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Dynamic columns */
    gap: 15px;
    margin-top: 15px;
    justify-items: center;
    align-items: center;
}

.meme-gallery img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.meme-gallery img:hover {
    transform: scale(1.1);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Fun Section */
.necat-fun {
    text-align: center;
    font-family: monospace;
    margin: 30px 0;
}

.necat-fun h2 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #ff0099;
    margin-bottom: 15px;
}

.necat-fun p {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    color: #660033;
    margin: 15px 0;
    line-height: 1.5;
}

/* Buy Section */
.buy-necat {
    text-align: center;
    margin: 30px 0;
    font-family: Arial, sans-serif;
}

.buy-necat h2 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #ff0099;
    margin-bottom: 15px;
}

.buy-necat p {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    color: #4d004d;
    margin-bottom: 20px;
}

.buy-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.buy-button {
    padding: 10px 20px;
    background-color: #ff66cc;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease-in-out;
}

.buy-button:hover {
    background-color: #ff0099;
    transform: scale(1.05);
}

/* Floating Icons */
.icons-container {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.icons-container .icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.icons-container .icon:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background-color: #ff66cc;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    left: 0; /* Ensure it starts at the left edge */
    right: 0; /* Ensure it ends at the right edge */
    width: 100%; /* Ensure full width */
    z-index: 1;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    box-sizing: border-box; /* Ensures padding does not affect width */
}

/* ASCII Game */
.ascii-game {
    text-align: center;
    font-family: monospace;
    margin: 30px 0;
}

#asciiCat {
    font-size: clamp(1.2em, 3vw, 1.5em);
    color: #660033;
    line-height: 1.3;
    margin: 10px auto;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
}

#asciiCat:hover {
    color: #ff0099;
    transform: scale(1.05);
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
   header {
        height: auto; /* Allow header height to adjust for wrapping content */
        padding: 10px 15px;
    }

    .header-content {
        flex-direction: column; /* Stack logo and text vertically */
        align-items: center;
        gap: 10px;
    }

    .token-logo {
        width: 50px; /* Smaller logo */
        height: 50px;
    }

    header h1 {
        font-size: 1.5rem; /* Adjust font size */
    }

    header p {
        font-size: 0.8rem; /* Adjust subtitle size */
    }

    .icons-container {
        position: fixed;
        bottom: 80px;
        right: 20px;
        flex-direction: column;
        gap: 10px;
    }

    .icons-container .icon {
        width: 40px;
        height: 40px;
    }

    .buy-container {
        flex-direction: column;
    }

    footer {
        position: fixed;
        bottom: 0;
        left: 0; /* Ensure it starts at the left edge */
        right: 0; /* Ensure it ends at the right edge */
        width: 100%; /* Full width */
        box-sizing: border-box; /* Include padding in width calculation  */
    }
}

@media (max-width: 480px) {
    .meme-gallery img {
        width: 100px;
        height: 100px;
    }

    .buy-button {
        padding: 8px 16px;
        font-size: 1rem;
    }
}
