@font-face {
    font-family: 'Orbitron';
    src: url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');
}

body {
    font-family: 'Courier New', monospace;
    background-color: #000;
    color: #0f0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    cursor: none;  /* Hide the default cursor */
}

header {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: rgba(0, 20, 0, 0.5);
}



/* Nav link styles in the header */
header nav a {
    color: #0f0; /* Link color */
    text-decoration: none; /* Remove underline */
    font-size: 16px; /* Font size */
    display: flex;
    align-items: center;
    margin: 0 10px;
    padding: 5px 0; /* Add padding to create space */
  }
  
  header nav a img {
    height: 30px;
    width: 30px;
    margin-right: 10px;
    transition: opacity 0.3s ease-in-out;
  }
  
  header nav a:hover {
    color:  #fff; /* Hover color */
  }
  
  header nav a:hover img {
    opacity: 0.7; /* Image hover effect */
  }



.laser-dot {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: #ff0000;  /* Red color for the laser */
    border-radius: 50%;
    pointer-events: none;  /* Allows clicking through the dot */
    transform: translate(-50%, -50%);  /* Center the dot on the cursor */
    box-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000;  /* Glow effect */
    z-index: 9999;  /* Ensure it's above other elements */
    transition: opacity 0.3s ease;  /* Smooth fade effect */
}

.laser-dot.hidden {
    opacity: 0;
}

.logo-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin-right: 20px;
    flex-shrink: 0;
}

.logo-placeholder {
    width: 140px;
    height: 140px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.beam {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    transition: opacity 0.3s ease;
}

.beam.disabled {
    opacity: 0.3;
    animation: none !important;
}

.beam::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #0f0;
    border-radius: 50%;
    filter: blur(3px);
    transform: translateX(-50%);
}

.beam::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #0f0;
    border-radius: 50%;
    filter: blur(5px);
    transform: translateX(-50%);
    opacity: 0.3;
}

@keyframes rotateClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotateCounterClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

.savant-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3em;
    margin: 0;
    font-weight:bold;
    letter-spacing: 5px;
    text-transform: none;
    color: #0f0;
    text-shadow: 0 0 10px #0f0, 0 0 20px #0f0;
    flex-grow: 1;
}


.tab-container {
    display: flex;
    padding: 10px 20px;
    background-color: rgba(0, 20, 0, 0.5);
    border-bottom: 2px solid #0f0;
}


.tab-button {
    position: relative;
    padding: 10px 20px;
    margin-right: 5px;
    background-color: rgba(0, 40, 0, 0.7);
    color: #0f0;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1em;
    letter-spacing: 1px;
    border: 1px solid #0f0;
    border-bottom: none;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    transition: all 0.3s ease;
    overflow: hidden;
}


.tab-button:hover, .tab-button:focus {
    background-color: rgba(0, 60, 0, 0.9);
    color: #fff;
    text-shadow: 0 0 5px #0f0, 0 0 10px #0f0;
}

.tab-button:active {
    transform: scale(0.95);
    box-shadow: 0 0 10px #0f0;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #0f0, transparent, #0f0);
    z-index: -1;
    filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-button:hover::before, .tab-button:focus::before {
    opacity: 1;
}

.tab-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(15, 255, 15, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.tab-button:hover::after, .tab-button:focus::after {
    top: -100%;
    left: -100%;
}

.tab-button:active::after {
    opacity: 0.5;
}

.metamask-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.metamask-button {
    position: fixed;
    padding: 10px 20px;
    background-color: rgba(0, 40, 0, 0.7);
    border: 2px solid #0f0;
    border-radius: 5px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1em;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.1s ease;
}


.metamask-button:active {
    transform: scale(0.95);
    box-shadow: 0 0 15px #f00;
}

.metamask-button .button-text {
    color: #f00;
    font-weight: bold;
    transition: all 0.1s ease;
}

.metamask-button:hover .button-text,
.metamask-button:focus .button-text {
    color: #fff;
    text-shadow: 0 0 5px #f00, 0 0 10px #f00;
}

.button-glow {
    display: none;
}

.metamask-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    
    z-index: -1;
    filter: blur(5px);
    opacity: 0;
    transition: opacity 0.1s ease;
}

.metamask-button:hover::before,
.metamask-button:focus::before {
    opacity: 0.5;
}

.metamask-button:active::before {
    opacity: 0.7;
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

.metamask-button:active {
    animation: buttonPulse 0.3s;
}


.tab-button:active, .metamask-button:active {
    animation: buttonPulse 0.3s;
}

.header-right {
    display: relative;
    align-items: center;
    padding: 10px 20px;
}

.header-nav-right {
    position: relative;
    padding: 10px 20px;
    /*background-color: rgba(0, 40, 0, 0.7);*/
    border: 2px solid #0f0;
    border-radius: 5px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1em;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.1s ease;
    
}

.toggle-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #0f0;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8em;
}

.toggle-button {
    position: relative;
    width: 60px;
    height: 34px;
    background-color: rgba(0, 40, 0, 0.7);
    border-radius: 34px;
    border: 2px solid #0f0;
    transition: background-color 0.3s;
    margin-right: 10px;
}

.toggle-button::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    background-color: #0f0;
    transition: transform 0.3s;
}

