.codeSnippet {
  background-color: rgba(0,0,0,0.05);
  padding: 22px;
  font-family: Consolas;
  border-radius: 10px;
}

.blogImage {
  display: table;
  margin: 0 auto;
  max-width: 100%;
}

.caption {
  display: table;
  margin: 0 auto;
  font-style: italic;
  margin-top: 8px;
}

.blog-story {
  margin: 0 auto;
  width: 100%;
  max-width: 800px;
}

#stats {
  font-family: Arial, Helvetica, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

#stats td, #stats th {
  border: 1px solid #ddd;
  padding: 8px;
}

#stats tr:nth-child(even){background-color: #f2f2f2;}

#stats tr:hover {background-color: #ddd;}

#stats th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #666666;
  color: white;
}

em {
  font-weight: bold;
  font-style: normal;
}

/* Mobile responsiveness fixes */
.blog-story {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.blog-story a {
  word-break: break-all;
}

.codeSnippet {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

@media (max-width: 768px) {
  .blog-story {
    padding: 0 15px;
    max-width: calc(100vw - 30px);
    overflow-x: hidden;
    margin: 0 auto;
    width: calc(100vw - 30px);
  }
  
  /* Ensure the container itself doesn't overflow */
  #container {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  .blog-story h1 {
    font-size: 36px !important;
  }
  
  .blog-story h2 {
    font-size: 24px !important;
  }
  
  .blog-story div[style*="font-size: 48px"] {
    font-size: 36px !important;
  }
  
  .codeSnippet {
    font-size: 14px;
    padding: 15px;
    max-width: 100%;
    overflow-x: auto;
  }
  
  .blogImage {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
  }
  
  /* Ensure all images within blog story are responsive */
  .blog-story img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Handle any wide content within blog story only */
  .blog-story * {
    max-width: 100%;
    box-sizing: border-box;
  }
}
