/* General Page Styling */
body {
    font-family: 'Luckiest Guy', cursive;
    margin: 0;
    padding: 0;
    /* Remove fixed attachment and update properties */
    background: url('images/top pic banner.svg') no-repeat center top;
    background-size: contain;
    background-color: #000;
    color: #f8f8f8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.6;  
    text-align: center;
    overscroll-behavior: contain;
}

/* Adjust the text sections wrapper to have a consistent starting point */
.text-sections {
    margin-top: 450px; /* Set a fixed value that works on both resolutions */
    /* ...rest of your existing styles... */
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

/* Logo */
.logo {
    font-size: 28px;
    letter-spacing: 2px;
}

/* Text Sections Wrapper */
.text-sections {
    /* Find this rule and update margin-top value */
    margin-top: 40vw; /* Using vw (viewport width) units for responsive sizing */
    background: url('images/text background.jpeg') no-repeat center center;
    background-size: cover;
    padding: 100px 0;
    padding-bottom: 5px;
    width: 100%;
    position: relative;
}

/* Individual Sections */
.text-sections section {
    padding: 50px;
    max-width: 900px;
    margin: auto;
    text-align: left;
}

/* About Section */
#about {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    padding: 30px;
    margin-top: -120px; /* Moves the section up */
    margin-bottom: 0px; /* Set to 0 or a very small value */
    padding-bottom: 0px; /* Reduce padding if needed */
}

/* About Text */
.about-text {
    padding: 20px;
    color: white;
    width: 50%;
}

/* About Image */
.about-image img {
    width: 80%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: auto;
}

/* Ensure meme royale uses exact same width as how to moon section */
#meme-royale-game .moon-steps-container {
    max-width: 800px; /* Match the exact width from how-to-moon */
    margin: 25px auto 0;
}

/* "How to Moon" Section */
#how-to-moon {
    max-width: 900px;
    margin: 2px auto 0 auto;
    padding: 20px;
    padding-bottom: 3px; /* Adjust this value as needed */
    margin-top: -50px; /* Moves the section up */
    text-align: left;
}

/* Enhanced WHAT IS MEME ROYALE section */
.animated-heading {
    color: #ffcc00;
    animation: pulse 2s infinite ease-in-out; /* Now using pulse animation */
  letter-spacing: 1px;
  font-size: 32px;
  margin-bottom: 15px;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5);
    }
}

.text-glow {
    color: #ff66cc;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 102, 204, 0.7);
}

.highlight-text {
    font-size: 18px;
    line-height: 1.6;
    margin-top: 15px;
}

.feature-text {
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.8;
}

.emoji {
    font-size: 20px;
    margin-right: 8px;
    display: inline-block;
}

.glow-effect {
    filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.6));
    transition: all 0.3s ease;
}

.glow-effect:hover {
    filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.8));
    transform: scale(1.05);
}

/* Enhanced How to Moon Section */
.moon-steps-container {
    max-width: 800px;
    margin: 0px auto 0;
}

.moon-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.moon-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 10px rgba(138, 43, 226, 0.5);
}

.step-number {
    background: linear-gradient(135deg, #8a2be2, #ff66cc);
    color: white;
    font-size: 24px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.step-content {
    flex-grow: 1;
}

.step-content h3 {
    color: #ff66cc;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 20px;
}

.step-content p {
    margin: 0;
    line-height: 1.5;
}

.highlight {
    color: #ffcc00;
    font-weight: bold;
}

.tagline {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.big-text {
    font-size: 22px;
    letter-spacing: 1px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .moon-step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 10px;
    }
    
    .animated-heading {
        font-size: 28px;
    }
    
    .big-text {
        font-size: 18px;
    }
}

/* Token Sale Section */
#token-sale {
    padding: 50px;
    max-width: 900px;
    margin: auto;
    text-align: center;
}

#token-sale {
    max-width: 800px;
    margin: 20px auto 50px;
    padding: 20px;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, rgba(128, 0, 128, 0.8), rgba(255, 0, 255, 0.6));
    border-radius: 15px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Adding an outer glow effect for extra depth */
#token-sale::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.5), rgba(128, 0, 128, 0.8));
    border-radius: 20px;
    z-index: -1;
    filter: blur(15px);
}


/* Pre-Sale Countdown Styling */
#presale-countdown {
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
    padding: 30px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 800px;
}

#presale-countdown h2 {
    font-size: 28px;
    color: #ffcc00;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8);
}

#presale-phase {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 10px;
}

#presale-amount {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 10px;
    color: #ffffff; /* Gold color */
    text-align: center;
}

#countdown {
    font-size: 24px;
    color: #00ff00;
    font-weight: bold;
    margin: 10px 0;
}

#royale-price-box {
    background: orange; /* Changed from black to orange */
    color: white; /* white */
    font-size: 20px;
    font-weight: bold;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 250px;
    margin: 20px auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}


/* Buttons */
button {
    background: red;
    color: white;
    font-size: 18px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background: darkred;
}

/* Footer */
footer {
    padding: 30px;
    background: rgba(0, 0, 0, 0.0);
}

#conversion-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    margin: 20px auto;
}

/* Create a new container just for the payment boxes */
.payment-boxes-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.conversion-box {
    width: 48%;
    text-align: left;
}

.conversion-box label {
    font-size: 16px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.input-box {
    display: flex;
    align-items: center;
    border: 2px solid orange;
    border-radius: 8px;
    padding: 10px;
    background-color: white; /* Now the box is white */
}

.input-box input {
    background: none;
    color: black;  /* Black text so it's visible */
    border: none;
    outline: none;
    font-size: 18px;
    width: 100%;
}

.crypto-logo {
    width: 24px;
    height: 24px;
    margin-left: 10px;
}

/* Remove arrows from number inputs */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Centered Wallet Connect Button */
.wallet-container {
    text-align: center;
    margin-top: 20px;
    padding-bottom: 12px;
}

#connect-wallet {
    background-color: orange;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}



#connect-wallet:hover {
    background-color: darkorange;
}

/* Wallet Address Styling */
#wallet-address {
    margin-top: 10px;
    font-size: 16px;
    color: white;
    font-weight: bold;
}

#buy-now {
    background-color: orange;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px; /* Space between buttons */
}

#buy-now:hover {
    background-color: darkorange;
}

/* Update Connect Wallet and Buy Now buttons to match $ROYALE price box shadow */
#connect-wallet,
#buy-now {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

/* Meme Royale Game Section */
#meme-royale-game {
    text-align: center;
    margin: 0 auto;
    padding: 20px 0;
    margin-top: -80px; /* Moves the section UP */
    max-width: 1000px;
    padding-top: 5px;
    padding-bottom: 2px;
}

/* Content Layout */
.game-content {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center everything */
    text-align: center;
}

/* Text Styling */
.game-text {
    max-width: 600px;
    text-align: center; /* Ensures text inside is center-aligned */
    margin: 0 auto; /* Centers the block itself */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers everything inside */
}

.game-text h2 {
    font-size: 28px;
    color: #ffcc00; /* Yellow/gold */
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8);
}

/* Image Styling */
.game-image {
    width: 210px; /* Adjust as needed */
    height: auto;
    margin: 0 20px;
}

#roadmap {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    text-align: left;
    background: rgba(0, 0, 0, 0.6); /* Dark semi-transparent background */
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

#roadmap h2 {
    font-size: 28px;
    color: #ffcc00; /* Matches "How to Moon" header */
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8);
    text-align: center;
    text-transform: uppercase; /* Ensures all caps */
    margin-bottom: 15px;
}

