/* font */
@import url('https://fonts.googleapis.com/css?family=Neuton:400,400i,700');

/* page styles */
body,html{
    margin:0;
    padding:0;
}
body{
    background:url('images/bg.png') #2b2b2b;
    color:#58585a;
    font-family:'Neuton', serif;
}
img{
    max-width:100%;
}
a{
    color:#58585a;
}
#wrapper{
    width:1100px;
    max-width:100%;
    margin:0 auto;
    box-sizing:border-box;
    padding: 20px 10px;
}
@media screen and (max-width:900px){
    #wrapper{
        padding: 20px 0;
    }
}

/* header */
#header{
    display:flex;
    justify-content: space-between;
    align-items: center;
}
#top-space{
    flex-shrink:0;
    flex-grow:0;
    width:728px;
    height:90px;
    background:#ccc;
}
#logo{
    max-width:300px;
    margin-right:20px;
}
@media screen and (max-width:950px){
    #header{
        display:block;
    }
    #logo{
        margin:0 auto;
        display:block;
    }
    #top-space{
        margin: 20px auto 0 auto;
    }
}
@media screen and (max-width: 770px){
    #top-space{
        width:320px;
        height:50px;
    }
}

/* menu */
#menu{
    display:flex;
    justify-content:space-around;
    max-width:900px;
    margin: 10px auto 10px auto;
    font-size:1.3em;

}
#menu a{
    color:#fff;
    text-decoration:none;
    box-sizing:border-box;
    padding: 2px;
    border-bottom: 2px solid transparent;
}
#menu a:hover{
    border-bottom: 2px solid #faaf38;
}
.deco{
    max-width:60px;
}
.deco img{
    vertical-align: bottom;
}
#menuclick{
    display:none;
}
@media screen and (max-width: 770px){
    #top-space{
        width:320px;
        height:50px;
    }
    #menu{
        display:none;
        flex-wrap:wrap;
        padding: 0;
        margin:0;
        background:#171717;
    }
    #menu a{
        display:block;
        width:100%;
        text-align:center;
        border:none;
        padding:10px;
    }
    #menuclick{
        display:flex;
        justify-content:center;
        font-weight:bold;
        font-size:1.3em;
        padding:15px 0;
    }
    #menuclick .deco{
        padding:0 15px;
    }
    #menuclick .deco img{
        vertical-align:baseline;
    }
    #menuclick a{
        color:#fff;
        vertical-align:bottom;
    }
    #menu .deco{
        display:none;
    }
    #menu a:hover{
        border-bottom:2px solid transparent;
        border:none;
    }
}


/* containers */
#content{
    display:flex;
    justify-content:space-between;
}
#leftside{
    max-width:900px;
    width:100%;
}
#rightside{
    width:160px;
    flex-shrink:0;
    flex-grow:0;
    margin-left:20px;
}
@media screen and (max-width:900px){
    #content{
        flex-wrap:wrap;
    }
    #rightside{
        width:100%;
        margin:0;
        padding:10px 20px;
        box-sizing:border-box;
    }
}

/* nav */
.cc-nav{
    display:flex;
    justify-content:space-around;
    max-width:600px;
    margin: 0 auto;
    padding:20px 0;
}
.cc-nav a{
    font-weight:bold;
    color:#fff;
    font-size: 1.1em;
    text-decoration:none;
}
#nav-divider{
    max-width:250px;
    margin: 0 auto;
    padding:10px;
}
@media screen and (max-width: 500px){
    .cc-navaux{
        display:none;
    }
}

.cc-prevnext a { display: block; margin: 1em 0; font-size: 20px; }
.cc-prevnext a:first-child { float: left; }
.cc-prevnext a:last-child { float: right; }
.cc-pagelist { clear: both; margin: 1em 0; text-align: center; font-size: 18px; }

/* comic text */
#comic-text{
    background:#fff;
    padding:20px;
    margin-top:20px;
    display:flex;
    font-size:1.1em;
	flex-wrap: wrap;
}
#comic-text-left{
    width:calc(100% - 320px);
}
@media screen and (max-width: 500px){
#comic-text-left{
    width:100%;
	order: 2;
}
}
#comic-text-right{
    width:300px;
    flex-shrink:0;
    flex-grow:0;
    margin-left:20px;
}
.cc-newsheader{
    font-size:1.5em;
    font-weight:bold;
    text-align:center;
}
.cc-newsheader a{
    text-decoration:none;
}
.cc-publishtime{
    text-align:center;
    background-size:35%;
    background:url('images/publishtime-divider.png') bottom center/250px no-repeat;
    padding-bottom:20px;
}
.cc-newsbody{
    padding-bottom:40px;
    background:url('images/news-petals.png') bottom center/50px no-repeat;
    margin-bottom:20px;
}
#bottom-space{
    width:300px;
    background:#ccc;
    margin: 0 auto;
}
#events-header{
    font-size:1.5em;
    font-weight:bold;
    text-align:center;
    padding:10px 0 5px 0;
}
#events-divider{
    max-width:150px;
    margin: 0 auto;
}
#events-text{
    text-align:center;
    padding:5px 0;
}
.comments {
	width: 100%;
}



@media screen and (max-width: 650px){
    #comic-text{
        flex-wrap:wrap;
    }
    #comic-text-right{
        width:100%;
        margin:0;
        padding-top:20px;
    }
	.comments {
		order: 3;
	}
}




/* right side */
#right-space{
    width:160px;
    height:600px;
    background:#ccc;
}
#right-buttons{
    padding:20px 0;
    display:flex;
    flex-wrap:wrap;
}
#patreon, #shop, #social-box, #hiveworks{
    width:100%;
    padding:27% 0;
}
#social-icons{
    font-size:2.3em;
    display:flex;
    justify-content:space-between;
    padding:5px;
}
#social-icons a{
    color:#fff;
    text-decoration:none;
}
#right-buttons a:hover{
    opacity:.7;
}
@media screen and (max-width: 900px){
    #right-space{
		width: auto;
        height: auto;
    }
    #right-buttons{
        justify-content:space-around;
        align-items:center;
    }
    #patreon, #hiveworks, #shop, #social-box{
        width:25%;
        padding:10px 0;
        box-sizing:border-box;
    }
}
@media screen and (max-width: 650px){
    
    #patreon, #hiveworks, #shop, #social-box{
        width:50%;
        max-width:200px;
    }
}
@media screen and (max-width: 400px){
    
    #patreon, #hiveworks, #shop, #social-box{
        width:100%;
        max-width:250px;
    }
}

/* footer */
#footer-text{
    padding:15px;
    text-align:center;
}
#footer-text a{
    color:#fff;
    font-size:1.2em;
    text-decoration:none;
}
#footer-image{
    max-width:400px;
    margin: 0 auto;
}

#textwrap{
    background:#fff;
    padding:20px;
}
.cc-storyline-thumb{
    width:200px;
}