@font-face {
    font-family: 'PressStart2P-Regular';
    src: url('/font/PressStart2P-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SuperPlumberBrothers';
    src: url('/font/SuperPlumberBrothers-y00V.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@keyframes fadeOutBlood {
    0% {
        opacity: 0.88;
    }
    100% {
        opacity: 0;
    }
}

@keyframes fadeInPuddles {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 0.9;
    }
}

@keyframes fadeOutPuddles {
    0% {
        opacity: 0.9;
    }
    100% {
        opacity: 0;
    }
}

html {
    width: 100%;
    height: 100%;
}

body {
    width: 100%;
    height: 100%;
    /* background-image: url("/img/bg/blood.jpg");
    background-size: cover; */
    background-color: #666666;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
}

.canvas-all{
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);   
    border-radius: 5px;
}

#preload-font {
    font-family: PressStart2P-Regular !important;
    font-size: 8px;    
    opacity:0;
    height:0;
    width:0;
    display:inline-block;
}

#preload-font2 {
    font-family:  SuperPlumberBrothers-y00V !important;
    font-size: 8px;    
    opacity:0;
    height:0;
    width:0;
    display:inline-block;
}

#lobby-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    width: 320px;
    height: 240px;
    background: linear-gradient(#1a0a2e, #16213e, #0f3460);
    border-radius: 5px;
    z-index: 10000;
    overflow: hidden;
    padding-top: 10px;
    box-sizing: border-box;
}

#lobby-title {
    font-family: PressStart2P-Regular;
    font-size: 12px;
    color: #33ff00;
    margin-bottom: 4px;
    text-shadow: 2px 2px #000;
}

#lobby-subtitle {
    font-family: PressStart2P-Regular;
    font-size: 5px;
    color: #aaaaaa;
    margin-bottom: 8px;
}

#lobby-rooms {
    width: 280px;
    height: 120px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 6px;
}

.lobby-room-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a3e;
    border: 1px solid #33ff00;
    border-radius: 3px;
    padding: 4px 6px;
    cursor: pointer;
    min-height: 16px;
}

.lobby-room-item:hover {
    background: #2a2a5e;
}

.lobby-room-name {
    font-family: PressStart2P-Regular;
    font-size: 5px;
    color: #ffffff;
}

.lobby-room-count {
    font-family: PressStart2P-Regular;
    font-size: 5px;
    color: #33ff00;
}

.lobby-room-full {
    border-color: #ff3333;
    opacity: 0.5;
    cursor: not-allowed;
}

#lobby-create {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-bottom: 6px;
}

#lobby-input {
    width: 160px;
    height: 16px;
    font-family: PressStart2P-Regular;
    font-size: 5px;
    color: #ffffff;
    background: #1a1a3e;
    border: 1px solid #33ff00;
    border-radius: 3px;
    padding: 2px 4px;
    outline: none;
    text-transform: uppercase;
}

#lobby-input::placeholder {
    color: #555;
}

.lobby-btn {
    font-family: PressStart2P-Regular;
    font-size: 5px;
    color: #000;
    background: #33ff00;
    border-radius: 3px;
    padding: 4px 8px;
    cursor: pointer;
    text-align: center;
}

.lobby-btn:hover {
    background: #55ff33;
}

#lobby-rooms:empty::after {
    content: 'NO ROOMS YET - CREATE ONE!';
    font-family: PressStart2P-Regular;
    font-size: 5px;
    color: #555;
    text-align: center;
    padding-top: 40px;
}

#canvas-undo {
    display: inline-block;
    position: absolute;
    background-color: transparent;
    border-radius: 5px;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    /* image-rendering: optimizeQuality; */
    opacity: 0;
}

#canvas {
    display: inline-block;
    position: absolute;
    background-color: #0f0f0f;
    border-radius: 5px;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    /* image-rendering: optimizeQuality; */
    font-smooth: never;
    -webkit-font-smoothing : none;
}

