h1 {
    margin: 0.2em auto;
    width: fit-content;
}
body{
    display: grid;
    grid-template-rows: var(--nav-height) 1fr;
}
main {
    display: flex;
    flex-direction: column;
    gap:.5em;
    max-width:100vw;
    padding-bottom: 10px;
}
#cont {
    /* --tile:0; */
    width: auto;
    aspect-ratio: 1;
    flex-grow:1;
    margin:auto;
    display: grid;
    grid-template-columns: repeat(var(--tile), 1fr);
    grid-template-rows: repeat(var(--tile), 1fr);
    position: relative;
    overflow: hidden;
    outline: 2px solid #272c3c;
    outline-offset: -1px;
}
.sq {
    border: 1px var(--clr3) solid;
    content: "";
    display: block;
    height: 100%;
    transition:background-size .4s;
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
}
.sq:hover::before:not(.cr, .cl) {
    content: "";
    display: block;
    height: 100%;
    background-image: url("circle.svg");
    opacity: 0.5;
    background-size: 100%;
}
.cr.sq {
    background-image: url("cross.svg");
    background-size: 100%;
}
.cl.sq {
    background-image: url("circle.svg");
    background-size: 100%;

}
#cont p {
    position: absolute;
    width: 90%;
    height: 10%;
    background-color: rgba(25, 255, 255, 0.8);
    text-align: center;
    border: 2px solid rgb(0, 110, 110);
    border-radius: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-size: larger;
    z-index: 2;
    color: black;
}
#reset {
    background-color: var(--clr1);
    text-align: center;
    font-size: 1em;
    border: 2px outset var(--clr2);
    border-radius: 30px;
    margin: auto;
    width: 6em;
    transition: scale 100ms ease;
    color: var(--clr5);
}
div:has(#reset) {
    display: flex;
    width: 100%;
    justify-content: center;
}
#reset:hover {
    scale: 1.1;
}
#reset:active {
    border-style: inset;
}
.l0 {
    left: var(--l);
    top: var(--l);
}
.l1 {
    left: 50%;
    top: var(--l);
}
.l2 {
    left: calc(var(--l) * 5);
    top: var(--l);
}
.l6 {
    transform: rotate(-45deg) scale(1.4);
}
.l7 {
    transform: rotate(45deg) scale(1.4);
}
.l6,
.l7 {
    left: 50%;
    top: calc(95% * 1 / 6);
    transform-origin: center;
}
.l3 {
    top: var(--l);
    left: var(--l);
}
.l4 {
    top: 50%;
    left: var(--l);
}
.l5 {
    top: calc(var(--l) * 5);
    left: calc(var(--l));
}
div.l {
    position: absolute;
    background-color: aquamarine;
    border-radius: 10px;
    --l: calc(100% / 6);
    --w: calc(var(--l) * 4);
    --h: 1px;
    z-index: 1;
    outline: 3px solid lightgreen;
}
.l5,
.l6,
.l7 {
    height: var(--h);
    width: var(--w);
}
.l0,
.l1,
.l2,
.l3,
.l4 {
    width: var(--h);
    height: var(--w);
}
div.l:not(.l0, .l1, .l2, .l3, .l4, .l5, .l6, .l7) {
    display: none;
}
