/* these are the main colors and header image
   replace them with anything you want! */
:root {
    --header-bg: url('images/logo.png');
    --accent-color: #633aac;
    --link-color: #9f4fb1;
    --button-color: #d1fbcd;
    --bg-color: #fffbfb;
    --bg-color2: #ffe6e8;
    --text-color: #372558;
    --favorite-color: #8494CD;
}
/* 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 */
* {
    color: var(--text-color);
/* change the font here, it's set up to all use the same one */
    font-family: monospace;
}
/* this is for when you select text on the page */
::selection {
    background: var(--accent-color);
    color: var(--bg-color);
}

body {
    background: url(images/bgtile2.png);
    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 {
/* you can add the image url in :root (at the top) if you want */
    background: var(--header-bg);
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
/* change the minimum height if you want it to take up more/less space */
    max-width: 893px;
    min-height: 276px;
    margin: 0 auto;
    padding: 0 1em;
}


nav {
    /*padding: 1em;*/
    margin-top: 2em;
    font-weight: bold;
}


a {
    color: var(--link-color);
    border-radius: .5em;
    text-shadow: var(--bg-color) 1px 1px 2px;
    font-weight: bold;
    transition: color 400ms ease-out, background-color 400ms ease-out, box-shadow 400ms ease-out;
}
a:visited {
    color: var(--text-color);
}
a:hover {
    color: var(--link-color);
}

/* you can change this to anything you want :) */
ul { list-style-type: "❤︎ "; }

#sidebar {
    background: var(--bg-color);
    max-width: 198px;
    margin: 1em;
    padding: 1em;
    border: 3px solid #fbcdd1;
    border-radius: 2em;
    box-shadow: 0 0 0 3px #ffffff,
                0 0 0 6px #8494CD;

}

#avatar {
    margin: .5em auto;
/* image size is 160px so i made its container a little bigger to fit the borders */
    max-width: 164px;
    max-height: 164px;
    border-radius: 8em;
}
#avatar img {
    background: var(--bg-color2);
    border: 3px solid #8494CD;
    max-width: 160px;
    border-radius: 8em;
}

#bio {
    margin: 2em 1em;
    background: var(--bg-color2);
    min-width: fit-content;
    border: 2px solid #8494CD;
    border-radius: 1em;
}
#bio p { margin: 1em; }

#content {
    display: flex;
    max-width: 1000px;
    margin: auto;
    
}

main {
    background-color: var(--bg-color);
    padding: 1em 2em;
    margin: 1em;
    border: 3px solid #fbcdd1;
    border-radius: 2em;
    box-shadow: 0 0 0 3px #ffffff,
                0 0 0 6px #8494CD;
}

main > h1,
main > h2,
main > h3 {
    background-color: #fbcdd1;
    border-radius: 0.7em;
    padding: .2em .5em;
    border: solid 3px #8494CD;
}

/* a class for centering text and images */
.center { text-align: center; }
/* 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;
    margin: 1em auto;
    max-width: 960px;
}

/* these are the mobile styles! */
@media only screen and (max-width: 800px) {
    #content {
        flex-wrap: wrap;
        min-width: fit-content;
        margin-right: 25px;
        margin-left: 25px;
        margin-top: 10px;
    }
    #sidebar {
        min-width: fit-content;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        margin-bottom: 41px;
    }
    header {
        min-height: 160px;
        margin: 0 1em;
    }
    header > h1 { 
        font-size: 3em;
        margin: .4em;
    }
    #avatar {margin: 0 1em;}
    #bio {width: 50%;}
    main {margin: 0 1em;}
    #sidebar ul {   
        margin: 0 1em;
        margin-bottom: 10px;
        display: flex;
        flex-wrap: wrap;
        line-height: 2em;
    }
    #sidebar li {
        padding-left: 0;
        margin: .3em 1em;
    }
    
    content > img {
  display: flex;
  justify-content: center;
    }
    .img-right {
        float: none;
        text-align: center;
    }
    footer {
        margin: 1em;
    }
}