@media screen and (max-width: 100%) {
  #walletInfo nav.navbar {
    transform: scale(2);
    transform-origin: top left;
  }

  /* Optional: Prevent layout shift */
  #walletInfo {
    overflow: hidden;
    height: 100px; /* adjust based on expected navbar height after scale */
  }
}


h1 {color: green !important;}

/* Wallet info bar */
#walletInfo {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: darkgreen;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: monospace;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  min-height: 55px;
}



#walletInfo {
  width: 100%;
  display: block !important;
  padding-left: 1rem;
  padding-right: 1rem;
}

#walletInfo nav.navbar {
  margin: 0 auto;
}


#walletInfo.compact {
  margin-bottom: 24px;
  font-weight: bold;
  font-size: 1.1rem;
  gap: 12px;
}

/* Wallet badge/floating text */
span#walletAddress {
 /* position: fixed;*/
  right: 10px;
  top: 55px;
  color: teal;
}




/* Result feedback */
#result,
#status {
  margin-top: 20px;
  font-weight: bold;
  font-size: 1rem;
  color: #333;
  text-align: center;
}


button#disconnectBtn {
  position: static !important;
  right: auto !important;
}

/* Hide wallet address part on mobile */
@media (max-width: 600px) {
  #walletAddress .full  {
    display: none;
  }
  #walletAddress .mobile-placeholder {
    display: inline;
  }
}

@media (min-width: 601px) {
  #walletAddress .mobile-placeholder {
    display: none;
  }
}

/* Logo in top-left */
#logo {
  position: fixed;
  top: 10px;
  left: 10px;
  font-weight: bold;
  font-size: 25px;
  color: white;
  opacity: 0.8;
  user-select: none;
  z-index: 9999;
  font-family: Arial, sans-serif;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

/* Footer */
div#footer {
  display: flex;
  justify-content: center;      /* Center content horizontally */
  align-items: center;          /* Center content vertically */
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: darkgreen;
  color: #fff;
  padding: 10px 20px;
  font-family: monospace;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
@media (max-width: 768px) {
  div#footer {
    width: 100%;
    transform: scale(0.5);
    transform-origin: bottom center;
  }
}


/* Background image layer */
body {
  position: relative;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url(assets/banner.jpg);
  background-size: cover;
  background-position: center;
  opacity: 0.134;
  z-index: -1;
}

/* Page container layout */
body, html {
  margin: 0;
  padding: 0px;
  font-family: Arial, sans-serif;
  background: #f7f7f7;
  min-height: 100vh;
}

/* Autocomplete */
#autocompleteContainer {
  position: relative;
  width: 300px;
  max-width: 90vw;
  margin-bottom: 20px;
}

#autocompleteList {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid #ccc;
  border-top: none;
  max-height: 150px;
  overflow-y: auto;
  background: white;
  z-index: 1000;
  display: none;
  user-select: none;
  font-stretch: ultra-expanded;
}

#autocompleteList div {
  padding: 8px 12px;
  cursor: pointer;
}

#autocompleteList div:hover {
  background-color: green;
  color: white;
  font-weight: bold;
}

/* Card Block view */
#cardBlock {
  margin-top: 10px;
/*  padding: 20px;
  background: white; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border-radius: 8px; */
  text-align: center;
  max-width: 400px;
  width: 90vw;
  display: none;
}

#cardName {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #222;
}

/* Bridge form container */
#btcForm {
  max-width: 320px;
  width: 90vw;
  margin-top: 20px;
  display: none;
  flex-direction: column;
}

#btcNotice {
  color: red;
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* Previous orders block */
#previousOrders {
  margin-top: 30px;
  border-top: 1px solid #ccc;
  padding-top: 20px;
  width: 90vw;
  max-width: 480px;
  display: none;
}

#previousOrders h3 {
  margin-bottom: 12px;
  font-weight: bold;
}

#previousOrdersList {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  font-size: 0.9rem;
  background-color: #fff;
}

.orderItem {
  border-bottom: 1px solid #eee;
  padding: 10px 6px;
  word-break: break-word;
  background: #fafafa;
  border-radius: 4px;
  margin-bottom: 8px;
  transition: background-color 0.3s ease;
}

.orderItem:last-child {
  border-bottom: none;
}

.orderItem:hover {
  background-color: #e6f0ff;
}




.tx-wait-overlay {
  position: absolute;
  z-index: 10000000;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.69);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: bold;
  pointer-events: all;
  border-radius: 0 !important;
}
.tx-wait-overlay .spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #00ca62;
  border-radius: 50%;
  width: 44px; height: 44px;
  animation: spin 1.1s linear infinite;
  margin-bottom: 18px;
}
@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}





#cardImage {
  display: block;
  max-width: 400vw;
  width: auto;
  max-height: 58vh;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}


/* 
div#protectedContent {
    margin-top: 100px !important;
    margin-bottom: 100px !important;
      padding-top: 60px; 
  padding-bottom: 60px; 
} */

/* Link styles */
.links {
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.links a {
  color: #007bff;
  text-decoration: none;
  word-break: break-word;
}

.links a:hover {
  text-decoration: underline;
}

/* Action block shared input/button styles */
.actions,
#btnContainer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}



.actions input,
.orderSection input,
#cardInput,
#btcAddressInput {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 0px !important ;
  border: 1px solid green;
  border-right: 0px !important;
  border-top: 0px !important;
  border-left: 0px !important;
  background: transparent !important;

}
  #cardInput {
    padding: 10px !important;
    font-size: x-large !important;
    text-transform: uppercase !important;

    
}
.actions button,
.orderSection button,
#disconnectBtn,
#bridgeBtn,
#cancelBtn {
  padding: 6px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 4px;
  border: none;
  color: white;
  transition: background-color 0.3s ease;
}

.actions button,
.orderSection button,
#bridgeBtn {
  background: #007bff;
}

.actions button:disabled,
.orderSection button:disabled {
  background: #999;
  cursor: default;
}

#disconnectBtn {
  background: #e74c3c;
  font-weight: bold;
}

#disconnectBtn:hover {
  background: #c0392b;
}

#bridgeBtn:hover {
  background-color: #005fcc;
}

#cancelBtn {
  background-color: #ccc;
  color: #333;
}

#cancelBtn:hover {
  background-color: #999;
  color: white;
}

/* Order section */
.orderSection {
  margin-bottom: 10px;
  border: 1px solid #ddd;
  padding: 8px;
  border-radius: 6px;
  width: 100  %;
  font-size: 0.9rem;
  color: #444;
}

.orderSection label,
#btcForm label {
  font-weight: 600;
  margin-top: 6px;
  display: block;
  text-align: left;
}