#roadmap h3 {
    font-size: 22px;
    color: #ff66cc; /* Matches secondary headers */
    text-transform: uppercase; /* Ensures consistency */
    font-weight: bold;
    margin-top: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

#roadmap ul {
    list-style: none; /* Removes default bullet points */
    padding-left: 0; /* Prevents extra spacing */
}

#roadmap li {
    margin-bottom: 10px; /* Adds spacing between items */
    padding-left: 28px; /* Indents text properly */
    text-indent: -28px; /* Moves the emoji back for alignment */
    font-size: 16px;
    line-height: 1.6;
    color: white;
}

/* Tokenomics, Roadmap & How to Buy Buttons - Matches Menu Button */
.tokenomics-btn,
.toggle-btn,
.how-to-buy-btn {
    background: #a020f0 !important; /* Force Purple */
    color: white !important;
    font-size: 20px;
    font-weight: bold;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    margin: 20px auto;
    box-shadow: 0px 4px 10px rgba(160, 32, 240, 0.6) !important; /* Purple Glow */
}

/* Hover Effect */
.tokenomics-btn:hover,
.toggle-btn:hover,
.how-to-buy-btn:hover {
    background: #8a2be2 !important; /* Lighter Purple */
}


/* Roadmap Arrow Rotation */
#roadmap .arrow {
    transition: transform 0.3s ease;
}

/* Roadmap Content (Initially Hidden) */
/* Default state: Hidden */
#roadmap-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;  /* Ensures content disappears when collapsed */
    transform: translateY(-10px);
    transition: max-height 0.5s ease-out, opacity 0.3s ease, transform 0.3s ease;
}

/* Active state: Expanded */
#roadmap-content.active {
    max-height: 1000px; /* Adjust for desktop */
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Fix */
@media (max-width: 768px) {
    #roadmap-content.active {
        max-height: 1500px; /* Extra height for mobile */
    }
}

#how-to-buy {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    text-align: left;
    background: rgba(0, 0, 0, 0.6); /* Dark semi-transparent background */
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

#how-to-buy h2 {
    font-size: 28px;
    color: #ffcc00; /* Matches Roadmap */
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8);
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 15px;
}

#how-to-buy h3 {
    font-size: 22px;
    color: #ff66cc; /* Matches Roadmap */
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

#how-to-buy ul {
    list-style: none;
    padding-left: 0;
}

#how-to-buy li {
    margin-bottom: 10px;
    padding-left: 28px;
    text-indent: -28px;
    font-size: 16px;
    line-height: 1.6;
    color: white;
}

/* How to Buy Toggle Button */
.how-to-buy-btn {
    background: linear-gradient(135deg, #ffcc00, #ff66cc);
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s;
    margin: 20px auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
}

.how-to-buy-btn:hover {
    background: linear-gradient(135deg, #ff66cc, #ffcc00);
}

/* Arrow Rotation */
.how-to-buy-btn .arrow {
    transition: transform 0.3s ease;
}

/* How to Buy Content (Initially Hidden) */
#how-to-buy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.5s ease-out, opacity 0.3s ease, transform 0.3s ease;
}

/* When Active (Visible State) */
#how-to-buy-content.active {
    max-height: 800px;
    opacity: 1;
    padding: 20px;
    transform: translateY(0);
}

/* Tokenomics Section */
#tokenomics {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    text-align: left;
    background: rgba(0, 0, 0, 0.6); /* Dark semi-transparent background */
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

#tokenomics h2 {
    font-size: 28px;
    color: #ffcc00; /* Matches Roadmap */
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8);
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 15px;
}

#tokenomics ul {
    list-style: none;
    padding-left: 0;
}

#tokenomics li {
    margin-bottom: 10px;
    padding-left: 28px;
    text-indent: -28px;
    font-size: 16px;
    line-height: 1.6;
    color: white;
}

/* Tokenomics Toggle Button - Matches Menu Button */
.tokenomics-btn {
    background: #a020f0 !important; /* Same Purple as Menu Button */
    color: white !important;
    font-size: 20px;
    font-weight: bold;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s;
    margin: 20px auto;
    box-shadow: 0px 4px 10px rgba(160, 32, 240, 0.6); /* Purple Glow */
}

/* Change button background on hover */
.tokenomics-btn:hover {
    background: #8a2be2 !important; /* Slightly Lighter Purple on Hover */
}



/* Arrow Rotation */
.tokenomics-btn .arrow {
    transition: transform 0.3s ease;
}

/* Tokenomics Content (Initially Hidden) */
#tokenomics-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;  /* Ensures content disappears when collapsed */
    transform: translateY(-10px);
    transition: max-height 0.5s ease-out, opacity 0.3s ease, transform 0.3s ease;
}

#tokenomics-content.active {
    max-height: 1000px; /* Default for desktop */
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) { 
    #tokenomics-content.active {
        max-height: 1500px; /* Extra height for mobile */
    }
}

/* TEAM SECTION STYLING */
.team-container {
    display: flex;
    justify-content: center;
    gap: 50px; /* Space between circles */
    margin-top: 30px;
}

.team-member {
    text-align: center;
    opacity: 0; /* Start hidden */
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Circle Image Styling */
.team-img {
    width: 120px; /* Adjust size */
    height: 120px;
    border-radius: 50%; /* Makes it a circle */
    border: 3px solid #a020f0; /* purple border */
    object-fit: cover;
}

/* Name Styling */
.team-member h3 {
    margin-top: 10px;
    font-size: 20px;
    color: white;
}

/* Role Styling */
.team-member p {
    font-size: 16px;
    color: #ffcc00; /* Yellow */
    font-weight: bold;
}

/* FADE-IN EFFECT */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .team-container {
        flex-direction: column;
        align-items: center;
    }
}

#team {
    margin-bottom: 0px !important; /* Reduce bottom margin of team section */
    padding-bottom: 10px !important; /* Reduce bottom padding of team section */
}



/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 20px auto;
}

.faq-item {
    margin-bottom: 10px;
    border-bottom: 1px solid #ffcc00; /* Yellow divider */
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    color: #ffcc00;
}

.faq-arrow {
    transition: transform 0.3s ease;
}

.faq-answer {
    display: none;
    padding: 10px 15px;
    color: white;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    border-radius: 5px;
    margin-top: 5px;
}

/* Keep FAQ answer visible when active */
.faq-item.active .faq-answer {
    display: block;
}

/* Default FAQ question style (clear background) */
.faq-question {
    background: transparent !important;
    color: white !important;
    transition: background 0.3s ease, color 0.3s ease;
}

/* When clicked (active), make it purple */
.faq-item.active .faq-question {
    background: #a020f0 !important; /* Purple */
    color: white !important;
}

/* When closed (inactive), return to transparent */
.faq-item:not(.active) .faq-question {
    background: transparent !important; /* Ensures it stays clear */
    color: white !important;
}

/* Floating Menu Button */
.floating-menu {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
}

/* Menu Button Styling */
.menu-btn {
    background: #a020f0; /* Purple */
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.menu-btn:hover {
    background: #d88aff; /* Lighter Purple */
}

/* Dropdown Menu (Hidden by Default) */
.menu-dropdown {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 5px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    min-width: 150px;
}

/* Dropdown Links */
.menu-dropdown a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px;
    font-size: 16px;
    transition: background 0.3s ease;
}

.menu-dropdown a:hover {
    background: #a020f0; /* Purple Hover */
}

/* Show Menu When Active */
.floating-menu.active .menu-dropdown {
    display: block;
}

