#page-wrapper {
  display: flex;
  gap: 20px;
  padding: 20px;
  align-items: flex-start;
}

body {
  font-family: "Tahoma", Geneva, sans-serif;
  font-size: 14px;
  background-color: #fdf6e3;
  color: #000;
  margin: 0;
  padding: 0;
}

header {
  background-color: #003399;
  color: #ffcc00;
  padding: 15px;
  text-align: center;
  border-bottom: 4px double #002266;
}

header h2 a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

header h2 a:hover {
  text-decoration: none;
}

h4 {
  margin-bottom: 0.5rem;
}

main {
  max-width: 800px;
  margin: 20px auto;
  padding: 15px 50px;
  background-color: #ffffff;
  border: 3px solid #003399;
}

main h3 {
  margin-top: 40px;
}

h1 {
  font-size: 22px;
  border-bottom: 2px dashed #003399;
  padding-bottom: 5px;
}

p {
  text-align: justify;
  hyphens: auto;
  font-size: 13px;
  line-height: 1.4;
}

pre code {
  white-space: pre-wrap;
  word-break: break-word;
}

pre {
  overflow-x: auto;
  background: #f8f9fa;
  padding: 8px;
  border-radius: 4px;
}

.step-title {
  font-weight: bold;
  font-size: 1em;
  display: inline-block;
  margin-top: 8px;
}

#card-wrapper {
  width: 40%;
}

.share-buttons {
  text-align: left;
  margin-top: 30px;
}

.share-buttons a {
  display: inline-block;
  padding: 8px 16px;
  background-color: #ffcc00;
  color: #000080;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  border: 2px outset #003399;
  box-shadow: 2px 2px 0 #666;
  transition: all 0.2s ease-in-out;
  font-family: "Tahoma", Geneva, sans-serif;
}

.share-buttons a:hover {
  background-color: #003399;
  color: #ffcc00;
  border: 2px inset #003399;
  box-shadow: none;
}

.about-me {
  margin-top: 40px;
  margin-bottom: 15px;
  padding: 15px;
  background-color: #f0f8ff;
  border: 2px solid #003399;
  font-size: 12px;
}

.about-me a img {
  width: 24px;
  height: 24px;
  /* vertical-align: middle; */
  margin-right: 6px;
}

#suggested-articles {
  margin-top: 40px;
  margin-bottom: 40px;
}

#suggested-articles .suggested-list {
  list-style-type: disc;
  margin: 0;
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

#recent-articles {
  list-style-type: disc;
  margin: 0;
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.search-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0 1rem 0;
}

#search-box {
  display: block;
  margin: 0;
  max-width: 400px;
  width: 100%;
  max-width: 200px;
}

#clear-btn {
  margin: 0;
  /* padding: 0.5rem 0.8rem; */
  cursor: pointer;
  border: 1px solid #ccc;
  background: #f5f5f5;
  border-radius: 4px;
}

#clear-btn:hover {
  background: #e0e0e0;
}

#article-list {
  list-style-type: disc;
  margin: 0;
  padding-left: 1.2rem;
  min-height: calc(5 * 2.5em);
}

.pagination {
  margin: 20px 0;
  text-align: center;
  font-family: "Tahoma", Geneva, sans-serif;
}

.pagination a {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 3px;
  border: 2px outset #003399;
  background-color: #f0f8ff;
  color: #003399;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.pagination a:hover {
  background-color: #003399;
  color: #ffcc00;
  border: 2px inset #003399;
}

.pagination a.active {
  background-color: #003399;
  color: #ffcc00;
  border: 2px inset #003399;
  cursor: default;
  pointer-events: none;
}

#book-box {
  background-color: #f0f0c0;
  padding: 15px;
  border: 3px double #333;
  box-shadow: 4px 4px 0 #aaa;
  color: #000080;
  font-size: 14px;
}

#book-box a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #ffcc00;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #333;
  box-shadow: 2px 2px 0 #999;
}

#book-box a:hover {
  background-color: #ffee33;
}

#author-box {
  background-color: #008080;
  padding: 15px;
  border: 3px double #330066;
  box-shadow: 4px 4px 0 #666666;
  color: #ffff99;
  font-size: 14px;
  margin-top: 20px;
  text-shadow: 1px 1px 0 #000000;
}

#author-box a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #cc00cc;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #330066;
  box-shadow: 2px 2px 0 #444444;
}

#author-box a:hover {
  background-color: #ff66ff;
}

