/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

/*root variables*/
:root{
  /*colors*/
  --deepblue:#101538;
  --neongreen:#59f335;
  --neonpink:#e026da;
  --darkmagenta:#a934ad;
  --shadeblue:#313786;
  --mustardyellow:#dbc714;
  --midblue:#373e7a;
  --lightgreen:#6dc767;
  --midgreen:#53ad4c;
  --bgblue:#0b0b26d0;
  /*text*/
  --headershadow: 5px 3px var(--shadeblue);
  /*background*/
  --navmargin: 4px;
  --oldwindows_out: outset 3px var(--lightgreen);
  --oldwindows_out_s: outset 1px var(--midgreen);
  --oldwindows_in: inset 2px var(--lightgreen);
  --oldwindows_in_s: inset 1px var(--midgreen);
  /*modular*/
  /*char-sheet*/
  --charsheet_bg: var(--deepblue);
  --charsheet_accent: red;
  --charsheet_text: red;
  /*story-card*/
  --storycard_bg: maroon;
  --storycard_header: #550206;
  --storycard_gradient: #4b0101;
  --storycard_accent: antiquewhite;
  --storycard_text: lightyellow;
}

@font-face {
  font-family: 'w95fa';
  src: url(/w95fa/W95FA.otf);
  src: url(/w95fa/w95fa.woff);
  src: url(/w95fa/w95fa.woff2);
}

/*body*/
body {
  color: white;
  background-color: var(--deepblue);
  background-image: url('/images/04-03-22%20bg%20test.png');
  background-attachment: fixed;
  font-size: 16px;
  font-family: 'w95fa', 'Courier New', monospace;
  margin: 20px;
}

header, aside {
  max-height: 100%;
}

.container, aside {
  border: var(--oldwindows_out);
}

header, footer {
  max-width: 100%;
}

footer {
  position: relative;
  bottom: 0;
  margin: 10px;
  width: 100%;
}

.flex {
  display: flex;
  flex-grow: 1;
  flex-direction: row;
  align-items: flex-start;
}

.flex-sidebar {
  display:flex;
  flex-wrap: wrap;
  flex-grow: 0;
  flex-direction: column;
  align-items: flex-start;
  align-content: space-between;
  word-wrap: break-word;
  position: sticky;
  position: -webkit-sticky;
  margin-right: 140px;
  margin-bottom: 20px;
}

header {
  /*text*/
  font-family: eurostile-extended, sans-serif;
  font-style: italic;
  font-weight: 900;
  color: var(--neongreen);
  font-size: 2em;
  text-shadow: var(--headershadow);
  /*box*/
  background-color: var(--darkmagenta);
  padding: 10px;
  margin: 20px 0;
  /*border*/
  border: 4px outset var(--neonpink);
}

main {
  display: flex;
  flex-grow: 1;
  /*flex-basis: auto;*/
  flex-wrap: wrap;
  position: relative;
}

/*containers*/
.container-main {
  display: block;
  max-width: 1200px;
  margin: auto;
}

.container {
  /*box*/
  background-color: var(--deepblue);
  background-color: rgba(16, 21, 56, 0.9);
  width: auto;
  max-width: 800px;
  margin: 0 auto 20px;
  align-items: top;
}

.container-gallery {
  color: white;
  margin: 15px auto;
}

.gallery {
  display: inline-flex;
  padding: 5px 0;
  gap: 5px;
  flex-wrap: wrap;
  align-items: baseline;
}

.gallery.border {
  border: 1px solid #ccc;
  padding: 5px;
}

.gallery.border > div {
  background-color: var(--deepblue);
}

.thumbnail {
  object-fit: cover;
}

.thumbnail > div {
  max-width: 150px;
  border: 1px solid #ccc;
  text-decoration-style: none;
}

.gallery.border a {
  color: inherit;
  text-decoration: none;
}

.full {
  width: auto;
  min-height: 25px;
  max-height: 100%;

}

.full > div {
  background-color: var(--deepblue);
}

.notext {
  font-size:0;
}

.desc {
  width: 100%;
  font-size: 1em;
  height: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break:normal;
}

.musings {
  justify-content: space-between;
  row-gap: 1em;
}

.musings > article {
  background-color: rgba(55, 62, 122, 0.5);
  border: var(--oldwindows_in);
  border-color: var(--darkmagenta);
  padding: 0 0.5em;
}

.story-card {
  display: inline-flex;
  background-color: var(--storycard_bg);
  color: var(--storycard_text);
  border: double 6px var(--storycard_accent);
  max-width: 600px;
  margin: auto;
  height: 150px;
}

.story-icon {
  float: left;
  padding: 0;
  width: 150px;
}

.story-icon img {
  max-width: 150px;
  max-height: 150px;
  width: 150px;
  object-fit: cover;
}

.story-info {
  display: block;
  text-align: left;
  overflow-wrap: break-word;
  hyphens: auto;
  padding: 5px;
  height: auto;
  overflow-y: auto;
  text-overflow: clip;
  scrollbar-color: var(--storycard_accent) var(--storycard_gradient);
}

.story-header {
  background-color: var(--storycard_header);
  background: linear-gradient(0deg, var(--storycard_gradient) 25%, var(--storycard_header) 100%);
  margin: -5px -5px;
  padding: 5px 5px;
  position: sticky;
  position: -webkit-sticky;
  top: -5px;
}

.story-gap {
  height: 10px;
}

/*homepage nav*/
.nav {
  max-height: 25px;
  margin: 1em 0 0;
  padding: 0;
}

.nav li {
  display:inline-block;
  padding: 0 0.25em;
}

.nav a:visited {
  color: var(--neongreen);
}

