@font-face {
  font-family: "fixedsys_excelsior_3.01Rg";
  src:
    url("../other/font.woff2") format("woff2"),
    url("../other/font.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


:root {
  --deep:   #0d0818;
  --mid:    #1a0f3d;
  --purple: #3b1f7a;
  --rose:   #8b2252;
  --gold:   #c9943a;
  --warm:   #e8b86d;
  --text:   #f0e6d3;
  --faint:  rgba(240, 230, 211, 0.55);
  font-family: "fixedsys_excelsior_3.01Rg", sans-serif;
  --font: "fixedsys_excelsior_3.01Rg", sans-serif;
  font-size: 1rem;
  --color: lavenderblush;
  --active-color: #a190a3;
  --highlight-color: #bc3248;
  color: lavenderblush;
}

html,
body {
  margin: 0 auto;
  background: #000;
  background:
    url(../other/bg.gif) repeat center center,
    #000;
  background-attachment: fixed;
  background-size: cover;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 650px;
}

header {
  flex-shrink: 0;
  width: 100%;
  min-height: 50px;
  z-index: 1000;
}

main.content {
  flex-grow: 1;
  padding: 20px;
  box-sizing: border-box;
}
div.content {
  text-align: center;
}

/* footer {
  position: sticky;
  bottom: 0;
  width: 100%;
  background: inherit;
  z-index: 1000;
  flex-shrink: 0;
  padding: 10px 0;
} */

img {
  max-width: 100%;
}
@media screen and (max-width: 700px) {
  body,
  img {
    max-width: 90%;
  }
}

h1 {
  font-size: 2rem;
}
h2 {
  font-size: 1.8rem;
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}

code {
  background: #423c42;
  color: #bebcbe, #888388;
  font-size: inherit;
  font-family: var(--font);
}
a,
p {
  text-decoration: none;
}

a:link {
  color: var(--highlight-color);
}
a:visited {
  color: var(--highlight-color);
}
a:hover {
  color: var(--color);
}
a:active {
  color: var(--active-color);
}

.nav {
  text-align: center;
  font-size: 20px;
  font-family: var(--font);
}
.nav .link.active {
  color: var(--active-color);
}

#container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
#left,
#right {
  width: auto;
}

.author {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
}
.author img {
  width: 1.2rem;
  height: 1.2rem;
}
.author a {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.timestamp {
  margin-left: 0.5rem;
}

.text-box {
  border: 1px solid var(--color);
  padding: 16px;
}

.text-box-owner {
  border: 1px solid var(--highlight-color);
  padding: 16px;
}

hr {
  border-color: var(--color);
  background: var(--color);
}

::-moz-selection {
  color: var(--highlight-color);
  background: var(--color);
}
::selection {
  color: var(--highlight-color);
  background: var(--color);
}
::-webkit-scrollbar {
  width: 4px;
  height: 10%;
}
::-webkit-scrollbar-thumb {
  background: var(--highlight-color);
  border-radius: 0px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.stories-title {
  text-align: center;
  color: white;
  font-size: 3em;
  margin-bottom: 50px;
  text-shadow: 2px 2px 4px #f1e9e9;
  letter-spacing: 2px;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.story-card {
  background: linear-gradient(135deg, #1a1f3a, #243447);
  border: 3px solid #5a1a6a;
  padding: 25px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 3px 3px 10px rgba(188, 50, 72, 0.6);
}

.story-card:hover {
  box-shadow:
    6px 6px 10px rgba(188, 50, 72, 0.6),
    8px 8px 10px rgba(0, 0, 255, 0.5),
    11px 11px 10px rgb(139, 34, 82, 0.5);
  z-index: 10;
  transform: translateY(-8px) translatex(-8px);
  border-color: #5a1a6a;
}

.story-title {
  color: #e0e0e0;
  font-size: 1.5em;
  margin: 0 0 15px 0;
  font-weight: bold;
}

.story-excerpt {
  color: #ade5ff;
  font-size: 1em;
  line-height: 1.6;
  margin: 0 0 15px 0;
}

.story-date {
  color: #da8bff;
  font-size: 0.9em;
  font-style: italic;
  margin: 0 0 15px 0;
}

.read-more {
  margin-top: 20px;
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 16px;
  background-color: rgb(159, 53, 247);
  transition: all 0.3s ease;
}

.read-more:hover {
  color: #ffffff;
  background-color: rgb(81, 0, 148);
  transform: translateX(-3px) translateY(-3px);
  transition: all 0.3s ease;
  color: rgb(255, 255, 255);
}

.story-author {
  color: #ffffff;
  font-size: 1em;
  line-height: 1.6;
  margin: 0 0 15px 0;
  font-size: 0.9em;
}

.box {
  background-color: #1a1f3a;
  padding: 10px;
  border: 5px solid #5a1a6a;
  width: fit-content;
  margin: 0 auto;
  white-space: pre-wrap;
}

.nav-buttons {
  text-align: center;
  margin-top: 20px;
}

footer {
  text-align: center;
  color: white;
  padding: 20px 0;
  background-color: rgba(0, 0, 0, 0.2);
}

a {
  color: #5a1a6a;
  
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.story-card:nth-child(1) {
  background: rgba(93, 4, 131, 0.705);
}

.story-card:nth-child(1):hover {
  transition: all 0.3s ease;
  background:
    radial-gradient(ellipse 80% 55% at 50%  0%, #3d1060 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 20% 30%, #6b1a4e 0%, transparent 55%),
    radial-gradient(ellipse 50% 35% at 80% 20%, #1a0f3d 0%, transparent 60%),
    linear-gradient(to bottom, #0d0818 0%, #160d30 35%, #0f0622 70%, #080412 100%);
}
