* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: arial, serif;
    font-size: 14px;
    line-height: 20px;
    background: var(--body-bg) !important;
    color: var(--primary-color) !important;
}

section.size {
    min-width: 320px;
    max-width: 1024px;
    margin: 0 auto;
}

header.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: inherit; /* Centers the element once max-width kicks in */
    min-width: inherit;
    max-width: inherit;
}

header.top-bar section {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

header.top-bar section > div:first-child a:hover {
    border-bottom-left-radius: 15px;
}

header.top-bar section > div:last-child a:hover {
    border-bottom-right-radius: 15px;
}

footer.bottom-bar section {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

footer.bottom-bar section > div:first-child a:hover {
    border-top-left-radius: 15px;
}

footer.bottom-bar section > div:last-child a:hover {
    border-top-right-radius: 15px;
}

header.top-bar,
footer.bottom-bar
{
    display: flex;
    justify-content: center;
    align-items: center;
}

header.top-bar section,
footer.bottom-bar section {
    display: flex;
    flex: 1;
    min-height: 50px;
    background: var(--header-footer-section-bg);
    color: var(--header-footer-section-color);
}

header.top-bar section > div,
footer.bottom-bar section > div
{
    flex: 1;
    display: flex;
    border-right: 1px solid var(--header-footer-div-border-right-color);
}

header.top-bar section > div:last-child,
footer.bottom-bar section > div:last-child
{
    border-right: none;
}

header.top-bar section > div.site-name,
footer.bottom-bar section > div.site-name
{
    flex: 1 1 max-content;
    font-family: "Milonga", serif;
    font-weight: bold;
    font-style: normal;
    font-size: 13px;
    text-shadow: 1px 1px var(--site-name-text-shadow-color);
}

header.top-bar section > div a,
footer.bottom-bar section > div a
{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    color: var(--header-footer-href-color);
    text-decoration: none;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

header.top-bar section > div a:hover,
footer.bottom-bar section > div a:hover
{
    background-color: var(--header-footer-hover-href-bg);
    opacity: .4;
}

header.top-bar section > div a div,
footer.bottom-bar section > div a div
{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: calc(20px + 10px);
    min-height: calc(20px + 7px);
}

/*header.top-bar section > div a img,
footer.bottom-bar section > div a img
{
    width: 20px;
    height: 20px;
}*/

header.top-bar section > div a span.icon,
footer.bottom-bar section > div a span.icon,
.sidebar-overlay span.icon
{
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: var(--hedaer-footer-sidebar-icon-bg); /* Inherits text color automatically */
    -webkit-mask: var(--svg) no-repeat center / contain;
    mask: var(--svg) no-repeat center / contain;
}

header.top-bar section > div:not(.site-name) a span:not(.icon) {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 10px;
    background-color: var(--badge-number-bg);
    color: var(--badge-number-color);
    text-shadow: 0 0 3px var(--badge-number-text-shadow-color);
    border-radius: 2px;
    padding: 1px 5px;
    max-width: 30px;
    height: 14px;
    line-height: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

main {
    padding: 55px 10px 5px;
}

main section .frame-side {
    background: var(--frame-side-bg);
    padding: 5px;
    border-radius: 5px;
    border: 1px solid var(--frame-side-border-color);
}

main section .frame-side .content {
    /*min-height: 100vh;*/
    /*background: #2e3138;*/
    /*color: white;*/
    /*color: #cce0f5;*/
    /*padding: 10px 20px;*/
    /*border-radius: 5px;*/
    /*box-shadow: 0 0 10px rgb(46 49 56 / 0.4);*/
}

main section .frame-side .content a {
    color: var(--primary-href-color);
    text-decoration: none;
}

main section .frame-side .content a:hover {
    color: var(--secondary-href-color);
}

main section .frame-side .content img {
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

main section .frame-side .content input,
main section .frame-side .content select,
main section .frame-side .content textarea {
    margin-bottom: 2px;
    padding: 5px;
    background: var(--form-bg);
    color: var(--form-color);
    border: 1px solid var(--form-border-color);
    outline: none;
    border-radius: 3px;
}

main section .frame-side .content input:focus,
main section .frame-side .content select:focus,
main section .frame-side .content textarea:focus {
    border-color: var(--form-focus-border-color);
    box-shadow: 0 0 5px var(--form-focus-box-shadow-color);
    background-color: var(--form-focus-bg);
    color: var(--form-focus-color);
}

main section .frame-side .content input[type="submit"] {
    background: var(--form-submit-bg);
    color: var(--form-submit-color);
    border: none;
    cursor: pointer;
}

main section .frame-side .content input[type="submit"]:hover {
    background: var(--form-hover-submit-bg);
    opacity: .8;
}

/*section.blackPremium header.top-bar section > div a span.icon,
section.blackPremium footer.bottom-bar section > div a span.icon,
section.blackPremium .sidebar-overlay span.icon
{
    background-color: #cce0f5;
}*/

/*section.blackPremium header.top-bar section > div.site-name span,
section.blackPremium footer.bottom-bar section > div.site-name span
{
    color: #cce0f5;
}*/

main section .frame-side .content > div[class^="align-"] {
    background: var(--align-bg);
    color: var(--align-color);
    padding: 10px 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px var(--align-box-shadow-color);
    margin-bottom: 5px;
}

main section .frame-side .content > div.align-left {
    text-align: left;
}

main section .frame-side .content > div.align-center {
    text-align: center;
}

main section .frame-side .content > div.align-right {
    text-align: right;
}

main section .frame-side .content > div[class^="align-"]:empty {
    display: none;
}

main section .frame-side .content .links {
    position: relative;
    background: var(--links-bg);
    color: var(--links-color);
    padding: 2px;
    margin-bottom: 3px;
    border-radius: 5px;
    border-bottom: var(--links-border-bottom);
}

main section .frame-side .content .links::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: var(--links-before-bg);
}

main section .frame-side .content asif {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: var(--asif-bg);
    color: var(--asif-color);
    padding: 0 4px 0 4px;
    border: 1px dashed var(--asif-border-color);
    border-radius: 3px;
    margin: 0 5px;
}

main section .frame-side .content {
    background: var(--align-bg);
}

main section .frame-side .content > div[class^="align-"] {
    box-shadow: none;
}