

    html {
        --mapBackground: #2a2d31;
        --mapIconOpacity: 1;
        --mapIconFilter : none;
        --inverseFilter : none;
        
    }
    .bigBackground {
        background-color: var(--mapBackground);
        position:absolute;
        width:100%;
        height:100%;
        left:0;
        top:0;
        z-index:-4;
        filter: var(--mapIconFilter);
        --webkit-filter: var(--mapIconFilter);
    }

    /* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 18px;
    transform:translateY(-10px);
}

/* Hide default HTML checkbox */
.switch input {
opacity: 0;
width: 0;
height: 0;
}

/* The slider */
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}

.slider:before {
position: absolute;
content: "";
height: 13px;
width: 13px;
left: 2px;
bottom: 3px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}

input:checked + .slider {
background-color: #2196F3;
}

input:focus + .slider {
box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
-webkit-transform: translateX(13px);
-ms-transform: translateX(13px);
transform: translateX(13px);
}

/* Rounded sliders */
.slider.round {
border-radius: 34px;
}

.slider.round:before {
border-radius: 50%;
}

    
    @keyframes arrive {
        0% {
            opacity: 0.05;
            transform: translateX(50px);
        }
        100% {
            opacity: 1;
            transform: translateX(0px);
        }
    }
    @keyframes glint {
        0% {
            background-color:#fff0;
        }
        50% {
            background-color: #fff2;
        }
        100% {
            background-color: #fff0;
        }
    }
    .importantRed { color:red !important; }
    .importantGrey { color: grey !important; }
    .importantRed span { color:red !important; }
    .importantGrey span { color: grey !important; }
    
    .entInfoBit {
        display:inline-block;
        background-color: #222;
        margin:2px;
        margin-right:7px;
        margin-left:0px;
        padding: 4px;
        border:2px solid #555;
        
    }
    .prefab {
        display:none;
    }
    .entInfoBit .left {
        color: #aaa;
        /* background-color: #fff1; */
        /* display:inline; */
    }
    .entInfoBit .right {
        padding-left: 4px;
        white-space: pre;
        /* background-color: #fff2; */
        /* display:inline; */
    }
    .list-hover {
        opacity: 0;
        color: grey;
        margin-left:5px;
    }
    .expander {
        position:absolute;
        right:5px;
        top:5px;
        cursor: pointer;
    }
    .expander:hover {
        background-color: #fff3;
    }

    @keyframes fly-back-forth {
        0% {
            transform: translateX(0) translateY(0); /* Starting position */
        }
        16.6% {
            transform: translateX(3px) translateY(-2px);
        }
        33.2% {
            transform: translateX(5px) translateY(2px);/* Move 50px to the right */
        }
        66.6% {
            transform: translateX(-3px) translateY(-2px); /* Move 50px to the right */
        }
        83.2% {
            transform: translateX(-5px) translateY(2px);/* Return to starting position, completing one cycle */
        }
        100% {
            transform: translateX(0) translateY(0); /* Starting position */
        }
    }

    @keyframes bob-left-and-right {
        0% {
        transform: translateX(0); /* Starting position */
        }
        1% {
        transform: translateX(0); /* Starting position */
        }
        2% {
        transform: translateX(5px); /* Move 50px to the right */
        }
        20% {
        transform: translateX(5px); /* Move 50px to the right */
        }
        21% {
        transform: translateX(0); /* Return to starting position, completing one cycle */
        }
    }
    @keyframes attack {
        0% {
        transform: translateX(0); /* Starting position */
        }
        15% {
        transform: translateX(54px); /* Move 50px to the right */
        }
        26% {
        transform: translateX(5px); /* Move 50px to the right */
        }
        40% {
        transform: translateX(0); /* Return to starting position, completing one cycle */
        }
    }

    @keyframes asciiFrames {
        0% {
            transform: translateY(0);
        }
        24% {
            transform: translateY(0);
        }
        25% {
            transform: translateY(-3px);
        }
        49% {
            transform: translateY(-3px);
        }
        50% {
            transform: translateY(-6px);
        }
        74% {
            transform: translateY(-6px);
        }
        75% { 
            transform: translateY(-3px);
        }
        99% {
            transform: translateY(-3px);
        }
        100% {
            transform: translateY(0px);
        }
    }

    .list-player {
        background-color: #fff2;
    }
    .asciimate {
        margin: 0;
        animation: asciiFrames 1s linear infinite;
        /* color: red; */
        display:inline-block;
        width:11px;
        height: 15px;
        box-sizing:border-box;
    }

    .titleAscii {
        display:block;
        box-sizing: border-box;
        height: 240px;
    }
    /* width */
    ::-webkit-scrollbar {
        width: 10px;
        display: none;
    }

    /* Track */
    ::-webkit-scrollbar-track {
        background: #f1f1f110;
        display: none;
    }

    /* Handle */
    ::-webkit-scrollbar-thumb {
        background: #888;
        display: none;
    }

    .capColor {
        color: #f80;
    }
    .numColor {
        color: #5bd;
    }
    .quoteColor {
        color: #9ff;
    }

    a {
        color: #9ff;
    }

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #555;
        display: none;
    }

    html {
        overscroll-behavior-x: contain;
        overflow-y:hidden;
        overflow-x:hidden;
        height:100%;
        overscroll-behavior-y:contain;
    }

    body {
        tab-size:1;
        position:absolute;
        overscroll-behavior-x: contain;
        overscroll-behavior-y:contain;
        color: #dbdee1;
        width: 101%;
        height: 100%;
        margin:0;
        overflow-y:hidden;
        overflow-x: hidden;
        font-size: 11.5pt;
        --base-font-size:11.5pt;
        background-color: var(--mapBackground);
        font-family: softsquare, Consolas, Monaco, monospace;
    }

    

    @font-face {
        font-family: softsquare;
        src: url("../fonts/ChevyRay - Softsquare Mono 9.ttf");
    }
    @font-face {
        font-family: thicket;
        src: url("../fonts/ChevyRay - Thicket Mono 12.ttf");
    }

    .commandHelpBtn {
        background-color: #fff5;
        opacity: 0.3;
        margin:0;
        z-index:5;
        padding:0;
        margin-left:3px;
        padding-left:2px;
        padding-right:2px;
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;;
    }
    
    .commandHelpBtn:hover {
        opacity: 1;

    }

    .mapHoverIcon {
        width: auto;
        height: 50%;
        margin-top:7px;
    }
    .mapDetails {

        margin:0;
        width: fit-content;
        min-width: 150px;
        top:-65px;
        left: 15px;
        border-radius:5px;
        background-color: #2a2d31bb;
        position:relative;
        margin-bottom:-40px;
        height: 30px;
    }
    .mapElement.disabled:hover {
        cursor:inherit;
        opacity: 1;
        background-color: inherit;
    }
    .mapElement:hover {
        cursor: pointer;
        opacity: 0.7;
        background-color: #fff2;
    }

    .mainContainer {

        height: 101dvh;
        width: 100dvw;
        margin: auto;
        margin-left: 0;
        margin-right: 0;
        overflow-x: scroll;
        overflow-y:hidden;
        /* overflow-y: hidden; */
        scroll-padding-left: 5px;
        scroll-padding-right: 5px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-snap-stop: always;
        display: flex;
        transform: translate3d(0,0,0);
    }

    @keyframes shake {
    0%   { transform: translate3d(0,0,0); }
    10%  { transform: translate3d(-8px, 6px,0); }
    20%  { transform: translate3d(7px,-5px,0); }
    30%  { transform: translate3d(-6px,-7px,0); }
    40%  { transform: translate3d(6px, 7px,0); }
    50%  { transform: translate3d(-4px, 5px,0); }
    60%  { transform: translate3d(4px,-4px,0); }
    70%  { transform: translate3d(-3px,-3px,0); }
    80%  { transform: translate3d(3px, 3px,0); }
    90%  { transform: translate3d(-2px, 2px,0); }
    100% { transform: translate3d(0,0,0); }
    }

    .shake {
    will-change: transform;
    animation: shake 250ms linear;
    }

    .container {
        position:relative;
        margin: 0;
        padding: 7px;
        padding-left: 2px;
        padding-right: 5px;
        scroll-snap-stop: always;
        scroll-snap-align: center;
        height: 98%;
    }
    .container.mainLogsContainer {
        z-index:-10;
    }
    .containerCommands {

    }
    .mainLogsModule {
        height:100%;
    }

    .containerBox {
        overflow-x:hidden;
        text-wrap:break-word;
        position:relative;
        padding:2px;
        border:2.2px solid #fff2;
        margin: 0;
        height: 98%;
        box-shadow: 2px 2px 5px #0002;
        display: flex;
        justify-content:flex-start;
        align-content:flex-start;
        /* overflow: hidden; */
        flex-direction: column;
    }

    .containerBox.nearby {
        overflow-y:scroll;
    }
    .containerBox.inventory {
        overflow-y:scroll;
    }

    .playContainer {
        width: 65%;
        resize: horizontal;
        overflow: auto;
        padding: 5px;
    }

    .mapContainer {
        width: auto;
        padding: 5px;


    }

    .mapAndMapDetails {
        /* height: fit-content; */
        aspect-ratio: 1;
        margin-bottom: 0px;
    }
    .map {
        width: 97%;
        aspect-ratio: 1;
        margin: 2% auto;
        /* background-color: var(--mapBackground); */
        /* background-color: var(--mapBackground); */
        border-radius: 5px;
        /* position:relative; */
        z-index:25;
        
    }
    .moon {
        isolation:isolate;
        position:relative;
        font-size:x-large;
        padding-right:10px;
    }
    .mapOverlay {
        mix-blend-mode:soft-light;
        background-color: #25a8;
        opacity:0;
        position:absolute;
        width:500%;
        height:200%;
        z-index:50;
        top:-100;
        left:0;
        pointer-events: none;
    }
    .bigMapContainer {
        position: absolute;
        left: 5%;
        top: 5%;
        width: 90%;
        height: 90%;
        display:none;
        z-index: 40;
        border: 1px solid grey;
        overflow:scroll;
        text-wrap:nowrap;
        padding:6px;
        background-color: var(--mapBackground);
    }
    .LogEnt {
        background-color: #fff2;
        padding:2px;
        padding-left:9px;
        cursor:pointer;
    }
    .LogEnt:hover {
        background-color: #fff4;
    }
    .bigMap {
        width:990;
        height: 990;
        overflow: scroll;
    }
    .bigMap .mapIcon {
        width: 8px;
        height: auto;
        image-rendering: pixelated;
    }

    img {
        image-rendering: pixelated;
    }

    .mapElement {
        position:relative;
        aspect-ratio:1;
        display:inline-block;
        background-color: var(--mapBackground);
    }
    .mapElement.magic {
        filter: hue-rotate(-110deg) sepia(20%);
    }

    img.mapElementIcon {
        position:absolute;
        image-rendering: pixelated;
        width: 100%;
        height:100%;
        left:0;
        top:0;
        filter: var(--mapIconFilter);
        --webkit-filter: var(--mapIconFilter);
        /* filter: var(--mapIconFilter);
            --webkit-filter: var(--mapIconFilter); */
    }