#qa-section {
  background-color: #ffffcc;
  border: 3px double #000080;
  padding: 15px 15px;
  width: 100%;
  max-width: 900px;
  box-sizing: border-box;
  margin: 30px auto;
  color: #000080;
  box-shadow: 6px 6px 0 #ffcc00;
}

.links-container {
  margin: 20px auto;
  border: 3px double #000080;
  background-color: #f0f8ff;
  padding: 10px;
  box-shadow: 5px 5px #999;
  background-image: url("https://www.transparenttextures.com/patterns/white-wall.png");
  background-repeat: repeat;
}

.marquee-text {
  color: red;
  font-weight: bold;
  font-size: 1.2em;
}

.fancy-hr {
  border: 0;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    #000080,
    #000080 10px,
    #ffffff 10px,
    #ffffff 20px
  );
  margin: 10px 0;
}

.cool-links-list {
  list-style-type: square;
  font-size: 1em;
  color: #000080;
}

.cool-links-list li p {
  margin: 0px;
}

.cool-links-list li a {
  color: blue;
  text-decoration: none;
}

.cool-links-list li a:hover {
  text-decoration: underline;
}

#pacman-container {
  position: fixed;
  bottom: 120px;
  left: 0;
  width: 100%;
  overflow: visible;
  z-index: 9999;
  pointer-events: none;
}

.pacman {
  position: absolute;
  width: 60px;
  height: 60px;
}

@keyframes chomping {
  0%,
  100% {
    transform-origin: center;
    transform: rotate(0deg);
  }
  50% {
    transform-origin: center;
    transform: rotate(20deg);
  }
}

.personal-box {
  background-color: #003399;
  padding: 15px;
  border: 4px outset #000080;
  box-shadow: 6px 6px 0 #000066;
  color: #ffcc00;
  font-family: "Tahoma", Geneva, sans-serif;
  font-size: 14px;
  margin-top: 20px;
  line-height: 1.4;
  user-select: none;
}

.personal-box a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #ffcc00;
  color: #000080;
  font-weight: bold;
  text-decoration: none;
  border: 2px outset #000080;
  box-shadow: 2px 2px 0 #000066;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-family: "Tahoma", Geneva, sans-serif;
  font-size: 14px;
}

.personal-box a:hover {
  background-color: #000080;
  color: #ffcc00;
  border: 2px inset #ffcc00;
  box-shadow: none;
}

.breaking-news-box {
  background-color: #fffacd;
  padding: 15px;
  border: 4px outset #ffd700;
  box-shadow: 6px 6px 0 #ffa500;
  color: #008080;
  font-family: "Tahoma", Geneva, sans-serif;
  font-size: 14px;
  margin-top: 20px;
  line-height: 1.4;
  user-select: none;
}

.breaking-news-box a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #008080;
  color: #fffacd;
  font-weight: bold;
  text-decoration: none;
  border: 2px outset #006666;
  box-shadow: 2px 2px 0 #004c4c;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-family: "Tahoma", Geneva, sans-serif;
  font-size: 14px;
}

.breaking-news-box a:hover {
  background-color: #004c4c;
  color: #ffd700;
  border: 2px inset #ffd700;
  box-shadow: none;
}

.para-list {
  text-align: justify;
  padding-left: 1rem;
  margin-left: 0;
  font-size: 13px;
  line-height: 1.4;
}

.para-list li {
  margin-bottom: 4px;
}

@media (max-width: 600px) {
  #page-wrapper {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  #card-wrapper {
    margin-top: 5px;
    width: 100%;
  }

  main {
    padding: 10px 15px;
    margin: 10px;
    max-width: 100%;
  }

  main h3 {
    margin-top: 18px;
    font-size: 20px;
  }

  body {
    font-size: 12px;
  }

  header {
    padding: 10px;
    font-size: 1em;
  }

  h1 {
    font-size: 20px;
    padding-bottom: 4px;
  }

  h4 {
    font-size: 15px;
  }

  p {
    font-size: 16px;
    line-height: 1.3;
  }

  pre code {
    font-size: 14px;
  }

  #recent-articles li {
    font-size: 15px;
  }

  #article-list li {
    font-size: 15px;
  }

  #suggested-articles li {
    font-size: 15px;
  }

  .share-buttons a {
    display: block;
    width: 100%;
    margin: 8px 0;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
  }

  .pagination a {
    padding: 10px;
    font-size: 13px;
  }

  #pacman-container {
    display: none;
  }

  .cool-links-list {
    padding-left: 20px;
  }
}
