* { box-sizing: border-box; }
:focus-visible { outline: 2px solid #e6e6e6; outline-offset: 3px; }
body{
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background-color: #1E1E1E;
    color: #e6e6e6;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.DIV{
    background-color: #252526;
    width: 532px;
    max-width: 100%;
    min-width: 0;
    min-height: 600px;
    border: 1px solid #3D3D3D;
    border-width: 0 7px 7px 0;
    border-radius: 20px;
}
h1{
    text-align: center;
    margin: 35px;
}
#img1{
    border: 7px solid #3a3a3a;
    border-radius: 20px;
    margin: 40px;
    width: 200px;
    height: 200px;
}
#tb1{
    width: 100%;
}
#tb2{
    width: 100%;
    border-collapse: collapse;
}
#tdInfo{
    padding: 10px;
}
#tr1{
    border-bottom: 7px solid #3D3D3D;
}
td{
    text-align: center;
}
input[type=button]{
    background-color: #1D1D1D;
    color: #e6e6e6;
    border: 3px solid #3a3a3a;
    border-radius: 15px;
    height: 50px;
    padding: 0 25px;
    margin: 25px;
    cursor: pointer;
    font-size: 18pt;
}
input[type=button]:active{
    border: 3px solid #2b2b2b;
}
#btn1{
    height: 50px;
    padding: 0 25px;
    margin: 25px;
    cursor: pointer;
    font-size: 18pt;
}
#btn2{
    padding: 3px 8px 6px 8px;
    margin: 5px;
    font-size: 17pt;
    cursor: pointer;
    transform: rotate(180deg);
}
#btn2:active{
    background-color: #0f0f0f;
}
#btn3{
    padding: 3px 8px 6px 8px;
    margin: 5px;
    font-size: 17pt;
    cursor: pointer;
}
#btn4{
    width: min-content;
    padding: 3px 12px 6px 12px;
    font-size: 17pt;
    cursor: pointer;
}
#txt1{
    border: 3px solid #3a3a3a;
    border-radius: 15px;
    height: 44px;
    max-width: 100%;
    font-size: 16px;
    padding: 0 10px;
}
#tdTable{
    padding: 16px;
}
#tb3{
    width: 100%;
    table-layout: fixed;
    text-align: center;
    border: 1px solid #4D4D4D;
}
.Cell{
    cursor: pointer;
    background-color: #3D3D3D;
    width: 25%;
	padding:0;
    position: relative;
	/* background-image:url('Images/nigga.jpg'); */
}
.Cell img{
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    transition: all  0.9s ease;
}
.Cell div{
    inset: 0;
    margin: 0;
    position: absolute;
    background-color: #616161;
    z-index: 1;
    transition: all  0.1s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
img {
    pointer-events: none;
}
.BIGDIV{
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 10;
    background-color: #252526b9;
    display: none;
}
.GameOver{
    width: 350px;
    max-width: calc(100% - 24px);
    min-height: 190px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    background-color: #373738;
    border: 1px solid rgb(95, 95, 95);
    border-width: 0 7px 7px 0;
    border-radius: 20px;
    text-align: center;
    padding-top:40px;
}

input[type=button] { touch-action: manipulation; }

@media (max-width: 540px) {
    .DIV { min-height: 0; border-width: 0 4px 4px 0; }
    h1 { margin: 24px 12px; font-size: 28px; }
    #img1 { margin: 16px auto; width: 180px; height: 180px; max-width: 80%; object-fit: contain; }
    #tb1 { padding-bottom: 12px; }
    #tb2 > tbody, #tb2 > tbody > tr { display: block; width: 100%; }
    #tb2 #tr1 { display: flex; }
    #tdTable { display: block; width: 100%; }
    #tr1 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 6px; gap: 6px; }
    #tr1 td { min-width: 0; }
    #tr1 td:nth-child(4) { order: 1; flex: 1 0 100%; overflow-wrap: anywhere; padding-bottom: 6px; }
    #tr1 span, #tr1 label { font-size: 14px; }
    #tr1 span { margin-right: 4px; }
    #btn2, #btn3 { margin: 0; font-size: 16px; min-height: 44px; height: 44px; }
    #tdTable { padding: 8px; }
}