/*         
    .map img.mapElementIcon {
        position: absolute;
        display:block;
        top:0;
        left:0;
        z-index:5;
        width: 100%;
        height: 100%;
        background-color: red;
    } */
    .logContainerBox {
        overflow-y:scroll;
        overflow-x:hidden;
        height: calc(100% - 40px);
        justify-content: reverse;
    }
    .mainLogsGradient {
        background-image:linear-gradient(to bottom,  var(--mapBackground),var(--mapBackground), #0000);
        position:absolute;
        width:100%;
        z-index:-2;
        height:100%;
    }
    .logContainer {
        min-height:100%;
        position: relative;
        display: flex;
        flex-direction: column;
        overflow-x:visible;
        overflow-y: visible;
    }
    .nearby .logContainer {
        min-height:20%;
    }
    .inventory .logContainer {
        min-height: 20%;
    }
    .reverse {
        justify-content: flex-end;
    }
    .logDiv {
        width: 95%;
        white-space: pre-wrap;
        margin: 3px;
        margin-top: 3px;
        border: 1px solid #fff1;
        padding: 5px;
        border-radius: 2px;
        background-color: #0001;
    }
    .noise {
        display:inline-block;
        padding-left:10px;
        margin-left:10px;
    }
    .para {
        padding:0px;
        margin:0px;
        padding-left:15px;
        text-indent:-15px;
        display: block;
    }
    .list-elem-button {
        cursor: pointer;
        pointer-events: none;
    }
    span.list-elem-button:hover {
        background-color: #fff3;
        opacity:0.8;
    }
    span.list-elem-button.chromaText {
        animation: chromaTextAnim 2.5s normal infinite;
    }
    .list-elem.hovered .list-elem-button {
        animation: buttonPulse 0.6s normal infinite;
        cursor: pointer;
        pointer-events: all;
    }
    .list-elem:hover .list-elem-button {
        animation: buttonPulse 0.6s normal infinite;
        cursor: pointer;
        pointer-events: all;
    }
    .list-elem.hovered .list-elem-button {
        pointer-events: all;
    }
    @keyframes chromaTextAnim {
        0% {
            color: #f66;
        }
        16% {
            color: #ff6;
        }
        33% {
            color: #6f6;
        }
        49% {
            color: #6ff;
        }
        66% {
            color: #66f;
        }
        83% {
            color: #f6f;
        }
        100% {
            color: #f66;
        }
    }
    @keyframes buttonPulse {
        0% {
            background-color: #fff0;
        }
        50% {
            background-color: #fff4;
        }
        100% {
            background-color: #fff0;
        }
    }
    @keyframes mapElemPulse {
        0% {
            background-color: #fff0;
        }
        50% {
            background-color: #fff7;
        }
        100% {
            background-color: #fff0;
        }
    }
    .list-elem {
        /* cursor:pointer; */
        /* overflow-x: hidden; */
        text-wrap:break-word;
        display:block;
        width: 100%;
        white-space: pre;
        /* height:1.45em; */
        user-select: none;
        -webkit-user-select: none; /* For Safari, Chrome */
        -moz-user-select: none;    /* For Firefox */
        -ms-user-select: none; 
    }
    .littleDiv {
        width: 95%;
        margin: 3px;
        margin-top: 3px;
        border: 1px solid #fff1;
        padding: 5px;
        border-radius: 2px;
        background-color: #0001;
    }

    .logDiv.preline {
        white-space: pre-line;
    }

    .typingContainer {
        height: 40px;
        overflow: hidden;
        padding: 0px;
        margin: 0px;
        padding: 0px;
        align-items: center;
        display:flex;
        align-content: start;
        border: 1px solid #fff1;
        background-color:#444;
        z-index:10;
    }

    .inpp {
        font-size:medium;
        font-family: softsquare;
        background-color:black;
        height: 100%;
        /* padding: 8px; */
        padding-left:5px;
        padding-top:25px;
        color:#fff8;
    }
    input.inp {
        margin: 0px;
        display: block;
        border-radius: 0px;
        padding: 8px;
        min-width: 80%;
        height: 100%;
        border: 0;
        font-size:medium;
        font-family: softsquare;
        background-color:black;
        color:white;
    }
    textarea:focus, input:focus{
        outline: none;
    }

    .inpButton {
        width: auto;
        height: 100%;
        padding:0px;
        margin:0px;
        margin:auto;
        margin-top:0px;
        margin-bottom:0px;
        display: block;
    }
    .inpButton:hover{
        cursor: pointer;
    }

    .dirButtons {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        width: 70%;
        margin: auto;
        height: auto;
    }

    .playerInfo {
        background-color: #0002;
        padding: 5px;
        /* vertical-align: bottom; */
    }
    .timeInfo {
        background-color: #0002;
        padding: 5px;
        /* height: 1.25em; */
        min-height:1.25em;
    }

    .dirButton {
        background-color: #fff1;
        border-radius: 5px;
        width: 70%;
        margin: auto;
        margin-bottom: 5px;
        box-shadow: 1px 1px 3px #0002;
    }

    .bigLog {
        
    }

    .dirButton:hover {
        cursor: pointer;
        background-color: #ffffff18;
    }

    .dirButton svg {
        display: block;
        margin: auto;
        width: 50%;
        opacity: 0.3;
        height: auto;
    }

    .titleAll {
        display: flex;
        
        /* justify-content: flex-start; */
        justify-content:center;
        white-space: pre-wrap;
        margin-inline:auto;
        width: 100%;
    }
    .titleLetter {
    }

    .title-modal {
        background-color: #2a2d31ff;
        border: 4px solid #555;
        padding: 20px;
        position: absolute;
        white-space: pre-wrap;
        z-index: 100;
        left: 0;
        right:0;
        margin-inline:auto;
        width: 80%;
        top:7%;
        bottom:0;
        height:fit-content;
        max-width: 100dvw;
        max-height: 100dvh;
        font-size: clamp(4px, 1.2vw, 12px);
    }

    .title-modal-bg {
        position:absolute;
        z-index:99;
        width:100%;
        height:100%;
        background-color: #2a2d31aa;
    }

    .tickStatus {
        position: absolute;
        left: 20px;
        top: 30px;
        background-color: #0005;

        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 10px;
        color: white;
    }
    .commandList {

    }
    .commandButton {
        text-indent:0;
        display: inline-block;
        margin: 2px;
        margin-right: 1px;
        padding:2px;
        border-radius: 4px;
        opacity: 1;
        background-color: #479;
    }
    .commandButton.btnGrey {
        background-color: #444;
    }
    .nearby .commandButton {
        margin:0px;
    }
    .inventory .commandButton {
        margin: 0px;
    }
    .commandButton.cmdBtn2 {
        display:inline;
    }
    .commandButton:hover {
        opacity: 1;
        cursor: pointer;
        background-color: #6ae;
    }
    .commandButton.btnGrey:hover {
        background-color: #666;
    }
    .bigMap {

    }
    .fullBg {
        position:absolute;
        display:none;
        width:110%;
        height:110%;
        left:-10px;
        top:-10px;
        background-color: #fff1;
    }