/* =========================
   TINY ROOM ONLINE
   GOTHIC STORIES ARCHIVE
   ========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 30px 10px;

  color: #d8d8dc;
  font-family: Verdana, Arial, sans-serif;
  line-height: 1.7;

  background-color: #050505;
  background-image: url("/storiesbg.jpg");

  /* keeps the full collage visible without shrinking it too much */
  background-size: 760px auto;
  background-repeat: repeat;
  background-position: center top;
  background-attachment: fixed;
}


/* =========================
   PAGE CONTAINER
   ========================= */

.page {
  width: 92%;
  max-width: 930px;

  margin: 0 auto;

  background:
    rgba(14, 14, 17, 0.94);

  border: 4px solid #5f5f66;
  border-radius: 12px;

  overflow: hidden;

  box-shadow:
    0 0 0 5px rgba(180, 180, 190, 0.18),
    0 0 30px rgba(0, 0, 0, 0.85);
}


/* =========================
   TOP STRIP
   ========================= */

.top-strip {
  padding: 8px;

  text-align: center;

  color: #ededf1;

  font-size: 10px;
  font-weight: bold;
  letter-spacing: 3px;

  background:
    linear-gradient(
      to bottom,
      #49494f,
      #1c1c20
    );

  border-bottom: 2px solid #09090a;

  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.35);
}


/* =========================
   HEADER
   ========================= */

header {
  padding: 38px 20px 34px;

  text-align: center;

  background:
    linear-gradient(
      135deg,
      rgba(36, 36, 40, 0.98),
      rgba(17, 17, 20, 0.98),
      rgba(59, 44, 49, 0.94)
    );

  border-bottom: 3px solid #626269;
}


header h1 {
  margin: 6px 0;

  color: #efeff2;

  font-family: Georgia, serif;
  font-size: 52px;
  letter-spacing: 3px;

  text-shadow:
    2px 2px #000000,
    0 0 8px rgba(255, 255, 255, 0.22),
    0 0 15px rgba(110, 85, 95, 0.28);
}


.mini-title {
  margin: 0;

  color: #aaaab0;

  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
}


.subtitle {
  margin-bottom: 0;

  color: #c9c1c5;

  font-family: Georgia, serif;
  font-style: italic;

  text-shadow:
    1px 1px #000000;
}


/* =========================
   NAVIGATION
   ========================= */

nav {
  padding: 12px;

  text-align: center;

  background: rgba(8, 8, 10, 0.98);

  border-bottom: 3px solid #55555d;
}


nav a {
  display: inline-block;

  margin: 4px;
  padding: 8px 13px;

  color: #f1f1f3;

  text-decoration: none;
  font-size: 12px;
  font-weight: bold;

  background:
    linear-gradient(
      to bottom,
      #4e4e55,
      #29292e
    );

  border: 1px solid #85858c;
  border-radius: 5px;

  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.18),
    0 2px 4px rgba(0, 0, 0, 0.55);
}


nav a:hover {
  color: #111113;

  background:
    linear-gradient(
      to bottom,
      #d2d2d6,
      #9d9da3
    );
}


/* =========================
   MAIN CONTENT
   ========================= */

main {
  padding: 20px;
}


/* =========================
   INTRO BOX
   ========================= */

.intro-box,
.notes-box,
.tiny-journal-box {
  margin-bottom: 22px;
  padding: 18px;

  background:
    linear-gradient(
      135deg,
      rgba(31, 31, 35, 0.97),
      rgba(18, 18, 21, 0.97)
    );

  border: 2px solid #68686e;
  border-radius: 8px;

  box-shadow:
    4px 4px 0 rgba(0, 0, 0, 0.45);
}


.intro-box h2,
.notes-box h2,
.tiny-journal-box h2 {
  margin-top: 0;

  color: #d7d7db;

  font-family: Georgia, serif;
}


/* =========================
   STORY ENTRY
   ========================= */

