body
{
        margin: 0;
        font-family: monospace;
        background-color: rgb(32, 32, 32);
        /* background-image: url(images/backgrounds/Control-Central-Research-Gloomy-1920_1080.png); */

        overflow: hidden;

        color: white;

        perspective: 10cm;

        user-select: none;
    }

    /* Meta */
    .flex{
        display: flex;
        align-items: stretch;
        height: 30%;
    }
    .test{
        display: flex;
        align-items: stretch;
        height: 32%;
    }

    /* Board Sides */
    .opp-board{
        width: 100%;
        height: 50vh;
    }
    .own-board{
        width: 100%;
        height: 50vh;
    }

    /* Name */
    .name-container{
        background-color: orange;
        text-align: right;

        width: 15%;
    }

    /* Settings */
    .settings-container{
        background-color:violet;

        width: 15%;
    }

    /* Life */
    .life-container{
        /* background-color:rgb(95, 95, 95);
        
        text-align: center;
        color: white; */
        font-size: xxx-large;

        cursor: pointer;
/* 
        width: fit-content;
        padding-left: 1rem;
        padding-right: 1rem;

        border: 0.3rem solid rgb(44, 44, 44);
        border-radius: 999rem; */
    }

    .own-life{
        /* margin-top: auto;
        margin-bottom: 1rem; */
    }
    .opp-life{
        /* margin-top: 1rem;
        margin-bottom: auto; */
    }

    /* Misc */
    .misc-container{
        background-color: orange;

        display: flex;
        justify-content: center;
        width: 50%;
    }
    .misc-card img {
        height: 100%;
    }
    .misc-card:hover{
        transform: translateY(-25%) scale(1.5) rotate(0) !important;
    }

    /* Battlefield */
    /* .battlefield-container{
        background-color: aquamarine;

        width: 100%;
        height: 40vh;

        display: flex;
        flex-direction: column;
    } */

    .battlefield{
        width: 100%;
        height: 38.1%;

        display: flex;
        justify-content: center;
    }
    .battlefield-card img {
        height: 100%;
    }
    .battlefield-card:hover{
        transform: scale(1.5) !important;
    }

    .opp-battlefield{
        background-color: teal;
    }
    .own-battlefield{
        background-color: turquoise;
    }

    /* Land */
    .land-container{
        background-color: blue;
        text-align: right;

        display: flex;
        justify-content: center;
        width: 50%;
    }
    .land-card img {
        height: 100%;
    }
    .land-card:hover{
        transform: translateY(-25%) scale(1.5) !important;
    }

        /* Hand */
    .hand-container{
        background-color: purple;
        text-align: center;

        display: flex;
        justify-content: center;
        width: 70%;
    }
    .hand-card img {
        height: 150%;
    }
    .hand-card:hover{
        transform: translateY(-105%) scale(1.5) rotate(0) !important;
    }

    /* Card Styling Simplified */
    card {
        display: flex;
        height: 100%;
        transition: all 0.25s ease, z-index 0.1s;

        cursor: pointer;
    }
    card img {
        border-radius: 0.3rem;
    }
    card:hover {
        z-index: 10;
        filter: none;
    }

    .opp-hand card{
        translate: 0 -50%;
    }
    .opp-hand card:hover{
        transform: translateY(80%) scale(1.5) rotate(0) !important;
    }

    .card-inspect{
        height: 69vh;

        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;

        border-radius: 5rem;
        background-color: rgba(0, 0, 0, 0);
    }
    .card-inspect img{
        height: inherit;
    }

    /* Color variables */
    *{
        --cardv2_border: #000000;
        --cardv2_inner: #2a2627;
        --cardv2_img_border: #3b3833;
        --cardv2_lightgray: #aca4a2;
    }

    cardv2 {
        scale: 1;
        width: 10%;
        
        display: flex;
        flex-direction: column;
        
        border: 0.1rem solid var(--cardv2_border);
        border-radius: 0.8rem;
        
        background-color: var(--cardv2_inner);

        transition: all 0.25s ease, z-index 0.1s;
    }
    cardv2 img {
        border-bottom-left-radius: 1.5rem;
        border-bottom-right-radius: 1.5rem;

        height: 100%;

        border: 4px solid var(--cardv2_img_border);
        border-top: 0;

        margin: 7%;
        margin-top: 0;
        margin-bottom: 9%;
    }
    cardv2 .card-name {
        margin: 3%;
        margin-bottom: 0;

        border-radius: 1rem;

        border: 4px solid var(--cardv2_img_border);

        font-size: large;
        font-weight: bold;

        color: black;
        background-color: var(--cardv2_lightgray);

        text-align: center;
    }
    cardv2 .card-power_toughness {

        font-size: large;
        font-weight: bold;

        color: black;
        background-color: var(--cardv2_lightgray);

        padding: 0.2rem 0.5rem;
        border-radius: 0.5rem;

        border: 3px solid var(--cardv2_img_border);

        width: fit-content;
        font-size: unset;
    }
    cardv2 .card-artist-name {
        padding-left: 5%;
        color: var(--cardv2_lightgray);
        width: 65%;
        height: 20%;
        align-self: end;
    }
    cardv2 .card-fixed-pos {
        position: fixed;
        bottom: 0;

        display: flex;
        width: 100%;
    }

    .cropcard_ref{
        position: absolute;
        top: 500px;
        left: 866px;
        opacity: 0.3;
    }

    .hidden{
        visibility: hidden;
    }

    /* card states */
    .tapped {
        margin-left: 1rem;
        margin-right: 1rem;
        transform: rotate(10deg);
        filter: grayscale(.8) ;
    }

    /* Settings */
    .settings-container{
        display: flex;
        flex-direction: row-reverse;
        justify-content: end;
    }
    .settings-icon{
        width: 3%;
        position: fixed;
        right: 0;

        height: min-content;

        cursor: pointer;
    }

    .settings {
        position: absolute;
        right: 0;

        width: 100%;
        height: 100%;

        background-color: rgb(50, 50, 50);

        z-index: 2000;
    }
    .settings_menu_header {
        display: flex;
        flex-direction: row;
    }
    .settings svg {
        height: auto;
        width: 12%;
        margin-left: auto;

        cursor: pointer;
    }




    /* WIP UI */
    .test-settings {
        width: 20vw;
        height: 0;
        position: fixed;
        right: 0;
        top: 0;
    }

    .test-turn_button{
        position: fixed;
        bottom: 0;
        right: 0;
        width: 13%;
        height: 6%;

        padding-right: 1%;
        padding-bottom: 2%;
    }
    .test-turn_button button {
        width: 100%;
        height: 100%;
        border-radius: 5000px;
        font-size: xx-large;
    }
    .test-turn_button p{
        margin: 0;
        margin-top: 3%;

        font-size: x-large;
        width: 100%;
        text-align: center;
    }
    
    /* context menu */
    .context_menu_divider
    {
        height: 1px;
        width: 100%;
        background-color: #aca4a2;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .context-menu-item {
    padding: 5px;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    }

    .context-menu-item:hover {
        background: #3a3a3a;
    }

    .has-submenu .submenu {
        display: none;
        position: absolute;
        top: 0;
        left: 100%;
        background: #272727;
        border: 1px solid #ccc;
        min-width: 180px;
        z-index: 1001;
    }

    .has-submenu:hover .submenu {
        display: block;
    }

    .submenu div {
        padding: 5px;
        cursor: pointer;
    }

    .submenu div:hover {
        background: #3a3a3a;
    }
