header .container img {
    width: 15rem;
}

@media (max-width: 55em) {
    header .container img {
        margin-left: 7.5rem;
    }
    #astro-token .container h1.txt-gradient {
        margin-top: 12rem;
    }
    #slider .slidertext h2.aos-animate {
        margin-top: 6rem;
        overflow-wrap:  break-word;
        font-size:  20px;
    }
}

.btn-cta:hover {
    color: #007508 !important;
}

.token-balance {
    margin-left: 10px;
    font-size: 0.9em;
    opacity: 0.9;
}

.disconnect-x {
    margin-left: 10px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    opacity: 0.7;
}

.disconnect-x:hover {
    opacity: 1;
}

/* Add responsive wallet display styles */
#wallet {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Create a condensed wallet display for mobile */
@media (max-width: 768px) {
    #wallet.is-connected {
        position: fixed;
        top: 1rem;
        right: 4rem; /* Leave space for hamburger menu */
        z-index: 1000;
        font-size: 0.8rem;
        padding: 0.5rem;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 20px;
        max-width: 150px; /* Adjust as needed */
    }

    #wallet.is-connected .token-balance {
        display: none; /* Hide token balance on mobile when navbar is collapsed */
    }

    #navbar[data-visible="true"] #wallet.is-connected {
        position: static; /* Reset position when navbar is open */
        max-width: 100%;
    }

    #navbar[data-visible="true"] #wallet.is-connected .token-balance {
        display: inline; /* Show token balance when navbar is open */
    }
}

/* Token Purchase Button in Header */
.token-purchase-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Token Purchase Modal */
#tokenPurchaseModal .modal {
    max-width: 500px;
}

.token-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.token-address {
    font-family: monospace;
    font-size: 0.9em;
    background: rgba(0, 0, 0, 0.2);
    padding: 3px 6px;
    border-radius: 4px;
}

.purchase-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.purchase-option {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
}

.amount-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.amount-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover, .amount-btn.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.custom-amount {
    margin-top: 10px;
}

.custom-amount input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    margin-bottom: 10px;
}

.purchase-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.purchase-note {
    font-size: 0.8em;
    opacity: 0.7;
    margin-top: 10px;
}

.alternative-options {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

@media (max-width: 768px) {
    .token-purchase-container {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }
    
    #buy-token-btn {
        width: 100%;
    }
}

/* Transaction Status */
.transaction-status {
    margin-top: 15px;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Token Purchase Section in Hero */
.token-purchase-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 100%;
}

.token-purchase-section .token-info {
    margin-bottom: 15px;
}

.token-purchase-section .purchase-options {
    margin-bottom: 15px;
}

/* Hero section layout */
#hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

#hero .hero-content {
    grid-column: 1 / 2;
}

#hero .hero-image {
    grid-column: 2 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.space-vortex {
    width: 100%;
    max-width: 500px;
    position: relative;
}

.space-vortex img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* News Section (moved down) */
#news-section {
    padding: 80px 0;
    background: var(--bg-gradient);
}

#news-section .section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

#news-section .section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

#news-section .buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Transaction Status */
.transaction-status {
    margin-top: 15px;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #hero .container {
        grid-template-columns: 1fr;
    }
    
    #hero .hero-content, 
    #hero .hero-image {
        grid-column: 1 / -1;
    }
    
    #hero .hero-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .token-purchase-section {
        padding: 15px;
    }
    
    #news-section .buttons {
        flex-direction: column;
        align-items: center;
    }
    
    #news-section .buttons a {
        width: 100%;
        text-align: center;
    }
}
