:root {
  --site-bg: url("images/starlace.gif");
  --post-bg: white;
  --post-text: #223a4e;
  --post-header-text: #223a4e;
  --border-color: #6397c3;
  --border-shadow: #b8d2e8;
  
  --sidebar-text: #223a4e;
  --sidebar-bg: #6397c3;
  --sidebar-button-bg: #2574af;
  --sidebar-button-bg-hover: #144f7b;
  --sidebar-button-text: #10293d;
  --sidebar-button-text-hover: #10293d;
  --sidebar-border-color: #223a4e;
  
 /*this is for the collapsible sections at the top (status and tag filters)*/
  --pinned-text: #223a4e;
  --pinned-bg: #b8d2e8;
  /*tag filter button colors*/
  --button-bg: #e3f0fa;
  --button-bg-hover: white;
  --button-bg-selected: white;
  --button-text: #223a4e;
  --button-border-color: #223a4e;
  
  /*these next two colors are for when you highlight text on the page*/
  --selected-bg: #bde0ff;
  --selected-text: #5244c8;
}

/* amiko-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Amiko';
  font-style: normal;
  font-weight: 700;
  src: url('https://archiveprojectayc.com/fonts/amiko-v15-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* amiko-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Amiko';
  font-style: normal;
  font-weight: 400;
  src: url('https://archiveprojectayc.com/fonts/amiko-v15-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* antic-slab-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Antic Slab';
  font-style: normal;
  font-weight: 400;
  src: url('https://archiveprojectayc.com/fonts/antic-slab-v17-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

html {scroll-behavior: smooth;}
::selection {
  background: #bde0ff;
  color: #5244c8;
}
* {
  box-sizing: border-box;
  /*custom scrollbar colors~ i think it only works on some browsers tho...*/
  scrollbar-color: #223a4e white;
  scrollbar-width: thin;
}

body {
  /*change the main font here*/
  font-family: 'Amiko', sans-serif;
  font-size: 16px;
  margin: 0;
  background: url("https://archiveprojectayc.com/images/starlace.gif");
  color: #223a4e;
  line-height: 1.6em;
  /*if you use a bg image, this will keep it from scrolling*/
  background-attachment: fixed;
}

/*use a special font for certain headings/buttons*/
h1,
h2,
h3,
.pinned summary {
  font-family: 'Antic Slab', serif;
  font-weight: bold;
}
/*use a pointer for the fake buttons*/
details > summary,
#tag-filters label {cursor: pointer;}

/*quick addon styles you can use in combination with anything*/
.center {text-align: center;}
.small-text {font-size: smaller;}
.no-border {border: none; padding:0;}

/*some parts of the layout can be hidden/shown depending on if you're on desktop or mobile*/
.mobile-only {display:none;}
.pc-only {display: block;}

/*this class makes stuff wrap around, very handy*/
.flex {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}
/*this container will center the page contents better for larger screen sizes*/
#container {
  max-width:1200px;
  margin:auto;
}

main {
  /*here is the post width*/
  width: 600px;
  /*this part means it ignores all other elements when figuring out where to sit on the page*/
  position: absolute;
  /*because of that, we gotta tell it how much room to leave for the sidebar*/
  margin-left: 300px;
}

#sidebar {
  background: #6397c3;
  margin-left: 20px;
  padding: 2em 1em;
  /*we left 300px of room for the sidebar, but we want the width to be less than that since there should be some spacing between*/
  width: 240px;
  
  /*i put dashed borders on each side, but you can change it to a different type or remove them*/
  border-inline: 2px dashed #223a4e;
  /*outlines go outside of the borders, so it makes it look like stitching on the edges. cute!*/
  outline: 4px solid #6397c3;
  
  /*the sidebar doesn't scroll with the rest of the page*/
  position: fixed;
  /*this stacks it on top of everything else*/
  z-index: 99;
  /*make sure it takes up the whole screen vertically*/
  height: 100%;
  /*and add a scrollbar if someone's window is too short to see all the content*/
  overflow-y: auto;
}

#sidebar h1 {
  margin-block: .5em;
}
/*link text in the sidebar should be the same color*/
#sidebar a {
  color: #223a4e;
}
/*font size for your name in the sidebar*/
#sidebar h1 a {
  font-size: 1.2em;
}
/*no underline for your name, or hovered links in sidebar*/
#sidebar h1 a,
#sidebar a:hover {text-decoration: none;}

/*profile text doesnt need as much spacing as the posts do*/
#profile p {
  margin-block: .3em;
  line-height: 1.5em;
}
/*styling the simple bio block*/
.bio {
  border-block: 2px dashed #223a4e;
  padding-block: .5em;
  margin-block: 1em;
}

 /*for the collapsible sections at the top (status and tag filters)*/
.pinned {
  background: #b8d2e8;
  font-size: smaller;
  padding: .5em;
  border-radius: 1em;
  margin: 1em 0;
  border: 2px solid #6397c3;
  outline: 2px solid white;
  box-shadow: 2px 2px 6px #b8d2e8;
}
/*the heading for those blocks*/
.pinned summary {
  color: #223a4e;
  font-size: 1.5em;
  font-weight: bold;
  border-bottom: 2px dashed #6397c3;
  margin: .5em;
}
/*since the summary uses the special font, switch back to the other one for the timestamp*/
.pinned time {
  font-family: 'Amiko', sans-serif;
  float: right;
  font-weight: normal;
  font-size: small;
}

