:root {
  --links: #69DBFF;
  --site-bg: #68a1f9;
  --sidebar-bg: #355a95;
  --post-bg: #EEEEF3;
  --post-text: #152744;
  --sidebar-text: white;
  --label-text: #152744;
  --border-color: #68a1f9;
  --border-shadow: #8E8D9880;
  --selected-bg: #bde0ff;
  --selected-text: #5e53b2;
  --comments-bg: #cfd5ff;
}

[data-theme="dark"] {
  --links: #6997ff;
  --site-bg: #355a95;
  --sidebar-bg: #68a1f9;
  --post-bg: #152744;
  --post-text: #e4e4ec;
  --sidebar-text: #43659b;
  --label-text: #a8a7b2;
  --border-color: #355a95;
  --border-shadow: #355a95;
  --selected-bg: #5e53b2;
  --selected-text: #00539c;
  --comments-bg: #cfd5ff;
}
[data-theme="dark"] #icon a img {
  outline: 2px solid var(--sidebar-text);
  transition: .2s;
}

/* nunito-600 - latin */
@font-face {
  /*font-display: swap;*/
  font-family: 'Nunito';
  font-style: normal;
  src: url('../fonts/nunito-v31-latin-600.woff2') format('woff2'),
       url('../fonts/nunito-v31-latin-600.ttf') format('truetype');
}
/* nunito-900 - latin */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: bold;
  src: url('../fonts/nunito-v31-latin-900.woff2') format('woff2'),
       url('../fonts/nunito-v31-latin-900.ttf') format('truetype');
}
/* atkinson-hyperlegible-regular - latin */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  src: url('../fonts/atkinson-hyperlegible-v12-latin-regular.woff2') format('woff2'),
     url('../fonts/atkinson-hyperlegible-v12-latin-regular.ttf') format('truetype');
}

/* atkinson-hyperlegible-700 - latin */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: bold;
  src: url('../fonts/atkinson-hyperlegible-v12-latin-700.woff2') format('woff2'),
     url('../fonts/atkinson-hyperlegible-v12-latin-700.ttf') format('truetype');
}


html {scroll-behavior: smooth;}
::selection {
  background: var(--selected-bg);
  color: var(--selected-text);
}
* {
  box-sizing: border-box;
  scrollbar-color: var(--label-text) var(--site-bg);
  scrollbar-width: thin;
}

body {
  font-family: 'Atkinson Hyperlegible', Verdana, Tahoma, sans-serif;
  font-size: 16px;
  margin: 0;
  background: var(--site-bg);
  color: var(--text-color);
  line-height: 1.6em;
  background-image: url(https://theexolenstore.neocities.org/images/bg-16.png);
  background-attachment: fixed;
}
h1, h2,
#comments summary,
#status summary,
#tag-filters summary,
nav ul {
  font-family: 'Nunito', Verdana, Tahoma, sans-serif;
  font-weight: 800;
}

details > summary {cursor: pointer;}
.center {text-align: center;}
.mobile-only {display:none;}
.pc-only {display: block;}
.smol {font-size: smaller;}

.flex {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}

#container {max-width:1200px; margin:auto;}

main {
  display: inline-block;
  width: 600px;
  position: absolute;
  margin-left: 300px;
}
aside,
#sidebar p > a,
#sidebar h1 a {
  color: var(--sidebar-text);
}
#sidebar h1 a {font-size: 1.2em;}

#sidebar {
  position: fixed;
  height: 100%;
  overflow-y: auto;
  background-color: var(--sidebar-bg);
  width: 240px;
  padding: 2em 1em;
  margin-left: 20px;
  z-index: 99;
  border-inline: 2px dashed var(--border-color);
  outline: 4px solid var(--sidebar-bg);
}
#sidebar a {text-decoration: none;}
#sidebar img {
  border-radius:2em;
  margin: .5em;
}
#sidebar h1 > a:hover,
#sidebar p > a:hover {text-decoration: underline;}
#sidebar nav {margin-block:1.5em;}
#icon {margin:auto;}
#icon a img {
  outline: 2px solid var(--sidebar-bg);
  transition: .2s;
}
#icon a img:hover {
  outline: 2px solid var(--sidebar-text);
  outline-offset: 4px;
  rotate: -5deg; 
}
#bio {margin-bottom:1em;}
#bio h1 {margin-block: .5em;}
#bio p {
  margin-block: .3em;
  line-height: 1.5em;
}
#bio .smol {
  color: var(--site-bg);
  border-block: 2px dashed var(--border-color);
  padding-block: .5em;
}

