@import url('https://fonts.googleapis.com/css2?family=Lacquer&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    min-height: 100%;
    /* Changed from height: 100% to allow growth */
    font-family: 'Lacquer', cursive, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    /* Explicitly allow vertical scroll */
}

.container {
    width: 100%;
    min-height: 100vh;
    background: url('page2/bg2.png') repeat;
    /* Fallback to image if it's textured, or stick to it */
    background-size: contain;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Top Section */
.top-section {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: visible;
    /* Let smoke extend downwards if needed */
    /* Keep smoke contained */
}

.smoke-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Allow to cover full height if needed, or keep to bottom section */
    pointer-events: none;
    z-index: 10;
    overflow: visible;
}

.smoke-bg {
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    min-width: 2000px;
    z-index: 1;
    /* Back layer */
    animation: smokeDrift 20s ease-in-out infinite;
}

.smoke-left {
    position: absolute;
    bottom: -5%;
    left: -10%;
    width: 60%;
    min-width: 600px;
    z-index: 3;
    /* Front layer */
    transform: scaleX(-1);
    animation: smokeSideLeft 15s ease-in-out infinite;
}

.smoke-right {
    position: absolute;
    bottom: -5%;
    right: -10%;
    width: 60%;
    min-width: 600px;
    top: auto;
    z-index: 3;
    /* Front layer */
    transform: scaleX(-1);
    animation: smokeSideRight 18s ease-in-out infinite;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    justify-content: center;
}

.title-img {
    position: absolute;
    top: 5%;
    width: 80%;
    max-width: 900px;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

.characters {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    /* Above smoke (100) */
    pointer-events: none;
    /* Let clicks pass through if needed */
}

.char-main {
    position: absolute;
    left: 10%;
    bottom: 20%;
    width: 35%;
    max-width: 400px;
    z-index: 1;
    /* Relative to .characters container */
}

.char-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -40%;
    width: 70%;
    max-width: 450px;
    z-index: 2;
    /* Middle layer (between bg smoke and foreground smoke) */
}

.char-peek {
    position: absolute;
    right: 0;
    top: 0;
    width: 45%;
    max-width: 400px;
    z-index: 1;
    transform: translate(99%, -10%);
}

.char-floor {
    position: absolute;
    left: 12%;
    bottom: 18%;
    width: 90%;
    height: 13%;
    /* Reduced back to reasonable platform height */
    background-color: #969696;
    /* Lighter gray */
    border-radius: 5px;
    /* Slight roundness but mostly rectangular */
    z-index: 1;
    /* Above smoke (100) and character container (200)? No, character container is 200, character is 15 relative to 200... wait. */
    /* .characters is z-index 200. .char-floor is INSIDE .characters. 
       .char-main is z-index 15.
       If I want floor BELOW character, .char-floor needs < 15. 
       If I want it ABOVE smoke (100), .characters being 200 handles that.
       So .char-floor z-index should be e.g. 5.
    */
    z-index: 1;
    transform: rotate(-2deg);
    box-shadow: 5px 5px 0px #000;
    /* Comic shadow */
}

.element-1 {
    position: absolute;
    bottom: 22%;
    /* Just above floor (18% + 13% = 31%) */
    right: 27%;
    /* Inside the floor area (starts at left 12%, width 90% -> ends at 102%, right side is safe) */
    width: 30%;
    /* Adjust size if needed */
    z-index: 1;
    /* Above characters (200 + 15 = 215) if we want it in front, or 25 if behind. Let's try on top of floor. */
    /* wait, floor is z-index 5 inside .characters (200). So floor effective index is 205? No. Stacking contexts. */
    /* .characters is z-index 200. .element-1 is sibling to .characters. */
    /* If .element-1 z-index is 12, it is behind .characters (200). */
    /* To be on top of floor, it needs z-index > 200. */
    z-index: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.bottom-section {
    width: 100%;
    min-height: 140vh;
    /* Increased to accommodate content */
    background: url('page2/bg3.png') no-repeat center top;
    background-size: cover;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 300px;
}

.tokenomics-section {
    width: 100%;
    background-color: #fff;
    margin-top: 150px;
    border-top-left-radius: 50% 150px;
    border-top-right-radius: 50% 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 10% 120px;
    position: relative;
    z-index: 50;
}

.tokenomics-title {
    font-family: inherit;
    /* Fallback to sans or import the bandit font if possible */
    font-size: 4rem;
    color: #000;
    margin-bottom: 50px;
    text-shadow: 4px 4px 0px #e85c4a;
    -webkit-text-stroke: 2px #000;
}

.tokenomics-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
}

.footer-left {
    flex: 1;
    display: flex;
    justify-content: center;
}

.footer-character {
    width: 450px;
    max-width: 130%;
    transform: translateY(-80px) rotate(-5deg);
    filter: drop-shadow(10px 10px 0px rgba(0, 0, 0, 0.1));
}

