html, body {
  overflow-x: auto;
}

body {
  background-color: #333;
  color: #fff;
  font-family: "Courier New", Courier, monospace;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 90%;
  margin: auto;
  flex: 1;
  min-width: 0; 
  min-height: 0;  
}

header,
footer {
  background: #222;
  color: #ddd;
  padding: 20px 0;
  text-align: center;
}

footer {
  font-size: 0.8em;
  margin-top: auto; 
}

.about,
.latest-posts {
  padding: 20px 0;
}

h1,
h2,
h3{
  color: #76ff03;
}

p {
  margin: 20px 0;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

ul li {
  margin: 10px 0;
}

ul li a {
  color: #ff0000;
  text-decoration: underline;
}


/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;           
  justify-content: center;  
  margin: 20px 0;
  border-bottom: 1px solid #0f500f;
  font-family: "Courier New", Courier, monospace;
}

.tab-button {
  padding: 10px 20px;
  border: none;
  background: none;
  cursor: pointer;
  margin-right: 10px;
  border-bottom: 2px solid transparent;
  font-family: "Courier New", Courier, monospace !important;
  color: #fff;
}

.tab-button.active {
  border-bottom: 2px solid #007bff;
  color: #007bff;
  font-family: "Courier New", Courier, monospace !important;
}

.tab-content {
  display: none;
  padding: 20px 0;
  min-width: 0;   
  min-height: 0;  
}

.tab-content.active {
  display: block;
}

.json-display {
  background: #1e1e1e;         
  color: #d4d4d4;
  padding: 12px;
  border-radius: 6px;

  display: grid;               
  box-sizing: border-box;
  max-inline-size: 100%;
  max-block-size: 65vh;         
  overflow: auto;               
}

.json-viewer {
  min-width: 0;
  min-height: 0;
  white-space: pre-wrap;        
  overflow-wrap: anywhere;      
  word-break: break-word;       

  margin: 0;
  line-height: 1.5;
  box-sizing: border-box;
  max-inline-size: 100%;
}

.refresh-link {
  color: #ff0000;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .json-viewer {
    font-size: 0.9rem;
  }
  .json-display {
    max-block-size: 70vh;
  }
}
