@font-face {
    font-family: TimesNewPixel;
    src: url('/assets/TimesNewPixel.ttf');
}

@font-face {
    font-family: Seraphim;
    src: url('/assets/Seraphimb1.ttf');
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'TimesNewPixel', serif;
    margin: 0;
    padding: 0;
    background-color: #191919;
    background-size: 65px;
    color: #fceaff;
    background-image: url(/assets/images/lmbda.png);
    overflow-x: hidden;
}

.footer a {
    color: #fceaff;
    text-decoration: underline;
    font-weight: bold;
    font-size: small;
}

.page-header {
    background-color: #141414;
    border: #ff4500 2px solid;
    max-width: fit-content + 10%;
    margin-inline: auto;
}
.page-title {
    font-family: 'Seraphim', serif;
}

.background {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo+EEISaeTr9P3wYrGjXqyC1krcKdhMpxEnt5JetoulscpyzhXN5FR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sgJ1Sop+wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==);
    pointer-events: none;
}
  
#background {
    image-rendering: pixelated;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none; /* Prevent pointer events on this element */
    background-color: rgba(0, 0, 0, 0);
    background-size: 75px 75px;
    animation: scroll 20s linear infinite;
}

#background2 {
    image-rendering: pixelated;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none; /* Prevent pointer events on this element */
    background-color: rgba(0, 0, 0, 0);
    background-size: 75px 75px;
    animation: scroll 35s reverse infinite;
    zoom: 150%;
    opacity: .7;
}
  
@keyframes scroll {
    0% {background-position: 0vw 0vw;}
    100% {background-position: -300px -100vh;}
}

aside {
    background-color: #141414;
    width: 200px;
    padding: 20px;
    font-size: smaller;
}

main {
    background-color: #191919;
    flex: 1;
    padding: 20px;
    order: 2;
}

footer {
    background-color: #0b0b0b;
    width: 100%;
    height: 35px;
    text-align: center;
}

h1,
h2,
h3 {
    color: #ff4500;
}

h1 {
    font-size: 25px;
}

strong {
    color: #ff4500;
}

.box {
    background-color: #070707;
    border: 1px solid #ff4500;
    padding: 10px;
}

#game-iframe {
    border: 1px solid #ff4500;
}
/* CSS for extras */

#topBar {
    width: 100%;
}

@media only screen and (max-width: 800px) {
    #flex {
        flex-wrap: wrap;
    }

    aside {
        width: 100%;
    }
    
    main {
        order: 2;
        width: 100%;
    }

    #linebreak {
        width: 100%;
    }

    #leftSidebar {
        order: 1;
        width: 100%;
    }

    #bottomLine {
        display: none;
    }

    footer {
        width: 100%;
        position: relative;
        bottom: 0;
    }
}

@media only screen and (max-width: 400px) {
    footer {
        font-size: x-small;
    }

    h1 {
        font-size: 20px;
    }

    .box {
        font-size: smaller;
    }
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.box {
    background-color: #070707;
    border: 2px solid #ff4500;
    padding: 20px;
    max-width: 90%;
    box-sizing: border-box;
    text-align: center;
}

.errorquote {
    background-color: #0000;
    border: 2px solid #ff4500;
    padding: 10px;
    width : 100%;
    box-sizing: border-box;
    text-align: center;
    margin: 0 auto;
}

/* Mobile adjustments */
@media only screen and (max-width: 800px) {
    .box {
        width: 100%;
        padding: 10px;
    }
}

a {
    color: #ff4500;
    font-weight: bold;
}

.errtext1 {
    font-size: 500%;
    font-family: 'Seraphim', serif;
}
.errtext2 {
    font-size: 300%;
    font-family: 'Seraphim', serif;
    font-weight: bold;
}

.errtext3 {
    font-size: 200%;
    font-family: 'Seraphim', serif;
}

.errtext4 {
    font-size: 150%;
    font-family: 'Seraphim', serif;
}

#errortext {
    width: 50%;
    text-align: center;
    margin: 0 auto;
}

#fullscreen-btn{
  color:#fff !important;
  background:linear-gradient(135deg,#ff4500 80%,#ff7b00 100%);
  border:1px solid #ff4500;
  text-decoration:none;
  font-weight:600;
  font-size:.95rem;
  letter-spacing:.4px;
  padding:.45rem .75rem;
  border-radius:6px;
  box-shadow:0 2px 4px -1px rgba(0,0,0,.18),0 0 0 1px rgba(255,69,0,.12);
  transition:background .18s,border-color .18s,transform .18s,color .18s;
  text-shadow:0 1px 2px rgba(0,0,0,0.18);
  font-family: Seraphim;
}
#fullscreen-btn:hover{
  background:linear-gradient(135deg,#ff7b00 80%,#ff4500 100%);
  border-color:#ff7b00;
  color:#fff;
}
#fullscreen-btn:active{
  transform:translateY(1px);
  filter:brightness(0.95);
}

