html,
body,
.container {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.container {
    position: relative;
}

.wrapper {
    position: absolute;
    aspect-ratio: 1 / 1;
    width: min(100vw, 100vh);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5%;
    box-sizing: border-box;
}

.grid {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5%;
    box-sizing: border-box;
}

.wall {
    width: 100%;
    height: 100%;
    background-image: url("/static/img/wall.jpg");
    background-position: center;
    background-size: 50%;
    border-radius: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5%;
    box-sizing: border-box;
}

.grass {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    grid-template-rows: repeat(11, 1fr);
    /* gap: .25%; */
    width: 100%;
    height: 100%;
    padding: 2%;
    background-image: url("/static/img/grass.jpg");
    background-position: center;
    background-size: 80%;
    border-radius: 1.5rem;
    box-shadow: inset 0 10px 30px #000000;
    box-sizing: border-box;
}

.cell {
    aspect-ratio: 1 / 1;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border:rgba(255, 255, 255, 0.25) solid 1px;
    border-radius: 0.3rem;
    box-sizing: border-box;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Barriecito", system-ui;
}

.cell:hover {
    background-color: rgba(255, 255, 255, 0.50);
    cursor: pointer;
}

.cell.hit, .cell.hit:hover {
    background: none;
    background-image: url("/static/img/hit.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    cursor: default !important;
}

.cell.miss, .cell.miss:hover {
    background: none;
    background-image: url("/static/img/rock.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 80%;
    cursor: default !important;
}

.cell.null, .cell.null:hover {
    background: none;
    cursor: default !important;
    border: 0;
}

.cell.label, .cell.label:hover {
    background: none;
    background-image: url("/static/img/rock.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    border: 0;
    font-size: 2.8vw;
    color: #f3e5d1;
    cursor: default !important;
}

.toloc-2h {
    background: none;
    background-image: url("/static/img/toloc-2-h.png");
    background-size: cover;
    background-repeat: no-repeat;
}
.toloc-2h.c1 { background-position: 0 0; }
.toloc-2h.c2 { background-position: 100% 0; }

.toloc-2v {
    background: none;
    background-image: url("/static/img/toloc-2-v.png");
    background-size: cover;
    background-repeat: no-repeat;
}
.toloc-2v.c1 { background-position: 0 0; }
.toloc-2v.c2 { background-position: 0 100%; }


.toloc.c1.vertical { background-position: 103% 0; transform: scaleX(-1) rotate(-90deg); transform-origin: center center; }
.toloc.c2.vertical { background-position: 0 0; transform: scaleX(-1) rotate(-90deg); transform-origin: center center; }