/* Fully Force Footer Buy Now Button to Match Menu Button */
.footer-btn, 
footer button {
    display: inline-block !important;
    background: #a020f0 !important; /* EXACT Purple as Menu Button */
    color: white !important; /* Force White Text */
    font-size: 18px !important;
    font-weight: bold !important;
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    text-align: center !important;
    transition: background 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7) !important; /* Changed to black shadow */
}

/* Force Hover Effect */
.footer-btn:hover, 
footer button:hover {
    background: #8a2be2 !important; /* Slightly Lighter Purple */
    color: white !important;
}

/* Responsive Top Background Image - Mobile Fix */
@media screen and (max-width: 768px) {
    body {
        background-position: center top; /* Ensures the image stays at the top */
    }
   
    .text-sections {
        margin-top: 45vw; /* Responsive margin for tablets */
    }
   
    /* Keep the rest of the media query as is */
}

@media screen and (max-width: 480px) and (orientation: portrait) {
    body {
        background-size: 100% auto; /* Forces the width to 100% */
        background-position: center top;
    }
   
    .text-sections {
        margin-top: 50vw; /* Slightly increased for phones to show more of the banner */
    }
   
    /* Keep the rest of the media query as is */
}
    
    .game-image {
        width: 150px; /* Smaller image for mobile */
    }
    
    /* Smaller countdown timer for mobile */
    #countdown {
        font-size: 18px;
    }
    
    /* Adjust section padding for mobile */
    .text-sections section {
        padding: 30px 15px;
    }

/* Responsive adjustments for section boxes */
@media screen and (max-width: 768px) {
    /* Make the section boxes narrower */
    #tokenomics, #roadmap, #how-to-buy {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 480px) and (orientation: portrait) {
    /* Make the section boxes even narrower on small phones */
    #tokenomics, #roadmap, #how-to-buy {
        max-width: 85%;
        padding: 15px;
    }
    
    /* Adjust the toggle buttons to match */
    .tokenomics-btn, .toggle-btn, .how-to-buy-btn {
        max-width: 85%;
    }
}

/* Responsive adjustments for section boxes */
@media screen and (max-width: 768px) {
    /* Make the section boxes narrower */
    #tokenomics, #roadmap, #how-to-buy, #token-sale {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Also adjust the token sale glow effect */
    #token-sale::before {
        left: -5px;
        right: -5px;
    }
}

@media screen and (max-width: 480px) and (orientation: portrait) {
    /* Make the section boxes even narrower on small phones */
    #tokenomics, #roadmap, #how-to-buy, #token-sale {
        max-width: 85%;
        padding: 15px;
    }
    
    /* Adjust the toggle buttons to match */
    .tokenomics-btn, .toggle-btn, .how-to-buy-btn {
        max-width: 85%;
    }
    
    /* Make the price box and buttons in token sale fit better */
    #royale-price-box {
        max-width: 80%;
    }
    
    #connect-wallet, #buy-now {
        padding: 10px 20px;
        max-width: 80%;
    }
}

/* Add this at the end of your existing CSS file */

/* Responsive Top Background Image - Mobile Fix */
@media screen and (max-width: 768px) {
    body {
        background-position: center top; /* Ensures the image stays at the top */
    }
   
    .text-sections {
        margin-top: 45vw; /* Responsive margin for tablets */
    }
   
    /* Keep the rest of the media query as is */
}

@media screen and (max-width: 480px) and (orientation: portrait) {
    body {
        background-size: 100% auto; /* Forces the width to 100% */
        background-position: center top;
    }
   
    .text-sections {
        margin-top: 50vw; /* Slightly increased for phones to show more of the banner */
    }
   
    /* Keep the rest of the media query as is */
}
    
    .game-image {
        width: 150px; /* Smaller image for mobile */
    }
    
    /* Smaller countdown timer for mobile */
    #countdown {
        font-size: 18px;
    }
    
    /* Adjust section padding for mobile */
    .text-sections section {
        padding: 30px 15px;
    }
    
    /* Make the section boxes even narrower on small phones */
    #tokenomics, #roadmap, #how-to-buy, #token-sale {
        max-width: 85%;
        padding: 15px;
    }
    
    /* Adjust the toggle buttons to match */
    .tokenomics-btn, .toggle-btn, .how-to-buy-btn {
        max-width: 85%;
    }
    
    /* Make the price box and buttons in token sale fit better */
    #royale-price-box {
        max-width: 80%;
    }
    
    #connect-wallet, #buy-now {
        padding: 10px 20px;
        max-width: 80%;
    }

/* For landscape and larger screens */
@media screen and (min-width: 769px) {
    .payment-boxes-container {
        flex-direction: row;
    }
    
    .conversion-box {
        width: 48%;
    }
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    width: 0;
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
html {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Ensure body takes up full width without overflow */
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

@media screen and (max-width: 480px) {
    /* Ensure no horizontal overflow on mobile */
    html, body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
        max-width: 100vw;
        margin: 0;
        padding: 0;
    }
    
    /* Hide mobile scrollbars */
    ::-webkit-scrollbar {
        display: none;
        width: 0;
    }
    
    /* Fix for potential overflow from any element */
    * {
        max-width: 100vw;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 480px) and (orientation: portrait) {
    /* Your existing mobile styles... */
    
    /* Move the Meme Royale section higher up */
    #meme-royale-game {
        margin-top: -80px; /* Increase this negative value to move it up more */
    }
}

@media screen and (max-width: 480px) and (orientation: portrait) {
    /* Your existing mobile styles... */
    
    /* Reduce space between heading and text on mobile */
    .game-text h2 {
        margin-bottom: 5px; /* Even smaller margin for mobile */
    }
    
    .game-text p {
        margin-top: 0;
    }
}

/* Adjust padding below the game image */
.game-image {
    width: 210px; /* Keep your current width or change it as needed */
    height: auto;
    margin: 0 20px 20px 20px; /* This adds 20px margin at the bottom */
    /* OR */
    padding-bottom: 20px; /* This adds padding at the bottom */
}

/* How to Moon section styling */
#how-to-moon {
    max-width: 900px;
    margin: 2px auto 0 auto;
    padding: 20px;
    padding-bottom: 3px;
    margin-top: -70px;
}

/* Keep header centered but allow step content to align left */
#how-to-moon h2 {
    text-align: center;
}

/* Push the FAQ section up */
#faq {
    margin-top: -50px; /* Adjust this value to move it higher */
}

/* Make "How to Moon Your Bags" header yellow */
#how-to-moon h2 {
    color: #ffcc00; /* This is the yellow color you use elsewhere */
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8); /* Match the text shadow from other headers */
}

/* Make "Team & Advisors" header yellow */
#team h2 {
    color: #ffcc00; /* This is the yellow color you use elsewhere */
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8); /* Match the text shadow from other headers */
    font-size: 28px; /* Match the font size of other headers */
    text-transform: uppercase; /* If your other headers are in uppercase */
    margin-bottom: 5px;
}

/* Target both margin and padding for the heading and paragraph */
#team h2 {
    margin-bottom: 5px !important; /* Force override any other styles */
    padding-bottom: 0 !important;
}

#team p {
    margin-top: 0 !important; /* Remove top margin from paragraph */
    margin-bottom: 10px !important; /* Small margin before the team container */
    padding-top: 0 !important;
}

/* Also adjust the team container top margin in case that's contributing */
.team-container {
    margin-top: 10px !important; /* Adjust this value as needed */
}

