.sidebar {
	margin-left: 20px;
    width: 180px;
    position:absolute;
    left:0;
    text-align:right;
}
.mainbar {
	margin-left: 200px;
	width: 300px;
	padding: 1px 16px;
    display: inline-block;
    position: absolute;
}

.rightbar {
	margin-left: 500px;
    margin-right: 10%;
    width: 50%;
	position: relative;
	padding: 1px 16px;
    display: inline-block;
}

.rightbar video {
    width:100%;
}

.rightbar button {
    border: none;
    background-repeat: no-repeat;
    background-position: center;
    font: inherit;
}

.fourthbar{
    margin-left: 800px;
    width: auto;
    position: relative;
    padding: 1px 16px;
    display: inline-block;
}

#toc {
    text-align: center;
}

/* Text Changes */ 
.gallery{
    display: inline-block;
}
.gallery-main{
    max-width:500px;
    max-height:500px;
}
.gallery-rest img{
    width: 30%;
}

#bigImage {
    width: inherit;
    height: inherit;
    max-height: 600px;
    max-width: 618px;
}
.mainimage {
    text-align: center;
    max-width:100%;
}
.card {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    width:33%;
    display: inline-block;
    padding: 2px 16px;
}

/* On mouse-over, add a deeper shadow */
.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

/* Text Changes */ 

body {
	margin-top: 50px;
	font-family: Lucida Console;
	text-decoration: none; 
	color: black;
	font-weight: normal;
}


h1, h2, h3 {
  	line-height: 10px; 
	font-weight: normal;
}

h1 {
	font-size: 1.2em;
}

h2 {
	font-size: .9em;
	font-weight: normal;
}

a {
	text-decoration: none; 
	color: black;
}

ul {
	    text-indent: -40px; /* key property */
        list-style-position: outside;
}

li {
	list-style: none;
	list-style-position: outside;
}

/* Journal */

.entry_body{
    white-space: pre-wrap;
}


li {
    list-style: none;
    list-style-position: outside;
}


li:before {
content:url(/static/resources/star.svg);
padding: 10px;
}

li:hover:before {
content:url(/static/resources/star_hover.svg);
}

li:after{
    display:none;
    content: url(/static/resources/star.svg) url(/resources/star_hover.svg);
}

li:active:before{
content:url(/static/resources/star_active.svg);
}

li:active:after{
        content:url(/static/resources/star_active.svg);
}




/* Response */
@media screen {
	#selfimg img{height:300px;}
}

@media screen and (max-width: 1000px) {
	.rightbar {
		position: relative;
		margin-left: 200px;
		margin-top:200px;
    	display:inline-block;
    	}
}


@media screen and (max-width: 700px) {

    body {padding: 0 2em;margin: 2em auto;width: auto;}
    .page{
    	width:100%;
    	box-sizing:border-box;
  	}

    .sidebar {
    	width:inherit;
    	position: static;
    	text-align: center;
    	margin: 0 0 3em;}

    .mainbar {
    	width:inherit;
    	margin: 0 0 3em; /* clear the margin */
    	padding: 0 0 0;
    	display:inline-block;
    	position: relative;
    }

    .rightbar {
    	width:inherit;
    	padding: 0 0 0;
    	margin: 0 0 3em; /* clear the margin */
    	display:block;
    	position: relative;
    }




    #selfimg {text-align: center; margin: 0 0 3em;}
    #selfimg img {width:100%; height:100%; max-width: 500px;}

    .mainbar .text {display: inline-block;}


    .logo.hasAvatar {word-spacing: 0}

    .margin,
    .margin.right,
    .margin.left {
        width: 30%;
        position: relative;display: block;top: auto;left: auto;right: auto;bottom: auto;}

    .margin.right {float: right;}
    .margin.left {text-align: left;float: left;}

    .wide, .wide.left, .wide.right {width: 100%;margin: 0}
    .index .index-link {
        width: 70%;
    }

}

@media screen and (max-width: 300px) {
	.page{width:70%;height:auto;}
    }

}