#stamps img {
  border-radius:0;
  margin:0;
}

nav ul {
  text-align: center;
  vertical-align: middle;
  margin-top: 0;
  margin-bottom: 1em;
  padding: 0;
  list-style-type: "";
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 8px;
  justify-content: space-evenly;
}
nav li a {
  display: inline-block;
  min-width: 120px;
  color: var(--sidebar-text);
  background-color: var(--label-text);
  font-weight: bold;
  border-radius: 1rem;
  outline: 2px solid #fff0;
  transition: .2s;
}
nav li a:visited {color: var(--sidebar-text);}
nav li a:hover {
  color: var(--post-text);
  background-color: var(--site-bg);
  outline: 2px solid var(--sidebar-text);
  outline-offset: 3px;
}
#links {display:flex; flex-direction: row; flex-wrap: wrap; text-align: center; margin:auto;}
.button {
  height:36px;
  width:36px;
  margin-bottom:8px;
  margin-right:8px;
  background-color: var(--label-text);
  border-radius: 50%;
  outline: 2px solid #fff0;
  transition: .2s;}
.button:hover {
  background-color: var(--border-color);
  outline: 2px solid var(--border-color);
  outline-offset: 3px;
}

#comments,
#page-nav,
#status,
#tag-filters {
  background-color: var(--sidebar-bg);
  color: var(--site-bg);
  font-size: smaller;
  padding: .5em;
  border-radius: 1em;
  margin: 1em 0;
  box-shadow: 2px 2px 6px var(--border-shadow);
}
#comments summary,
#status summary,
#tag-filters summary {
  color: var(--sidebar-text);
  font-size: 1.5em;
  font-weight: bold;
  border-bottom: 2px dashed var(--border-color);
  margin: .5em;
}

#status time {
  font-size: small;
  color: var(--site-bg);
}
#status ul {margin:.5em; padding:0;}
#status li {list-style-type: ""; padding: .2em;}
#status li:nth-child(odd) {
  font-weight: bold;
  font-size: 1.2em;
  color: var(--sidebar-text);
}
#status li:nth-child(even) {
  background-color: var(--post-text);
  border-radius: .3em;
  padding-inline: .8em;
}
#status li a {color: var(--links);}
#status li a:visited {color: var(--site-bg);}
#status li a:hover {color: var(--sidebar-text);}

      /*wtf i didnt have a readmore style until now*/
.readmore summary {
  font-weight: bold;
  color: var(--label-text);
  list-style-type: none;
}
.readmore[open] > summary {display:none;}
.readmore[open] {
  border-top: 1px dashed var(--border-color);
}
#status table {width:100%;}
#status th {
  font-weight: bold;
  font-size: 1.2em;
  color: var(--sidebar-text);
  text-align: right;
  width: 120px;
  padding-right: 8px;
}
#status td {
  background-color: var(--post-text);
  border-radius: .3em;
  padding-inline: .8em;
}
#status td a {color: var(--links);}
#status td a:visited {color: var(--site-bg);}
#status td a:hover {color: var(--sidebar-text);}

.post {
  background-color: var(--post-bg);
  color: var(--post-text);
  border-radius: 1rem;
  padding: 0 .8rem .2rem .8rem;
  margin-bottom: 1em;
  box-shadow: 2px 2px 6px var(--border-shadow);
  min-width: 100%;
}
.post img {max-width:100%;}
.post div + img {margin-top: 1em;}
.post-header {
  color: var(--label-text);
  font-weight: bold;
  padding: .5rem 0;
  border-bottom: 2px dashed var(--border-color);
}
time {
  float:right;
  font-weight:normal;
  font-size: smaller;
  margin: .2em;
}
.post a {color:var(--post-text);}
.post a:hover {text-decoration: none;}

