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

/* Body with mossy GIF background */
body {
    background-image: url('assets/mossbg.gif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Courier New', Courier, monospace;
    color: #00ff00;
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Stack content vertically */
}

/* Container */
.container {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border: 2px solid #00ff00;
    box-shadow: 0 0 10px #00ff00;
    max-width: 600px;
    width: 90%;
    margin: 20px auto; /* Center horizontally */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center child elements */
    z-index: 10;
}

/* Page Banner */
.page-banner {
    width: 100%;
    max-width: 600px; /* Ensure it doesn’t exceed container */
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}

/* Title */
h1 {
    font-size: 2.5em;
    text-shadow: 2px 2px #000;
    margin-bottom: 20px;
    text-align: center;
}

/* Title Description */
.title-description {
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    text-shadow: 1px 1px #000;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.4;
}

/* Minting Section */
.mint-section {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mint-placeholder {
    color: #00ff00;
    font-size: 1.2em;
    text-shadow: 1px 1px #000;
    margin-bottom: 10px;
    text-align: center;
}

/* Cigsuiga Preview Image */
.cigsuiga-preview {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
}

/* Mint Description */
.mint-description {
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    text-shadow: 1px 1px #000;
    margin-bottom: 10px;
    text-align: center;
}

/* StationThisBot Button */
.stationthisbot-btn {
    background: transparent;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    display: inline;
    transition: color 0.3s;
}

.stationthisbot-btn:hover {
    color: #ff00ff;
}

/* Connect Wallet Button */
.connect-wallet-btn {
    background: #228B22;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1em;
    padding: 10px 20px;
    border: 2px solid #00ff00;
    cursor: pointer;
    transition: background 0.3s;
    margin: 10px auto;
    display: block;
}

.connect-wallet-btn:hover {
    background: #006400;
}

/* Wallet Status */
.wallet-status {
    color: #00ff00;
    font-size: 1em;
    text-shadow: 1px 1px #000;
    margin-top: 10px;
    text-align: center;
}

.wallet-status.success {
    color: #00ff00;
}

.wallet-status.error {
    color: #ff00ff;
}

/* Invite Lists */
.invite-lists {
    margin-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.invite-lists h3 {
    font-size: 1.2em;
    text-shadow: 1px 1px #000;
    margin-bottom: 10px;
    text-align: center;
}

.invite-lists p {
    color: #00ff00;
    font-size: 0.9em;
    text-shadow: 1px 1px #000;
    text-align: center;
}

/* Card for Invite Lists */
.card {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 15px;
    margin: 10px auto;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 0 5px #00ff00;
    text-align: center;
}

/* Mint Button */
.mint-button {
    background: #228B22;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1em;
    padding: 10px 20px;
    border: 2px solid #00ff00;
    cursor: pointer;
    margin: 10px auto;
    transition: background 0.3s;
    display: block;
}

.mint-button:hover {
    background: #006400;
}

.mint-button:disabled {
    background: #333333;
    color: #666666;
    cursor: not-allowed;
    border: 2px solid #666666;
}

.view-nfts-btn {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 10px 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px #000;
}

.view-nfts-btn:hover {
    background: rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    transform: translateY(-1px);
}

/* NFT Overlay */
.nft-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.nft-container {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border: 2px solid #00ff00;
    max-width: 90%;
    max-height: 70%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nft-title {
    font-size: 1.8em;
    text-shadow: 2px 2px #000;
    margin-bottom: 15px;
    text-align: center;
}

.nft-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.nft-item {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    width: 200px;
    text-align: center;
}

.nft-image {
    width: 100%;
    height: auto;
    cursor: pointer;
    border: 1px solid #00ff00;
}

.nft-item p {
    color: #00ff00;
    font-size: 0.9em;
    margin: 5px 0;
    text-align: center;
}

.nft-empty {
    color: #00ff00;
    font-size: 1em;
    text-shadow: 1px 1px #000;
    text-align: center;
}

/* Collection NFT Card Styles */
.nft-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 8px;
    padding: 10px;
    margin: 10px;
    display: inline-block;
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
}

.nft-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 255, 0, 0.3);
}

.nft-card .nft-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.nft-card .nft-image:hover {
    transform: scale(1.05);
}

.nft-card .nft-info {
    margin-top: 8px;
}

.nft-card .nft-info h3 {
    color: #00ff00;
    font-size: 0.9em;
    margin-bottom: 4px;
    text-shadow: 1px 1px #000;
}

.nft-card .nft-info p {
    color: #00ff00;
    font-size: 0.8em;
    opacity: 0.8;
    text-shadow: 1px 1px #000;
}

/* Secondary Market Link */
.collection-secondary-link {
    margin-top: 20px;
    text-align: center;
}

.secondary-market-btn {
    display: inline-block;
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    padding: 10px 20px;
    text-decoration: none;
    border: 1px solid #00ff00;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    transition: all 0.3s ease;
    text-shadow: 1px 1px #000;
}

.secondary-market-btn:hover {
    background: rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    transform: translateY(-1px);
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 2px solid #00ff00;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    color: #00ff00;
    cursor: pointer;
    text-shadow: 1px 1px #000;
}

.close-modal:hover {
    color: #ff00ff;
}

/* Link List */
.link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.link-list li {
    margin: 15px 0;
    position: relative;
}

.link-list a {
    color: #00ff00;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s;
    text-align: center;
}

.link-list a:hover {
    color: #ff00ff;
}

/* Text Tooltip */
.link-list a[data-tooltip] {
    position: relative;
}

.link-list a[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    padding: 5px 10px;
    border: 1px solid #00ff00;
    border-radius: 5px;
    font-size: 0.9em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 10;
}

.link-list a[data-tooltip]:hover::after {
    opacity: 1;
}

/* Image Tooltips */
.link-list a.tooltip-mossnet::after,
.link-list a.tooltip-banners::after,
.link-list a.tooltip-mossawrettes::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 10;
    margin-bottom: 10px;
}