#puddles {
    display: inline-block;
    position: absolute;
    width: 320px;
    height: 240px;
    border-radius: 5px;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    font-smooth: never;
    -webkit-font-smoothing : none;
    filter: saturate(130%) brightness(110%);
    background-image: 
    repeating-linear-gradient(#00000000 0,#00000000 40px, #00000000 40px, #00000000 100%);
    opacity: .9;
}

#canvas-splatter {
    display: inline-block;
    position: absolute;
    background-color: transparent;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    font-smooth: never;
    -webkit-font-smoothing : none;
    filter: saturate(130%) brightness(110%);
}

#canvasBg {
    display: inline-block;
    position: absolute;
    background-color: transparent;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    /* image-rendering: optimizeQuality; */
    font-smooth: never;
    -webkit-font-smoothing : none;
}

#canvas-tag {
    display: inline-block;
    position: absolute;
    background-color: transparent;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    font-smooth: never;
    -webkit-font-smoothing : none;
}

#canvas-tag-visible {
    display: inline-block;
    position: absolute;
    background-color: transparent;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    font-smooth: never;
    -webkit-font-smoothing : none;
}

#canvas-remote-players {
    display: inline-block;
    position: absolute;
    background-color: transparent;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

#remote-chat-div {
    display: inline-block;
    position: absolute;
    width: 320px;
    height: 240px;
    background-color: transparent;
    overflow: hidden;
    pointer-events: none;
}

.remote-bubble {
    position: absolute;
    width: 28px;
    padding: 5px;
    height: 15px;
    text-align: center;
    color: black;
    background: linear-gradient(#d1d1ff,#8e95f8,#279dd3);
    border-radius: 10px;
    border: solid 1px #0066ff;
    outline: solid 1px #081d77;
    pointer-events: none;
}

.remote-bubble::before {
    content: "";
    position: absolute;
    top: 14px;
    left: -5.7px;
    height: 1px;
    padding-top: 2.3px;
    padding-left: 1px;
    padding-right: 3px;
    padding-bottom: 3.1px;
    border-left: 1px solid #0066ff;
    border-right: 1px solid #0066ff;
    border-radius: 0px 0px 15px 0px;
    background-color: #5ea1c0;
    transform: rotate(83deg);
}

.remote-bubble-text {
    position: relative;
    bottom: 6px;
    right: 1px;
    width: 22px;
    height: 21px;
    width: 30px;
    margin: 1em auto 5px;
    font-family: PressStart2P-Regular;
    color: #000000;
    font-size: 3px;
    text-align: center;
    word-wrap: break-word;
    background: transparent;
    overflow: hidden;
    border-radius: 1px;
    pointer-events: none;
}

#canvas-hero {
    display: inline-block;
    position: absolute;
    background-color: transparent;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    /* image-rendering: optimizeQuality; */
}

#chat-div {
    display: inline-block;
    position: absolute;
    width: 320px;
    height: 240px;
    background-color: transparent;
    overflow: hidden;
}

#chat-bubble {
    position: relative;
    width: 28px;
    padding: 5px;
    height: 15px;
    margin: 1em auto 5px;
    text-align: center;
    color:black;
    background: linear-gradient(#d1d1ff,#8e95f8,#279dd3);
    border-radius: 10px;
    border: solid 1px #0066ff;/* was #2600ff or #0066ff*/
    outline: solid 1px #081d77;
    opacity: 0;
}

/* creates part of the curve */
#chat-bubble::before {
    content: "";
    position: absolute;
    top: 14px;
    left: -5.7px;
    height: 1px;
    padding-top: 2.3px;
    padding-left: 1px;
    padding-right: 3px;
    padding-bottom: 3.1px;
    border-left: 1px solid #0066ff;
    border-right: 1px solid #0066ff;
    border-radius: 0px 0px 15px 0px;
    background-color: #5ea1c0;
    transform: rotate(83deg);
}

#chat-text {
    position: relative;
    bottom: 6px;
    right: 1px;
    width: 22px;
    height: 21px;
    width: 30px;
    margin: 1em auto 5px;
    font-family: PressStart2P-Regular;
    color: #000000;
    font-size: 3px;
    text-align: center;
    word-wrap: break-word;
    color:black;
    background: transparent;
    overflow: hidden;
    border-radius: 1px;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    /* image-rendering: optimizeQuality; */
}

