:root {
    --main-bg: linear-gradient(1deg,rgba(153, 204, 224, 1) 0%, rgba(101, 205, 219, 1) 50%, rgba(12, 52, 196, 1) 100%);
    --gradient-bg: linear-gradient(1deg,rgba(153, 204, 224, 1) 0%, rgba(101, 205, 219, 1) 50%, rgba(12, 52, 196, 1) 100%);
    --accent-color: #7E8095;
    --link-color: #3A9A9F;
    --bg-color: #0C34C4;
    --text-color: white;
    --text-color2: white;
    --favorite-color: #3A9A9F;
}

* {
    color: var(--text-color);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-shadow: 2px 2px 5px var(--bg-color);
    scrollbar-color: var(--favorite-color) var(--bg-color);
    scrollbar-width: thin;
}

::selection {
    background: var(--favorite-color);
    color: var(--bg-color);
}


html {scroll-behavior: smooth;}

body {
    margin: 0;
    background-color: var(--bg-color);
/* 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;
}

p {line-height: 1.5em;}

header > h1 {
    margin: 1em auto;
    max-width: 960px;
    padding-left: 1em;
    text-align: left;
    color: var(--text-color2);
}
nav {
    padding: 0 1em 1em 1em;
    font-weight: bold;
}

nav ul {
    max-width: 960px;
    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 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: var(--gradient-bg);
    border: 1px solid var(--favorite-color);
    padding: .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: 1px solid 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);
}
#sidebar {
    background-image: var(--main-bg);
    border: 1px solid var(--favorite-color);
    min-width: 220px;
}

#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;
}
#avatar img {
    background: var(--bg-color);
    max-width: 160px;
    border: 1px solid var(--favorite-color);
    box-shadow: var(--accent-color) 0 0 4px;
}

#bio {
    font-size: smaller;
    margin: 1em;
    background: var(--bg-color);
    border: 1px solid var(--favorite-color);
    box-shadow: var(--accent-color) 0 0 4px;
}
#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 var(--favorite-color);
    color: var(--accent-color);
    max-height: 600px;
    overflow:auto;
}

.prose {
/* i couldn't put padding on main without it cutting off the background, so the padding is here... sorry if this extra class is a little inconvenient */
    background: var(--gradient-bg);
    margin: 0;
    padding: 1em;
}

.img-right { 
  float: right; 
  margin-left: 00px;
}

footer {
    text-align: center;
    font-size: small;
    padding: 1em;
}

#floating-img {
  position: fixed; /* floats over content */
  top: 100px;
  left: 100px;
  width: 80px;
  height: 80px;
  z-index: 9999;
  cursor: grab;
  user-select: none;
}
#floating-img img {
  width: 100%;
  height: auto;
  pointer-events: none; /* so dragging works on the container */
}



/* 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;
        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;
    }
}