@media screen and (max-width: 480px) and (orientation: portrait) {
    body {
        /* Reset any background settings that might be causing issues */
        background-attachment: initial;
        background-position: top center;
        background-size: 140% auto;
        background-repeat: no-repeat;
    }
    
    /* Keep your text sections at an appropriate distance */
    .text-sections {
        margin-top: 250px; /* Adjust based on your image height */
    }
}

@media screen and (max-width: 480px) and (orientation: portrait) {
    /* Your existing mobile styles... */
    
    /* Reduce the gap between top image and content */
    .text-sections {
        margin-top: 225px; /* Reduce this value to shift content up */
    }
}

/* Shift the game image more to the right */
.game-image.right {
    margin-right: 0; /* Remove right margin if it exists */
    margin-left: 60px; /* Increase left margin to push it right */
}

/* Fix for How to Buy dropdown cutoff in mobile portrait mode */
@media screen and (max-width: 480px) and (orientation: portrait) {
    #how-to-buy-content.active {
        max-height: 1500px !important; /* Much larger value to ensure all content shows */
        overflow: visible !important; /* Additional fix to prevent cutting off */
    }
}

/* Countdown Container */
#countdown-container {
    background: #8a2be2; /* Purple background */
    padding: 10px 20px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 90%;
    text-align: center;
}

/* Numbers row */
#countdown {
    display: flex;
    justify-content: center;
    align-items: center;
}

.countdown-number {
    font-size: 32px;
    font-weight: bold;
    color: #00ff00; /* Bright green numbers */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Luckiest Guy', cursive;
    padding: 0 5px;
}

.countdown-separator {
    font-size: 32px;
    color: #00ff00; /* Same color as numbers */
    font-weight: bold;
    margin: 0 5px;
}

/* Labels row */
#countdown-labels {
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

.countdown-label {
    font-size: 16px;
    color: #ffffff; /* White text */
    width: 80px; /* Fixed width to align with numbers */
    text-align: center;
    text-transform: lowercase;
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    .countdown-number, .countdown-separator {
        font-size: 24px;
    }
    
    .countdown-label {
        font-size: 12px;
        width: 60px;
    }
}

/* Enhanced pulsing animation for the pre-sold amount */
@keyframes pulse {
    0% {
      opacity: 1;
      transform: scale(1);
      filter: brightness(100%);
    }
    50% {
      opacity: 0.9;
      transform: scale(1.15); /* Increased from 1.05 to 1.15 */
      filter: brightness(130%); /* Added brightness effect */
      text-shadow: 0 0 10px rgba(255, 215, 0, 0.7); /* Added glow effect */
    }
    100% {
      opacity: 1;
      transform: scale(1);
      filter: brightness(100%);
    }
  }
  
  /* Apply the enhanced animation to the number span */
  #presale-value {
    display: inline-block;
    animation: pulse 2s infinite ease-in-out;
    color: #FFD700; /* Gold color */
    font-weight: bold;
  }

  /* Social Media Section Styling */
#social-media {
    max-width: 900px;
    margin: -30px auto 5px;
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0);
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.0);
}

#social-media h3 {
    font-size: 24px;
    color: #ffcc00;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
}

.social-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
}

.social-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

@media screen and (max-width: 480px) {
    .social-links {
        gap: 20px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
}

/* Add shadow to the specific image */
img[src="images/youre early fren 3.png"] {
    filter: drop-shadow(4px 3px 6px rgba(0, 0, 0, 0.6));
    -webkit-filter: drop-shadow(4px 3px 6px rgba(0, 0, 0, 0.6));
}

/* Reduce spacing between team members in mobile portrait mode */
@media screen and (max-width: 768px) {
    .team-container {
        flex-direction: column;
        align-items: center;
        gap: 20px; /* Reduced from 50px to 20px */
    }
    
    /* Further reduce spacing for very small screens */
    @media screen and (max-width: 480px) {
        .team-container {
            gap: 10px; /* Even smaller gap for phones */
        }
        
        /* Reduce margins around team section elements */
        .team-member {
            margin-bottom: 5px; /* Add a small bottom margin */
        }
        
        .team-member h3 {
            margin-top: 5px; /* Reduced from 10px */
            margin-bottom: 5px; /* Ensure small gap between name and role */
        }
        
        /* Make images slightly smaller on very small screens */
        .team-img {
            width: 100px; /* Reduced from 120px */
            height: 100px;
        }
    }
}

/* Make Tokenomics dropdown use FAQ styling */
#tokenomics {
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: transparent;
    box-shadow: none;
}

/* Style the toggle button like FAQ questions */
.tokenomics-btn {
    width: 100%;
    background: transparent !important;
    border: none !important;
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    color: white !important;
    cursor: pointer;
    padding: 15px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none !important;
    border-bottom: 1px solid #ffcc00 !important; /* Yellow divider like FAQ */
    border-radius: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.tokenomics-btn:hover {
    color: #ffcc00 !important;
    background: transparent !important;
}

/* Style the content area with black transparent background like FAQ */
#tokenomics-content {
    padding: 10px 15px;
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.6) !important; /* Black transparent background */
    border-radius: 5px;
    margin-top: 5px;
}

/* When active/clicked styles */
#tokenomics.active .tokenomics-btn {
    background: #a020f0 !important; /* Purple */
    color: white !important;
}

/* Adjust the arrow rotation */
.tokenomics-btn .arrow {
    transition: transform 0.3s ease;
}

#tokenomics.active .tokenomics-btn .arrow {
    transform: rotate(180deg);
}

/* Override any other styling to ensure black background */
#tokenomics-content.active {
    background: rgba(0, 0, 0, 0.6) !important;
}

/* Make Roadmap dropdown use FAQ styling */
#roadmap {
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: transparent;
    box-shadow: none;
}

/* Style the toggle button like FAQ questions */
#roadmap .toggle-btn {
    width: 100%;
    background: transparent !important;
    border: none !important;
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    color: white !important;
    cursor: pointer;
    padding: 15px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none !important;
    border-bottom: 1px solid #ffcc00 !important; /* Yellow divider like FAQ */
    border-radius: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
}

#roadmap .toggle-btn:hover {
    color: #ffcc00 !important;
    background: transparent !important;
}

/* Style the content area with black transparent background like FAQ */
#roadmap-content {
    padding: 10px 15px;
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.6) !important; /* Black transparent background */
    border-radius: 5px;
    margin-top: 5px;
}

/* When active/clicked styles */
#roadmap.active .toggle-btn {
    background: #a020f0 !important; /* Purple */
    color: white !important;
}

/* Adjust the arrow rotation */
#roadmap .toggle-btn .arrow {
    transition: transform 0.3s ease;
}

#roadmap.active .toggle-btn .arrow {
    transform: rotate(180deg);
}

/* Override any other styling to ensure black background */
#roadmap-content.active {
    background: rgba(0, 0, 0, 0.6) !important;
}

/* Make How to Buy dropdown use FAQ styling */
#how-to-buy {
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: transparent;
    box-shadow: none;
}

/* Style the toggle button like FAQ questions */
.how-to-buy-btn {
    width: 100%;
    background: transparent !important;
    border: none !important;
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    color: white !important;
    cursor: pointer;
    padding: 15px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none !important;
    border-bottom: 1px solid #ffcc00 !important; /* Yellow divider like FAQ */
    border-radius: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.how-to-buy-btn:hover {
    color: #ffcc00 !important;
    background: transparent !important;
}

/* Style the content area with black transparent background like FAQ */
#how-to-buy-content {
    padding: 10px 15px;
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.6) !important; /* Black transparent background */
    border-radius: 5px;
    margin-top: 5px;
}

