/* @font-face declaration */

@font-face {
    font-family: "Alagard";
    src: url(media/alagard.woff2);
}

/* main site styles */

:root {
    /* https://codepen.io/sadness97/full/XJbLxNj Sadgrl's classic HTML layout builder for modern stylesheets */
    /* applies to all areas */
    --font-family: sans-serif;
    --font-size: 17px;
    --line-height: 1.3em;
    --font-color: black;
    --link-color: #1173e4;
    --link-text-decoration: none;
    /* main content (between sidebars) */
    --content-padding: 25px;
    --content-bg-color: #e2ecf2;
    --opacity: 0;
    /* header */
    --header-height: 75px;
    --header-background: url("media/psmb.png");
    --header-margin-bottom: 0px;
    /* sidebar */
    --sidebar-margin: 10px;
    --sidebar-width: 175px;
    --sidebar-padding: 15px;
    --sidebar-bg-color: #e2ecf2;
    /* footer */
    --footer-height: 99px;
    --footer-bg-color: #e2ecf2;
    /* navbar */
    --navitems-alignment: center;
    --space-between-navitems: 20px;
    --navbar-margin-bottom: 10px;
    --nav-bg-color: #e2ecf2;
    /* container */
    --container-width: 800px;
    --container-bg-color: transparent;
    /* controls the gap between the content and the footer */
    --row-gap: 5px;
    /* To add scrollbars to your sidebars, just make the height a px value and change overflow to 'auto' */
    --sidebar-height: 100%;
    --sidebar-overflow: hidden;
    --background-color: #000000;
}

html,
body {
    margin: 0;
    padding: 0;
    background-image: url("media/arrival-bg.png");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-color: var(--background-color);
    font-family: verdana, sans-serif;
    font-size: 12px;
    line-height: 1.3em;
    color: #000;
}

body a {
    color: #734920;
    font-weight: bold;
    text-decoration: var(--link-text-decoration);
}

body a:hover {
    color: #1173e4;
}

::-moz-selection {
    /* Code for Firefox */
    color: white;
    background: #1173e4;
}

::selection {
    color: white;
    background: #1173e4;
}

#main-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-bottom: 10px;
    background-color: var(--container-bg-color);
}

.flex {
    display: flex;
    margin-bottom: var(--row-gap);
}

.content-wrap {
    margin-top: var(--content-margin-top);
}

.text-wrap-l {
    float: left;
    margin: 10px;
}

.text-wrap-r {
    float: right;
    margin: 10px;
}

img {
    max-width: 100%;
}

#content-container {
    border: none;
    width: 60%;
    margin-bottom: var(--row-gap);
    background-color: var(--content-bg-color);
}

.left-column {
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    margin-right: var(--sidebar-margin);
    margin-bottom: var(--row-gap);
}

#left-sidebar {
    border: none;
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
    height: auto;
    align-self: flex-start;
    position: sticky;
    top: 10px;
    overflow: visible;
    background-image: url("");
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #e2ecf2;
}

#left-sidebar-box {
    border: none;
    width: calc(100% - 10px);
    margin-left: auto;
    flex: 1;
    background-color: #d5e0e8;
}

.left-sidebar-box-wrapper {
    padding: var(--sidebar-padding);
}

#right-sidebar {
    border: none;
    width: var(--sidebar-width);
    margin-left: var(--sidebar-margin);
    margin-bottom: var(--row-gap);
    height: var(--sidebar-height);
    overflow: var(--sidebar-overflow);
    background-image: url("");
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #e2ecf2;
}

#header-contained {
    height: var(--header-height);
    margin-bottom: var(--header-margin-bottom);
    background-image: var(--header-background);
    background-position: center;
    background-repeat: no-repeat;
    background-position: center center;
}

#footer {
    border: 0px;
    height: var(--footer-height);
    text-align: center;
    color: var(--font-color);
    background-color: var(--footer-bg-color);
    background-image: url("media/psmb-footer.gif");
}