#canvas-zombie1 {
    display: inline-block;
    position: absolute;
    background-color: transparent;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    /* image-rendering: optimizeQuality; */
}

#canvas-buffer-1 {
    display: inline-block;
    position: absolute;
    background-color: transparent;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    /* image-rendering: optimizeQuality; */
}

#canvas-buffer-2 {
    display: inline-block;
    position: absolute;
    background-color: transparent;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    /* image-rendering: optimizeQuality; */
}

#canvas-buffer-3 {
    display: inline-block;
    position: absolute;
    background-color: transparent;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    /* image-rendering: optimizeQuality; */
}

#canvas-buffer-4 {
    display: inline-block;
    position: absolute;
    background-color: transparent;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    /* image-rendering: optimizeQuality; */
}

#canvas-buffer-5 {
    display: inline-block;
    position: absolute;
    background-color: transparent;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    /* image-rendering: optimizeQuality; */
}

#canvas-buffer-6 {
    display: inline-block;
    position: absolute;
    background-color: transparent;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    /* image-rendering: optimizeQuality; */
}

#canvas-buffer-7 {
    display: inline-block;
    position: absolute;
    background-color: transparent;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    /* image-rendering: optimizeQuality; */
}

#canvas-buffer-8 {
    display: inline-block;
    position: absolute;
    background-color: transparent;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    /* image-rendering: optimizeQuality; */
}

#canvas-buffer-9 {
    display: inline-block;
    position: absolute;
    background-color: transparent;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    /* image-rendering: optimizeQuality; */
}

#canvas-buffer-10 {
    display: inline-block;
    position: absolute;
    background-color: transparent;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    /* image-rendering: optimizeQuality; */
}

#fog-div {
    display: inline-block;
    position: absolute;
    height: 240px;
    width: 320px;
    overflow: hidden;
    filter: grayscale(100%);
}

#foglayer_01, #foglayer_02, #foglayer_03 {
    height: 200px;
    position: absolute;
    top: 40px;
    left: 0;
    width: 400%;
}
#foglayer_01 .image01, #foglayer_01 .image02,
#foglayer_02 .image01, #foglayer_02 .image02,
#foglayer_03 .image01, #foglayer_03 .image02 {
    float: left;
    height: 100%;
    width: 50%;
}
#foglayer_01 {
    animation: foglayer_01_opacity 20s linear infinite forwards, foglayer_moveme 20s linear infinite;
}
#foglayer_03 {
    animation: foglayer_02_opacity 25s linear infinite forwards, foglayer_moveme 25s linear infinite forwards;
}

#foglayer_02 {
    animation: foglayer_02_opacity 30s linear infinite forwards, foglayer_moveme 30s linear infinite forwards;
}

#foglayer_01 .image01, #foglayer_01 .image02 {
    background: url("/img/bg/fog3.png") center center/cover no-repeat transparent;
}

#foglayer_02 .image01, #foglayer_02 .image02{
    background: url("/img/bg/fog4.png") center center/cover no-repeat transparent;
}

#foglayer_03 .image01, #foglayer_03 .image02{
    background: url("/img/bg/fog5.png") center center/cover no-repeat transparent;
}


@keyframes foglayer_01_opacity {
    0% { opacity: .2; }
    2% { opacity: .8; }
    40% { opacity: .9; }
    57% { opacity: .9; }
    78% { opacity: .86; }
    100% { opacity: .2; }
}

@keyframes foglayer_02_opacity {
    0% { opacity: .2; }
    25% { opacity: .8; }
    50% { opacity: .9; }
    80% { opacity: .6; }
    100% { opacity: .2; }
}

@keyframes foglayer_03_opacity {
    0% { opacity: .2; }
    27% { opacity: .8; }
    52% { opacity: .9; }
    68% { opacity: .6; }
    100% { opacity: .6; }
}

@keyframes foglayer_moveme {
    0% { left: 0%; }
    100% { left: -100%; }
}

