:root {
  --primary-color: #345d9d; /* Litecoin blue */
  --secondary-color: #a9a9a9; /* Silver */
  --accent-color: #00aeff; /* Bright blue accent */
  --silver-light: #e6e8e8; /* Light silver for backgrounds */
  --silver-medium: #c0c0c0; /* Medium silver for borders and accents */
  --silver-dark: #4a4a4a; /* Darker 'Steel' silver for text and details */
  --background-color: #f9f9f9; /* Light background */
  --text-color: #4D4D4D; /* Dark grey text */
  --warning-color: #FFB83D; /* Orange for warnings */
  --success-color: #2ecc71; /* Green for success */
  --border-radius: 4px;
  --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  --silver-gradient: linear-gradient(135deg, #c0c0c0, #e6e8e9);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Embed Open Sans locally */
@font-face {
  font-family: 'Open Sans';
  src: url('/fonts/opensans.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Open Sans';
  src: url('/fonts/opensans_b.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

}
html {
  height: 100%; /* Ensure html takes full height */
  font-size: 100%;
}

body {
  font-family: Open Sans, Verdana, Tahoma, Geneva, sans-serif;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--silver-light);
  display: flex; /* Use flexbox for basic layout */
  flex-direction: column; /* Stack header, main, footer vertically */
  min-height: 100vh; /* Ensure body takes at least full viewport height */
}

/* --- Header Modifications Start --- */
header {
    padding: 0;
    box-shadow: var(--box-shadow);
    border-bottom: 3px solid var(--primary-color);
    flex-shrink: 0;
    width: 100%;
}

.header-banner {
    background-image: url('../img/Banner2.jpg');
    width: 100%;
    height: 40vh; /* Adjust as needed */
    background-size: cover; /* Or contain */
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; /* Adjust text color as needed */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.header-banner h1 {
    font-size: 2rem;
    margin: 0;
    padding: 0;
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
/* --- Header Modifications End --- */

main {
  flex-grow: 1;
  width: 100%;
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}

section {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--box-shadow);
  border-left: 4px solid var(--primary-color);
}

/* Style for potential h1 inside sections (if different from header) */
section h1 {
  color: var(--primary-color);
  font-size: 3trem;
  text-shadow: 1px 1px 1px var(--silver-medium);
  margin-bottom: 1rem;
}

h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--silver-medium);
  padding-bottom: 0.5rem;
}

h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.2rem;
  color: var(--silver-dark);
}

p {
  margin-bottom: 1rem;
}

/* nested lists */
li ul {
  list-style-type: none; /* Removes the bullet point from the nested list */
  }

.security-tips, .browser-compatibility-notice {
  background-color: var(--silver-light);
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  margin: 1.5rem 0;
}

.security-tips ul, .browser-compatibility-notice ul {
  margin-left: 1.5rem;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.primary-btn, .secondary-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-align: center;
}

.primary-btn {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.primary-btn:hover {
  background-color: #2a4d8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.primary-btn:disabled {
  background-color: var(--silver-medium);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.secondary-btn {
  background: var(--silver-gradient);
  color: var(--primary-color);
  border: 1px solid var(--silver-medium);
}

.secondary-btn:hover {
  background: linear-gradient(135deg, #b0b0b0, #d6d8d9);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.advanced-toggle {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.advanced-toggle a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.advanced-toggle a:hover {
  text-decoration: underline;
}

#advanced-options {
  margin-top: 1rem;
  padding: 1rem;
  background-color: var(--silver-light);
  border-radius: var(--border-radius);
  border: 1px solid var(--silver-medium);
}

#bip38-password-container {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
  

.tooltip-trigger {
  color: var(--primary-color); /* Use theme blue for the trigger link */
  text-decoration: underline;
  cursor: pointer;
  font-weight: normal; /* Keep consistent with surrounding text */
}

.tooltip-trigger:hover {
  color: #2a4d8a; /* Darkened primary color (matches button hover) */
}

.tooltip-content {
  display: inline-block;
  margin-left: 10px;
  padding: 8px 12px; /* Slightly increased padding for better spacing */
  background-color: white; 
  border: 3px solid var(--primary-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  z-index: 10;
  }

  .tooltip-content small {
    color: var(--text-color);
    line-height: 1.3;
    font-size: 0.85em;
  } 

  /* 1. Hide the tooltip content by default */
.rss-tooltip-content {
  display: none; /* This is the most important rule */
  position: absolute; 
  bottom: 100%; 
  left: 50%;
  transform: translateX(-50%); /* Center it horizontally */
  margin-bottom: 5px; /* A little space above the icon */
  width: 200px; /* Give it a fixed width */
  text-align: center;
}

/* Make the trigger a positioning container */
.rss-tooltip-trigger {
  position: relative;
  display: inline-block; /* Needed for positioning context */
}

/* 2. Show the tooltip content when hovering over the trigger */
.rss-tooltip-trigger:hover .tooltip-content {
  display: inline-block; /* Show the tooltip on hover */
}

input[type="text"], input[type="password"] {
  padding: 0.75rem;
  border: 1px solid var(--silver-medium);
  border-radius: var(--border-radius);
  width: 100%;
  font-size: 1rem;
  background-color: white;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out, background-color 0.15s ease-out;
}

input[type="text"]:focus, input[type="password"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(52, 93, 157, 0.2);
}

.entropy-container {
  margin: 2rem 0;
}

#entropy-canvas {
  width: 100%;
  height: 150px;
  border: 1px solid var(--silver-medium);
  border-radius: var(--border-radius);
  margin: 1rem 0;
  background-color: white;
  cursor: crosshair;
}

#entropy-text.entropy-input-active {
border-color: var(--accent-color);
background-color: #FF9933; 
box-shadow: 0 0 0 6px rgba(0, 174, 239, 0.3);
}

.progress-container {
  height: 8px;
  background-color: var(--silver-light);
  border-radius: 5px;
  margin: 1rem 0;
  overflow: hidden;
  border: 3px solid var(--silver-medium);
}

#entropy-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  width: 0%;
  transition: width 0.3s ease;
}

/* Wallet Display Styles - REMOVED / COMMENTED OUT */
/* These styles likely conflict with wallet-design.css */
/*
.wallet-container { ... }
.qr-code { ... }
.address, .key { ... }
*/

footer {
  text-align: center;
  padding: 2rem;
  line-height: 1.2 !important;
  background: var(--silver-gradient);
  border-top: 3px solid var(--primary-color);
  font-size: 0.8rem;
  color: var(--silver-dark);
  flex-shrink: 0;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

footer ul {
  list-style-type: none;
  padding: 0;
  margin: 1rem auto 0;
  max-width: 600px;
  text-align: left;
  display: inline-block;
}

footer li {
  margin-bottom: 0.25rem;
}

/* Ensure consistent spacing and alignment using flexbox */
/* Crypto addresses not wrapping.  When they do, labels are ruined */

/* Style for the labels.. .legacy, unsure if needed now  */
/* p > span:first-child {
    margin-right: 0.5em;
    white-space: nowrap;  /* Labels stay on one line */
/*} */

.payment-container {
  display: flex;
  justify-content: space-between;
  width: 100%; /* or any specific width you prefer */
  max-width: 1200px; /* optional: set a maximum width for the container */
  margin: 0 auto; /* center the container horizontally */
}

.payment-link {
  display: inline-block;
  transition: transform 0.5s ease;
}

.payment-link:active {
  transform: scale(1.5);
}

.payment-link:active img {
  animation: clickAnimation 1s ease;
}

@keyframes clickAnimation {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1.1);
  }
}

.payment-link img {
  max-width: 500px; /* optional: set a maximum width for the images */
}
}