.post details {margin-block: 1em;}

.youtube-embed {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}
.youtube-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

footer {
  z-index: 100;
  position: fixed;
  margin-left:22px;
  width:236px;
  bottom:4px;
  font-size: small;
  color: var(--border-color);
  background-color: var(--sidebar-bg);
  opacity:60%;
  text-align: center;
}

.theme-switch-wrapper {
  display: flex;
  align-items: center;
  position: absolute;
  right:0;
  top: 0;
  margin: 12px;
  border-radius: 1em;
}
.theme-switch {
  display: inline-block;
  height: 32px;
  position: relative;
  width: 56px;
}
.theme-switch input {display:none;}

.slider {
  background-color: var(--site-bg);
  border-radius: 1em;
  inset: 0;
  cursor: pointer;
  position: absolute;
  transition: .4s;
}

.slider:before {
  background-color: var(--sidebar-bg);
  border-radius: 1em;
  content: "";
  height: 24px;
  position: absolute;
  transition: .4s;
  width: 24px;
  left: 4px;
  top: 4px;
}

input:checked + .slider {background-color: var(--site-bg);}
input:checked + .slider:before {
  transform: translateX(24px);
  border-radius: 1em;
  content: "";
}

.tags {
  border-top: 2px dashed var(--border-color);
  padding: .4em 0;
}
.tags a {color: var(--post-text);}
.tags span {color: var(--label-text);}
.tags a,
.tags span {
  font-size: small;
  padding: .2em .5em;
  border-radius: 1em;
  text-decoration: none;
}
.tags a:hover {
  background-color:var(--site-bg);
  text-decoration: underline;
}

.tagged:has(input:checked) article {display: none;}

.tagged:has(#all:checked) article,
.tagged:has(#announcements:checked) article[class~="announcements"],
.tagged:has(#games:checked) article[class~="games"],
.tagged:has(#music:checked) article[class~="music"],
.tagged:has(#nami-art:checked) article[class~="nami-art"] {display: inline-block;}

#tag-filters label {
  background-color: var(--label-text);
  padding: .1em .8em .1em .1em;
  border-radius: .5em;
  margin-left: .5em;
  margin-block: .3em;
  display: inline-block;
}
#tag-filters label:hover {
  background-color: var(--border-color);
  color: var(--post-text);
  text-decoration: underline;
}
#tag-filters label:has(input:checked) {
  background-color: var(--site-bg);
  color: var(--post-text);
  text-decoration: underline;
  font-weight: bold;
}
#tag-filters label:has(input:checked):hover {
  background-color: var(--post-bg);
  text-decoration: none;
}
#tag-filters input {appearance: none;}
.no-border {border: none; padding:0;}
.white-links a {color:var(--sidebar-text);}
.white-links a:hover {text-decoration: none;}

.spoiler summary {
  border: 2px solid var(--border-color);
  border-radius: 1em;
  padding: 1em;
  font-weight: bold;}

/*fixing display issues, thanks cryref*/
:is(article, aside, nav, section) h1{ /* -webkit-any doesn't work on firefox, so using :is */
    font-size: 1.5em;
}
:is(article, aside, nav, section) :is(article, aside, nav, section) h1{
    font-size: 1.17em;
}

@media only screen and (max-width: 800px) {
  .mobile-only {display: block;}
  .pc-only {display: none;}
  #container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
  }
  #sidebar,
  main {
    position: static;
    height: auto;
    flex: 100%;
    max-width: none;
  }
  #sidebar {
    border-inline: none;
    margin-left:0;
    padding: 1em;
  }
  #sidebar nav {margin-block:.5em;}
  main {
    left: 0;
    margin-inline: 1em;
  }
  #bio {flex: 2;}
  #bio p {margin-block: 0;margin-left:10px;}
  #bio .smol {
    border-block: none;
    padding-block: 0;
  }
  #links {flex-direction: column;}
  footer {
    position:static;
    text-align:center;
    background-color:var(--site-bg);
    opacity:100%;
  }
}