@font-face {
  font-family: 'Noto Sans';
  font-weight: 400;
  font-style: normal;
  src: url('../fonts/Noto-Sans-regular/Noto-Sans-regular.eot');
  src: url('../fonts/Noto-Sans-regular/Noto-Sans-regular.eot?#iefix') format('embedded-opentype'),
       local('Noto Sans'),
       local('Noto-Sans-regular'),
       url('../fonts/Noto-Sans-regular/Noto-Sans-regular.woff2') format('woff2'),
       url('../fonts/Noto-Sans-regular/Noto-Sans-regular.woff') format('woff'),
       url('../fonts/Noto-Sans-regular/Noto-Sans-regular.ttf') format('truetype'),
       url('../fonts/Noto-Sans-regular/Noto-Sans-regular.svg#NotoSans') format('svg');
}

@font-face {
  font-family: 'Noto Sans';
  font-weight: 700;
  font-style: normal;
  src: url('../fonts/Noto-Sans-700/Noto-Sans-700.eot');
  src: url('../fonts/Noto-Sans-700/Noto-Sans-700.eot?#iefix') format('embedded-opentype'),
       local('Noto Sans Bold'),
       local('Noto-Sans-700'),
       url('../fonts/Noto-Sans-700/Noto-Sans-700.woff2') format('woff2'),
       url('../fonts/Noto-Sans-700/Noto-Sans-700.woff') format('woff'),
       url('../fonts/Noto-Sans-700/Noto-Sans-700.ttf') format('truetype'),
       url('../fonts/Noto-Sans-700/Noto-Sans-700.svg#NotoSans') format('svg');
}

@font-face {
  font-family: 'Noto Sans';
  font-weight: 400;
  font-style: italic;
  src: url('../fonts/Noto-Sans-italic/Noto-Sans-italic.eot');
  src: url('../fonts/Noto-Sans-italic/Noto-Sans-italic.eot?#iefix') format('embedded-opentype'),
       local('Noto Sans Italic'),
       local('Noto-Sans-italic'),
       url('../fonts/Noto-Sans-italic/Noto-Sans-italic.woff2') format('woff2'),
       url('../fonts/Noto-Sans-italic/Noto-Sans-italic.woff') format('woff'),
       url('../fonts/Noto-Sans-italic/Noto-Sans-italic.ttf') format('truetype'),
       url('../fonts/Noto-Sans-italic/Noto-Sans-italic.svg#NotoSans') format('svg');
}

@font-face {
  font-family: 'Noto Sans';
  font-weight: 700;
  font-style: italic;
  src: url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.eot');
  src: url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.eot?#iefix') format('embedded-opentype'),
       local('Noto Sans Bold Italic'),
       local('Noto-Sans-700italic'),
       url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.woff2') format('woff2'),
       url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.woff') format('woff'),
       url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.ttf') format('truetype'),
       url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.svg#NotoSans') format('svg');
}

body {
  background-color: #121212; /* Dark background */
  padding:50px;
  font: 14px/1.5 "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #e0e0e0; /* Light text color */
  font-weight:400;
}

h1, h2, h3, h4, h5, h6 {
  color: #ffffff; /* White headings */
  margin:0 0 20px;
}

p, ul, ol, table, pre, dl {
  margin:0 0 20px;
}

h1, h2, h3 {
  line-height:1.1;
}

h1 {
  font-size:28px;
}

h2 {
  color: #f5f5f5; /* Lighter heading color */
}

h3, h4, h5, h6 {
  color: #dddddd; /* Lighter heading color */
}

a {
  color: #64b5f6; /* Light blue links */
  text-decoration:none;
}

a:hover {
  color: #2196f3; /* Darker blue on hover */
}

a small {
  font-size:11px;
  color: #bbbbbb; /* Lighter small text color */
  margin-top:-0.3em;
  display:block;
}

a:hover small {
  color: #bbbbbb;
}

.wrapper {
  width:860px;
  margin:0 auto;
}

blockquote {
  border-left:1px solid #555555; /* Darker border for blockquote */
  margin:0;
  padding:0 0 0 20px;
  font-style:italic;
  color: #cccccc; /* Lighter blockquote text */
}

code, pre {
  font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal, Consolas, Liberation Mono, DejaVu Sans Mono, Courier New, monospace;
  color: #f5f5f5; /* Light text for code */
  background-color: #222222; /* Dark background for code blocks */
  font-size:12px;
}

pre {
  padding:8px 15px;
  border-radius:5px;
  border:1px solid #444444; /* Darker border for pre */
  overflow-x: auto;
}

table {
  width:100%;
  border-collapse:collapse;
}

th, td {
  text-align:left;
  padding:5px 10px;
  border-bottom:1px solid #555555; /* Darker border for table cells */
}

dt {
  color: #cccccc; /* Lighter dt color */
  font-weight:700;
}

th {
  color: #cccccc; /* Lighter th color */
}

img {
  max-width:100%;
}

header {
  width:270px;
  float:left;
  position:fixed;
  -webkit-font-smoothing:subpixel-antialiased;
}

