body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 20px 0 0;
  background-color: #f5f5f5;
  line-height: 1.6;
  background-attachment: fixed;
  background-image: url("https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/812f3f61-32d6-4db3-b116-7bc17a9328a7/ddm1mdh-22ae0485-26d7-4fe0-bb33-41367100ca69.png?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7InBhdGgiOiIvZi84MTJmM2Y2MS0zMmQ2LTRkYjMtYjExNi03YmMxN2E5MzI4YTcvZGRtMW1kaC0yMmFlMDQ4NS0yNmQ3LTRmZTAtYmIzMy00MTM2NzEwMGNhNjkucG5nIn1dXSwiYXVkIjpbInVybjpzZXJ2aWNlOmZpbGUuZG93bmxvYWQiXX0.aALDUReSGhK396rAwVwdAAE8HmqEyGH1apwojRxYwGk");
  background-size: contain;
  background-blend-mode: overlay;
  background-color: #8f8060;
  backdrop-filter: blur(2px) contrast(1.05) saturate(0.98) brightness(1.5);
}
.container {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 85svw;
  margin: 1svh auto;
  background-color: #fffb;
  padding: 2.5rem;
  text-rendering: optimizeLegibility;
  flex: 1 0 auto;
}
h1 {
  color: #2c3e50;
  border-bottom: 3px solid #3498db;
  padding-bottom: 10px;
  margin-top: 0;
}
h2 {
  color: #34495e;
  border-bottom: 2px solid #3498db;
  padding-bottom: 5px;
  margin-top: 30px;
}
h3 {
  color: #555;
  margin-top: 20px;
  margin-bottom: 10px;
}
h4 {
  color: #666;
  margin-top: 15px;
  margin-bottom: 8px;
}
table {
  background-color: white;
  font-size: 14px;
  margin-bottom: 10px;
}
th {
  font-weight: bold;
  text-align: left;
  padding: 8px !important;
}
td {
  padding: 8px !important;
}
tr:nth-child(even) {
  background-color: #f9f9f9;
}
tr:hover {
  background-color: #e8f4f8;
}
.description {
  color: #555;
  font-style: italic;
  margin: 10px 0 20px 0;
  padding: 10px;
  background-color: #f8f9fa;
  border-left: 4px solid #3498db;
}
a {
  color: #3498db;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.packet-list {
  columns: 3;
  column-gap: 20px;
}
.packet-list li {
  margin-bottom: 8px;
  break-inside: avoid;
}
details {
  margin: 10px 0;
}
summary {
  cursor: pointer;
  font-weight: bold;
  padding: 8px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  user-select: none;
}
summary:hover {
  background-color: #e8e8e8;
}
details[open] summary {
  background-color: #d4edff;
  border-color: #3498db;
  border-left: 4px solid #3498db;
}
@media (max-width: 900px) {
  .packet-list {
    columns: 2;
  }
}
@media (max-width: 600px) {
  .packet-list {
    columns: 1;
  }
}
.footer {
  margin-top: auto;
  width: 100%;
  background-color: transparent;
  color: #222222;
  text-align: center;
  background-image: linear-gradient(
    90deg,
    rgba(250, 250, 0, 0) 0%,
    rgba(250, 255, 0, 0.05) 25%,
    rgba(200, 130, 0, 0.2) 30%,
    rgba(240, 238, 230, 0.925) 42%,
    rgba(240, 238, 230, 0.925) 58%,
    rgba(200, 130, 0, 0.2) 70%,
    rgba(250, 255, 0, 0.05) 75%,
    rgba(250, 250, 0, 0) 100%
  );
  font-weight: 600;
  font-size: 0.6rem;
  padding: 0.5rem 0 0.45rem;
  letter-spacing: 1.2px;
}

.container>h1::after {
    content: "Protocol version: 859";
    display: flex;
    flex-direction: column;
    font-size: 1rem;
}


.packet-list li[data-direction] a {
  position: relative;
  padding-left: 1.1rem;
}
.packet-list li[data-direction] a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 0.8rem;
  height: 0.8rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.9;
}


.packet-list li[data-direction="client_to_server"] a::after {
  background-image: url("https://i.imgur.com/1XSszw8.png"); 
}
.packet-list li[data-direction="server_to_client"] a::after {
  background-image: url("https://i.imgur.com/wVbY7lB.png"); 
}


