body {
    background-color: #f5f5f5;
    background-image: url(https://ophanimkei.com/images/adelaideblogver.png);
    background-size: cover;
    background-attachment: fixed;
    color: #333;
    font-family: "MS PGothic", "Osaka", Arial, sans-serif;
    font-size: clamp(.85rem, .9vw, 1rem);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

p {
    margin:0;
}

a {
    color: #434073;
    text-decoration: none;
}

a:hover {
    color: #ff6600;
    text-decoration: underline;
}

/* ---------------- Layout ---------------- */

#layout {
    width: 55vw;

    margin: auto;

    background: #fff;
    border: .08rem solid #000;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

/* ---------------- Header ---------------- */

#header {
	height: 14vw;

    padding: .75rem;

    background-image: url(/images/adelaidebanner.png);
    border-bottom: .08rem solid #ccc;
	background-size:cover;
	background-repeat:no-repeat;

    position: relative;

    text-align: center;

    font-size: clamp(1rem, 2vw, 1.4rem);

    font-weight: bold;

    color: #8b89cc;
}

#header a{

    position:absolute;

    left:4%;

    bottom:.5rem;

    font-size:clamp(1.4rem,3vw,2.2rem);

    text-shadow:.15rem .15rem white;

}

/* ---------------- Main ---------------- */

#content-wrapper{

    display:flex;

    flex:1;

    overflow:hidden;

}

/* ---------------- Posts ---------------- */

#main{

    flex:1;

	
    overflow-x:hidden;

    padding:1rem;

}

img{

    max-width:100%;

    height:auto;

}

.entry_table{

    width:100%;

    margin-bottom:1rem;

    border-collapse:collapse;

    background:white;

    border:.08rem solid #ccc;

}

.entry_bg{

    padding:.75rem;

    border:.15rem double black;

    width:100%;

    max-width:100%;

    box-sizing:border-box;

}

.entry_title{

    font-size:clamp(1rem,1.4vw,1.2rem);

    font-weight:bold;

    color:#434073;

    margin-bottom:.4rem;

}

.entry_state{

    font-size:.8rem;

    color:#666;

    border-top:.06rem dotted #ccc;

    padding-top:.25rem;

}

.entry_text{

    font-size:.9rem;

}

/* ---------------- Sidebar ---------------- */

#sidebar{

    width:clamp(9rem,25vw,12rem);

    padding:.8rem;

    border-left:.08rem solid #ccc;

    overflow-y:auto;

    flex-shrink:0;

}

.sidebar-widget{

    margin-bottom:1rem;

}

.sidebar-widget h3{

    font-size:1rem;

    color:#434073;

    border-left:.25rem solid #C2ACFD;

    border-bottom:.08rem solid #C2ACFD;

    padding:.25rem;

    margin-bottom:.4rem;

}

.sidebar-widget ul{

    list-style:none;

    padding:0;

    margin:0;

}

.sidebar-widget li{

    padding:.15rem 0;

}

/* ---------------- Profile ---------------- */

.profile-icon{

    text-align:center;

    margin-bottom:1rem;

}

.profile-icon img{

    width:100%;

    max-width:8rem;

    height:auto;

}

/* ---------------- Calendar ---------------- */

.mini-calendar{

    width:100%;

    font-size:.75rem;

    border-collapse:collapse;

}

.mini-calendar th,

.mini-calendar td{

    border:.06rem solid #482B98;

    text-align:center;

    padding:.2rem;

}

.mini-calendar th{

    background:#482B98;

    color:white;

}

.mini-calendar .current-day{

    background:#e6f7ff;

}

.mini-calendar .selected-day{

    background:#ffeb3b;

}

.mini-calendar .has-post a{

    color:#ff5722;

    font-weight:bold;

}

/* ---------------- Footer ---------------- */

#footer{

    font-size:.8rem;

    text-align:center;

    color:#999;

    padding:.4rem;

    border-top:.08rem solid #ccc;

}

/* ---------------- Scrollbars ---------------- */

#main::-webkit-scrollbar,
#sidebar::-webkit-scrollbar{

    width:.4rem;

}

#main::-webkit-scrollbar-thumb,
#sidebar::-webkit-scrollbar-thumb{

    background:#ccc;

    border-radius:.25rem;

}

@media (max-width: 700px) {

    #content-wrapper{
        flex-direction:column;
    }

    #sidebar{
        width:auto;
        border-left:none;
        border-top:.08rem solid #ccc;
    }

    #layout{
        width:96vw;
        height:95vh;
    }

    #header{
        height:22vh;
    }

}