body {
    margin: 0;
    overflow-y: auto;
    background: black;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    padding: 0;
    overflow-x: hidden;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    left: 0;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    box-shadow: 0 0 15px #00ff00;
}

.navbar-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%; /* Ensures alignment spans the navbar width */
}

/* Existing Tab Link Styling */
.navbar .tab-link {
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    margin: 0 10px;
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
    transition: all 0.3s ease;
    position: relative; /* For positioning the underline */
}

/* Hover Effect for Tabs */
.navbar .tab-link:hover {
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
    font-size: 20px;
}

/* ==================== Updated Active Tab Link Styling ==================== */

/* Active Tab Link Styling - Glowing Green Underline */
.tab-link.active {
    /* Remove background and border */
    background-color: transparent;
    color: #00ff00;
    font-weight: bold;
    
    /* Add a glowing green underline */
    border-bottom: 2px solid #00ff00;
    
}

/* Optional: Glowing Effect for Active Tab */
.tab-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px; /* Position just below the underline */
    width: 100%;
    height: 2px;
    background-color: #00ff00;
    animation: pulse 2s infinite;
}

.coming-soon {
    color: #00ff00; /* Matrix green color */
    text-align: center;
    margin-top: 50px;
    font-size: 48px; /* Adjust as needed */
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
}

.dashboard-container {
    display: flex;
    align-items: center; /* Vertical centering */
    justify-content: center; /* Horizontal centering */
    height: calc(100vh - 60px); /* Full viewport height minus navbar height */
    padding-top: 60px; /* Adjust based on navbar height */
    box-sizing: border-box; /* Include padding in height */
}


@keyframes pulse {
    0% {
        border-bottom: 0 0 10px #00ff00, 0 0 20px #00ff00;
    }
    50% {
        border-bottom: 0 0 20px #00ff00, 0 0 30px #00ff00;
    }
    100% {
        border-bottom: 0 0 10px #00ff00, 0 0 20px #00ff00;
    }
}

/* ==================== End of Updated Active Tab Link Styling ==================== */

/* Remove or Comment Out the Old Active Tab Styles */
/*
.tab-link.active {
    background-color: #fff;
    color: #00ff00;
    font-weight: bold;
    border-bottom: 1px solid #fff;
    /* Adjust these styles as needed */



.navbar #connectWallet {
    background-color: #00ff00;
    border: none;
    color: black;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
    margin-left: auto;
    margin-right: 50px;
}

.oracle-header-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.oracle-header-title h1 {
    font-size: 28px;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00;
    margin: 0;
    white-space: nowrap;
}

.console {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1080px;
    height: 600px;
    max-height: 1200px; /* Optional: Set a maximum height relative to the viewport */
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #00ff00;
    padding: 20px;
    box-shadow: 0 0 20px #00ff00;
}

.oracle-title-container {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #00ff00;
    box-shadow: 0 0 20px #00ff00;
    display: none;
}

.oracle-title-container h1 {
    font-size: 36px;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
    margin: 0;
}

.console input {
    width: 100%;
    background: black;
    border: none;
    border-bottom: 1px solid #00ff00;
    color: #00ff00;
    font-size: 20px;
    outline: none;
    padding: 5px;
}

.console .output {
    height: 300px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.console .output p {
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background-color: #00ff00;
    animation: blink 1s step-start infinite;
}

/* Custom scrollbar styling */
.console::-webkit-scrollbar {
    width: 10px; /* Width of the scrollbar */
    background: black; /* Background color behind the scrollbar */
}

.console::-webkit-scrollbar-thumb {
    background: #00ff00; /* Scrollbar thumb color */
    border-radius: 5px; /* Rounded edges */
    border: 2px solid black; /* Space between thumb and track */
}

.console::-webkit-scrollbar-thumb:hover {
    background: #00cc00; /* Lighter green on hover */
}

.console::-webkit-scrollbar-track {
    background: black; /* Background of the scrollbar track */
}

/* Ensure compatibility with Firefox */
.console {
    scrollbar-color: #00ff00 black; /* Thumb and track colors */
    scrollbar-width: thin; /* Reduce scrollbar width */
}

@keyframes blink {
    50% {
        background-color: transparent;
    }
}

.title {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 48px;
    color: white;
    text-shadow: 0 0 15px white, 0 0 30px white, 0 0 45px #00ff00;
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
    width: 100%;
}

.home-content {
    text-align: center;
    margin: 100px auto;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.home-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
}

.home-content p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.home-content a {
    display: inline-block;
    background-color: #00ff00;
    color: black;
    padding: 10px 20px;
    margin: 10px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s;
}

.home-content a:hover {
    background-color: black;
    color: #00ff00;
    border: 1px solid #00ff00;
}

.section {
    margin: 40px auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    border-radius: 10px;
    max-width: 800px;
}

.section h2 {
    font-size: 28px;
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
    margin-bottom: 15px;
}

.section ul {
    margin: 0;
    padding: 0 0 0 20px;
}

.section li {
    margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
    #connectWallet {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        text-align: center;
        margin: 10px 0;
        padding: 20px;
        box-sizing: border-box;
        z-index: 3;
        background-color: #00ff00;
        border: none;
        font-weight: bold;
        color: black;
        cursor: pointer;
    }

    #walletModal div {
        padding: 20px; /* Adds padding inside the modal for content */
        margin: 10px; /* Adds space between the modal and screen edges */
        width: 90%; /* Ensures the modal width fits nicely on small screens */
        max-width: none; /* Removes any fixed max-width restrictions */
        box-sizing: border-box; /* Includes padding in width calculation */
    }

    .navbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .menu-toggle {
        order: -1;
        margin-right: auto;
    }

    .console {
        padding: 20px; /* Add padding inside the console */
        margin: 10px; /* Add some space around the console */
        box-sizing: border-box; /* Ensure padding doesn't affect width */
    }

    .contract-address {
        font-size: 14px; /* Adjust font size for smaller screens */
        word-break: break-word; /* Break the line when necessary */
        width: 90%; /* Ensure it doesn't exceed the screen width */
        margin: 0 auto; /* Center it horizontally */
    }

    .contract-address code {
        white-space: normal; /* Allow text wrapping */
        overflow-wrap: break-word; /* Ensure long words are broken */
    }
    
}

