body {
    background-color: black;
}
.game-div {
    border-radius: 10px;
    border: 5px solid rgb(73, 73, 73);
    display: block;
    height: 94vh;
    width: 94vw;
    margin: auto;
    padding: 0;
}
.game-view {
    background-color: black;
    position: relative;
    padding: 0; margin:0;
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.split-screen-div {
    position: relative;
    /* 
    display: block;
    width: fit-content;
    height: fit-content;
    margin: 0;
    * {
        position: absolute;
    } */
}
@keyframes spin {
    from {
        transform:rotate(0deg);
    }
    to {
        transform:rotate(360deg);
    }
}
.menu-div {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: whitesmoke;
    font-size: 1.2rem;
    z-index: 200;

    ul {
        margin: 0; padding: 0;
        list-style-type: none;
        li {margin-left:0;}
    }
    h2 {
        font-size: 1.3em;
        font-weight: 100;
        letter-spacing: 0.2em;
        font-style: italic;
        margin: 0;
    }
    ul.horizontal{
        display: block;
        width: fit-content;
    }
    .horizontal > li
    {
        display: inline-block;
        margin-right: 5px;
    }
    .b0, .b1, .b2 {
        font-size: inherit;
        background-color: transparent;
        border: none;
        font-family: inherit;
        color: inherit;
        padding: 0, 5px;
        border-radius: 0.3em 0 0.3em 0;
        transition: all 0.1s;
    }
    .b1 {
        margin-top: 8px;
        background-color: darkgray;
        color: black;
    }
    .b0.menu-selected, .b1.menu-selected, .b2.menu-selected{
        transform: translateX(3px);
        background-color: whitesmoke;
        color: black;
    }
    .b2 {border-radius: 0;}
    .b2.highlight{
        transform: scale(1.2);
        margin-right: 10px;
        margin-left: 15px;
        border-left: 1px solid gray;
        border-right: 1px solid gray;
    }
    .b2.highlight::before{
        content: "*";
    }
    .close-btn {
        position: absolute;
        display: block;
        height: 20px; width: 20px;
        top:0;
        right:0;
        font-family: Arial, Helvetica, sans-serif;
        font-weight: 200;
        font-size: 0.8em;
        padding: 0 0 20px 0;
        color: whitesmoke;
        background-color: gray;
        border:  none;
    }
    .close-btn.menu-selected{
        color: black; background-color: whitesmoke;
    }
    .title-div{
        position: absolute;
        left:7%;
        top:30%;
        ul {margin-left: 10px;}
        h1 {margin: 3px;}
    }
    .center-div{
        display: block;
        position: relative;
        width: fit-content; height: fit-content;
        min-width: 300px;
        max-width: 500px;
        margin: auto;
        margin-top:15%;
        h1 {margin: 3px;}
        form {margin-left: 5px; margin-top: 10px;}
    }
    .top-center-div{
        display: block;
        position: relative;
        width: fit-content; height: fit-content;
        min-width: 300px;
        max-width: 500px;
        margin: auto;
        margin-top:5%;
        h1 {margin: 3px;}
        form {margin-left: 5px; margin-top: 10px;}
    }
    .top-right-div{
        display: block;
        position: relative;
        right: 0;
        width: fit-content; height: fit-content;
        min-width: 300px;
        max-width: 500px;
        margin-top:1%;
        h1 {margin: 3px;}
        form {margin-left: 5px; margin-top: 10px;}
    }
    #playerinp-div
    {
        min-width: 500px;
        .rowcard-list {
            display: inline-block;
            width: 60%;
            min-height: 8em;
            height: 8em;
            margin: 10px 0 0 0;
        }
        #bindings-list {width: 28%;}
    }
    .mainmenu-div{
        position: absolute;
        left:7%;
        top:15%;
        h1 {margin-left: -10px;}
    }
    .clps-btn-row {
        overflow: hidden;
        width: fit-content;
        height: 1.4em;
        /* border-bottom: 2px solid gray; */
        transition: all 0.2s;
        margin-bottom: 10px;
        h2 {border-bottom: 2px solid gray; margin-bottom: 4px;}
    }
    .clps-btn-row.expanded { height: 3.5em; }
    /* //ul {border-bottom: 1px solid whitesmoke;}} */
    .smallprint {
        margin-top: 10px;
        width: 280px;
        display: block;
        font-weight: 50;
        font-style: italic;
        font-size: 0.7em;
        font-family: Arial, Helvetica, sans-serif;
        letter-spacing: 0.05em;
        
    }
    #stopfinding-btn.stoppable.menu-selected::before {
        content: "Stop ";
    }
    .loading-prefix::after {
        display: inline-block;
        font-style: normal;
        font-size: 1em;
        font-weight: 100;
        letter-spacing: 0;
        margin: 0;
        padding: 0;
        content: "◐";
        
        animation-name: spin;
        animation-duration: 700ms;
        animation-iteration-count: infinite;
        animation-timing-function: linear; 
    }
    .loadscreen-div{
        display: block;
        margin: auto;
        width: fit-content;
        height: fit-content;
        margin-top: 22%;
    }
    .top-right-div{
        text-align: right;
        position: absolute;
        right:3%;
        top:3%;
    }
    .full-div{
        width: 100%;
        height: 100%;
        pointer-events: "none";
    }
    #leaderboard{
        text-align: left;
        margin: 0;
        background-color: rgba(0,0,0,0.4);
        display: block;
        width: 250px;
        min-height: 1em;
    }
    .leaderboard-row
    {
        font-size: 0.6em;
        font-family: Arial, Helvetica, sans-serif;
        font-weight: normal;
        padding: 2px;
        border-bottom: 1px solid black;
    }
    .leaderboard-row:nth-child(odd)
    {
        background-color: rgba(0,0,0,0.3);
    }
    .leaderboard-row.party
    {
        background-color: rgba(0,0,150,0.3);
    }
    .leaderboard-row.party:nth-child(odd)
    {
        background-color: rgba(0,0,150,0.4);
    }
    .leaderboard-row.party.leader
    {
        background-color: rgba(0,0,200,0.5);
    }
    .leaderboard-row span
    {
        display: inline-block;
        margin: 0;
        padding: 0;
    }
    .leaderboard-row span:nth-child(1)
    {
        width: 60%;
    }
    .leaderboard-row span:nth-child(2)
    {
        width: 40%;
        text-align: right;
    }
    
    
    .code {
        user-select: all;
        width: 5em;
        background-color: whitesmoke;
        color: black;
        padding: 2px 5px;
        font-size: 0.85em;
        font-weight: bold;
        font-family: Arial, Helvetica, sans-serif;
        outline: none;
    }
    .rowcard-list{
        font-size: 0.9em;
        font-weight: normal;
        
        display: block;
        width: 90%;
        margin-top: 10px;
        margin-left: 15px;
        padding:0;
        background-color: rgba(150,150,150,0.1);
        max-height: 14em;
        min-height: 6em;
        overflow-y: scroll;
        overflow-x: hidden;
    }
    #lobby-list {width: 80%;}
    
    .rowcard-list-title
        {
            padding: 2px 5px;
            background-color: rgba(150,150,150,0.1);
            display: inline-block;
            width: 100%;
            color: lightgray;
            border-bottom: 2px solid rgb(30,30,30);
        }
    .rowcard {
        font-size: 0.8em;
        display: inline-block;
        background-color: rgba(40,40,40,0.4);
        border: none;
        text-align: left;
        border-bottom: 2px solid rgb(30,30,30);
        padding: 5px 10px;
        border-radius: 4px;
        width: 95%;
        color: lightgray;
        font-family: Arial, Helvetica, sans-serif;
    }
    button.rowcard * {
            pointer-events: none;
        }
    button.rowcard.menu-selected {
        background-color: rgba(80,80,80,0.4);
        cursor: pointer;
        color: whitesmoke;
    }
    .rowcard span {
        display: inline-block;
        width: 30%; 
    }
    .rowcard button {
        margin-left: 4px;
        margin-right: 2px;
        height: 20px;
    }
    .rowcard span:nth-child(1)
    {
        width: 7%;
    }
    .rowcard span:nth-child(2)
    {
        width: 30%;
    }
     .rowcard span:nth-child(3)
    {
        width: 56%;
        text-align: right;
    }
    #inpmeth-btn {
        max-width: 120px;
        overflow: hidden;
    }
    .bg-overlay{
        background-color: rgba(0,0,0,0.5);
        backdrop-filter: blur(5px);
    }
}

