/* Global Styles */
body {
  font-family: monospace;
  line-height: 150%;
  margin: 80px 0px;
  background: url("../images/bg.png") no-repeat center center fixed;
  background-size: cover; /* Ensure background scales well */
}

/* Container Styles */
.container {
  background: #ffe;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  margin: 100px auto 0;
  max-width: 400px;
  min-height: 300px;
  padding: 200px;
  position: relative;
  width: 80%; /* Percentage-based width for responsiveness */
}

.container:before,
.container:after {
  content: "";
  height: 98%;
  position: absolute;
  width: 100%;
  z-index: -1;
}

.container:before {
  background: #ffe;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  left: -5px;
  top: 4px;
  transform: rotate(-2.5deg);
}

.container:after {
  background: #ffe;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
  right: -3px;
  top: 1px;
  transform: rotate(1.4deg);
}

/* Links */
a:link,
a:visited,
a:active,
a:hover {
  color: #c00;
  text-decoration: none;
}

.page-link {
  font-weight: bold;
}

a.page-link:hover {
  border-bottom: 4px solid #c00;
}

/* Navigation List */
.navlist {
  padding: 0px;
}

.navlist > li {
  display: inline;
  list-style-type: none;
  padding-right: 10px;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 1em;
}

h1 {
  text-transform: uppercase;
  font-weight: bold;
  text-decoration: underline;
}

h2 {
  font-weight: bold;
  text-decoration: underline;
}

h3 {
  font-weight: bold;
}

.header {
  text-align: center;
  margin-bottom: 100px;
}

.header > h1 {
  letter-spacing: 10px;
  margin-bottom: 10px;
  text-decoration: none;
  text-shadow: 1px 0px 1px #444;
}

/* Posts */
.posts {
  padding-left: 0px;
}

.posts > li {
  list-style-type: none;
  margin: 80px 0px;
}

/* Code Blocks */
.highlight,
blockquote {
  margin: 40px 0px;
  padding: 0px 20px;
  border-left-style: solid;
}

/* Footer */
footer {
  margin-top: 100px;
  text-align: center;
}

/* Pagination */
.pagination {
  text-align: center;
}

.pagination > a,
.pagination > span {
  margin: 40px 10px;
}

/* Continue Reading */
.continue {
  text-align: center;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    margin: 50px auto;
    padding: 150px 20px; /* Adjusted padding for smaller screens */
    width: 90%; /* Increase width for smaller devices */
  }

  .header > h1 {
    letter-spacing: 5px; /* Reduce spacing for better fit */
  }

  .posts > li {
    margin: 40px 0px; /* Reduce margin between posts */
  }
}

@media (max-width: 480px) {
  .container {
    margin: 20px auto;
    padding: 100px 10px; /* Further reduce padding for very small screens */
    max-width: 90%; /* Ensure the container fits well */
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: 0.9em; /* Slightly smaller fonts on very small screens */
  }

  .header > h1 {
    letter-spacing: 3px; /* Adjust for better readability */
  }
}

@keyframes blink {
      0% { opacity: 1; color: red; }
      50% { opacity: 0.5; color: red; }
      100% { opacity: 1; color: red; }
}
.blink-news {
            animation: blink 2s infinite;
            color: red;
}
.blink-nav {
  animation: blink 2s infinite;
  color: red !important;
}
    