.faq-window {
  overflow: hidden;
}

.faq-container {
  padding: 15px;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  padding: 0;
  text-align: left;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 8px 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-family: 'Pixelated MS Sans Serif', 'Courier New', monospace;
  font-weight: bold;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-item summary h3::before {
  content: '';
  width: 16px;
  height: 16px;
  background: url('/img/help-icons.png') 0 0 no-repeat;
  flex-shrink: 0;
}

.faq-item[open] summary h3::before {
  background-position: -16px 0;
}

.faq-content {
  padding: 10px 0 10px 24px;
  overflow: hidden;
}

.faq-content img {
  float: left;
  width: 140px;
  height: auto;
  border: 1px solid #808080;
  margin: 0 12px 8px 0;
}

.faq-content p {
  margin: 0 0 8px 0;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.faq-content p:last-child {
  margin-bottom: 0;
}

.faq-content ul {
  margin: 8px 0;
  padding-left: 20px;
  list-style: none;
}

.faq-content ul.word-soup {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 15px;
  padding-left: 0;
}

.faq-content ul.word-soup li {
  margin: 0;
}

.faq-content li {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 4px;
  display: table;
  border-radius: 4px;
}

.faq-item[open] .faq-content li {
  animation: highlight 2s ease-out;
}

.faq-item[open] .faq-content li:nth-child(1) { animation-delay: 0s; }
.faq-item[open] .faq-content li:nth-child(2) { animation-delay: 2s; }
.faq-item[open] .faq-content li:nth-child(3) { animation-delay: 4s; }
.faq-item[open] .faq-content li:nth-child(4) { animation-delay: 6s; }
.faq-item[open] .faq-content li:nth-child(5) { animation-delay: 8s; }
.faq-item[open] .faq-content li:nth-child(6) { animation-delay: 10s; }
.faq-item[open] .faq-content li:nth-child(7) { animation-delay: 12s; }
.faq-item[open] .faq-content li:nth-child(8) { animation-delay: 14s; }
.faq-item[open] .faq-content li:nth-child(9) { animation-delay: 16s; }
.faq-item[open] .faq-content li:nth-child(10) { animation-delay: 18s; }
.faq-item[open] .faq-content li:nth-child(11) { animation-delay: 20s; }
.faq-item[open] .faq-content li:nth-child(12) { animation-delay: 22s; }
.faq-item[open] .faq-content li:nth-child(13) { animation-delay: 24s; }
.faq-item[open] .faq-content li:nth-child(14) { animation-delay: 26s; }
.faq-item[open] .faq-content li:nth-child(15) { animation-delay: 28s; }

@keyframes highlight {
  0%, 100% { background: transparent; }
  10%, 90% { background: #0000ff; }
}

.faq-footer {
  text-align: left;
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px dashed #808080;
  font-size: 12px;
  clear: both;
}

.nobr {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .faq-content img {
    display: none;
  }
  
  body:has(.window-container) {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}