﻿body {
    font-family: "Pixelify Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: white;
    margin: 0;
    padding: 0;
    overflow: hidden;
}


/* - Common ------------------------------------------------ */
.centerContainer {
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.centerVContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.centerHContainer {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* - Game --------------------------------------------------- */
.game {
    margin: 0;
    padding: 0;
    position: absolute;
    width: 100vw;
    height: 100vh;
    background: black;
    z-index: 1;
}

.fullScreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

.resources {
    position: absolute;
    display: none;
    /*
    top: 100vh;
    z-index: 999;
    display: block;
    */
}


.divZoom {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
}


.pnlLayer {
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}


/* - Terminal -------------------------------------------------- */
.terminalWindow {
    overflow: hidden;
    width: 300px;
    max-width: 90vw;
    height: 300px;
    max-height: 50vh;
    font-size: 12px;
    z-index: 101;
    position: relative;
    top: -20px;
    margin: 0 0 -20px 0;
}

.terminalHeader {
    font-size: 18px;
    font-weight: bold;
    color: blue;
}

.terminalText {
    width: Calc(100% - 16px);
    height: Calc(100% - 25px);
    font-size: 16px;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #000000 #d8d8d8;
    word-wrap: break-word;
}

.terminal-input-dummy {
    display: block;
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: Calc(100% - 36px);
    height: 99%;
    background-color: transparent;
    color: transparent;
    border: none !important;
    border-color: white !important;
    box-sizing: unset !important;
    outline: none;
}

    .terminal-input-dummy:focus {
        outline: none;
    }

.terminal-prompt {
    width: 14px;
    display: inline-block;
}

.terminal-cursor {
    animation: toggleVisibility .3s step-start infinite;
    margin-left: -4px;
    width: 8px;
    display: inline-block;
}

@keyframes toggleVisibility {
    0%, 100% {
        visibility: visible;
    }

    50% {
        visibility: hidden;
    }
}


/* - Top Bar and menu ------------------------------------------ */
.topBar {
    position: fixed;
    z-index: 400;
    top: 0;
    left: 0;
    background-color: #c0c0c0;
    z-index: 10;
    width: 100vw;
    padding: 8px;
    overflow-x: hidden;
}

.barHr {
    position: absolute;
    bottom: 0px;
    left: -8px;
    width: 110vw;
    height: 8px;
    margin: 0;
    padding: 0;
}


.location {
    position: fixed;
    right: 8px;
    top: 0px;
}

.areaName {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: -5px;
    width: 100%;
    text-align: right;
}

.streetName {
    font-size: 16px;
    margin-bottom: -5px;
    width: 100%;
    text-align: right;
}

.menu {
    position: fixed;
    top: 40px;
    left: 8px;
    z-index: 410;
    background: #c0c0c0e0;
    padding: 10px;
    border: 2px solid black;
    box-shadow: #ffffff22 5px 5px;
    border-radius: 5px;
    font-size: 18px;
    width: 200px;
}

    .menu ul {
        margin-bottom: 0px;
        padding-left: 0;
    }

.mnuItem {
    position: relative;
    list-style-type: none;
    cursor: pointer;
    padding: 3px 8px;
    transition: background .3s;
    height: 36px;
}

    .mnuItem span {
        position: absolute;
        left: 50px;
        top: 6px;
    }

    .mnuItem:hover {
        background-color: #212529;
        color: #c0c0c0;
    }

    .mnuItem img {
        display: block;
        position: absolute;
        transition: opacity .25s;
    }

        .mnuItem img.mnuNormal {
            opacity: 1;
        }


        .mnuItem img.mnuHover {
            opacity: 0;
        }

    .mnuItem:hover img.mnuNormal {
        opacity: 0;
    }

    .mnuItem:hover img.mnuHover {
        opacity: 1;
    }


/* - Icons bar ------------------------------------------------- */

.iconMain {
    position: fixed;
    z-index: 401;
    background-color: #c0c0c0e0;
    border: 2px solid #000000;
    box-shadow: #ffffff22 2px 2px;
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
    width: 72px;
    height: 72px;
}

    .iconMain:hover {
        background-color: #212529;
        color: #c0c0c0;
    }

    .iconMain img {
        display: block;
        position: absolute;
        transition: opacity .25s;
    }

        .iconMain img.mnuNormal {
            opacity: 1;
        }


        .iconMain img.mnuHover {
            opacity: 0;
        }

    .iconMain:hover img.mnuNormal {
        opacity: 0;
    }

    .iconMain:hover img.mnuHover {
        opacity: 1;
    }


/* - Player icons ---------------------------------------------- */
.playerIcon {
    position: fixed;
    z-index: 500;
    background-color: #c0c0c0e0;
    border: 2px solid #000000;
    box-shadow: #ffffff22 2px 2px;
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: none;
}

    .playerIcon:hover {
        background-color: #212529;
        color: #c0c0c0;
    }

    .playerIcon img {
        display: block;
        position: absolute;
        transition: opacity .25s;
        width: 16px;
        height: 16px;
        left: 6px;
        top: 5px;
    }

        .playerIcon img.mnuNormal {
            opacity: 1;
        }


        .playerIcon img.mnuHover {
            opacity: 0;
        }

    .playerIcon:hover img.mnuNormal {
        opacity: 0;
    }

    .playerIcon:hover img.mnuHover {
        opacity: 1;
    }

.iconEnter {
    background-color: #00FF21;
}

.iconUse {
    background-color: #a48ae6;
}

.iconChat {
    background-color: #e23333;
}


/* - Chat ------------------------------------------------------ */
.chatMain {
    position: fixed;
    margin: 0;
    padding: 0;
}

.chatText {
    max-width: 40vw;
}

@media screen and (max-width: 500px) {
    .chatText {
        max-width: 80vw;
    }
}


/* - Common and Helpers -------------------------------------- */
.cursor-pointer {
    cursor: pointer;
}


.working {
    position: fixed;
    background-color: #ffffffe0;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}


.closeButton {
    position: absolute;
    top: -2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background-color: red;
    border-radius: 50%;
    color: white;
    padding: 0px 5px;
    text-align: center;
}


    .closeButton span {
        position: relative;
        top: -3px;
    }



/* - Globe ------------------------------------------------------ */
.globe {
    position: fixed;
    display: none;
    max-width: 300px;
    min-width: 150px;
    z-index: 502;
    border: 2px solid gray;
    border-radius: 8px;
    box-shadow: #ffffff22 2px 2px;
    background-color: white;
    color: black;
    padding: 4px 4px 8px 8px;
}


.iconClose {
    position: relative;
    float: right;
    color: red;
    cursor: pointer;
    margin: -2px 2px 0px 0px;
    z-index: 503;
}


/* - Virtual Joystick --------------------------------------------- */
.virtualJoy {
    display: none;
    position: fixed;
    width: 64px;
    height: 64px;
    z-index: 500;
    transform-origin: 32px 32px;
}

    .virtualJoy img {
        width: 64px;
        height: 64px;
    }


/* - Phone -------------------------------------------------------- */
.phoneMain {
    display: none;
    position: fixed;
    bottom: 8px;
    right: 8px;
    width: 160px;
    height: 320px;
    z-index: 450;
    margin: 0;
    padding: 28px 16px 36px 16px;
    background-image: url(../images/Phone/Framework1.4x.png);
    background-repeat: no-repeat;
}


.phoneDesktop {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #71afee 0%, #4296ea 50%, #1861ac 100%);
    gap: 2px;
}


.phoneHeader {
    width: 100%;
    background-color: white;
    font-size: 8px;
}


.phoneIcons {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 4px;
}


.phoneIcon {
    margin: 4px;
    width: 32px;
}

.phoneIconTitle {
    text-align: center;
    font-size: 10px;
    width: 32px;
    overflow: hidden;
}


.phoneNotificactionNumber {
    z-index: 450;
    position: absolute;
    right: 5px;
    top: 0px;
    padding: 3px;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
}

.phoneNotificactionNumber2 {
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 11px;
}
