.center {
  text-align: center;
}
body {
  margin-top: 5%;
  margin-bottom: 20%;
  margin-right: 15%;
  margin-left: 15%;
}

.tweet-page {
  min-height: 100vh;
  padding: 32px 16px;
  background: #f7f9fa;
  color: #0f1419;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tweet-shell {
  display: flex;
  justify-content: center;
  align-items: center;
}
.caption {
  font-size: 11px;
  text-align: center;
}
p {
  margin: 0;
  line-height: 1.4;
}
h2 {
  margin-right: 15%;
  margin-left: 15%;
  line-height: 1.3;
}
img {
  padding: inherit;
  margin:auto;
  display: block;
}
table {
    color: #4b4835;
    background-color: #C0CEE1;
    border: 2px #666a86 solid;
    border-collapse: collapse;
    border-spacing: 0px;
  margin-right: 15%;
  margin-left: 15%;
}
table.posts {
    width: auto;
    color: #4b4835;
    background-color: #C0CEE1;
    border: 2px #666a86 solid;
    border-collapse: collapse;
    border-spacing: 0px;
    margin-bottom: 1.5rem;
}

td.postsauthor {
    width: 160px;
    background-color: #C0CEE1;
    border-right: 1px #666a86 solid;
    border-spacing: 0px;
    padding: 5px;
    font-weight: bold;
    text-align: center;
    vertical-align: top;
}

td.postsbody {
    background-color: #C0CEE1;
    border-right: 1px #666a86 solid;
    border-spacing: 0px;
    padding: 5px;
    text-align: left;
    vertical-align: top;
    font-weight: normal;
}

td.postsdate {
    background-color: #C0CEE1;
    border-bottom: 1px #666a86 solid;
    border-spacing: 0px;
    height: 20px;
    padding: 5px;
    text-align: left;
}

td.postssig {
    background-color: #C0CEE1;
    border-spacing: 0px;
    padding-left: 5px;
    padding-bottom: 7px;
    height: 20px;
    text-align: left;
    font-size: 9px;
    font-weight: normal;
    vertical-align: bottom;
}
.status {
  text-align: center;
  margin: 0 auto;
}

.twt {
  width: min(100%, 600px);
  margin: 0;
  padding: 16px 18px 14px;
  border: 1px solid #eff3f4;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 20, 25, 0.08);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
}

.twt-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.twt-icon-container {
  flex-shrink: 0;
}

.twt-icon {
  border-radius: 50%;
  width: 3.5em;
  height: 3.5em;
  object-fit: cover;
}
 .twt-iconquote {
  border-radius: 50%;
  width: 2em;
}

.twt-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.twt-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.twt-name {
  font-weight: 700;
  font-size: 1rem;
}

 .twt-name:hover {
  text-decoration: underline;
  cursor: pointer;
}

 .twt-handle {
  color: #536471;
  font-size: 0.95rem;
}

 .twt-handle:hover {
  cursor: pointer;
}

 .twt-content {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #0f1419;
  margin: 4px 0 12px;
  text-align: left;
}

.twt-content p {
  margin: 0;
}

 .twt-contentquote {
  margin-top: -1em;
  font-size: 1em;
}

 .twt-timestamp {
  color: #536471;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.twt-media {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

 hr.twt-sep,
 hr.twt-sep-reply {
  border: none;
  height: 1px;
  width: 100%;
  background-color: #e6e6e6;
}

 hr.twt-sep-reply {
  margin-left: -20px;
  padding-right: 40px;
}

 .twt-stat1 {
  color: #536471;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

 .twt-quotebox {
  padding-left: 10px;
  padding-right: 10px;
  border: 1px solid #c7c7c7;
  border-radius: 10px;
  margin-bottom: -1em;
}

 .twt-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid #e6ecf0;
  border-radius: 14px;
  margin: 0;
  display: block;
}

 .twt-replybox {
  margin-top: -2em;
}

 .twt-icon-replycontainer {
  float: left;
}

 .twt-replycontainer {
  padding-left: 1em;
  overflow: hidden;
}

 .twt-replycontent {
  margin-top: -1em;
}

 .twt-stat2 {
  color: #657786;
  font-size: 0.9em;
  margin-top: -1em;
}

 .twt-social {
  float: left;
  margin-right: 2em;
  margin-bottom: -1em;
}

 .twt-socialimg {
  height: 13px;
  margin-right: 3px;
}

 .twt-hl {
  color: #1da1f2;
}

 .twt-hl:hover {
  text-decoration: underline;
  cursor: pointer;
}

/* Responsive design for mobile and smaller screens */
@media (max-width: 768px) {
  body {
  margin-top: 2%;
  margin-bottom: 10%;
  margin-right: 0%;
  margin-left: 0%;
  }
  .center {
    margin: 10% 5%;
  }
  h2 {
    margin: 0 5%;
    line-height: 1.5;
  }
  img {
    max-width: 100%;
    height: auto;
  }
  table {
    margin: 0 5%;
    font-size: 14px;
  }
  table.posts {
    width: 100%;
  }
  td.postsauthor {
    width: 80px;
    padding: 3px;
  }
  td.postsbody {
    padding: 3px;
  }
  td.postsdate {
    padding: 3px;
  }
  td.postssig {
    padding-left: 3px;
    padding-bottom: 5px;
  }
}