.menu-toggle {
    display: block;
    background: transparent;
    border: none;
    color: #00ff00;
    font-size: 24px;
    cursor: pointer;
    z-index: 3;
}

.menu-content {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 10px 0;
    box-shadow: 0 0 15px #00ff00;
    z-index: 2;
}

.menu-content.active {
    display: flex;
}

.navbar-left {
    display: flex;
    flex-direction: column;
}

@media screen and (min-width: 769px) {
    .menu-toggle {
        display: none;
    }

    .menu-content {
        display: flex !important;
        flex-direction: row;
    }
}

.icon-link {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

.icon-link.telegram {
    width: 24px;
    height: 24px;
}

.partner-logo {
    width: 100px; /* Adjust width as necessary */
    height: auto; /* Maintain aspect ratio */
    display: inline-block; /* Prevent block-level resizing issues */
    margin: 10px; /* Add some spacing if needed */
}

.powered-by-text {
    color: #00ff00; /* Green text color */
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00; /* Green glow effect */
    font-size: 24px; /* Adjust size as necessary */
    font-weight: bold;
    margin-left: 15px;
}

.controls {
    position: fixed; /* Fix to the bottom of the screen */
    bottom: 10px; /* Adjust distance from the bottom */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Align centered */
    z-index: 5; /* Ensure it's above other elements */
    display: flex; /* Optional, for organizing child elements */
    gap: 10px; /* Spacing between elements */
}

.controls button,
.controls input[type="range"] {
    margin: 0;
    padding: 10px;
    background: black;
    color: #00ff00;
    border: 1px solid #00ff00;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
}

.oracle-response {
    margin-top: 10px;
    line-height: 1.6;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
    white-space: pre-wrap; /* Preserve spacing and line breaks */
    font-family: 'Courier New', Courier, monospace;
}

.oracle-response img {
    max-width: 100%;
    height: auto;
    border: 2px solid #00ff00; /* Optional: Add a border for styling */
    border-radius: 8px; /* Optional: Rounded corners */
    margin-top: 10px;
}

.oracle-response h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
}

.oracle-response ul {
    margin: 10px 0;
    padding-left: 20px;
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
}

.oracle-response li {
    margin: 5px 0;
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
}

.oracle-response strong {
    font-weight: bold;
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
}

.oracle-response p {
    margin: 5px 0;
    line-height: 1.6;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
}

#oracleConsole {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the button horizontally */
}

.console-input {
    margin-top: 10px;
    margin-bottom: 5px;
    width: 100%;
    padding: 10px;
    font-size: 16px;
}

/* Updated Stop Button Styling */
.stop-button {
    margin-top: 10px; /* Add more space from the input field */
    padding: 10px 20px; /* Adjust padding for a larger button */
    background-color: rgba(0, 255, 0, 0.2); /* Matrix green effect */
    color: #00ff00;
    font-size: 18px; /* Slightly larger font for emphasis */
    font-family: 'Source Code Pro', monospace; /* Modern monospace font */
    font-weight: bold; /* Make the text bold */
    border: 1px solid #00ff00;
    border-radius: 5px;
    text-transform: uppercase; /* Make the text uppercase */
    cursor: pointer;
    box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00; /* Glowing green effect */
    transition: background-color 0.3s, box-shadow 0.3s;
}

.stop-button:hover {
    background-color: rgba(0, 255, 0, 0.5); /* Brighter on hover */
    box-shadow: 0 0 15px #00ff00, 0 0 30px #00ff00; /* Intense glow on hover */
}

.stop-button:active {
    background-color: rgba(0, 255, 0, 0.8); /* Slightly darker when clicked */
    box-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
}

.dropdown-container {
    margin: 10px 0;
    color: #00ff00;
    font-family: monospace;
}

.dropdown-container label {
    margin-right: 5px;
}

.dropdown-container select {
    background-color: black;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 5px;
    font-family: monospace;
    font-size: 14px;
}

.contract-address {
    text-align: center;
    margin: 0 auto;
    font-size: 16px;
    font-weight: bold;
    background: black;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #00ff00;
    display: inline-block;
    word-wrap: break-word;
    box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
}

.contract-address code {
    color: #00ff00;
    font-family: monospace;
}

#connectWallet {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

#connectWallet:hover {
    background-color: #45a049;
}

#walletDropdown {
    z-index: 1000;
}

#walletDropdown a {
    text-decoration: none;
    font-size: 14px;
}

#walletDropdown a:hover {
    text-decoration: underline;
}