.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.token-item {
    width: 100%;
    max-width: 500px;
    height: 70px;
    /* Reduced height to fit more items */
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border: 4px solid #000;
    /* Thicker border */
    box-shadow: 8px 8px 0px #000;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.token-item:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 12px 12px 0px #000;
}

.token-label {
    font-weight: 900;
    font-size: 1.4rem;
    /* Larger */
    color: #fff;
    text-shadow: 2px 2px 0px #000;
}

.token-value {
    font-weight: 900;
    font-size: 1.2rem;
    background: #fff;
    color: #000;
    padding: 8px 20px;
    border-radius: 30px;
    border: 3px solid #000;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
}

.bar-coral {
    background-color: #e85c4a;
}

.bar-blue {
    background-color: #4a6de8;
}

.bar-green {
    background-color: #4ae87d;
}

.bar-yellow {
    background-color: #e8c84a;
}

/* Main Footer Styles */
.main-footer {
    width: 100%;
    background-color: #1a1a1a;
    color: #fff;
    padding: 80px 0 40px;
    position: relative;
    z-index: 60;
    border-top: 10px solid #e85c4a;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-logo img {
    width: 300px;
    filter: invert(1) brightness(2);
    /* Make the font logo white */
}

.footer-links {
    display: flex;
    gap: 30px;
}

.social-link {
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.8rem;
    padding: 15px 30px;
    border: 4px solid #fff;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    background-color: #e85c4a;
    border-color: #e85c4a;
    color: #fff;
    transform: translateY(-10px) rotate(-3deg) scale(1.1);
    box-shadow: 10px 10px 0px #000;
}

.footer-copy {
    margin-top: 20px;
    opacity: 0.6;
    font-size: 0.9rem;
}

.text-boxes-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 95%;
    max-width: 1100px;
    flex-wrap: wrap;
    z-index: 20;
}

.text-box {
    background-color: #f0faff;
    /* Very light blue/white */
    border: 3px solid #000;
    border-radius: 60px;
    /* More bubble-like */
    padding: 35px 30px;
    width: 480px;
    max-width: 90%;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-box p {
    font-family: "Times New Roman", Times, serif;
    font-size: 1.1rem;
    line-height: 1.3;
    text-align: center;
    color: #222;
    text-transform: uppercase;
    font-weight: 500;
}

.floating-bubble {
    position: absolute;
    width: 40px;
    height: auto;
    z-index: 21;
    animation: bubble-float 4s ease-in-out infinite;
    pointer-events: none;
}

.bubble-1 {
    top: 320px;
    left: 15%;
    animation-delay: 0s;
}

.bubble-2 {
    top: 380px;
    left: 80%;
    animation-delay: 1s;
}

.bubble-3 {
    top: 550px;
    left: 20%;
    animation-delay: 2s;
}

.bubble-4 {
    top: 600px;
    left: 75%;
    animation-delay: 0.5s;
}

@keyframes bubble-float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-20px) translateX(10px);
    }
}

@keyframes smokeDrift {

    0%,
    100% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }

    33% {
        transform: translateX(-52%) translateY(-10px) rotate(0.5deg);
    }

    66% {
        transform: translateX(-48%) translateY(5px) rotate(-0.5deg);
    }
}

@keyframes smokeSideLeft {

    0%,
    100% {
        transform: scaleX(-1) translateX(0) translateY(0);
    }

    50% {
        transform: scaleX(-1) translateX(20px) translateY(-15px);
    }
}

@keyframes smokeSideRight {

    0%,
    100% {
        transform: scaleX(-1) translateX(0) translateY(0);
    }

    50% {
        transform: scaleX(-1) translateX(-25px) translateY(-10px);
    }
}

/* Responsiveness */
@media (max-width: 1100px) {
    .tokenomics-content {
        flex-direction: column;
        gap: 60px;
    }

    .footer-left {
        width: 100%;
        margin-bottom: -50px;
    }

    .footer-character {
        width: 350px;
        transform: translateY(0);
    }

    .footer-right {
        align-items: center;
        width: 100%;
    }
}

@media (max-width: 768px) {

    /* Remove floor and related as requested */
    .char-floor,
    .char-block {
        display: none !important;
    }

    .title-img {
        width: 95%;
        top: 2%;
    }

    .char-main {
        width: 60%;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: 15% !important;
    }

    .char-peek {
        display: none !important;
    }

    .element-1 {
        bottom: 5%;
        right: 5%;
        width: 35%;
    }

    .smoke-container {
        pointer-events: none;
    }

    .tokenomics-title {
        font-size: 2.5rem;
    }

    .token-item {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 15px;
        max-width: 90%;
    }

    .token-label {
        font-size: 1.1rem;
    }

    .text-box {
        width: 95%;
        padding: 25px;
        border-radius: 40px;
    }

    .footer-links {
        flex-direction: column;
        width: 90%;
    }

    .social-link {
        text-align: center;
        font-size: 1.2rem;
        padding: 12px;
    }

    .footer-logo img {
        width: 200px;
    }
}