.toggle-input:checked + .toggle-label .toggle-button {
    background-color: rgba(0, 60, 0, 0.9);
}

.toggle-input:checked + .toggle-label .toggle-button::before {
    transform: translateX(26px);
}

.toggle-input:focus + .toggle-label .toggle-button {
    box-shadow: 0 0 1px #0f0;
}

.toggle-text {
    margin-left: 10px;
    margin-right: 30px;
}
  

.trade-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.trade-step.active {
    display: block;
    opacity: 1;
}

.glow-button {
    background-color: rgba(0, 40, 0, 0.7);
    border: 2px solid #0f0;
    color: #0f0;
    padding: 10px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.glow-button:hover {
    background-color: rgba(0, 60, 0, 0.9);
    box-shadow: 0 0 10px #0f0;
}

.status-message {
    margin-top: 10px;
    font-style: italic;
}

.trade-explainer {
    background-color: rgba(0, 40, 0, 0.7);
    border: 2px solid #0f0;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.trade-explainer h3 {
    color: #0f0;
    margin-top: 0;
    font-family: 'Orbitron', sans-serif;
}

.trade-explainer ol {
    padding-left: 20px;
}

.trade-explainer li {
    margin-bottom: 10px;
}

.trade-explainer p {
    margin-top: 15px;
    font-style: italic;
}

.savant-form {
    background-color: rgba(0, 20, 0, 0.8);
    border: 2px solid #0f0;
    border-radius: 5px;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.trade-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.trade-step.active {
    display: block;
    opacity: 1;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
    width: 100%; /* Ensure the input group takes full width */
}

.savant-input {
    width: 100%;
    padding: 10px;
    font-size: 1.2em;
    background-color: rgba(0, 40, 0, 0.7);
    border: 2px solid #0f0;
    color: #0f0;
    border-radius: 5px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Include padding and border in the element's total width */
}

.savant-input:focus {
    box-shadow: 0 0 10px #0f0;
}

.input-suffix {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #0f0;
    font-family: 'Orbitron', sans-serif;
}

.savant-button {
    background-color: rgba(0, 60, 0, 0.8);
    border: 2px solid #0f0;
    color: #0f0;
    padding: 10px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    margin-top: 10px;
    box-sizing: border-box; /* Include padding and border in the element's total width */
}

.savant-button:hover {
    background-color: rgba(0, 100, 0, 0.9);
    box-shadow: 0 0 15px #0f0;
}

.status-message {
    margin-top: 15px;
    font-style: italic;
    color: #0f0;
    text-align: center;
}

.amount-display {
    font-size: 1.2em;
    color: #0f0;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
}

.glow-button {
    background-color: rgba(0, 40, 0, 0.7);
    border: 2px solid #0f0;
    color: #0f0;
    padding: 10px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.glow-button:hover {
    background-color: rgba(0, 60, 0, 0.9);
    box-shadow: 0 0 10px #0f0;
}

.status-message {
    margin-top: 10px;
    font-style: italic;
}

main {
    margin-top: 20px;
    flex-grow: 1;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: 
        linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,20,0,0.9) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            rgba(0, 255, 0, 0.1) 20px,
            rgba(0, 255, 0, 0.1) 40px
        );
    animation: matrix-animation 20s linear infinite;
}

@keyframes matrix-animation {
    from { background-position: 0 0; }
    to { background-position: 0 1000px; }
}