.post-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.post-container {
	width: calc(33.33% - 14px); /* Three columns */
	margin-bottom: 20px;
    text-align: center;
}

.image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px; /* Fixed height to maintain uniform image container size */
}

.post-list-title {
    font-size: 1.2rem;
    margin-top: 10px;
}

.post-link {
    text-decoration: none;
    color: #e6e6e6;
    font-size: 2rem;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.9);
}

.post-link:visited {
    color: #e6e6e6;
}

.cheat_button {
    height: 300px!;
}

h2.cheat-category {
    text-transform: capitalize;
}

@media (max-width: 768px) {
    .post-container {
        width: calc(50% - 10px); /* Switch to 2 columns on smaller screens */
    }
}

@media (max-width: 480px) {
    .post-container {
        width: 100%; /* Full-width on very small screens */
    }
}

.post-card {
  padding: 0.5rem;
  margin: 0.5rem;
  border-radius: 12px;
  border: 1px solid #ccc;
  background-color: #222;
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
  background-size: cover;
  background-position: 0 50%;
  min-width: 480px;
}

.post-card-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

picture {
  flex: 0 0 64px;
}

.post-card-title {
  flex: 0 0 200px;
  margin: 0;
  font-size: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column; /* Stack title and checkbox vertically */
  justify-content: center; /* Keep name centered vertically */
  align-items: center;
}

.post-card-checkbox {
  font-size: 0.75rem;
}

.post-card-checkbox input {
  margin: 0;
  width: 10px; /* Adjust checkbox size */
  height: 10px;
}

.post-card-dates {
  flex: 0 0 150px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.post-card-date-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-card-date-label {
  flex: 0 0 60px;
  font-weight: bold;
}

.post-card-date-value {
  flex: 1;
  text-align: right;
  text-shadow: 2px 1px 2px rgba(0, 0, 0, 0.5);
}

.post-card-date-value picture img {
  max-width: 32px;
  max-height: 32px;
}

.post-card-tag {
  background-color: #444;
  padding: 0.15rem 0.4rem;
  border-radius: 8px;
  font-size: 0.75rem;
  display: inline-block;
  margin: 0.2rem;
  white-space: nowrap;
  cursor: pointer;
}

.post-card-tag,
.post-card-tag:visited {
  color: #e6e6e6;
  text-decoration: none;
}

.post-card-tags {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.75rem;
  max-height: 6rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.post-card-os-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);  /* 3 columns */
  gap: 16px;  /* Spacing between icons */
  justify-items: center;  /* Center icons in their grid cells */
}

.os-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
}

.diff-item {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 32px;
  padding: 0 1rem 0 1rem;
}

#complete-filter {
  height: 32px;
  background-color: #444;
  width: 190px;
  text-align: center;
  padding-top: 4px;
  font-weight: bold;
}

.filters {
  display: flex;
  justify-content: flex-start;
  gap: 40px;
  padding: 0.5rem;
}

.filter-col {
  display: flex;
  align-items: center;
}

.filter-col > ul {
  display: inline-flex;
  margin-left: unset;
  margin-bottom: unset;
}

.filter-rows {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.tag-filter-input {
  display: inline-block;
}

.filter-input {
  height: 30px;
  flex-grow: 1;
  margin-left: 5px;
}

.filter-label {
  width: 100px;
  text-align: right;
  margin-right: 10px;
}

.filters ::-webkit-scrollbar {
  width: unset;
  height: unset;
}

.filters ::-webkit-scrollbar-thumb {
  background: unset;
  border-radius: unset;
}

.filters ::-webkit-scrollbar-track {
  background: unset;
}

.post-card-status {
  font-style: italic;
}

#post-card-filter-reset {
  background-color: #444;
  padding: 0 0.5rem;
}

#blur-tags-button {
  padding: 0 0.5rem;
  width: 140px;
  text-align: center;
}

.post-card-status-row {
  font-size: smaller;
  margin-bottom: 20px;
  padding: 0.5rem;
  display: flex;
  justify-content: end;
  gap: 16px;
}

.button {
  outline: 2px solid #007acc22;
  border-radius: 4px;
  cursor: pointer;
}

.selected {
  background-color: #444;
}

#spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #222; /* or whatever background you like */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.spinner-bg {
  width: 30%; /* 30% of screen width */
  height: auto;
  max-width: 300px;
  position: relative;
  z-index: 1;
  border-radius: 50%;
  object-fit: cover;
}

.spinner-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  border: 5px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 2; /* Make sure spinner is on top */
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#spinner.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}