.grid-container{
    width:100%;
    max-width: 400px;
    height: 300px;
    position: relative;
    --cell-width: 60px;
    --cell-height: 60px;
}

.grid-row {
    position: absolute;
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
    width: 300px;
    border-radius: 25px;
    /* overflow: hidden; */
    background-color:#05050506;
    color: #1C1C28;
    /* border:1px solid green */
}

.grid-row.selected-row{
    background: #1c1c28d0;
    color: white;

}

.reload-row{
    position: absolute;
    color:#4a8bd6;
    background-color: black;
    color: white;
    /* padding: 5px; */
    border-radius: 50%;
    width:30px;
    height: 30px;
    left:-30px;
    opacity: 100%;
    font-size: 1.3em;
    cursor: pointer;
}

.grid-cell {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width:var(--cell-width);
    height: var(--cell-height);
    opacity: 100%;
    padding: 0;
    font-size: 1.8em;
    cursor: pointer;
}

.grid-cell:hover, .reload-row:hover {
    color: green;
}

/* Adjust padding for mobile screens */
@media screen and (max-width: 767px) {
    .grid-cell {
        font-size: 1.5rem;
    }
}

.grid-cell.selected-cell{
    color: #8fb9e9;
    border-radius: 50%;
    border: 1px solid #1C1C28;
    background: #1c1c28e7;
}

.grid-cell.target-cell{
    color: #4a8bd6;
    /* color:green */
    /* background: #1C1C28; */
    border: 2px solid #9EC2EC;
    border-radius: 25px;
    /* margin-left: -10px; */
    cursor:crosshair;
}

/* Operator Menu */
.operator-menu {
    display: none;
    justify-content: space-around;
    align-items: flex-start;
    padding: 0px;
    gap: 10px;
    /* width: 100%; */
    max-width: 400px;
    margin-top: 30px ; /* Adjust as needed */
    margin-bottom: -30px;
    opacity: 1; 
}

.operator-menu.enabled {
    opacity: 1;
}

.operator {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap:5px;
    width:50px;
    height: 70px;
    padding: 20px 10px;
    margin-block: 10px;
    background: #121213d4;
    color: #9EC2EC;
    color: white;
    border-radius: 18px;
    border: 1px solid #9EC2EC;
    display: flex;
    flex-direction: column; /* For arrow and operator symbol */
    align-items: center;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.operator.unary {
    color: white;
    border: 2px solid #1C1C28;
    /* margin-inline: 5px; */
}

.disabled{
    opacity: 0.1;
    pointer-events: none;
}

.operator.disabled {
    opacity: 0.1;
    pointer-events: none;
}

.operator:active {
    transform: scale(1.1);
}

/* Arrow Styles */
.operator .arrow {
    font-size: 1em;
}

.operator .symbol {
    font-size: 1.5em;
}

.operator.clicked {
    animation: operatorClickAnimation 0.2s;
}

@keyframes operatorClickAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.operator-overlay{
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;
    border-radius: 50%;
    color:white;
    z-index: 1000;
    font-size: 4rem;
    margin-top: 5px;
    width:var(--cell-width);
    height: var(--cell-height);
    scale: 90%;
}

.divide-symbol{
    background-color: white;
    color: black;
    border-radius: 50%;
    width:25px;
    height: 25px;
    /* font-size: 19px; */
}

.num-moves{
    color:white;
    font-size: 15px;
    color:greenyellow;
}