/* @media only screen
and (min-width: 280px)
and (max-width: 767px) {
    #foglayer_01 .image01, #foglayer_01 .image02,
    #foglayer_02 .image01, #foglayer_02 .image02,
    #foglayer_03 .image01, #foglayer_03 .image02 {
    width: 100%;
    }
} */

#canvas-rain {
    display: inline-block;
    position: absolute;
    font-family: PressStart2P-Regular;
    color: #6708f8;
    font-size: 8px;
    text-align: center;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    /* image-rendering: optimizeQuality; */
    cursor: pointer;
    border-radius: 5px;
    opacity: 1;
}

#red-bg {
    display: inline-block;
    position: absolute;
    width: 320px;
    height: 240px;
    background-image: 
    repeating-linear-gradient(#00000000 0,#00000000 40px, #5f0f0b 40px, #960000 100%);
    opacity: .32;
}

#tab-behind {
    display: inline-block;
    position: absolute;
    width: 320px;
    height: 120px;
    bottom: 0%;
    left: 50%;
    transform: translate(-50%, 0%);
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    background: repeating-conic-gradient( #808080 0% 25%, #3a3a3a 0% 50%) 5% / 20px 20px;
    /* image-rendering: optimizeQuality; */
    opacity: 0;
}

#canvas-select {
    display: inline-block;
    position: absolute;
    font-family: PressStart2P-Regular;
    color: #6708f8;
    font-size: 8px;
    text-align: center;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    /* image-rendering: optimizeQuality; */
    cursor: pointer;
    opacity: 1;
}

#canvas-title {
    display: inline-block;
    position: absolute;
    background-color: transparent;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    /* image-rendering: optimizeQuality; */
    opacity: 1;
}

#death-screen {
    display: none;
    position: absolute;
    width: 320px;
    height: 240px;
    background-color: #8b0000;
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

#death-text {
    font-family: 'PressStart2P-Regular', monospace;
    font-size: 10px;
    color: #000000;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
    padding: 0 15px;
}

#death-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.death-btn {
    font-family: 'PressStart2P-Regular', monospace;
    font-size: 8px;
    color: #000000;
    cursor: pointer;
    padding: 6px 16px;
    border: 2px solid #000000;
    text-align: center;
    transition: background-color 0.15s, color 0.15s;
}

.death-btn:hover {
    background-color: #000000;
    color: #ff0000;
}

#canvas-tab-menu {
    display: inline-block;
    position: absolute;
    background-color: transparent;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    /* image-rendering: optimizeQuality; */
    opacity: 0;
}

#input-message {
    display: none;
    position: relative;
    width: 149px;
    height: 33.5px;
    min-width: 148px;
    min-height: 33.5px;
    top: 38px;
    left: 79.6px;
    font-family: PressStart2P-Regular;
    color: #000000;
    font-size: 6px;
    text-align: left;
    background-color: #33ff00;
    resize: none;
    border: 1px solid #000000;
    outline: 1px solid #ffffff;
    opacity: 0;
}

#submit-button {
    display: inline-flex;
    position: relative;
    width: 50px;
    height: 10px;
    top: 26px;
    left: 131px;
    font-family: PressStart2P-Regular;
    color: #ffffff;
    align-items: center;
    justify-content: right;
    font-size: 8px;
    text-align: center;
    background-color: #20a100;
    resize: none;
    border: 1px solid #000000;
    cursor: pointer;
    opacity: 0;
}

#canvas-tag-draw {
    display: inline-block;
    position: absolute;
    background-color: transparent;
    border-radius: 5px;
    opacity: 0;
}

#hero {
    display: none;
}

#hero-left {
    display: none;
}

#hero-shoot {
    display: none;
}

#hero-reload {
    display: none;
}

#hero-walk {
    display: none;
}

#left-zombie1 {
    display: none;
}

#right-zombie1 {
    display: none;
}

#zombie1-walk {
    display: none;
}

#bite-zombie1 {
    display: none;
}

#shot-zombie1 {
    display: none;
}

#death-zombie1 {
    display: none;
}

#info {
    display: none;
}