.story-entry {
  margin-bottom: 24px;
  padding: 20px;

  color: #27272a;

  background:
    linear-gradient(
      135deg,
      rgba(241, 240, 237, 0.98),
      rgba(209, 207, 204, 0.98)
    );

  border: 2px solid #88888d;
  border-radius: 4px;

  box-shadow:
    6px 6px 0 rgba(0, 0, 0, 0.55);

  transform: rotate(-0.15deg);
}


.story-entry:nth-of-type(even) {
  transform: rotate(0.15deg);
}


/* =========================
   ENTRY HEADER
   ========================= */

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 12px;
  padding-bottom: 8px;

  border-bottom: 1px dashed #75757b;
}


.entry-date {
  color: #66666c;

  font-size: 9px;
  font-weight: bold;
  letter-spacing: 2px;
}


.entry-type {
  color: #35353a;

  font-size: 9px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}


/* =========================
   STORY TITLES
   ========================= */

.story-entry h2,
.story-entry h1 {
  margin-top: 0;

  color: #202024;

  font-family: Georgia, serif;
  font-size: 27px;
}


/* =========================
   STORY TEXT
   ========================= */

.story-entry p {
  font-size: 13px;
  line-height: 1.8;
}


/* =========================
   TAGS
   ========================= */

.story-tags {
  margin-top: 15px;
  padding-top: 10px;

  border-top: 1px dotted #8b8b90;
}


.story-tags span {
  display: inline-block;

  margin: 3px;
  padding: 4px 7px;

  color: #efeff1;

  font-size: 9px;
  letter-spacing: 1px;

  background: #35353a;

  border: 1px solid #5f5f65;
  border-radius: 3px;
}


/* =========================
   READ LINK
   ========================= */

.read-link {
  display: inline-block;

  margin-top: 12px;
  padding: 7px 11px;

  color: #f3f3f4;

  text-decoration: none;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;

  background:
    linear-gradient(
      to bottom,
      #4d4d54,
      #26262b
    );

  border: 1px solid #77777f;
  border-radius: 4px;
}


.read-link:hover {
  color: #18181b;

  background:
    linear-gradient(
      to bottom,
      #dddddf,
      #aaaaaf
    );
}


/* =========================
   GENERAL LINKS
   ========================= */

a {
  color: #bdbdc3;
}


a:hover {
  color: #ffffff;
}


/* =========================
   SMALL TEXT
   ========================= */

.tiny {
  color: #99999f;

  font-size: 10px;
  font-style: italic;
}


/* =========================
   QUOTE / NOTE STYLE
   ========================= */

blockquote {
  margin: 18px 0;
  padding: 10px 15px;

  color: #36363a;

  font-family: Georgia, serif;
  font-style: italic;

  background: #d8d7d4;

  border-left: 4px solid #5d5d63;
}


/* =========================
   FOOTER
   ========================= */

footer {
  padding: 18px;

  text-align: center;

  color: #bcbcc2;

  font-size: 10px;
  line-height: 1.7;

  background: rgba(8, 8, 10, 0.98);

  border-top: 3px solid #57575e;
}


/* =========================
   TEXT SELECTION
   ========================= */

::selection {
  color: #111113;

  background: #c5c5ca;
}


/* =========================
   SCROLLBAR
   ========================= */

::-webkit-scrollbar {
  width: 12px;
}


::-webkit-scrollbar-track {
  background: #141417;
}


::-webkit-scrollbar-thumb {
  background: #56565d;

  border: 2px solid #141417;
}


::-webkit-scrollbar-thumb:hover {
  background: #77777f;
}


/* =========================
   TABLET
   ========================= */

@media screen and (max-width: 700px) {

  body {
    background-size: 620px auto;
  }

  .page {
    width: 96%;
  }

  header h1 {
    font-size: 38px;
  }

}


/* =========================
   PHONE
   ========================= */

@media screen and (max-width: 480px) {

  body {
    padding: 16px 6px;

    background-size: 500px auto;
  }

  main {
    padding: 12px;
  }

  nav a {
    font-size: 11px;
  }

  .story-entry {
    padding: 15px;
  }

  .entry-header {
    display: block;
  }

  .entry-date,
  .entry-type {
    display: block;

    margin-bottom: 4px;
  }

}