/* When active/clicked styles */
#how-to-buy.active .how-to-buy-btn {
    background: #a020f0 !important; /* Purple */
    color: white !important;
}

/* Adjust the arrow rotation */
.how-to-buy-btn .arrow {
    transition: transform 0.3s ease;
}

#how-to-buy.active .how-to-buy-btn .arrow {
    transform: rotate(180deg);
}

/* Override any other styling to ensure black background */
#how-to-buy-content.active {
    background: rgba(0, 0, 0, 0.6) !important;
}

/* Minimal gaps between dropdown sections */
#tokenomics, 
#roadmap, 
#how-to-buy {
    margin-top: 5px !important; /* Further reduced from 10px to 5px */
    margin-bottom: 5px !important;
}

/* Even tighter for mobile */
@media screen and (max-width: 768px) {
    #tokenomics, 
    #roadmap, 
    #how-to-buy {
        margin-top: 3px !important; /* Very minimal gap */
        margin-bottom: 3px !important;
    }
}

/* Additional fix for any potential padding that might be adding to the gap */
#tokenomics, 
#roadmap, 
#how-to-buy {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Crypto Currency Selector Styling */
.currency-selector {
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
}

.currency-selector label {
    font-size: 16px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: white;
}

.select-wrapper {
    position: relative;
    display: inline-block;
    width: 70%;
    max-width: 250px;
}

#crypto-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 10px 15px;
    border: 2px solid orange;
    border-radius: 8px;
    background-color: white;
    color: black;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}

.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #333;
}

/* Mobile responsive adjustments */
@media screen and (max-width: 768px) {
    .currency-selector {
        margin-bottom: 20px;
    }
    
    .select-wrapper {
        width: 90%;
    }
}

#crypto-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 10px 15px;
    border: 2px solid orange;
    border-radius: 8px;
    background-color: white;
    color: #a020f0; /* Changed from black to purple */
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}

/* Fix for list item text wrapping in How to Buy section */
.custom-list li {
    padding-left: 0 !important;
    text-indent: 0 !important;
    position: relative;
    padding-left: 1.5em !important;
}

.custom-list li:before {
    content: "•";
    position: absolute;
    left: 0.5em;
}

@media screen and (max-width: 480px) {
    .custom-list li {
        padding-left: 0 !important;
        text-indent: 0 !important;
        margin-left: 0;
        padding-left: 1.5em !important;
        display: block;
    }
    
    #how-to-buy-content p,
    #how-to-buy-content li {
        word-wrap: break-word;
        white-space: normal;
    }
    
    /* Fix specifically for the setup process line */
    .custom-list li:nth-child(3),
    .custom-list li:nth-child(4) {
        padding-left: 1.5em !important;
        text-indent: 0 !important;
    }
}

/* Animated Countdown Timer Styling */
.countdown-container {
  background: linear-gradient(135deg, #8a2be2, #ff66cc);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(138, 43, 226, 0.5);
  margin: 30px auto;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 600px;
}

/* Animated background effect */
.countdown-container:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
                             rgba(255, 255, 255, 0) 0%, 
                             rgba(255, 255, 255, 0.1) 50%, 
                             rgba(255, 255, 255, 0) 100%);
  animation: shine 4s infinite linear;
  pointer-events: none;
  z-index: 1;
}

@keyframes shine {
  from {
    transform: rotate(0deg) translate(-50%, -50%);
  }
  to {
    transform: rotate(360deg) translate(-50%, -50%);
  }
}

/* Countdown title styling */
.countdown-title {
  font-size: 22px;
  font-weight: bold;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

/* Countdown digits container */
.countdown-digits {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* Individual time unit container */
.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 10px;
  position: relative;
}

/* Digit styling */
.digit {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  color: #00ff00;
  font-size: 36px;
  font-weight: bold;
  font-family: 'Luckiest Guy', cursive;
  width: 70px;
  height: 70px;
  line-height: 70px;
  text-align: center;
  margin: 0 2px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Pulse animation for digits */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Apply pulse animation to seconds */
#seconds-tens, #seconds-ones {
  animation: pulse 1s infinite;
}

/* Apply less frequent pulse to minutes */
#minutes-tens, #minutes-ones {
  animation: pulse 2s infinite;
}

/* Label styling */
.time-label {
  color: white;
  font-size: 14px;
  margin-top: 8px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Separator styling */
.separator {
  color: white;
  font-size: 36px;
  font-weight: bold;
  margin-top: 10px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Final message */
.final-message {
  color: white;
  font-size: 16px;
  margin-top: 15px;
  position: relative;
  z-index: 2;
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
  .digit {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 28px;
  }
  
  .separator {
    font-size: 28px;
  }
  
  .time-unit {
    margin: 0 5px;
  }
}

@media screen and (max-width: 480px) {
  .digit {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 22px;
  }
  
  .separator {
    font-size: 22px;
  }
  
  .time-label {
    font-size: 12px;
  }
}

/* Animated Countdown Timer Styling */
.countdown-container {
    background: linear-gradient(135deg, #8a2be2, #ff66cc);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(138, 43, 226, 0.5);
    margin: 30px auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
  }
  
  /* Animated background effect */
  .countdown-container:before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
                               rgba(255, 255, 255, 0) 0%, 
                               rgba(255, 255, 255, 0.1) 50%, 
                               rgba(255, 255, 255, 0) 100%);
    animation: shine 4s infinite linear;
    pointer-events: none;
    z-index: 1;
  }
  
  @keyframes shine {
    from {
      transform: rotate(0deg) translate(-50%, -50%);
    }
    to {
      transform: rotate(360deg) translate(-50%, -50%);
    }
  }
  
  /* Countdown title styling */
  .countdown-title {
    font-size: 22px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
  }
  
  /* Countdown digits container */
  .countdown-digits {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
  }
  
  /* Individual time unit container */
  .time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 10px;
    position: relative;
  }
  
  /* Digit styling */
  .digit {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    color: #00ff00;
    font-size: 36px;
    font-weight: bold;
    font-family: 'Luckiest Guy', cursive;
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    margin: 0 2px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
  
  /* Pulse animation for digits */
  @keyframes pulse {
    0% {
      transform: scale(1);
      opacity: 1;
    }
    50% {
      transform: scale(1.05);
      opacity: 0.9;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  /* Apply pulse animation to seconds */
  #seconds-tens, #seconds-ones {
    animation: pulse 1s infinite;
  }
  
  /* Apply less frequent pulse to minutes */
  #minutes-tens, #minutes-ones {
    animation: pulse 2s infinite;
  }
  
  /* Label styling */
  .time-label {
    color: white;
    font-size: 14px;
    margin-top: 8px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  }
  
  /* Separator styling */
  .separator {
    color: white;
    font-size: 36px;
    font-weight: bold;
    margin-top: 10px;
    animation: blink 1s infinite;
  }
  
  @keyframes blink {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0.5;
    }
  }
  
  /* Final message */
  .final-message {
    color: white;
    font-size: 16px;
    margin-top: 15px;
    position: relative;
    z-index: 2;
  }
  
  /* Responsive adjustments */
  @media screen and (max-width: 600px) {
    .digit {
      width: 50px;
      height: 50px;
      line-height: 50px;
      font-size: 28px;
    }
    
    .separator {
      font-size: 28px;
    }
    
    .time-unit {
      margin: 0 5px;
    }
  }
  
  @media screen and (max-width: 480px) {
    .digit {
      width: 40px;
      height: 40px;
      line-height: 40px;
      font-size: 22px;
    }
    
    .separator {
      font-size: 22px;
    }
    
    .time-label {
      font-size: 12px;
    }
  }

  /* Reduce gap between heading and text in WHAT IS MEME ROYALE section */
