/* these are the main colors and header image
   replace them with anything you want! */
:root {
    --site-bg: url('images/bg/bitforest.gif');
    --main-bg: url('images/bg/bgspace2.png');
    --gradient-bg: linear-gradient(0deg, #0000 0%, #1c246288 33%, #18084388 90%);
    --accent-color: #285CE9;
    --link-color: #6FAF41;
    --bg-color: #0E1834;
    --text-color: #D3CFC9;
    --text-color2: #F5FBF0;
    --favorite-color: forestgreen;
}

/* This helps ensure that boxes are aligned */
*, *::before, *::after {
  box-sizing: border-box;
}
.align-wrapper {
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

/* Regular */
@font-face {
  font-family: 'LibertinusSans';
  src: url('LibertinusSans-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Bold */
@font-face {
  font-family: 'LibertinusSans';
  src: url('LibertinusSans-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

/* Italic */
@font-face {
  font-family: 'LibertinusSans';
  src: url('LibertinusSans-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

/* this applies to all the content */
* {
    color: var(--text-color);
    font-family: 'LibertinusSans', sans-serif;
    text-shadow: 2px 2px 5px var(--bg-color);
}
b {
  color: #6FAF41;
}
i {
  color: #41A5EE;
}
/* custom scrollbars don't appear for all browsers, but i like setting them anyway */
    scrollbar-color: var(--favorite-color) var(--bg-color);
    scrollbar-width: thick;
}
/* this is for when you select text on the page */
::selection {
    background: var(--favorite-color);
    color: var(--bg-color);
}

html {scroll-behavior: smooth;}


body {
    margin: 0;
    background-color: rgba(14, 24, 52, 0.6);
    background-image: var(--site-bg);
/* you can add a background-position if you don't want it to be top left! this one is set to not tile */
    background-repeat: no-repeat;
    background-size: cover;
    font-size: large;
}

/* i think having better line spacing helps text to be more readable, but you can remove it if you want */
p {line-height: 1.5em;}

/* this is your site title displayed at the top of the page */
header > h1 {
    max-width: 960px;
    margin: 0 auto;
    margin-bottom: 0;
    width: 100%;
    background-color: rgba(14, 24, 52, 0.6);  /* Equivalent to var(--bg-color) with 60% opacity */
    border: 0px solid var(--favorite-color);
    border-radius: 6px 6px 0 0;
    padding: auto;
/* you can change the text-align to center or right if you want it placed differently */
    text-align: center;
    color: var(--text-color2);
}

#header a {
  text-decoration: none;
  color: inherit;
}

nav {
    margin: auto;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0 1em;
    font-weight: bold;
}

nav ul {
    background-color: rgba(14, 24, 52, 0.6);
    border: 0px solid var(--favorite-color); 
    border-radius: 0 0 6px 6px;
    padding: 0.5em;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    line-height: 3rem;
    margin-top: 0;
    margin-bottom: .5em;
    padding: 0;
/* this stuff makes it wrap around on mobile */
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
/* this line takes away the dot in front of the list items */
    list-style-type: none;
/* list items have default padding but we don't need it for these */
    padding-left: 0;
/* and this spaces out the buttons so they're not touching */
    justify-content: space-evenly;
}
nav li a {
    background-color: rgba(14, 24, 52, 0.6); /* Same as your semi-transparent header */
    border: 0px solid var(--favorite-color); /* Optional: matches other elements */
    border-radius: 6px;                      /* Optional: softens corners */
    padding: 0.5em 3em; 
/* this takes away the link underline */
    text-decoration: none;
/* and this part is animation! */
    transition: color 400ms ease-out, border-color 400ms ease-out;
}
nav li a:hover {
    border: 0px solid var(--accent-color);
}

#breadcrumb {
  max-width: 960px;
  margin: 1em auto 0;
  width: 100%;
  padding: 0.2em 1em;
  background-color: rgba(0, 0, 0);
  border: 0px solid var(--favorite-color);
  border-radius: 6px 6px 0 0;
  box-sizing: border-box;
}

#breadcrumb h2 {
  font-size: 1rem;
  font-weight: normal;
  margin: 0;
  color: var(--text-color2);
}

#breadcrumb a {
  color: var(--link-color);
  text-decoration: none;
}

#breadcrumb a:hover {
  color: var(--accent-color);
}


a {
    color: var(--link-color);
    transition: color 400ms ease-out;
}
a:visited {
    color: var(--favorite-color);
}
a:hover {
    color: var(--text-color2);
}
a.unstyled-link {
  text-decoration: none;     /* Removes underline */
  color: inherit;            /* Uses the surrounding text color */
}
a.unstyled-link:visited,
a.unstyled-link:hover,
a.unstyled-link:active {
  text-decoration: none;      /* Removes underline */
  color: inherit;             /* Uses the surrounding text color */
}

/* you can change this to lots of things. i picked a star! */
ul { list-style-type: "» "; }

#sidebar {
    background-image: var(--main-bg);
    background-size: auto;
    border: 0px solid var(--favorite-color);
    border-radius: 0;
    min-width: 220px;
    max-height: 600px;
    overflow:auto;
}

#avatar {
/* image size is 160px so i made its container a little bigger to fit the borders */
    margin: 1em auto;
    max-width: 164px;
    max-height: 164px;gra
}
#avatar img {
    background-color: rgba(14, 24, 52, 0);
    max-width: 160px;
    border: 1px solid var(--favorite-color);
    border-radius: 6px;
    box-shadow: var(--accent-color) 0 0 4px;
}

#bio {
    font-size: smaller;
    margin: 1em;
    background: var(--bg-color);
    border: 1px solid var(--favorite-color);
    border-radius: 6px;
    box-shadow: var(--accent-color) 0 0 4px;
    padding-bottom: 1em;
}
#bio p {
    margin: 1em;
    color: var(--text-color2);
}

#content {
    display: flex;
    max-width: 960px;
    margin: auto;
}

main {
    background-image: var(--main-bg);
    background-repeat: repeat;
    max-width: 800px;
    margin: auto;
    border: 1px solid darkslateblue;
    border-radius: 0;
    color: var(--accent-color);
    max-height: 600px;
    overflow: auto;
}

.prose {
    background: var(--gradient-bg);
    margin: 0;
    padding: 1em;
}

img {
  max-width: 100%;
  display: inline;
}

/* made this a class so i can change it to be centered on mobile */
.img-right { float: right; }

footer {
    text-align: center;
    font-size: small;
    max-width: 960px;
    margin: 0 auto 0;
    width: 100%;
    padding: 0 1em;
    background-color: black;
    border: 0px solid var(--favorite-color);
    border-radius: 0 0 6px 6px;
    box-sizing: border-box;
}

/* these are the mobile styles! */
@media only screen and (max-width: 800px) {
    #content {
        flex-wrap: wrap;
    }
    #sidebar {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 2em;
    }
    #avatar {margin: 0 1em;}
    #bio {width: 50%;}
    #sidebar ul {   
        margin: 0 1em;
        display: flex;
        flex-wrap: wrap;
        line-height: 2em;
        padding-left: 0;
    }
    #sidebar li {
        margin: .3em 1em;
    }
    main {
/* remove scrollbar for mobile */
        max-height: fit-content;
    }
    .img-right {
        float: none;
        text-align: center;
    }
}