/* --- VARIABLES --- */
:root {
    --text: darkslategrey;
    --border: lightgrey;
    --accent: teal;
    --bg: #dce3e1;
    --gradientTop: white;
    --gradientBottom: rgb(240, 248, 255, .8);
}

/* --- GLOBAL & BASE --- */
* { 
    box-sizing: border-box;
}

body {
    padding: 10px;
    font-family: 'MS PGothic', sans-serif;
    font-size: 1rem;
    font-optical-sizing: auto;
    color: var(--text);
    background-size: 100%;
    line-height: 1.4;
}

/* --- LAYOUT --- */
.container {
    max-width: 55rem !important;
    margin: 5vw auto 12px auto !important;
    border: 6px ridge var(--border);
    outline: 3px solid var(--gradientTop);
    outline-offset: 4px;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    padding: 5px;
    gap: 5px;
    background-color: var(--gradientBottom);
    background-image: repeating-radial-gradient(circle at 0 0, transparent 0, var(--gradientBottom) 9px), 
                      repeating-linear-gradient(var(--bg), var(--bg));
}

/* Column Widths */
.small { flex: 1 1 9%; }
.large { flex: 1 1 82%; }
.full { flex: 1 1 100%; }
.half { flex: 1 1 49%; }
.large-content { flex: 1 1 80%; padding: 20px; }

/* --- COMPONENTS --- */
header {
    background: url(https://blog.bkchy.duckdns.org/image/bok-website.png);
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 120px;
    border: 2px ridge var(--border);
    border-radius: 5px;
    position: relative;
}

header span {
    padding: 10px;
    font-family: 'Michroma', sans-serif;
    font-size: 2.5rem;
    position: absolute;
    bottom: 0;
    right: 10px;
    margin: 10px;
    font-weight: bold;
    color: var(--gradientTop);
    text-shadow: 1px 1px var(--text), -1px 1px var(--text), 1px -1px var(--accent), -1px -1px var(--accent);
}

nav {
    font-family: 'Michroma', sans-serif;
    border: 2px ridge var(--border);
    border-radius: 5px;
    padding: 5px;
    background: linear-gradient(var(--gradientTop), var(--gradientBottom));
}

nav div {
    text-align: center;
    font-size: 1.25rem;
    margin: 5px 5px 10px 5px;
}

nav a {
    display: block;
    margin: 5px;
    background: linear-gradient(to right, var(--bg), var(--gradientBottom));
    border-radius: 5px;
    padding: 2px 7px;
    text-decoration: none;
    color: var(--text);
}

nav a:hover, nav a:focus {
    background: linear-gradient(to right, var(--bg), var(--gradientBottom), var(--gradientTop));
    font-style: italic;
}

section {
    border: 2px ridge var(--border);
    border-radius: 5px;
    background: linear-gradient(var(--gradientTop), var(--gradientBottom));
    padding: 5px;
    line-height: 1.6;
}

footer {
    text-align: center;
    margin-bottom: 5vw;
    font-size: 0.8rem;
}

footer a { text-decoration: none; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6, p { margin: 5px; line-height: 1.4; }

h1 { 
    padding: 10px 10px 5px 10px;
    font-family: 'Michroma', sans-serif;
    font-size: 1.7rem;
    letter-spacing: 2px;
    text-align: center;
    border-bottom: 2px ridge var(--border);
}

h2 { font-family: 'Michroma', sans-serif; font-size: 1.4rem; text-align: center; padding: 10px; }
h3 { font-family: 'Michroma', sans-serif; font-size: 1.25rem; padding: 10px; }
h4 { font-size: 1.1rem; color: var(--accent); padding-left: 12px; }

/* --- ALWIN CUSTOM ASSETS --- */
svg.feather, .social-icons svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    stroke-width: 2.5 !important;
    vertical-align: text-bottom !important;
    margin: 0 6px !important;
    display: inline-block !important;
    color: var(--text);
}

.social-icons a svg.feather { width: 26px !important; height: 26px !important; }
.tag-btn { margin-bottom: 5px; vertical-align: middle; }

/* Media Elements */
.custom-figure { margin: 2rem auto; text-align: center; }
.custom-figure img { max-width: 80%; height: auto; margin: 0 auto; display: block; }
.custom-figure figcaption, .video-caption { 
    font-size: 0.8rem; color: var(--accent); letter-spacing: 1px; margin-top: 8px; 
}

.video-wrapper { margin: 2rem auto; max-width: 800px; text-align: center; }
.responsive-video { width: 100%; height: auto; display: block; }

/* --- BG VIDEO (UNICODEANGEL) --- */
#bgVideoContainer { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; }
#bgVideo { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 100%; min-height: 100%; object-fit: cover; }

#vidbutton { position: relative; top: -20px; margin-left: 30px; text-shadow: 0px 0px 4px white; color: #a0a6af; font-family: Arial; font-size: 14px; z-index: 200; }
#vidBtn { width: 110px; padding: 10px; border: 1px solid #c9d1dd; border-radius: 20px; cursor: help; background: radial-gradient(white, white); }
#vidBtn:hover { background: #ddd; color: #81a1c8; }

/* --- ZOOM LOGIC --- */
html.zoomed-in { font-size: 120%; }
html.zoomed-in .container { max-width: 65rem !important; }

#zoom-toggle {
    background: linear-gradient(var(--gradientTop), var(--gradientBottom));
    border: 2px ridge var(--border);
    border-radius: 5px;
    padding: 2px 8px;
    font-family: 'Michroma', sans-serif;
    font-size: 0.7rem;
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 1000;
}

/* --- Status cafe stuff --- */
#statuscafe {
    padding: .5em;
}
#statuscafe-username {
    margin-bottom: .5em;
}
#statuscafe-content {
    margin: 0 1em 0.5em 1em;
}