.animated-heading {
    margin-bottom: 5px !important; /* Reduces space after heading */
}

.highlight-text {
    margin-top: 0 !important; /* Removes space before text */
}

/* For regular headings without animation class */
.game-text h2 {
    margin-bottom: 5px !important; /* Ensures all h2 in this section have reduced margin */
}

.game-text p {
    margin-top: 0 !important; /* Ensures all paragraphs in this section have no top margin */
}

/* Featured By Section */
#featured-by {
    margin-top: -30px !important; /* Create negative margin to pull it up */
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

/* Partners Container */
.partners-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 5px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Partner Logo Styling */
.partner-logo {
    flex: 0 0 auto;
    width: 220px;
    height: 150px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(80%) brightness(1.2);
    transition: all 0.5s ease;
    animation: pulse 3s infinite;
    /* Each logo pulses at a slightly different time */
    animation-delay: calc(var(--i, 0) * 1s);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

/* Set different animation delays for each logo */
.partner-logo:nth-child(1) { --i: 0; }
.partner-logo:nth-child(2) { --i: 1; }
.partner-logo:nth-child(3) { --i: 2; }

/* Hover effect */
.partner-logo:hover {
    filter: grayscale(0%) brightness(1.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.4);
    animation-play-state: paused;
}

/* Logo Image Styling */
.partner-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Image scaling on hover */
.partner-logo:hover img {
    transform: scale(1.1);
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.2);
    }
    
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(138, 43, 226, 0);
    }
    
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .partners-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .partner-logo {
        width: 200px;
        height: 120px;
    }
}

/* Extra Animation for Image Glow */
.partner-logo:hover img {
    filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.8));
}

/* Add these styles to your style.css file */

#security-audit {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

#security-audit h3 {
    font-size: 26px;
    color: #ffcc00;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8);
    margin: 0;
    line-height: 1;
    padding: 0;
    text-align: center; /* Ensure centered text */
}

#security-audit p {
    font-size: 18px;
    color: white;
    margin: 0;
    padding: 0;
    line-height: 1;
    text-align: center; /* Ensure centered text */
}

.security-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align flex items */
    width: 100%; /* Full width to ensure centering works */
}

.audit-logo {
    margin: 0;
    padding: 0;
    line-height: 0;
    width: 100%; /* Full width */
    text-align: center; /* Center align content */
    display: flex;
    justify-content: center; /* Center the image horizontally */
    padding-bottom: 20px;
}

.audit-logo img {
    height: 40px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    margin-top: 10px;
    display: inline-block; /* Allow centering */
}

/* Media query for mobile responsiveness */
@media screen and (max-width: 480px) {
    #security-audit h3 {
        font-size: 22px;
    }
    
    #security-audit p {
        font-size: 16px;
    }
    
    .audit-logo img {
        height: 35px;
        margin-top: 10px;
    }
}

/* Teeter animation for the "Meme Royale is a high-energy..." section */
@keyframes teeter {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-1deg); }
    100% { transform: rotate(0deg); }
  }
  
  /* Animation class that will be added with JavaScript */
  #meme-royale-game .moon-step.teetering {
    animation: teeter 0.5s ease-in-out infinite;
  }

  /* Add this to your CSS file */
.animated-heading {
    /* Remove the glow effect */
    animation: none;
    text-shadow: none;
    
    /* Add the pulse effect */
    display: inline-block;
    animation: headingPulse 2s infinite;
  }
  
  /* This is the animation that will make headings pulse without showing edges */
  @keyframes headingPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
  }

  .animated-heading {
    color: #ffcc00;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8);
    animation: none;
  }

  /* Center align the How to Moon title */
#how-to-moon h2 {
    text-align: center;
  }

  /* Force center alignment on How to Moon title */
#how-to-moon h2.animated-heading {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    display: block !important;
  }

/* Make the royale price box match countdown container width */
#royale-price-box {
    background: orange;
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    width: 100%;         /* Change from max-width to width: 100% */
    max-width: 600px;    /* Match the max-width of countdown-container */
    margin: 20px auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

/* Ensure the countdown container has consistent sizing */
.countdown-container {
    width: 100%;
    max-width: 600px;
    /* Other properties remain the same */
}

/* Desktop-only fix for token sale container width */
@media screen and (min-width: 769px) {
    /* Token Sale Section - Match width with sections above */
    #token-sale {
        max-width: 800px !important; 
        width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }
  
    /* Make sure the glow effect doesn't exceed the width */
    #token-sale::before {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        box-sizing: border-box !important;
    }
  
    /* Ensure countdown container doesn't overflow */
    .countdown-container {
        max-width: 95% !important;
        box-sizing: border-box !important;
    }
  }

  /* Terms link styling */
.terms-link {
    position: relative;
    text-align: right;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    margin-top: 5px;
    margin-right: 10px;
    font-family: Arial, sans-serif;
    text-decoration: underline;
}

/* Modal styling */
.terms-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0}
    to {opacity: 1}
}

.modal-content {
    background: linear-gradient(135deg, #8a2be2, #a020f0);
    margin: 10% auto;
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.6);
    color: white;
    font-family: Arial, sans-serif;
    position: relative;
}

.close-modal {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -10px;
}

.close-modal:hover {
    color: #ffcc00;
}

.modal-content h2 {
    color: #ffcc00;
    margin-top: 0;
    margin-bottom: 15px;
    font-family: 'Luckiest Guy', cursive;
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 14px;
}

/* For smaller screens */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 15% auto;
        padding: 15px;
    }

    #whitepaper-content.active {
        max-height: 10000px; /* Even more height for mobile */
    }
}

/* Whitepaper Button Styling */
#whitepaper-section {
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 20px auto;
    padding: 10px;
}

.whitepaper-button {
    background: #a020f0 !important;
    color: white !important;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.whitepaper-button:hover {
    background: #8a2be2 !important;
    transform: translateY(-3px);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #111;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(138, 43, 226, 0.5);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: modalOpen 0.3s ease;
    border: 2px solid #a020f0;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #a020f0, #8a2be2);
    border-top-left-radius: 13px;
    border-top-right-radius: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h2 {
    color: white;
    margin: 0;
    font-size: 24px;
}

.close-modal {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #ffcc00;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(85vh - 120px); /* This ensures modal doesn't exceed screen size */
}

.modal-footer {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom-left-radius: 13px;
    border-bottom-right-radius: 13px;
    display: flex;
    justify-content: space-between;
}

.modal-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
}

#close-whitepaper {
    background-color: #333;
    color: white;
}

#close-whitepaper:hover {
    background-color: #555;
}

.download-btn {
    background-color: #ffcc00;
    color: black;
    text-decoration: none;
}

.download-btn:hover {
    background-color: #ffd700;
}

/* Whitepaper Section Styling */
.wp-section {
    margin-bottom: 15px;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
}