#header-full {
    display: none;
    height: var(--header-height);
    margin-bottom: var(--header-margin-bottom);
    background-image: var(--header-background);
    background-position: center;
    background-repeat: no-repeat;
    background-position: center center;
}

#navbar-contained {
    margin-bottom: var(--row-gap);
}

#navbar-full {
    display: none;
}

.nav {
    height: 74px;
    border: 0px;
    background-color: var(--nav-bg-color);
    background-image: url("media/psmb-header.gif");
}

.nav li {
    display: inline-block;
    padding-right: var(--space-between-navitems);
}

.wrapper {
    padding: var(--content-padding);
    padding-top: var(--sidebar-padding);
}

.sidebar-wrapper {
    padding: var(--sidebar-padding);
    height: auto;
    overflow: visible;
}

.footer-wrapper {
    padding: 10px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.footer-link {
    color: #fff;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 1),
        0 0 6px rgba(0, 0, 0, 0.9);
}

.footer-links-row {
    color: #fff;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 1),
        0 0 6px rgba(0, 0, 0, 0.9);
}

.footer-meta {
    color: #d7d7d7;
    font-size: 10px;
    text-shadow:
        1px 1px 3px rgba(0, 0, 0, 1),
        0 0 5px rgba(0, 0, 0, 0.9);
}

.header1 {
    font-family: "Alagard";
    padding: 1px;
    text-align: center;
    background: #034080;
    color: #fff;
    font-size: 30px;
}

.text-block {
    background: #fff;
    box-sizing: border-box;
    padding: 10px 20px;
    margin-top: var(--row-gap);
    line-height: 1.5em;
}

.page-banner {
    display: block;
    margin: 5px auto 20px;
}

.header2 {
    font-family: "verdana";
    text-align: center;
    background: #1173e4;
    color: white;
    font-size: 10px;
}

.img-row {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.img-item {
    width: 180px;
    min-width: 0;
    text-align: center;
}

.img-item img {
    width: 180px;
    border: 2px solid #1173e4;
    padding: 1px;
    transition: opacity 0.2s ease;
}

.img-item a:hover img,
.lb-thumb:hover {
    opacity: 0.75;
}

.video-thumb {
    position: relative;
    display: inline-block;
}

.video-thumb::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.video-thumb::before {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(50% + 3px);
    width: 0;
    height: 0;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 18px solid #fff;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 1;
}

.video-thumb:hover::after,
.video-thumb:hover::before {
    opacity: 1;
}

.img-item .caption {
    margin-top: 5px;
    font-size: 11px;
    text-align: left;
}

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

.caption li {
    margin-bottom: 2px;
}

.caption li img {
    vertical-align: middle;
    margin-right: 4px;
    border: none;
    padding: 0;
    width: auto;
}

.icon {
    width: 10px !important;
    height: 10px !important;
    vertical-align: middle;
    border: none !important;
    padding: 0 !important;
    margin-right: 4px;
}

#left-sidebar .icon {
    width: 12px !important;
    height: 12px !important;
}

.sidebar-inner .icon {
    margin-left: 5px;
}

.nav-indent {
    margin-left: 13px !important;
}

/* To keep your site RESPONSIVE, make sure this variable matches the width for --container-width UNLESS --container-width is 100% - if it's 100%, you'll need to manually input a breakpoint. */
@media only screen and (max-width: 800px) {
    .flex {
        flex-wrap: wrap;
    }

    .left-column {
        width: 100%;
        display: block;
        order: 2;
        margin-right: 0;
        margin-bottom: 10px;
    }

    #left-sidebar {
        width: 100%;
        height: 100%;
        display: block;
        margin-right: 0;
    }

    .sidebar-wrapper {
        text-align: center;
    }

    .sidebar-inner {
        display: inline-block;
        text-align: left;
    }

    #right-sidebar {
        width: 100%;
        display: block;
        order: 4;
        margin-left: 0;
    }

    #content-container {
        width: 100%;
        height: 100%;
        display: block;
        order: 3;
        margin-bottom: 10px;
    }

    #header-contained {
        width: 100%;
        height: 85px;
        display: block;
        order: 1;
        margin-right: 0;
        margin-bottom: 0px;
        background: url("media/psmb-2-line.png") no-repeat;
        background-position: center center;
    }

    #navbar-contained {
        display: none;
    }

    .invisonmobile {
        display: none;
    }

    .invisondesktop {
        display: block;
    }

    .lala {
        width: 100%;
        display: inline-block;
        padding: 10px;
    }

    .header1 {
        line-height: 30px;
    }

    .img-item {
        width: 140px;
    }

    .img-item img {
        width: 140px;
    }
}

