@font-face {
    font-family: 'appleGaramond';
    src: url('./fonts/AppleGaramond-Light.ttf');
}
@font-face {
    font-family: 'barcode';
    src: url('./fonts/BarcodeFont.ttf');
}
@font-face {
    font-family: 'bankprinter';
    src: url('./fonts/F25_Bank_Printer_Bold.ttf');
}
@font-face {
    font-family: 'rainyhearts';
    src: url('./fonts/rainyhearts.ttf');
}

html {
    box-shadow: inset 0 0 800px 200px black;
    width: 100vw;
    height: 100vh;
}

body {
    color: #ffddab;
    font-family: "Arial", sans-serif;
    font-size: 14px;
    margin: 0;
    padding: 0;
    background-blend-mode: multiply;
    background-position: fixed;
    animation: bgpulse 4s ease-in-out infinite;
}
@keyframes bgpulse {
    0%      {background: url("images/bg.webp"), #333333;background-size: cover;}
    50%     {background: url("images/bg.webp"), #474747;background-size: cover;}
    100%    {background: url("images/bg.webp"), #333333;background-size: cover;}
}

a {
    color: #fd4800;
    text-decoration: none;
}
a:hover {
    text-decoration: underline overline dotted #fd4800 1px;
}

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

/* Header */
#header {
    border-bottom: 1px solid #fd4800;
    height: 120px;
    padding: 10px;
    font-weight: bold;
    background-image: url("images/header.webp");
    background-size: cover;
    background-position: 90%;
    position: relative;
}

#header a {
    font-family: 'barcode';
    right: 0;
    bottom: 5%;
    position: absolute;
    font-size: 58px;
}

/* 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: #000000;
}

.entry_bg {
    padding: 8px;
    border: dashed #fd4800 1px;
    width: 250px;
    max-width: 250px;
}

.entry_title {
    font-family: 'bankprinter';
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 5px;
}

.entry_state {
    font-size: 12px;
    color: #7c1d00;
    border-top: 1px dashed #fd4800;
    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: #ff3c00;
    color: #fff;
}

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

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

.mini-calendar .has-post a {
    color: #ff3c00;
    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;
}