input.menu-selected:not([type="submit"]):not(.code)
{
    /* border-color: black; */
    transform: scale(1.05) translateX(6px);
}
input:focus:not([type="submit"]):not(.code)
{
    outline: auto;
    outline-color: black;
}
.code.menu-selected {
    background-color: lightblue;
    outline: auto;
}

.m-layer-0 {z-index: 1; }
.m-layer-1 {z-index: 2; }
.m-layer-2 {z-index: 3; }
.m-layer-3 {z-index: 4; }
.m-layer-0, .m-layer-1, .m-layer-2, .m-layer-3, .loading-screen
{
    display: inline-block;
    padding: 0; margin: 0; width:100%; height:100%;
    transition: background-color 0.5s;
    position: absolute;
}
.loading-screen
{
    z-index: 20;
}

.full-div:has(.crosshair-div) {
  display: flex;
  justify-content: center;
  align-items: center;
}

.crosshair-div {
    display: block;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    /* background-color: green; */
    padding: 0;
    margin: 0;
    --cshr-speed: 0.3s;
    height: var(--cshr-size);
    transition: var(--cshr-speed);
    transform: rotate(var(--cshr-rotation));
    --cshr-line-offset: 75%;

    .circle-crosshair {
        box-sizing: border-box;
        border: 1.8px solid var(--cshr-color);
        border-radius: 50%;
        width: 100%;
        height: 100%;
        padding: 0;
        margin: 0;
    }
    .lines-crosshair {
        position: relative;
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        padding: 0;
        margin: 0;

        span {
            transform-origin: 0% 25%;
            position: absolute;
            display: block;
            border-top: 1.8px solid var(--cshr-color);
            width: 25%;
            height: 1px;
            top: 50%;
            left: 50%;
            transition: var(--cshr-speed);
        }
    }
    .lines-crosshair span:nth-child(1) {
        transform: rotate(0deg) translateX(var(--cshr-line-offset));
    }
    .lines-crosshair span:nth-child(2) {
        transform: rotate(90deg) translateX(var(--cshr-line-offset));
    }
    .lines-crosshair span:nth-child(3) {
        transform: rotate(180deg) translateX(var(--cshr-line-offset));
    }
    .lines-crosshair span:nth-child(4) {
        transform: rotate(270deg) translateX(var(--cshr-line-offset));
    }
}