.ss-thumb-frame,
.ss-thumb-top {
    display: block;
    box-sizing: border-box;
    width: 180px;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 2px solid #1173e4;
    padding: 1px;
    position: relative;
}

.ss-thumb-frame img,
.ss-thumb-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    padding: 0;
}

.ss-thumb-frame img {
    object-position: center;
}

.ss-thumb-top img {
    object-position: top;
}

.boss-thumb-frame {
    display: block;
    box-sizing: border-box;
    width: 180px;
    max-width: 100%;
    min-width: 0;
    border: 2px solid #1173e4;
    padding: 1px;
}

.boss-thumb {
    display: block;
    overflow: hidden;
    width: 100%;
}

.boss-thumb img {
    border: none;
    padding: 0;
    width: calc(100% + 80px) !important;
    max-width: none !important;
    margin-left: -40px !important;
    display: block;
}

/* lightbox */
.lightbox-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.5s ease,
        background 0.2s ease;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 92vw;
    max-height: 96vh;
    transition:
        transform 0.18s ease,
        opacity 0.18s ease;
}

.lightbox-content.dragging {
    transition: none;
}

.lightbox-caption {
    display: none;
    background: #fff;
    box-sizing: border-box;
    width: 550px;
    max-width: 92vw;
    padding: 12px 16px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5em;
    color: #000;
    text-align: center;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.lightbox-caption.visible {
    display: block;
}

.lightbox-overlay.video-active {
    background: rgba(0, 0, 0, 0.95);
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 92vw;
    max-height: 90vh;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
    border: none;
    padding: 0;
    position: relative;
    z-index: 2;
}

.lightbox-img.no-shadow {
    box-shadow: none;
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.6));
}

.lightbox-img.shadow-off {
    box-shadow: none;
    filter: none;
}

.lightbox-video {
    display: none;
    background: #000;
    width: 98vw;
    height: 96vh;
    object-fit: contain;
}

.lightbox-video.active-media {
    display: block;
}

.lightbox-img#lightbox-img.hidden-media {
    display: none;
}

.lightbox-top-bar {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 15px;
    padding: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    background: linear-gradient(rgba(143, 198, 255, 0.65), rgba(143, 198, 255, 0));
}

.lightbox-top-bar.visible {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-btn-group {
    position: absolute;
    z-index: 3;
    display: flex;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.lightbox-btn-group.visible {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    color: #000;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.85);
}

.lightbox-nav {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    width: 18%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    color: #000;
    font-size: 46px;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.lightbox-nav.visible {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-prev {
    left: 0;
    justify-content: flex-start;
    padding-left: 25px;
    background: linear-gradient(90deg, rgba(143, 198, 255, 0.65), rgba(143, 198, 255, 0));
}

.lightbox-next {
    right: 0;
    justify-content: flex-end;
    padding-right: 25px;
    background: linear-gradient(270deg, rgba(143, 198, 255, 0.65), rgba(143, 198, 255, 0));
}

.lightbox-overlay.video-active .lightbox-nav {
    display: none;
}

.lightbox-overlay.video-active .lightbox-top-bar {
    background: none;
    -webkit-mask-image: none;
    mask-image: none;
}
