/* main colors and header image*/
:root {
    --site-bg: url('images/tile.gif');
    --main-bg: url('images/nothing.png');
    --gradient-bg: linear-gradient(0deg, #ffffff00 0%, #ffffff88 33%, #ffffff88 90%);
    --accent-color: rgb(238, 130, 206);
    --link-color: rgb(112, 183, 216);
    --bg-color: rgb(255, 255, 255);
    --text-color: rgb(212, 92, 190);
    --text-color2: rgb(38, 124, 216);
    --favorite-color: rgb(55, 188, 255);
}

/* applies to all the content */
* {
    color: var(--text-color);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-shadow: 2px 2px 5px var(--bg-color);
/* custom scrollbars, they don't appear for all browsers*/
    scrollbar-color: var(--favorite-color) var(--bg-color);
    scrollbar-width: thin;
}
/* selected text on the page */
::selection {
    background: var(--favorite-color);
    color: var(--bg-color);
}

html {scroll-behavior: smooth;}

body {
    margin: 0;
    background-color: var(--bg-color);
    background-image: var(--site-bg);
    background-size: 35px;
    background-repeat: repeat;
    max-width: 100%;
    overflow-x: hidden;
}

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;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    list-style-type: none;
    padding-left: 0;
    justify-content: space-evenly;
}
nav li a {
    background-color: var(--bg-color);
    border: 1px solid var(--favorite-color);
    padding: .5em 3em;
    text-decoration: none;
    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);
}

ul { list-style-type: "★ "; }

#sidebar {
    background-image: var(--main-bg);
    border: 1px solid var(--favorite-color);
    min-width: 220px;
}

#avatar {
    margin: 1em auto;
    max-width: 164px;
    max-height: 164px;
}

#avatar .ico{
    background: var(--bg-color);
    max-width: 160px;
    border: 1px solid var(--favorite-color);
    box-shadow: var(--accent-color) 0 0 4px;
}

.imgdeco{
    background-color: transparent;
    width: 40px;
    border: 0px;
    margin-top: -100px;
    margin-left: 130px;
}

#gallery{
    line-height: 0;       
    -webkit-column-count: 4;    
    -webkit-column-gap: 5px;    
    -moz-column-count: 4;
    -moz-column-gap: 5px;
    column-count: 4;    
    column-gap: 5px;
    display:inline-block;    
    margin-right: auto;    
    margin-left: auto;
    padding: 10px;
    margin-right: 6%;
}

#gallery img{
    border: 2x solid var(--favorite-color);
    transition: transform 250;
    cursor: pointer;
    width: 95% ;    
    height: auto ;
    margin-top: 5px;
    margin-bottom: 5px;
}

@media (max-width: 600px) {

#deco{
    position: fixed;
    width: 10px;
    height: 10px;
    visibility: hidden;
      max-width: 100%;
  overflow-x: hidden;

}
#blinkies{
    max-width: 10%;
    position: fixed;
    visibility: hidden;
    width: 10px;
    height: 10px;
  overflow-x: hidden;

}
}

#decoimage1{
    margin: 1em auto;
    width: 200px;
    position: absolute;
    left:7%;
    top: 5%;
}

#decoimage2{
    margin: 1em auto;
    width: 200px;
    position: absolute;
    left:7%;
    top: 30%;
}

#decoimage3{
    margin: 1em auto;
    width: 200px;
    position: absolute;
    left:7%;
    top: 55%;
}

#decoimage4{
    margin: 1em auto;
    width: 200px;
    position: absolute;
    right:7%;
    top: 5%;
}
#decoimage5{
    margin: 1em auto;
    width: 200px;
    position: absolute;
    right:7%;
    top: 30%;
}

#decoimage6{
    margin: 1em auto;
    width: 200px;
    position: absolute;
    right:7%;
    top: 55%;
}

#deco img{
    max-width: 100%;
    background: var(--bg-color);
    box-shadow: var(--accent-color) 0 0 5px;
}

#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);
}

#sidebar h2{
    margin: 1em;
}

#content {
    display: flex;
    max-width: 960px;
    margin: auto;
}

main {
    background-image: var(--main-bg);
    background-repeat: repeat;
    image-rendering: pixelated;
    max-width: 800px;
    margin: auto;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    max-height: 600px;
    overflow:auto;
}

.prose {
    background: var(--gradient-bg);
    margin: 0;
    padding: 1em;
    max-width: 100%;
    overflow-x: hidden;
}


.img-right { float: right; }

footer {
    text-align: center;
    font-size: small;
    padding: 1em;
}

#blinkies{
    margin: 0 5% 0 5%;
    display: flex;
    justify-content: space-around;
}

/*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;
    }


}