/* /project.css — the real projects' pages (solilog, nocte…): the club's own white window (as the
   button wall's), the screenshot, a strip of gif buttons, a guestbook */

.pj-page > main { padding-top: 2.6em; }
.pj { max-width: 860px; margin: 0.6em auto 4em; padding: 0 0.8em; }
.pj__win { background: #fff; border: 2px solid #000; box-shadow: 4px 4px 0 #000; padding-bottom: 0.4em; }

.pj__ver { margin-top: 0.8em; opacity: 0.75; }
.pj__ver b { font-weight: normal; }

.pj__shot { display: block; margin: 0.8em 1.2em; line-height: 0; }
.pj__shot img { display: block; width: 100%; height: auto; border: 2px solid #000; background: #1c1c1f; }
.pj__shot:hover, .pj__shot:focus-visible { background: none; }
.pj__shot:hover img { box-shadow: 4px 4px 0 #000; }
.pj__shot:empty { display: none; }
/* a text program's picture is its text: a patch, as the terminal shows it */
.pj__patch {
  margin: 0.8em 1.2em; padding: 0.6em 0.9em; background: #000; color: #00c800; border: 2px solid #000;
  box-shadow: 4px 4px 0 #000; font: inherit; font-size: 0.8em; line-height: 1.25; white-space: pre; overflow-x: auto;
}
.pj__patch i { font-style: normal; color: #6a6; }
/* a menu bar app has only its icon to show: small, unframed */
.pj__shot--icon, .pj__shot.pj__shot--icon { width: 160px; margin: 1em auto; }
.pj__shot--icon img { border: 0; background: none; }
.pj__shot--icon:hover img { box-shadow: none; }

/* 88x31s at their own size, never smoothed: they're pixel art */
.pj__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 1em 1.2em; }
.pj__btns:empty { display: none; }
.pj__btns a { display: block; line-height: 0; padding: 2px; }
.pj__btns img { image-rendering: pixelated; }

.pj__foot { border-top: 1px dashed #000; margin: 0.6em 1.2em; padding-top: 0.4em; font-size: 0.85em; }

/* the guestbook, the homepages' in the club's own clothes */
.pj__gb { margin: 0 1.2em; }
.pj__gbform { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 520px; margin: 0.6em auto 1em; }
.pj__gbform textarea { grid-column: 1 / -1; resize: vertical; }
.pj__gbform input, .pj__gbform textarea {
  font: inherit; font-size: 0.85em; padding: 0.1em 0.4em; border: 2px solid #000; background: #fff; color: #000; caret-color: #000;
}
.pj__gbform button {
  grid-column: 1 / -1; justify-self: center; font: inherit; font-size: 0.85em; padding: 0.05em 1em;
  border: 2px solid #000; background: #fff; color: #000; box-shadow: 2px 2px 0 #000; cursor: pointer;
}
.pj__gbform button:hover { background: #000; color: #fff; }
.pj__gbform button:active { box-shadow: none; transform: translate(2px, 2px); }
.pj__gbe { border-top: 1px dashed #000; padding: 0.3em 0; }
.pj__gbe p { margin: 0.1em 0; }
.pj__gbh { font-size: 0.8em; opacity: 0.75; }
.pj__gbh b { font-weight: normal; }

.pj__hits { text-align: center; font-size: 0.85em; margin-top: 1em; }
.pj__hits img { vertical-align: middle; }

@media (max-width: 640px) {
  .pj { padding: 0 0.4em; }
  .pj__win h1 { font-size: 1.1em; }
  .pj__shot, .pj__patch, .pj__btns, .pj__foot, .pj__gb { margin-left: 0.6em; margin-right: 0.6em; }
  .pj__gbform { grid-template-columns: 1fr; }
}
