/* -----------------------------
   Global safety
-------------------------------- */

* { box-sizing: border-box; }

/* -----------------------------
   Base
-------------------------------- */

body {
  margin: 0;
  background-color: #f2efe9;
  color: #000;
  font-family: "Times New Roman", serif;

  background-image: url("images/bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  cursor: url("images/cursor.png") 0 0, auto;
}

h1 {
  color: #0033cc;
  margin: 0;
}

p {
  max-width: 600px;
  line-height: 1.4;
  cursor: text;
}

/* -----------------------------
   Page container
-------------------------------- */

.page {
  max-width: 1150px;
  width: 95%;
  margin: 40px auto;
  padding: 18px;

  background: rgba(248, 243, 232, 0.95);
  border: 2px solid #000;
}

/* -----------------------------
   Layout
-------------------------------- */

.layout {
  display: flex;
  gap: 18px;
  flex-wrap: nowrap;
  align-items: flex-start;
}

.sidebar,
.sidebar-right {
  flex: 0 0 220px;
  width: 220px;
  background: #fff;
  padding: 12px;

  position: sticky;
  top: 18px;
  align-self: flex-start;
}

.content {
  flex: 1;
  min-width: 0;
  background: #fff;
  padding: 12px;
}

/* prevent random huge images */
.content img {
  max-width: 100%;
  height: auto;
}

/* -----------------------------
   90s bevel frame
-------------------------------- */

.frame {
  background: #fff;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  border-right: 3px solid #444;
  border-bottom: 3px solid #444;
  padding: 10px;
}

/* -----------------------------
   Header bits
-------------------------------- */

.statusbar {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin: 12px 0 18px 0;
}

.blink {
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.marq {
  display: block;
  width: 100%;
  padding: 6px;
  margin: 0 0 12px 0;

  background: #ffffcc;
  border: 1px solid #000;
  overflow: hidden;

  cursor: url("images/cursor.png") 0 0, auto;
}

/* -----------------------------
   Sidebar
-------------------------------- */

.sidebar-badge {
  text-align: center;
  margin-bottom: 12px;
}

.neopet {
  display: block;
  max-width: 140px;
  width: 100%;
  height: auto;
  margin: 0 auto;

  border: none;
  image-rendering: pixelated;
}

.tiny {
  font-size: 12px;
  margin: 6px 0 0 0;
}

/* -----------------------------
   Buttons + links
-------------------------------- */

a:link { color: #00f; }
a:visited { color: #551a8b; }
a:hover { background: #ff0; }

.button90s {
  display: inline-block;
  padding: 6px 10px;
  margin: 4px 0;

  background: #e6e6e6;
  color: #000;
  text-decoration: none;
  font-weight: bold;

  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #444;
  border-bottom: 2px solid #444;
}

.button90s:hover {
  background: #ffffcc;
}

.button90s:active {
  border-top: 2px solid #444;
  border-left: 2px solid #444;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.sidebar .button90s {
  width: 100%;
}

/* cursors: clickable */
a,
button,
.button90s,
input,
textarea {
  cursor: url("images/cursor-clickable.png") 0 0, pointer;
}

/* -----------------------------
   Dividers
-------------------------------- */

.divider {
  display: block;
  margin: 10px auto;
  border: none;
  width: 30px;
  height: auto;
}

.divider-between {
  width: 30px;
  height: auto;
  margin: 18px auto;
}

/* -----------------------------
   Latest preview
-------------------------------- */

.latest-preview {
  width: 100%;
  margin: 0 0 14px 0;
  padding: 16px;

  border: 2px solid #000;
  background: #f7f7ff;
}

.latest-title {
  margin: 0 0 8px 0;
}

.latest-preview .latest-img {
  width: auto;
  max-width: 300px;
  display: block;
  margin: 10px auto;
}

.latest-caption {
  font-size: 14px;
  line-height: 1.4;
  max-width: 520px;
  margin: 10px auto 0 auto;
}

.latest-meta {
  font-size: 12px;
  margin-top: 6px;
}

.newtag {
  font-size: 11px;
  padding: 2px 6px;
  background: #cdebf9;
  border: 1px solid #000;
  font-weight: bold;
}

/* -----------------------------
   Entries
-------------------------------- */

.entry {
  border: 1px dashed #000;
  padding: 10px;
  margin-bottom: 14px;
  background: #fff;
}

/* this is the rule that makes non-latest entries smaller */
.content .entry .entry-img {
  width: auto;
  max-width: 360px; /* adjust */
  height: auto;
  display: block;
  margin: 10px auto 0 auto;
  border: 2px solid #000;
}

/* -----------------------------
   Right sidebar
-------------------------------- */

.mini p {
  margin: 6px 0;
  line-height: 1.2;
  font-size: 14px;
}

.mood {
  text-align: center;
  margin: 16px auto;
}

.mood img {
  width: 90px;
  height: auto;
  display: block;
  margin: 0 auto 6px auto;
}

/* -----------------------------
   Stickers
-------------------------------- */

.sticker {
  position: fixed;
  width: 40px;
  z-index: 999;
  pointer-events: none;
  image-rendering: pixelated;
}

.sticker.tl { top: 10px; left: 10px; }
.sticker.br { bottom: 10px; right: 10px; }

/* -----------------------------
   About page inner layout
-------------------------------- */

.about-layout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.about-left {
  flex: 0 0 200px;
  width: 200px;
}

.about-main {
  flex: 1;
  min-width: 0;
}

.about-box {
  border: 1px dashed #000;
  background: #fff;
  padding: 10px;
  margin-bottom: 12px;
}

.about-mini-title {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.about-pic,
.about-small-img {
  display: block;
  width: 100%;
  max-width: 170px;
  margin: 6px auto;
  height: auto;
  border: none;
}

.about-button {
  display: block;
  width: 88px;
  height: 31px;
  margin: 6px auto;
  image-rendering: pixelated;
  border: none;
}

.about-list {
  margin: 6px 0 0 18px;
}