.link-list a.tooltip-mossnet::after {
    background: url('assets/cignet.png') no-repeat center/contain;
}

.link-list a.tooltip-banners::after {
    background: url('assets/banner.png') no-repeat center/contain;
}

.link-list a.tooltip-mossawrettes::after {
    background: url('assets/mossawrettes.png') no-repeat center/contain;
}

.link-list a.tooltip-mossnet:hover::after,
.link-list a.tooltip-banners:hover::after,
.link-list a.tooltip-mossawrettes:hover::after {
    opacity: 1;
}

/* Beetle Button */
.beetle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #228B22;
    color: #fff;
    font-size: 2em;
    padding: 10px;
    border: 2px solid #00ff00;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
}

/* Seed Button */
.seed-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #228B22;
    color: #fff;
    font-size: 2em;
    padding: 10px;
    border: 2px solid #00ff00;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
}

/* Video Overlay */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.video-overlay video {
    width: 90%;
    max-height: 60%;
}

/* Iframe Overlay */
.iframe-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.iframe-overlay .iframe-content {
    width: 90%;
    height: 600px;
    border: 2px solid #00ff00;
}

.minimize-btn {
    margin-top: 10px;
    padding: 10px 20px;
    background: #228B22;
    color: #00ff00;
    border: 2px solid #00ff00;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
}

.hidden {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        background: url('assets/mossbg.gif') center/cover fixed;
    }

    .container {
        background: rgba(34, 139, 34, 0.8);
        border: 2px solid #00ff00;
        width: 95%;
        margin: 10px auto;
        padding: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .page-banner {
        width: 100%;
        max-width: 95%;
        height: auto;
        margin: 0 auto 15px auto;
    }

    h1 {
        font-size: 2em;
        text-align: center;
    }

    .title-description {
        font-size: 0.8em;
        margin-bottom: 15px;
        text-align: center;
    }

    .mint-placeholder {
        font-size: 1.1em;
        text-align: center;
    }

    .cigsuiga-preview {
        max-width: 250px;
    }

    .mint-description {
        font-size: 0.8em;
        text-align: center;
    }

    .stationthisbot-btn {
        font-size: 0.8em;
    }

    .connect-wallet-btn {
        font-size: 1em;
        padding: 8px 16px;
        margin: 8px auto;
    }

    .wallet-status {
        font-size: 0.9em;
        text-align: center;
    }

    .card {
        max-width: 95%;
        padding: 10px;
    }

    .mint-button {
        font-size: 1em;
        padding: 8px 16px;
        margin: 8px auto;
    }

    .nft-container {
        max-width: 95%;
        max-height: 60%;
        padding: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nft-title {
        font-size: 1.5em;
        text-align: center;
    }

    .nft-item {
        width: 150px;
        text-align: center;
    }

    .nft-item p {
        font-size: 0.8em;
        text-align: center;
    }

    .link-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .link-list a {
        font-size: 1.1em;
        text-align: center;
    }

    .link-list a[data-tooltip]::after {
        font-size: 0.8em;
        padding: 4px 8px;
        white-space: normal;
        max-width: 200px;
    }

    .link-list a.tooltip-mossnet::after,
    .link-list a.tooltip-banners::after,
    .link-list a.tooltip-mossawrettes::after {
        width: 150px;
        height: 75px;
    }

    .beetle-btn {
        bottom: 15px;
        right: 15px;
    }

    .seed-btn {
        bottom: 15px;
        left: 15px;
    }

    .video-overlay video {
        width: 95%;
        max-height: 60%;
    }

    .iframe-overlay .iframe-content {
        width: 95%;
        height: 350px;
    }

    .mint-schedule {
        padding: 10px;
        margin-bottom: 10px;
        width: 95%;
    }

    .mint-schedule p {
        font-size: 0.9em;
        text-align: center;
    }

    .mint-schedule li {
        font-size: 0.8em;
        text-align: left; /* Keep left for readability */
    }
}

/* Iframe Container */
.iframe-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Iframe Fallback Message */
.iframe-fallback {
    color: #00ff00;
    font-size: 1em;
    text-shadow: 1px 1px #000;
    margin-top: 10px;
    text-align: center;
}

.iframe-fallback a {
    color: #ff00ff;
    text-decoration: none;
}

.iframe-fallback a:hover {
    text-decoration: underline;
}

/* Legacy Buttons (for compatibility) */
.mint-nft-btn, .invite-list-btn {
    background: #228B22;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1em;
    padding: 10px 20px;
    border: 2px solid #00ff00;
    cursor: pointer;
    margin: 5px auto;
    transition: background 0.3s;
    display: block;
}

.mint-nft-btn:hover, .invite-list-btn:hover {
    background: #006400;
}

.mint-nft-btn:disabled {
    background: #333333;
    color: #666666;
    cursor: not-allowed;
    border: 2px solid #666666;
}

/* Mint Schedule Section */
.mint-schedule {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 4px;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    color: #00ff00;
    width: 100%;
    max-width: 400px;
}

.mint-schedule p {
    font-size: 1em;
    text-shadow: 1px 1px #000;
    margin-bottom: 10px;
    text-align: center;
}

.mint-schedule ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0 0 10px;
    text-align: left; /* Keep left for readability */
}

.mint-schedule li {
    font-size: 0.9em;
    text-shadow: 1px 1px #000;
    margin-bottom: 5px;
}

.mint-schedule a {
    color: #00ff00;
    text-decoration: none;
    transition: color 0.3s;
}

.mint-schedule a:hover {
    color: #ff00ff;
}