header ul {
  list-style:none;
  height:auto; /* Adjusted for multi-line nav items if any */
  padding:0;
  background: #1e1e1e; /* Dark background for nav */
  border-radius:5px;
  border:1px solid #333333; /* Darker border for nav */
  width:270px;
}

header li {
  width:auto; /* Auto width for flexibility */
  float:left; /* Keep them in a row */
  border-right:1px solid #333333;
  height:40px;
}

/* Adjusting li width for 4 items, ensuring they fit */
header nav ul li {
  width: calc(25% - 1px); /* 4 items, subtract border */
}

header nav ul li:last-child {
  border-right: none; /* No border for the last item */
}


header li:first-child a {
  border-radius:5px 0 0 5px;
}

header li:last-child a {
  border-radius:0 5px 5px 0;
}

header ul a {
  line-height:1;
  font-size:11px;
  color: #cccccc; /* Light text for nav links */
  display:block;
  text-align:center;
  padding-top:6px;
  height:34px;
}

header ul a:hover {
  color: #ffffff; /* White on hover */
  background-color: #2a2a2a; /* Slightly lighter background on hover */
}

header ul a:active {
  background-color: #252525; /* Darker background on active */
}

strong {
  color: #ffffff; /* White strong text */
  font-weight:700;
}

/* This rule was overriding the width for the nav items */
/* header ul li + li + li {
  border-right:none;
  width:89px;
} */

header ul a strong {
  font-size:14px;
  display:block;
  color: #ffffff; /* White strong text in nav */
}

section {
  width:500px;
  float:right;
  padding-bottom:50px;
  /* background-color: #1a1a1a; Darker background for section if needed */
  /* border: 1px solid #333; Add border if needed */
}

small {
  font-size:11px;
}

hr {
  border:0;
  background: #444444; /* Darker hr */
  height:1px;
  margin:0 0 20px;
}

footer {
  width:270px;
  float:left;
  position:fixed;
  bottom:50px;
  -webkit-font-smoothing:subpixel-antialiased;
  color: #bbbbbb; /* Lighter footer text */
}

/* Animation for pulsing effect */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Social Media Links in Footer */
.social-links {
  margin-bottom: 15px; /* Space between social links and copyright text */
}

.social-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center; /* Center the links */
}

.social-links li {
  display: inline-block; /* Display links in a row */
  margin: 0 10px; /* Space between links */
}

.social-links a {
  color: #64b5f6; /* Use existing link color */
  text-decoration: none;
  font-size: 13px; /* Slightly larger for emphasis */
}

.social-links a:hover {
  color: #2196f3; /* Use existing link hover color */
  text-decoration: underline;
  animation: pulse 0.6s ease-in-out; /* Apply the animation */
}

/* Adjustments for footer paragraph containing copyright */
footer p {
  text-align: center; /* Center copyright text as well */
  margin-bottom: 0; /* Remove bottom margin if it's the last element */
}

@media print, screen and (max-width: 960px) {

  div.wrapper {
    width:auto;
    margin:0;
  }

  header, section, footer {
    float:none;
    position:static;
    width:auto;
  }

  header {
    padding-right:0; /* Removed padding for better layout */
    background-color: #1e1e1e; /* Dark header background for mobile */
  }

  section {
    border:1px solid #333333; /* Darker border for section on mobile */
    border-width:1px 0;
    padding:20px 0;
    margin:0 0 20px;
  }

  header a small {
    display:inline;
  }

  header ul {
    position:static; /* Changed from absolute for better flow */
    /* right:50px; */ /* Removed */
    /* top:52px; */   /* Removed */
    width: 100%; /* Full width nav on smaller screens */
    margin-bottom: 10px; /* Space below nav */
  }
  header nav ul li { /* Ensure nav items in header take full width and stack */
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #333333;
  }
  header nav ul li:last-child {
    border-bottom: none;
  }
}

@media print, screen and (max-width: 720px) {
  body {
    word-wrap:break-word;
  }

  header {
    padding:0;
  }

  header ul, header p.view {
    position:static;
  }

  pre, code {
    word-wrap:normal;
  }
}

@media print, screen and (max-width: 480px) {
  body {
    padding:15px;
    background-color: #121212; /* Ensure dark background on small screens */
  }

  header ul {
    width:100%; /* Full width for nav */
  }

  /* Ensure nav items stack properly and take full width */
  header li, header ul li + li + li {
    width:100%;
    border-right: none; /* Remove right border */
    border-bottom: 1px solid #333333; /* Add bottom border for separation */
  }
  header li:last-child {
    border-bottom: none; /* No border for the last item */
  }

  header nav ul li { /* Overwrite previous calc for smaller screens */
    width: 100%;
  }
}

@media print {
  body {
    padding:0.4in;
    font-size:12pt;
    color:#e0e0e0; /* Light text for print */
    background-color: #121212; /* Dark background for print */
  }
  h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
  }
  a {
    color: #64b5f6;
  }
  /* Add other print-specific dark theme styles if needed */
}