.game-action-btn{
  color:#fff !important;
  background:linear-gradient(135deg,#c43400 80%,#e26d00 100%);
  border:1px solid #ff4500;
  text-decoration:none;
  font-weight:600;
  font-size:.65rem;
  letter-spacing:.4px;
  padding:.25rem .55rem;
  border-radius:6px;
  box-shadow:0 2px 4px -1px rgba(0,0,0,.18),0 0 0 1px rgba(255,69,0,.12);
  transition:background .18s,border-color .18s,transform .18s,color .18s;
  text-shadow:0 1px 2px rgba(0,0,0,0.18);
  font-family: Seraphim;
  margin-top: 7px;
}
.game-action-btn:hover{
  background:linear-gradient(135deg,#ff4500 80%,#ff7b00 100%);
  border-color:#ff7b00;
  color:#fff;
}
.game-action-btn:active{
  transform:translateY(1px);
  filter:brightness(0.95);
}

.game-action-link{
    color:#fff;
}

.game-action-buttons{
        display:flex;
        gap:10px;
        flex-wrap:wrap;
        justify-content:center;
        align-items:center;
}

@media (hover: hover) and (pointer: fine) {
    html::-webkit-scrollbar-button:vertical:start:increment,
    html::-webkit-scrollbar-button:vertical:end:decrement,
    html::-webkit-scrollbar-button:horizontal:start:increment,
    html::-webkit-scrollbar-button:horizontal:end:decrement {
        display: none;
    }

    html::-webkit-scrollbar {
        width: 16px;
        height: 16px;
        background-color: #0e0e0e;
    }

    html::-webkit-scrollbar-corner {
        background-color: #0e0e0e;
    }

    html::-webkit-scrollbar-thumb {
        border-radius: 0;
        background-color: #2e2e2e;
        border: 3px solid #0e0e0e;
        box-shadow: inset 1px 1px #3f3f3f, inset -1px -1px #101010;
    }

    html::-webkit-scrollbar-track {
        background-color: #161616;
        border-left: 1px solid #080808;
        border-right: 1px solid #080808;
        box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.55);
    }

    html::-webkit-scrollbar-button {
        background-color: #252525;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 8px;
        border-width: 1px;
        border-style: solid;
        border-color: #3a3a3a;
        border-top-color: #2f2f2f;
        border-left-color: #2f2f2f;
        box-shadow: inset 1px 1px #3f3f3f, inset -1px -1px #0f0f0f;
    }

    html::-webkit-scrollbar-button:start:decrement,
    html::-webkit-scrollbar-button:end:increment {
        display: block;
    }

    html::-webkit-scrollbar-button:start:decrement:active,
    html::-webkit-scrollbar-button:end:increment:active {
        border-color: #888;
        box-shadow: none;
    }

    html::-webkit-scrollbar-button:start:decrement:horizontal:decrement,
    html::-webkit-scrollbar-button:end:increment:horizontal:decrement {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6.86 6.86'%3E%3Cpath fill='%231d1d1b' d='M4.41 4.9v-.98h-.98v-.98h-.98v-.98h-.98v-.98h-.98V6.86h.98v-.98h.98V4.9h.98v-.98h.98v-.98h.98v-.98h-.98z'/%3E%3C/svg%3E");
    }

    html::-webkit-scrollbar-button:start:decrement:horizontal:increment,
    html::-webkit-scrollbar-button:end:increment:horizontal:increment {
        background-image: url("data:image/svg+xml,%3Csvg transform='rotate(180)' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6.86 6.86'%3E%3Cpath fill='%231d1d1b' d='M4.41 2.94v-.98h-.98V.98h-.98V0h-.98V6.86h.98v-.98h.98V4.9h.98v-.98h.98v-.98h-.98z'/%3E%3C/svg%3E");
    }

    html::-webkit-scrollbar-button:start:decrement:vertical:decrement,
    html::-webkit-scrollbar-button:end:increment:vertical:decrement {
        background-image: url("data:image/svg+xml,%3Csvg transform='rotate(270)' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6.86 6.86'%3E%3Cpath fill='%231d1d1b' d='M4.41 2.94v-.98h-.98V.98h-.98V0h-.98V6.86h.98v-.98h.98V4.9h.98v-.98h.98v-.98h-.98z'/%3E%3C/svg%3E");
    }

    html::-webkit-scrollbar-button:start:decrement:vertical:increment,
    html::-webkit-scrollbar-button:end:increment:vertical:increment {
        background-image: url("data:image/svg+xml,%3Csvg transform='rotate(90)' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6.86 6.86'%3E%3Cpath fill='%231d1d1b' d='M4.41 2.94v-.98h-.98V.98h-.98V0h-.98V6.86h.98v-.98h.98V4.9h.98v-.98h.98v-.98h-.98z'/%3E%3C/svg%3E");
    }
}

html.custom-scrollbar-active {
    scrollbar-width: none;
}

html.custom-scrollbar-active,
body.custom-scrollbar-active {
    overscroll-behavior: contain;
}

body.custom-scrollbar-visible {
    padding-right: 16px;
}

.custom-scrollbar {
    position: fixed;
    top: 0;
    right: 0;
    width: 16px;
    height: 100vh;
    background: #121212;
    z-index: 9990;
    display: none;
    flex-direction: column;
    align-items: stretch;
    user-select: none;
}

.custom-scrollbar.is-visible {
    display: flex;
}

.custom-scrollbar-button {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    background-color: #252525;
    border-width: 1px;
    border-style: solid;
    border-color: #3a3a3a;
    border-top-color: #2f2f2f;
    border-left-color: #2f2f2f;
    box-shadow: inset 1px 1px #3f3f3f, inset -1px -1px #0f0f0f;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 8px;
    cursor: pointer;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 0;
}

.custom-scrollbar-button:focus-visible {
    outline: 2px solid #ff4500;
    outline-offset: -2px;
}

.custom-scrollbar-button:active {
    border: 1px solid #888;
    box-shadow: none;
    background-position: 3.2px 3.2px;
}

.custom-scrollbar-button.up {
    background-image: url("data:image/svg+xml,%3Csvg transform='rotate(270)' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6.86 6.86'%3E%3Cpath fill='%231d1d1b' d='M4.41 2.94v-.98h-.98V.98h-.98V0h-.98V6.86h.98v-.98h.98V4.9h.98v-.98h.98v-.98h-.98z'/%3E%3C/svg%3E");
}

.custom-scrollbar-button.down {
    background-image: url("data:image/svg+xml,%3Csvg transform='rotate(90)' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6.86 6.86'%3E%3Cpath fill='%231d1d1b' d='M4.41 2.94v-.98h-.98V.98h-.98V0h-.98V6.86h.98v-.98h.98V4.9h.98v-.98h.98v-.98h-.98z'/%3E%3C/svg%3E");
}

.custom-scrollbar-track {
    flex: 1 1 auto;
    position: relative;
    background-color: #181818;
    background-image:
        linear-gradient(to right, rgba(90, 90, 90, 0.2), rgba(45, 45, 45, 0.1)),
        linear-gradient(to right, #0e0e0e 50%, #1f1f1f 50%),
        linear-gradient(to bottom, #0e0e0e 50%, #1f1f1f 50%);
    background-size: 3px 3px;
    background-blend-mode: normal, difference, normal;
    border-left: 1px solid #101010;
    border-right: 1px solid #101010;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.55);
    padding: 1px 0;
}

.custom-scrollbar-thumb {
    position: absolute;
    left: 1px;
    width: calc(100% - 2px);
    min-height: 30px;
    background-color: #2f2f2f;
    border-width: 1px;
    border-style: solid;
    border-color: #3a3a3a;
    border-top-color: #333333;
    border-left-color: #333333;
    box-shadow: inset 1px 1px #3f3f3f, inset -1px -1px #101010;
    cursor: grab;
    border-radius: 0;
}

.custom-scrollbar-thumb.is-dragging,
body.custom-scrollbar-dragging {
    cursor: grabbing;
}

.custom-scrollbar-thumb::after {
    content: '';
    position: absolute;
    inset: 4px 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
}

@media (hover: hover) and (pointer: fine) {
    .container::-webkit-scrollbar,
    .box::-webkit-scrollbar {
        width: 5px;
        height: 5px;
    }

    .container::-webkit-scrollbar-track,
    .box::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.3);
        -webkit-border-radius: 10px;
        border-radius: 10px;
    }

    .container::-webkit-scrollbar-thumb,
    .box::-webkit-scrollbar-thumb {
        -webkit-border-radius: 10px;
        border-radius: 10px;
        background: rgba(47, 47, 47, 0.3);
        -webkit-box-shadow: none;
    }

    .container::-webkit-scrollbar-thumb:window-inactive,
    .box::-webkit-scrollbar-thumb:window-inactive {
        background: rgba(47, 47, 47, 0.3);
    }
}