@font-face {
    font-family: "Upheaval TT (BRK)";
    src:
            url("/assets/fonts/upheavtt.woff2") format("woff2"),
            url("/assets/fonts/upheavtt.woff") format("woff"),
            url("/assets/fonts/upheavtt.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* optional but recommended */
}

.navbar {
    background-color: #15171a !important;
}

.navbar-brand {
    border-style: none;
}

.navbar-brand #title-icon {
    display: inline-block;
    color: #d8e2eb;
    padding-right: 12px;
}

.navbar-brand #blog-title {
    font-family: "Upheaval TT (BRK)", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 18px;
    text-shadow: 2px 2px #000000;
    line-height: 32px;
    vertical-align: middle;
}

@media (min-width: 768px) {
    .navbar-brand #blog-title {
        font-family: "Upheaval TT (BRK)", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
        font-size: 32px;
    }
}

.navbar .nav-link, .navbar .nav-link:hover, .navbar .nav-link:focus {
    border-style: none;
}

pre {
    border: 1px solid #000;
}

.image-reference {
    position: relative;
    aspect-ratio: 1/1;
    background-color: #000;
    display: inline-block;
    width: 356px;
    margin: 0 8px 12px 0;
    /*padding: 4px;*/
    border-radius: 12px;
    border-width: 4px;
    border-style: solid;
    border-color: #000;
}

.image-reference img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

video {
    background-color: #000;
    border: 4px solid #000;
    border-radius: 24px;
}

.postindex {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    align-items: start; /* top-align cards within their grid row */
    margin-bottom: 1rem;
}

#footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    padding-bottom: 1rem;
    border-top: 1px solid #444;
}

.footer-left { }
.footer-right a { text-decoration: none; }

.footer-bottom {
    flex-basis: 100%;
    text-align: center;
}

ul.custom-pager, ul.custom-post-pager {
    display: flex;
    list-style: none;
    border-radius: .25rem;
    padding-left: 0;
    margin: 0.5rem 0;
}

ul.custom-pager li.previous {
    margin-right: auto;
    display: inline;
}

ul.custom-pager li.next {
    margin-left: auto;
    display: inline;
}

ul.custom-post-pager li.previous {
    margin-left: auto;
    display: inline;
}

ul.custom-post-pager li.next {
    margin-right: auto;
    display: inline;
}

.game-placeholder {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
}

.game-placeholder button {
    background: #363b42;
    color: #ccc;
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: background 0.3s;
}

.game-placeholder button:hover {
    background: #4d5663 !important;
    transform: scale(1.05);
}

.game-placeholder button:active {
    transform: scale(0.95);
}

.term-definition {
    color: #ccc;
    text-decoration: underline dotted;
    text-decoration-color: #5670d4;
    cursor: default;
    border: none;
}

.term-definition:hover {
    text-decoration-color: #6b84e0;
}

.card-text {
    margin-top: 0;
    margin-bottom: 1rem;
}

.fade-out {
    -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
    height:  100px;
    overflow-y: scroll;
    padding-bottom: 1rem;
}

.btn.disabled {
    color: #999;
}

.tags > li a {
    color: #999;
    background-color: #383d42;
}

.post-text h3, .post-text h4, .post-text h5, .post-text h6 {
    color: #ffffff;
    text-shadow: 0 0 2px #000000;
}

.card-img-link,
.image-reference {
    /*display: block;*/
    overflow: hidden;
}

.card-img-link .card-img-top,
.image-reference > img {
    transition: transform 0.3s ease;
}

.card-img-link:hover .card-img-top,
.image-reference:hover > img {
    transform: scale(1.07);
}

@media (prefers-reduced-motion: reduce) {
    .card-img-link .card-img-top,
    .image-reference img {
        transition: none;
        transform: none;
    }
}

.card {
    overflow: hidden;
}