.wp-section-header {
    background: rgba(160, 32, 240, 0.2);
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.wp-section-header:hover {
    background: rgba(160, 32, 240, 0.4);
}

.wp-section-header h3 {
    margin: 0;
    font-size: 20px;
    color: #ffcc00;
}

.wp-arrow {
    transition: transform 0.3s ease;
}

.wp-section-content {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.wp-section.active .wp-section-content {
    padding: 15px;
    max-height: 3000px;
}

.wp-section.active .wp-arrow {
    transform: rotate(180deg);
}

.wp-section-content h4 {
    color: #ff66cc;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 18px;
}

.wp-section-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.wp-section-content ul {
    list-style: none;
    padding-left: 5px;
    margin-bottom: 15px;
}

.wp-section-content li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.wp-section-content li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ffcc00;
}

.highlight {
    color: #ffcc00;
    font-weight: bold;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .wp-section-header h3 {
        font-size: 18px;
    }
    
    .wp-section-content h4 {
        font-size: 16px;
    }
}

.disclaimer {
    font-size: 14px;
    font-style: italic;
    color: #aaa;
    margin-top: 30px;
    padding: 10px;
    border-top: 1px solid #333;
}

/* 100x Opportunity and Buy Presale Button Styles */
.opportunity-container {
    text-align: center;
    margin-top: 40px; /* Reduced to create less space above */
    margin-bottom: 40px; /* Made equal to top margin for balance */
    overflow: hidden; /* Prevents content from spilling out during animation */
    padding: 10px; /* Adds some internal padding */
    display: flex;
    flex-direction: column; /* Force vertical stacking */
    align-items: center; /* Center align the content */
}

/* For mobile devices, adjust spacing equally */
@media screen and (max-width: 480px) {
    .opportunity-container {
        margin-top: 50px; /* Balanced spacing for mobile */
        margin-bottom: 50px; /* Balanced spacing for mobile */
    }
}

/* Animation for the opportunity text */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.9;
        filter: brightness(120%);
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.opportunity-text {
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    letter-spacing: 2px;
    display: block; /* Changed from inline-block to block */
    width: 100%; /* Ensure it takes full width */
    animation: pulse 2s infinite ease-in-out; /* Animation applied to text only */
}

.presale-btn {
    display: inline-block;
    background: #a020f0 !important; /* Purple like the menu button */
    color: white !important;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7);
}

.presale-btn:hover {
    background: #8a2be2 !important; /* Slightly lighter purple on hover */
    transform: translateY(-3px);
    box-shadow: 0px 7px 15px rgba(0, 0, 0, 0.5);
}

/* Increase space between team heading and member photos */
#team p {
    margin-top: 0 !important;
    margin-bottom: 25px !important; /* Increased from 10px to 25px */
    padding-top: 0 !important;
}

/* Adjust the team container top margin as well */
.team-container {
    margin-top: 25px !important; /* Increased from 10px to 25px */
}

/* Update whitepaper content alignment */
.wp-section-content {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    text-align: left; /* Add this line to force left alignment */
}

/* Make sure all paragraphs, headings, and lists in the whitepaper are left-aligned */
.wp-section-content p,
.wp-section-content h4,
.wp-section-content ul,
.wp-section-content li {
    text-align: left !important; /* Force left alignment with !important */
}

/* Ensure the whitepaper section headers (which should remain centered) stay centered */
.wp-section-header h3 {
    text-align: center; /* Keep section headers centered */
}

/* Keep the modal header centered as well */
.modal-header h2 {
    text-align: center;
}

/* Reduce opportunity container margins */
.opportunity-container {
    text-align: center;
    margin-top: 15px; /* Further reduced top margin */
    margin-bottom: 15px; /* Reduced bottom margin to match */
    overflow: hidden;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Adjust the top margin/padding of the How to Moon section */
#how-to-moon {
    max-width: 900px;
    margin: -50px auto 0 auto; /* Increased negative margin to pull it up */
    padding: 20px;
    padding-top: 30px; /* Reduced top padding */
    padding-bottom: 3px;
}

/* For mobile devices */
@media screen and (max-width: 480px) {
    .opportunity-container {
        margin-top: 20px;
        margin-bottom: 40px;
    }
    
    #how-to-moon {
        margin-top: -40px; /* Pull up slightly more on mobile */
    }
}

/* Reduce bottom padding of the "What is Meme Royale" section */
#meme-royale-game {
    padding-bottom: 0 !important; /* Remove bottom padding completely */
}

/* If needed, also adjust the moon-step element inside */
#meme-royale-game .moon-step {
    margin-bottom: 10px !important; /* Reduce this value if there's still too much space */
}

/* Animated tagline box with fading white stroke - TEXT UNCHANGED */
.tagline {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    position: relative;
    /* Add a border that will animate */
    border: 2px solid transparent;
    /* Add the animation */
    animation: fadeStroke 2s infinite ease-in-out;
}

/* Animation for ONLY the fading white stroke */
@keyframes fadeStroke {
    0% {
        border-color: rgba(255, 255, 255, 0);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0);
    }
    50% {
        border-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    }
    100% {
        border-color: rgba(255, 255, 255, 0);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0);
    }
}

/* No changes to the text styling - keeping original */
/* This is left as reference but doesn't change anything */
.big-text {
    /* Original styling stays the same */
    font-size: 22px;
    letter-spacing: 1px;
    /* No new animations or effects added */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .tagline {
        padding: 12px;
    }
}

/* Styles for the collapsible moon steps */
.moon-step.collapsible {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Initially hide the step details */
.step-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    opacity: 0;
}

/* When the step is active, show the details */
.moon-step.active .step-details {
    max-height: 200px; /* Adjust this value based on content length */
    opacity: 1;
    padding-top: 10px;
}

/* Hover effect for non-active steps */
.moon-step.collapsible:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Force flex layout for all screens to keep number and title on same line */
.moon-step {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
}

/* Ensuring the step-content takes appropriate space */
.step-content {
    flex-grow: 1;
    margin-left: 15px; /* Space between number and content */
}

/* Add triangle indicator instead of plus sign */
.moon-step.collapsible .step-content h3::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
    margin-left: 8px;
    transition: transform 0.3s ease;
    vertical-align: middle;
    opacity: 0.9;
}

/* Rotate triangle when active */
.moon-step.active .step-content h3::after {
    transform: rotate(180deg);
}

/* Force pointer cursor on the number and title too */
.step-number, .step-content h3 {
    cursor: pointer;
}

/* Override existing media query that might change flex direction on mobile */
@media (max-width: 768px) {
    .moon-step {
        flex-direction: row !important;
        align-items: flex-start !important;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 0;
    }
    
    /* Adjust spacing for mobile */
    .step-content {
        padding-left: 5px;
        margin-left: 10px;
    }
    
    /* Make title text a bit smaller on mobile if needed */
    .step-content h3 {
        font-size: 18px;
    }
}

/* Specific mobile portrait mode fixes */
@media (max-width: 480px) and (orientation: portrait) {
    .moon-step {
        padding: 12px 10px; /* Slightly reduce padding */
    }
    
    .step-number {
        width: 35px; /* Slightly smaller circle */
        height: 35px;
        font-size: 20px;
        flex-shrink: 0;
    }
    
    .step-content h3 {
        font-size: 18px; /* Smaller font for titles */
        margin-top: 8px; /* Center vertically with smaller circle */
    }
    
    /* Make triangle slightly smaller on mobile */
    .moon-step.collapsible .step-content h3::after {
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid white;
    }
}

/* Change the color of the titles in the moon-step boxes */
.moon-step .step-content h3 {
    color: white; /* Changes the text color to white */
    /* Keep all other styling the same */
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 20px;
}

/* Ensure the mobile styles also have white text */
@media (max-width: 480px) and (orientation: portrait) {
    .step-content h3 {
        font-size: 18px; /* Smaller font for titles on mobile */
        margin-top: 8px; /* Center vertically with smaller circle */
        color: white; /* Ensure white color on mobile too */
    }
}

