/* these are the main colors and header image
   replace them with anything you want! */
:root {
    --header-image: url(); 
    --border-image: url();
    --background-image: url();
    --header-bg-color: #FC7CB3;
    --accent-color: #811AE8;
    --border-color: seashell;
    --sidebar-text-color: #14285C;
    --link-color: seashell;
    --link-color2: seashell;
    --bg-color: #1C019A;
    --bg-color2: #104EB2;
    --bg-color3: #4EE4FA;
    --text-color: seashell;
}
/* you can get hex codes from sites like this:
   https://palettes.shecodes.io/
   i just looked up "css color templates" to find that link! */

/* this applies to all the content */
* 
{
    font-family: "Comic Sans MS", verdana, sans-serif;
    font-weight: normal;
    font-style: normal;
    color: var(--text-color);
    
/* custom scrollbars don't appear for all browsers, but i like setting them anyway */
    scrollbar-color: var(--text-color) var(--accent-color);
    scrollbar-width: thin;
}


/* this is for when you select text on the page */
::selection {
    background: var(--accent-color);
    color: black;
}

body {
    background-image: var(--background-image);
    background-repeat: repeat;
    margin: 0;
    
}
/* 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;}

header {
    background-color: transparent;
/* you can add the image url in :root (at the top) if you want */
    background-image: var(--header-image);
    background-position: 75%;
    background-repeat: repeat-x;
/* change the minimum height if you want it to take up more/less space */
    min-height: 96px;
    margin: 0 auto;
    padding-top: 1px;
/* you can change the text-align to center or right if you want it placed differently */
    text-align: center;
}

/* this is your site title displayed at the top of the page */
header > h1 {
    margin: 20px auto;
    max-width: 1080px;
    width: fit-content;
    padding: 12px;
}

.white-bg {
    margin: auto;
    width: fit-content;
    background: white;
    border-radius: 1em;
    padding: 0 20px;
}

/*copied this from here: https://unused-css.com/blog/css-rainbow-text/*/
.rainbow-text {
  background-image: linear-gradient(to left, violet, indigo, blue, green, yellow, orange, red);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

nav {
    font-weight: bold;
}

nav > ul {
    max-width: 1080px;
    margin: auto;
    line-height: 3rem;
/* 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-style-image: 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 {
    text-align: center;
}
nav li > a {
    background-color: var(--accent-color);
    color: var(--link-color2);
    padding: .2em 3em;
/* this takes away the link underline */
    text-decoration: none;
}
nav li > a:hover {
    background-color: var(--bg-color);
}

a {
    color: var(--link-color);
    font-weight: bold;

}
a:hover {
    color: #80FCFF;
}

/* you can change this to anything you want :) */
ul { 
    list-style-image: url();
    list-style-type: circle;
}

#sidebar {
    background-color: var(--bg-color3);
    max-width: 200px;
    margin: 1em;
    padding: 1em;
    border: 2px solid var(--border-color);
    box-shadow: var(--accent-color) 4px 4px;
}

#sidebar ul {
    padding-left: 0;
    margin: 1em;
}

#sidebar li {
  color: var(--sidebar-text-color);
  
} 

#sidebar li > a {
  color: var(--sidebar-text-color)
  
}

#sidebar li > a:hover {
  color: var(--accent-color);
  
} 

#avatar {
    margin: .5em auto;
    text-align: center;
}
#avatar img {
    background: var(--bg-color2);
    width: 100%;
    border: 2px solid var(--border-color);
}

#bio {
    background: var(--bg-color2);
    border: 2px solid var(--border-color);
}
#bio p { margin: .8em; }

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

main {
    background-color: var(--bg-color2);
    border: 50px solid var(--bg-color2);
    border-image-source: url();
    border-image-width: 32px;
    border-image-slice: 41 fill;
    border-image-repeat: round;
    box-shadow: var(--accent-color) 4px 4px;
    min-width: 50%;
    min-height: 50%;
    margin: 1em;
    padding: 1em;
/*this line makes pixel art look better*/
    image-rendering: pixelated;
/*remove these lines if you dont want the scrollbar*/
    max-height: 420px;
    overflow: auto;
}

main h1 {
    text-align: center;
}

main h2 {
  
  text-align: center;
  
}

main > h1,
main > h2,
main > h3 {
    background-color: var(--bg-color2);
    padding: .2em .5em;
    margin: 0;
}

footer {
    background-color: transparent
/* you can add the image url in :root (at the top) if you want */
    background-position: 50%;
    background-repeat: no-repeat;
/* change the minimum height if you want it to take up more/less space */
    margin: 0 auto;
    padding: 5px;
    min-height: 20px;
/* you can change the text-align to center or right if you want it placed differently */
    text-align: center;
}



/* a class for centering text and images */
.center { text-align: center; }



/* these are the mobile styles! */
@media only screen and (max-width: 800px) {
    #content {
        flex-wrap: wrap;
    }
    #sidebar {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        border: none;
        margin: 0;
    }
    header {
        min-height: 100px;
        background-position: top;
    }
    header > h1 { 
        margin: .4em;
    }
    .white-bg {
        margin: 1em;
    }
    nav > ul {
    /* this stuff makes it wrap around on mobile */
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
    }
    #avatar {
        margin: 0 1em;
        max-width: 120px;
    }
    #bio {width: 50%;}
    main {
        margin: 0;
    /* remove scrollbar for mobile */
        max-height: fit-content;
    }
    #sidebar {
        max-width: 100%;
    }
    #sidebar ul {   
        margin: 0 1em;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        line-height: 2em;
    }
    #sidebar li {
        padding-left: 0;
        margin: .3em 1em;
    }
    footer {
        margin: 1em;
    }
}