/* Typography */
html, body {
    font-family: Verdana, sans-serif;
    font-size: 15px;
    line-height:1.5
}
/*
body {
  font-family: 'Helvetica', 'Arial', sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Segoe UI', 'Helvetica', sans-serif;
  font-weight: 600;

}

h1 {
  font-size: 42px;
  line-height: 1.2;
  font-weight: 700;
}

h2 {
  font-size: 36px;
  line-height: 1.3;
  font-weight: 600;
}

h3 {
  font-size: 30px;
  font-weight: 500;
}

h4 {
  font-size: 24px;
  font-weight: 700;
}
  */

.header:before {
  content: "{";
  color: #FF6B35; /* Sunset orange for contrast */
  font-size: 1.4em;
  left: 10px;
  top: 10px;
}

.header:after {
  content: "}";
  color: #FF6B35; /* Sunset orange */
  
  font-size: 1.4em;
  right: 10px;
  top: 10px;
}

p {
  margin-bottom: 1em;
}

a {
  color: #1a73e8;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}



/* Code snippet styling */
pre {
  background-color: #f5f5f5;
  padding: 1em;
  overflow-x: auto;
  border-radius: 5px;
  font-family: 'Fira Code', monospace;
}

/* Image styling */
.hero-banner img {
  width: 100%;
  height: 200px !important;
  object-fit: cover;
}
.blog-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 400px;
}
img {
  max-width: 100%;
}
img[width][height] {
  height: auto; /* Preserve aspect ratio */
}
/* Let SVG scale without boundaries */
img[src$=".svg"] {
  width: 100%;
  height: auto;
  max-width: none;
}

/* Code block wrapper with title and copy button */
.code-block-wrapper {
  position: relative;
  background-color: #272822;
  border-radius: 0.3em;
}

.code-title {
  color: white;
  padding: 5px 10px;
  font-family: monospace;
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 0;
  padding-bottom: 0;
}

.copy-btn {
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: white;
}
.code-header {
  margin-top: 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #FF6B35;
}

.copy-btn:hover {
  color: #FF6B35; /* Sunset orange */
}

.copy-text {
  top: 8px;
  right: 50px;
  font-size: 15px;
  color: white;
  visibility: hidden; /* Hidden initially */
  opacity: 0;
  transition: visibility 0s, opacity 0.5s linear;
}

.copy-text.visible {
  visibility: visible;
  opacity: 1;
}

.w3-border-sunset-orange {border-color:#FF6B35 !important}
.w3-border-yellowish {border-color:#A5A5A5 !important}
.w3-theme-whiteish { color:#A5A5A5 !important}
.w3-button-whiteish { background-color:#A5A5A5 !important}
.w3-theme-sunset-orange {background-color:#FF6B35 !important}
/* Dark mode */
:root {
  --bg-color: #ffffff;
  --text-color: #111111;
}
body.dark-mode {
  --bg-color: #111111;
  --text-color: #f5f5f5;
}

/* Dark mode code */
body.dark-mode pre {
  background-color: #1e1e1e;
  color: #f5f5f5;
}
body.dark-mode code {
  background-color: #333;
  color: #f5f5f5;
}