/* Update the triangle indicator to be yellow */
.moon-step.collapsible .step-content h3::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ffcc00; /* Changed to yellow (#ffcc00) */
    margin-left: 8px;
    transition: transform 0.3s ease;
    vertical-align: middle;
    opacity: 0.9;
}

/* For mobile screens, ensure the smaller triangle is also yellow */
@media (max-width: 480px) and (orientation: portrait) {
    /* Make triangle slightly smaller on mobile */
    .moon-step.collapsible .step-content h3::after {
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid #ffcc00; /* Yellow color for mobile too */
    }
}

.opportunity-text {
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    letter-spacing: 2px;
    display: block;
    width: 100%;
    animation: pulse 2s infinite ease-in-out;
}

/* Update the opportunity container to have smaller consistent spacing */
.opportunity-container {
    text-align: center;
    margin: 15px auto !important; /* Reduced from 30px to 15px - equal spacing above and below */
    padding: 5px !important; /* Reduced padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px; /* Match other containers */
}

/* Make sure the container above it doesn't have excessive bottom margin/padding */
#meme-royale-game .moon-step {
    margin-bottom: 0 !important; /* Remove bottom margin */
    padding-bottom: 5px !important; /* Reduced padding */
}

/* Adjust the How to Moon section top margin to be consistent */
#how-to-moon {
    max-width: 900px;
    margin: 10px auto 0 auto !important; /* Reduced positive margin */
    padding: 20px;
    padding-top: 10px !important;
    padding-bottom: 3px;
}

/* For mobile devices - ensure consistent spacing */
@media screen and (max-width: 480px) and (orientation: portrait) {
    .opportunity-container {
        margin: 12px auto !important; /* Slightly reduced but still equal */
    }
    
    #meme-royale-game .moon-step {
        margin-bottom: 0 !important;
        padding-bottom: 4px !important; /* Slightly smaller padding on mobile */
    }
    
    #how-to-moon {
        margin-top: 8px !important; /* Less space on mobile */
    }
}

/* Enhanced Buy Now Button Animation - Fixed */
#buy-now {
    position: relative;
    background-color: orange;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  }
  
  #buy-now::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 490%;
    width: 140%;
    background-color: #ffffff; /* Hot Pink */
    border-radius: 50%;
    transition: all 0.5s ease-in-out;
    z-index: -1;
    transform: translateX(-120%) translateY(-25%) rotate(0deg);
  }
  
  #buy-now:hover {
    box-shadow: 0px 6px 15px rgba(160, 32, 240, 0.6);
    color: #ff9900;
  }
  
  #buy-now:hover::after {
    transform: translateX(-9%) translateY(-25%) rotate(0deg);
  }

  /* Enhanced Buy Presale Button Animation - Purple to Orange */
.presale-btn {
    position: relative;
    display: inline-block;
    background-color: #a020f0 !important; /* Starting with purple */
    color: white !important;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7); /* Black shadow */
  }
  
  .presale-btn::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 490%;
    width: 140%;
    background-color: #ffa500; /* Orange */
    border-radius: 50%;
    transition: all 0.5s ease-in-out;
    z-index: -1;
    transform: translateX(-120%) translateY(-25%) rotate(0deg);
  }
  
  .presale-btn:hover {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7); /* Keeping black shadow on hover */
    color: white !important; /* Ensuring text stays white */
  }
  
  .presale-btn:hover::after {
    transform: translateX(-9%) translateY(-25%) rotate(0deg);
  }

  /* Enhanced Buy Now Button Animation - Orange to White */
#buy-now {
    position: relative;
    background-color: orange;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7); /* Black shadow */
  }
  
  #buy-now::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 490%;
    width: 140%;
    background-color: white; /* White background for hover */
    border-radius: 50%;
    transition: all 0.5s ease-in-out;
    z-index: -1;
    transform: translateX(-120%) translateY(-25%) rotate(0deg);
  }
  
  #buy-now:hover {
    color: orange; /* Text changes to orange on hover */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7); /* Keeping black shadow on hover */
  }
  
  #buy-now:hover::after {
    transform: translateX(-9%) translateY(-25%) rotate(0deg);
  }

  /* Team Card Styling */
.team-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 30px;
}

.team-card {
    width: 180px;
    height: 250px;
    perspective: 1000px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.team-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.team-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
}

.team-card:hover .team-card-inner {
    transform: rotateY(180deg);
}

.team-card-front, .team-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 15px;
    box-sizing: border-box;
}

.team-card-front {
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

.team-card-back {
    background: linear-gradient(135deg, #8a2be2, #ff66cc);
    color: white;
    transform: rotateY(180deg);
    text-align: center;
    overflow: hidden;
}

.team-card-back h3 {
    color: #ffcc00;
    margin-bottom: 10px;
    font-size: 18px;
}

.team-card-back p {
    font-size: 14px;
    line-height: 1.4;
    font-family: Arial, sans-serif;
}

.team-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #a020f0;
    object-fit: cover;
    margin-bottom: 10px;
}

.team-card-front h3 {
    margin: 10px 0 5px;
    font-size: 18px;
    color: white;
}

.team-card-front p {
    font-size: 14px;
    color: #ffcc00;
    font-weight: bold;
    margin: 0;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .team-card {
        width: 220px;
        height: 300px;
    }
}

.tap-text {
    color: white !important;
    font-size: 12px;
    font-weight: normal;
}

/* Enhanced Connect Wallet Button Animation - Orange to White */
#connect-wallet {
    position: relative;
    background-color: orange;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7); /* Black shadow */
}

#connect-wallet::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 490%;
    width: 140%;
    background-color: white; /* White background for hover */
    border-radius: 50%;
    transition: all 0.5s ease-in-out;
    z-index: -1;
    transform: translateX(-120%) translateY(-25%) rotate(0deg);
}

#connect-wallet:hover {
    color: orange; /* Text changes to orange on hover */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7); /* Keeping black shadow on hover */
}

#connect-wallet:hover::after {
    transform: translateX(-9%) translateY(-25%) rotate(0deg);
}

/* Enhanced Whitepaper Button Animation - Purple to White */
.whitepaper-button {
    position: relative;
    background-color: #a020f0 !important;
    color: white !important;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7);
}

.whitepaper-button::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 490%;
    width: 140%;
    background-color: white;
    border-radius: 50%;
    transition: all 0.5s ease-in-out;
    z-index: -1;
    transform: translateX(-120%) translateY(-25%) rotate(0deg);
}

.whitepaper-button:hover {
    color: #a020f0 !important; /* Text changes to purple on hover */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7);
}

.whitepaper-button:hover::after {
    transform: translateX(-9%) translateY(-25%) rotate(0deg);
}

/* Enhanced Footer Buy Now Button Animation - Purple to White with Orange Text */
.footer-btn, 
footer button {
    position: relative;
    display: inline-block !important;
    background-color: #a020f0 !important;
    color: white !important;
    font-size: 18px !important;
    font-weight: bold !important;
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    text-align: center !important;
    overflow: hidden !important;
    z-index: 1 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7) !important;
}

.footer-btn::after, 
footer button::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 490%;
    width: 140%;
    background-color: orange;
    border-radius: 50%;
    transition: all 0.5s ease-in-out;
    z-index: -1;
    transform: translateX(-120%) translateY(-25%) rotate(0deg);
}

.footer-btn:hover,
footer button:hover {
    color: white !important; /* Text changes to white on hover */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7) !important;
}

.footer-btn:hover::after,
footer button:hover::after {
    transform: translateX(-9%) translateY(-25%) rotate(0deg);
}

