/* General layout */
body {
  margin: 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  background: #fdfdfd;
  color: #111;
  transition: background 0.3s, color 0.3s;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #ccc;
}

header h1 {
  margin: 0;
  color: #4682B4;
  font-family: 'Montserrat', sans-serif;
  font-weight: 380;
}

h1 {
  margin: 0;
  color: #4682B4;
  font-family: 'Montserrat', sans-serif;
  font-weight: 380;
}

h2 {
  margin: 0;
  color: #093f7c;
  font-family: 'Montserrat', sans-serif;
  font-weight: 260;
}

h3 {
  margin: 0;
  color: #2f2e2e;
  font-family: 'Montserrat', sans-serif;
  font-weight: 250;
}

p.standout {
  font-weight: 270;
  font-size: 2rem; 
  margin: 0; 
  line-height: 1.2; 
  padding: 0.5rem 0;
}

nav {
  margin-left: 60px;
  margin-top: -3px;
}

nav a {
  margin: 0 0.5rem;
  color: #2f2e2e;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
}

nav a.active {
  font-weight: 420;
  color: #093f7c;
  font-family: 'Montserrat', sans-serif;
/*  text-decoration: underline; */
}

a {
  color: #4682B4;
  text-decoration: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}

#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
}

main {
  padding: 2rem;
}

.hero {
  text-align: center;
  margin: 3rem 0;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.card {
  padding: 1rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background 0.3s, color 0.3s;
}

.card.highlight {
  border: 2px solid #4682B4;
}

/* Tabs */
pre {
    font-family: inherit;
    white-space-collapse: collapse;
    text-wrap-mode: wrap;
    white-space: normal;
  overflow-wrap: break-word;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  margin-right: 1rem;
}

.tab-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #aaa;
  border-radius: 6px;
  background: #eee;
  cursor: pointer;
}

.tab-btn.active {
  background: #4682B4;
  color: white;
}

.tab-content {
  display: none;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
   white-space: normal;
  overflow-wrap: break-word;

}

.tab-content.active {
  display: block;
   white-space: normal;
  overflow-wrap: break-word;
}

.btc-detail {
    white-space: normal;
  overflow-wrap: break-word;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid #ccc;
}

/* Dark mode */
body.dark nav a.active {
  font-weight: 400;
  color: #4682B4;
  font-family: 'Montserrat', sans-serif;
  margin: 0 0.5rem;
  text-decoration: none;
}  
body.dark nav a {
  font-weight: 500;  
  font-family: 'Montserrat', sans-serif;
  margin: 0 0.5rem;
  color: #2f2e2e;
  text-decoration: none;
}  
body.dark {
  background: #111;
  color: #fdfdfd;
}

body.dark h1{
  font-weight: 400;
  color: #4682B4;
  font-family: 'Montserrat', sans-serif;
}
body.dark h2{
  margin: 0;
  font-weight: 350;
  color: #4682B4;
  font-family: 'Montserrat', sans-serif;
}

body.dark h3{
  margin: 0;
  color: #fdfdfd;
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
}

body.dark .card {
  background: #222;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

body.dark .tab-btn {
  background: #333;
  border-color: #666;
  color: #fdfdfd;
}

body.dark .tab-btn.active {
  background: #4682B4;
}

body.dark .tab-content {
  border: 1px solid #222;
  background: #222;
}