/*the list with the alternating colors! (cute!!!)*/
#status ul {
  background: white;
  margin:.5em;
  padding: 1em;
  border-radius: .5em;
}
#status li {
  list-style-type: none;
  padding: .2em;
}
/*list title, ie "reading:"*/
.bold {
  background: #b8d2e8;
  font-weight: bold;
  font-size: 1.5em;
  color: #223a4e;
}
/*list answer, ie "books about magic"*/
.white {
  background: #FFFFFF;
  color: #223a4e;
  border-radius: 1em;
  margin-left: 1.5em;
  padding: .8rem;
  list-style-image: url(https://archiveprojectayc.com/images/star.png)
}

/*make links the same as in posts*/
#status li a {color: #223a4e;}
#status li a:hover {text-decoration: none;}

#about ul {
  background: white;
  margin: .5em;
  padding: 1em;
  border-radius: .5em;
}
#about li {
  list-style-type: none;
  padding: .8em;
}

#about li a {color: #223a4e;}
#about li a:hover {text-decoration: none;}

/*finally the post styles!!!*/
.post {
  background: white;
  color: #223a4e;
  border-radius: 1rem;
  padding: 0 .8rem .2rem .8rem;
  margin-bottom: 1em;
  box-shadow: 2px 2px 6px #2574af;
  min-width: 100%;
}

/*the top of the post where you put your username*/
.post-header {
  color: #223a4e;
  font-weight: bold;
  padding: .5rem 0;
  border-bottom: 2px dashed #6397c3;
}
/*and the post's timestamp*/
.post time {
  font-family: 'Antic Slab', sans-serif;
  float: right;
  font-weight: normal;
  font-size: smaller;
  margin: .2em;
}
/*link styling*/
.post a {color:#223a4e;}
.post a:hover {text-decoration: none;}

/*this is for lists*/
.post li {
/*you can change the normal dot to anything you want :)*/
  /*list-style-type: "♥ ";*/
/*i used stars to match the bg image!*/
  list-style-image: url("https://archiveprojectayc.com/images/star.png");
}

/*"read more" button for long posts*/
.readmore {
  margin-bottom: 1em;
}
.readmore summary {
  font-weight: bold;
  color: #223a4e;
  /*this gets rid of the arrow*/
  list-style-type: none;
}

/*optional border to denote a border was there before*/
.readmore[open] {
  border-top: 2px dashed #e3f0fa;
  padding-top:1em;
}

.tags {
  border-top: 2px dashed #6397c3;
  padding: .4em 0;
}
.tags a {color: #223a4e;}
.tags span {color: #223a4e;}
.tags a,
.tags span {
  font-size: small;
  padding: .2em .5em;
  border-radius: 1em;
  text-decoration: none;
}
.tags a:hover {
  background:#e3f0fa;
  text-decoration: underline;
}

/*css for hiding posts*/
.tagged:has(input:checked) article {display: none;}

/*add new tags to filter here!
 * follow the class naming conventions (no spaces, don't start it with a number)
 * remember on the actual page you can write the tag however you want!*/
.tagged:has(#all:checked) article,
.tagged:has(#OST:checked) article[class~="OST"],
.tagged:has(#general:checked) article[class~="general"],
.tagged:has(#AtticStaff:checked) article[class~="AtticStaff"],
.tagged:has(#recovery:checked) article[class~="recovery"],
.tagged:has(#WorkReady:checked) article[class~="WorkReady"] {display: inline-block;}

/*tag filter button styles (there's a lot)*/
#tag-filters label {
  background: #e3f0fa;
  border: 1px solid #223a4e;
  border-radius: .5em;
  display: inline-block;
  margin-left: .5em;
  margin-block: .3em;
  padding: 0 .8em 0 .1em;
}
/*hovering filter buttons (normal)*/
#tag-filters label:hover {
  background: white;
  text-decoration: underline;
}
/*selected filters*/
#tag-filters label:has(input:checked) {
  background: white;
  color: #223a4e;
  text-decoration: underline;
  font-weight: bold;
}
/*hovering selected filters*/
#tag-filters label:has(input:checked):hover {
  background: white;
  text-decoration: none;
}
/*hide the radio button for tags*/
#tag-filters input {appearance: none;}

/*for the "back to top" link at the bottom of the page*/
#page-nav a {color:#223a4e;}
#page-nav a:hover {text-decoration: none;}

footer {
  color: #223a4e;
  background: #6397c3;
  /*in the html the footer is at the very end, but when looking at the site you see it at the bottom of the sidebar!*/
  z-index: 100;
  position: fixed;
  /*make it the same length/positioning as the sidebar*/
  margin-left:22px;
  width:236px;
  bottom:4px;
  font-size: small;
  /*semitransparent so you can see any content that goes under it*/
  opacity:60%;
  text-align: center;
}

@media only screen and (max-width: 800px) {
  .mobile-only {display: block;}
  .pc-only {display: none;}
  #container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
  }
  /*turning the specially positioned elements back to normal*/
  #sidebar,
  main {
    position: static;
    height: auto;
    flex: 100%;
    max-width: none;
  }
  #sidebar {
    border-inline: none;
    margin-left:0;
    padding: 1em;
    padding-bottom:0;
  }
  
  #sidebar nav {margin-block:.5em;}
  
  main {
    left: 0;
    margin-inline: 1em;
  }
  /*this makes the profile text take up more screen-space than the icon image*/
  #profile {flex: 2;}
  #profile p {
    margin-block: 0;
    margin-left:10px;
  }
  /*remove borders from the short bio section*/
  #bio {
    border: none;
    padding-block: 0;
  }
  
  /*and put the footer at the bottom of the page instead of the sidebar!*/
  footer {
    position:static;
    text-align:center;
    background:none;
    margin:0;
    width:100%;
    opacity:100%;
  }
}