
 body {
  font-family: Orbitron, sans-serif;
  background: #000;
  color: #fff;
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}
canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: -1;  
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); 
        }

#chat-container {
  position: relative;
  font-family: 'Orbitron', sans-serif;
  padding: 2px;
  width: 100%;
  max-width: 600px;
  height: auto;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border: 2px solid #256825;
  border-radius: 6px;
  background-color: #252525d3;
  overflow-y: auto;
  margin-bottom: 10px;
}



#chat-header {
  font-family: 'Orbitron', sans-serif;
  padding: .3rem;
  background-color: #252525d3;;
  color: #4d924d;
  font-weight: bold;
  font-size: 1.2rem;
  border-bottom: 2px solid #33ff33;
  text-align: left;
}


#messages {
  font-family: 'Orbitron', sans-serif;
  flex: 1;
  padding: 1rem;
  list-style: none;
  margin: 0;
  overflow-y: auto;
  font-size: 0.9rem;
  color: #33ff33;
  background-color: black;
  border-bottom: 2px solid #33ff33;
  min-height: 40vh;
}

#messages li {
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
}

#input-area {
  font-family: 'Orbitron', sans-serif;
background-color: #252525d3;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-right: 20px;
}

textarea#messageInput {
  font-family: 'Orbitron', sans-serif;
  resize: none;
  width: 100%;
  min-height: 12px;
  padding: 0.3rem;
  border-radius: 0;
  border: 1px solid #33ff33;
  background-color: black;
  color: #33ff33;
  font-size: 1rem;
}


#button-row {
  font-family: 'Orbitron', sans-serif;
  gap: 0.5rem;
  background-color: #252525d3;
}

button {
  font-family: 'Orbitron', sans-serif;
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border: 1px solid #33ff33;
  background-color: rgba(48, 48, 48, 0.822);
  color: #33ff33;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover:not(:disabled) {
  background-color: #33ff33;
  color: black;
}

button:disabled {
  background-color: #111;
  color: #555;
  border-color: #444;
  cursor: not-allowed;
}

#connectButton {
  font-family: 'Orbitron', sans-serif;
  display: block;
  margin: auto;
  width: 100%;
}


#status {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  text-align: center;
  color: #eef8c3;
  margin-top: 0.3rem;
  
}

#toast {
  font-family: 'Orbitron', sans-serif;
  visibility: hidden;
  min-width: 220px;
  background-color: #222;
  color: #33ff33;
  text-align: center;
  border: 1px solid #33ff33;
  border-radius: 2px;
  padding: 12px;
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#toast.show {
  visibility: visible;
  opacity: 1;
}


@media screen and (max-width: 600px) {
  #chat-container {
    width: 95%;
    height: 90vh;
  }

  textarea#messageInput {
    font-family: 'Orbitron', sans-serif;
    min-height: 50px;
  }

  button {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
  }
}


.tx-popup {
  background-color: #111;
  border: 1px solid #33ff33;
  color: #33ff33;
  font-family: 'Courier New', Courier, monospace;
  padding: 8px 12px;
  font-size: 0.85rem;
  margin: 10px;
  animation: fadeInOut 10s ease forwards;
  border-radius: 3px;
  text-align: center;
}

.tx-popup a {
  color: #33ff33;
  text-decoration: underline;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(-10px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px); }
}




#rpcSelect {
  font-family: 'Orbitron', sans-serif;
  color: #009e25; 
  background-color: transparent; 
  border: 0px solid #09c735; 
  border-radius: 6px;
  padding: 6px 30px 6px 10px; 
  width: 30%; 
  appearance: none; 
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  font-size: 16px;
  position: relative;
}

#rpcSelect::after {
  content: "▼";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: white; 
  font-size: 24px;
  pointer-events: none;
}


#rpcSelect-wrapper {
  position: relative;
  display: inline-block;
}


#customRpcInput {
  font-family: 'Orbitron', sans-serif;
  color: #28a745; 
  background-color: transparent;
  border: 1.5px solid #28a745;
  border-radius: 6px;
  padding: 4px 10px;
  width: 200px; 
  outline: none;
}
#rpc-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Orbitron', sans-serif;
  color: #28a745; 
}


#imageSelect {
  font-family: 'Orbitron', sans-serif;
  color: #b7b8b7; 
  background-color: black; 
  border: 0px solid #28a745; 
  border-radius: 6px;
  padding: 6px 10px; 
  width: auto;
  min-width: 120px;
  max-width: 180px;
  margin-left: 25px; 
  appearance: none; 
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  font-size: 14px;
  position: relative;

}


#imageSelect::after {
  content: "▼";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: white; 
  font-size: 24px;
  pointer-events: none;
}


#imageSelect-wrapper {
  position: relative;
  display: inline-block;
}