/*sidebar stuff*/
.sidebar {
  width: 150px;
  background-color: var(--deepblue);
  flex-grow: 0;
  z-index: 1;
}

.sidebar-header {
  /*text*/
  font-size: 1.1em;
  background-color: var(--darkmagenta);
  padding: 2px;
}

.sidebar-section {
  margin: 6px 0;
}

.sidebar-subheader, .sidebar-links, .sidebar-text {
  margin: var(--navmargin);
  padding: 2px;
  min-height: 0;
}

.sidebar-subheader {
  border: var(--oldwindows_out_s);
  padding-left: 3px;
}

.sidebar-links {
  border: var(--oldwindows_in_s);
  background-color: var(--midblue);
  line-height: 0.94;
}

.sidebar a:visited {
  color: var(--neonpink);
}

.nav-list {
  list-style-type: none;
  padding-left: 0px;
}

.nav-list li {
  padding: 2px 0;
}

.nav-list a {
  text-decoration-style: none;
}

.nav-list a:link, a:visited {
  text-decoration-style: none;
}

.nav-list a:hover {
  color: var(--neongreen);
  padding-left: 6px;
}

/*changelog*/
.changelog {
  max-height: 200px;
  overflow-y: scroll;
  overflow-x: hidden;
}

.changelog .header {
  /*keeps header at top of container*/
  position: sticky;
  position: -webkit-sticky;
  top: 0;
}

/*character sheet*/
.char-sheet {
  color: red;
  background-color: var(--charsheet_bg);
  max-width: 900px;
  margin: auto;
  overflow-x: hidden;
}

.char-sheet .name {
  background-color: inherit;
  border: solid 1px var(--charsheet_accent);
  border-bottom: none;
  max-width: 900px;
  width: inherit;
  padding: 5px;
  position: sticky;
  position: -webkit-sticky;
  top: 0;
}

.char-body {
  display: inline-flex;
  width: 100%;
}

.char-img, .char-info {
  border: solid 1px var(--charsheet_accent);
  width: 100%;
}

.char-img {
  float: left;
  min-width: 300px;
}

.char-img img {
  display: block;
  margin: auto;
  object-fit: contain;
  max-width: 300px;
}

.char-info {
  display: block;
  text-align: left;
  padding: 5px 10px;
  overflow-x: hidden;
  overflow-y: auto;
}

@media screen and (min-width:601px) {
  .flex {
    flex-wrap: nowrap;
  }
  .char-img {
    border-right: solid 0.5px var(--charsheet_accent);
  }
  .char-info {
    border-left: solid 0.5px var(--charsheet_accent);
  }
}

@media screen and (max-width: 600px) {
  .flex {
    flex-wrap: wrap;
  }
  
  .char-body {
    flex-wrap: wrap;
  }
  .char-img {
    border-bottom: solid 0.5px var(--charsheet_accent);
  }
  .char-info {
    border-top: solid 0.5px var(--charsheet_accent);
  }
}

/*horizontal rule (hr)*/
.container hr {
  border-width: 1px;
  margin: 0 auto;
  max-width: 98%;
}

.container > div hr {
  margin: 0.5em 0;
  margin-left: 4px;
  max-width: 200px;
  width: 50%;
}

/*headers*/
h1 {
  /*text*/
  font-family: eurostile-extended, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.5em;
  text-shadow: 4px 2px var(--shadeblue);
  
  color: var(--neongreen);
  background-color: var(--darkmagenta);
  align-items: flex-start;
  margin: 0;
  padding: 10px;
  /*font-size: 2em;*/ /*for not found page*/
}
h2 {
  
}

h3 {
  font-size: 1em;
  width: max-content;
  margin: 8px 0;
  font-weight: normal;
}

h3 > a:link {
  color: white;
}

h4 {
  background-color: var(--darkmagenta);
  color: white;
  line-height: 1.25;
  font-weight: normal;
  padding: 7px;
  font-size: 1em;
  margin: 0;
  margin-bottom: -0.3em;
  /*margin-left: 10px;*/
  width: max-content;
}

.content {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  padding: 20px 10px;
}

.center {
  text-align: center;
}

/*paragraph*/
p {
  padding: 0;
  margin: 5px;
}

/*unordered list*/
ul {
  margin: inherit;
}

.content ul {
  /*line-height: 1.25;*/
}

.char-info ul {
  padding: 5px;
  padding-left: 17px;
}

/*images*/
.container-img-home {
  display: block;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  margin-bottom: 20px;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
}

.lol {
  height: 300px;
  margin: 5px 2px;
  display: inline-block;
}

.lol img {
  height: 100%;
}

.thumbnail img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  font-size: 0;
  margin: 0;

}

.full img {
  max-height: 300px;
  object-fit: contain;
}

/*links*/
a:link {
  color: var(--neonpink);
}

a:visited {
  color: var(--neonpink);
}

.container-gallery a:link, h4 a:link, .story-card a:visited {
  color: inherit;
}

a:hover {
  color: var(--neongreen);
}

a.invis {
  color: inherit;
  text-decoration: none;
}

.wip {
  color: var(--deepblue);
  background-color: var(--mustardyellow);
  
  margin: 5px 0;
  padding: 10px;
}

a.secret {
  color: var(--shadeblue);
}

.secret {
  text-align: right;
}

.tooltip {
  position: relative;
  border-bottom: 1px dotted white;
}

.tooltip .tooltiptext {
  display: none;
  width: 100%;
  background-color: var(--deepblue);
  border: var(--oldwindows_out_s);
  border-width: 2px;
  text-align: center;
  padding: 5px;
  
  position: absolute;
  z-index: 1;
}

.tooltip:hover .tooltiptext {
  display: block;
}