/* these are the site colors, replace them with anything you want!
 * this version is highly customizable... use simple-style.css for quicker editing if you don't care too much about the specifics!*/
:root {
  --site-bg: url("https://file.garden/aDPcQJ9BNFHMB5Ij/misc/teppybg.png");
  /*or like this for just a solid color:*/
  /*--site-bg: #FFE1C6; */
  
  --post-bg: white;
  --post-text: #4E223D;
  --post-header-text: #749bcb;
  --border-color: #ffbf3b;
  --border-shadow: #8d7f88;
  
  
 /*this is for the collapsible sections at the top (status and tag filters)*/
  --pinned-text: #4E223D;
  --pinned-bg: #ffeea8;
  /*tag filter button colors*/
  --button-bg: #fffbd1;
  --button-bg-hover: #bde0ff;
  --button-bg-selected: #ffd06f;
  --button-text: #4E223D;
  --button-border-color: #4E223D;
  
  /*these next two colors are for when you highlight text on the page*/
  --selected-bg: #bde0ff;
  --selected-text: #5244c8;
}


html {scroll-behavior: smooth;}
::selection {
  background: var(--selected-bg);
  color: var(--selected-text);
}
* {
  box-sizing: border-box;
  /*custom scrollbar colors~ i think it only works on some browsers tho...*/
  scrollbar-color: var(--post-header-text) var(--post-bg);
  scrollbar-width: thin;
}


body {
  /*change the main font here*/
  font-family: 'Atkinson Hyperlegible', Verdana, Tahoma, sans-serif;
  font-size: 16px;
  margin: 0;
  background: var(--site-bg);
  color: var(--post-text);
  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,
nav,
.pinned summary {
  font-family: 'Nunito', Verdana, Tahoma, sans-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: 750px;
  position: relative;
  margin-left: 230px;
}


 /*for the collapsible sections at the top (status and tag filters)*/
.pinned {
  background: var(--pinned-bg);
  font-size: smaller;
  padding: .5em;
  border-radius: 0.25em;
  margin: 1em 0;
  border: 2px solid var(--border-color);
  outline: 2px solid var(--post-bg);
  box-shadow: 2px 2px 6px var(--border-shadow);
}
/*the heading for those blocks*/
.pinned summary {
  color: var(--sidebar-text);
  font-size: 25px;
  font-weight: bold;
  border-bottom: 2px dashed var(--border-color);
  margin: .5em;
}
/*since the summary uses the special font, switch back to the other one for the timestamp*/
.pinned time {
  font-family: 'Atkinson Hyperlegible', sans-serif;
  float: right;
  font-weight: normal;
  font-size: small;
}

/*finally the post styles!!!*/
.post {
  background: var(--post-bg);
  color: var(--post-text);
  border-radius: 0.25rem;
  padding: 0 .8rem .2rem .8rem;
  margin-bottom: 1em;
  box-shadow: 2px 2px 6px var(--border-shadow);
  min-width: 100%;
}
/*make sure images stay within the post*/
.post img {max-width:100%;}
/*add some space from the post header if you have an image first*/
.post div + img {margin-top: 1em;}

/*the top of the post where you put your username*/
.post-header {
  color: var(--post-header-text);
  font-weight: bold;
  padding: .5rem 0;
  border-bottom: 2px dashed var(--border-color);
}
/*and the post's timestamp*/
.post time {
  float: right;
  font-weight: normal;
  font-size: smaller;
  margin: .2em;
}
/*link styling*/
.post a {color:var(--post-text);}
.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("images/star.png");
}

/*"read more" button for long posts*/
.readmore {
  margin-bottom: 1em;
}
.readmore summary {
  font-weight: bold;
  color: var(--post-header-text);
  /*this gets rid of the arrow*/
  list-style-type: none;
}
/*hide the "read more" button after it's clicked (delete this line to keep it there)*/
.readmore[open] > summary {display:none;}
/*optional border to denote a border was there before*/
.readmore[open] {
  border-top: 2px dashed var(--button-bg);
  padding-top:1em;
}

hr.dashed{
    border-bottom: 2px dashed var(--border-color);
    border-top: 0px dashed var(--border-color);
}

/*these set up tumblr-style photoset grids*/
.photosetx2,
.photosetx3 {
    display: grid;
    gap: 4px;
    align-items: center;
}
.photosetx2 {grid-template-columns: 1fr 1fr;}
.photosetx3 {grid-template-columns: 1fr 1fr 1fr;}
/*adjust this to your liking! it crops images that are too tall*/
.cropped {
    width: 156px;
    height: 156px;
    overflow: hidden;
    object-position: 25% 25%;
}
/*this makes sure the image doesn't get distorted when cropped*/
.photosetx2 img,
.photosetx3 img {object-fit: cover;}

/* a class for centering text and images */
.center { text-align: center; }
.img-right { float: right; width: 200px}

/*this stops the float image from overflowing out of its container*/
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

.tags {
  border-top: 2px dashed var(--border-color);
  padding: .4em 0;
}
.tags a {color: var(--post-text);}
.tags span {color: var(--post-header-text);}
.tags a,
.tags span {
  font-size: small;
  padding: .2em .5em;
  border-radius: 0.25em;
  text-decoration: none;
}
.tags a:hover {
  background:var(--button-bg);
  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(#ocs:checked) article[class~="ocs"],
.tagged:has(#fanart:checked) article[class~="fanart"],
.tagged:has(#gmk:checked) article[class~="gmk"],
.tagged:has(#doodle:checked) article[class~="doodle"],
.tagged:has(#wip:checked) article[class~="wip"],
.tagged:has(#trad:checked) article[class~="trad"] {display: inline-block;}

/*tag filter button styles (there's a lot)*/
#tag-filters label {
  background: var(--button-bg);
  border: 1px solid var(--button-border-color);
  border-radius: .25em;
  display: inline-block;
  margin-left: .5em;
  margin-block: .3em;
  padding: 0 .8em 0 .1em;
}
/*hovering filter buttons (normal)*/
#tag-filters label:hover {
  background: var(--button-bg-hover);
  text-decoration: underline;
}
/*selected filters*/
#tag-filters label:has(input:checked) {
  background: var(--button-bg-selected);
  color: var(--button-text);
  text-decoration: underline;
  font-weight: bold;
}
/*hovering selected filters*/
#tag-filters label:has(input:checked):hover {
  background: var(--button-bg-hover);
  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:var(--sidebar-text);}
#page-nav a:hover {text-decoration: none;}


@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;
  }
  #icon {
    /*shrink the icon a bit to prioritize text on mobile*/
    max-width:40%;
    /*and add some spacing since they're side-by-side now*/
    margin-right: .5em;
  }
  /*don't let the icon get too big haha*/
  #icon img {max-width: 100%;}
  
  #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;
  }

}