/* ===== Compact Rectangle Blog ===== */
body {
    background: #f5f5f5;
    color: #333;
    font-family: "Arial", sans-serif;
    font-size: 14px;
    margin: 0;
    padding: 0;
    background-image:url("images/wallpaperdreambbq.jpg");
    background-position: fixed;
    background-size: cover;
}

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

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

#layout {
    width: 500px;
    height: 600px; /* fixed rectangle height */
    margin: 20px auto;
    background: #fff;
    border: 1px solid #000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
#header {
    background: #fff;
    border-bottom: 1px solid #ccc;
    height: 120px;
    background-size: cover;
    padding: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #8b89cc;
    background-image: url("images/luckystar.jpg");
    position: relative;
}

#header a {
    margin-left: 5%;
    bottom: 0;
    position: absolute;
    font-size: xx-large;
    text-shadow: 3px 3px white;
}

/* Content wrapper */
#content-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Main scrollable posts area */
#main {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

.entry_table {
    width: 100%;
    margin-bottom: 10px;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ccc;
}

.entry_bg {
    padding: 8px;
    border: double #000 2px;
   width: 250px;
    max-width: 250px;
}

.entry_title {
    font-size: 16px;
    font-weight: bold;
    color: #434073;
    margin-bottom: 5px;
}

.entry_state {
    font-size: 12px;
    color: #666;
    border-top: 1px dotted #ccc;
    padding-top: 3px;
}

.entry_text {
    font-size: 13px;
}

/* Sidebar fixed size */
#sidebar {
    width: 150px;
    padding: 10px;
    overflow-y: auto;
    border-left: 1px solid #ccc;
}

/* Sidebar widgets */
.sidebar-widget {
    margin-bottom: 10px;
}

.sidebar-widget h3 {
    font-size: 14px;
    color: #434073;
    border-bottom: 1px solid #C2ACFD;
    border-left: 3px solid #C2ACFD;
    padding: 3px;
    margin-bottom: 5px;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget li {
    padding: 2px 0;
}

.sidebar-widget a {
    color: #555;
}

.sidebar-widget a:hover {
    color: #434073;
    text-decoration: underline;
}

/* Profile icon */
.profile-icon {
    text-align: center;
    margin-bottom: 10px;
}

.profile-icon img {
    max-width: 100%;
    height: auto;
}

/* Calendar */
.mini-calendar {
    width: 100%;
    font-size: 11px;
    border-collapse: collapse;
}

.mini-calendar th,
.mini-calendar td {
    border: 1px solid #482B98;
    text-align: center;
    padding: 2px;
}

.mini-calendar th {
    background: #482B98;
    color: #fff;
}

.mini-calendar .current-day {
    background: #e6f7ff;
}

.mini-calendar .selected-day {
    background: #ffeb3b;
}

.mini-calendar .has-post a {
    color: #ff5722;
    font-weight: bold;
}

.mini-calendar a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.mini-calendar a:hover {
    background-color: #f0f0f0;
}

/* Footer */
#footer {
    text-align: center;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #ccc;
    padding: 5px;
}

/* Scrollbar tweaks */
#main::-webkit-scrollbar, #sidebar::-webkit-scrollbar {
    width: 6px;
}

#main::-webkit-scrollbar-thumb, #sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

