html, body {
    touch-action: manipulation;
    /*stops double-tapping zoom-in on cellphone  */
    background-color: peachpuff;
}

.container {
    display: flex;
    flex-wrap: wrap;

}

.grid-container {
    display: grid;
    grid-template-columns: repeat(10, 10%);
    grid-template-rows: repeat(10, 10%);
    gap: 0px 0px;    
    width: 100px;
    height: 100px;
    aspect-ratio: 1/1;   

}
.box {
   
    background-color: rgb(99, 21, 21);
    aspect-ratio: 1/1;   
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0;
    width: 45%;   
    height: auto;
    z-index:1;
 /*   opacity: 0.7;  */

}
.underbox {
    position: absolute;
    background-color: rgb(92, 102, 190);
    aspect-ratio: 1/1;   
    width: 100%;
    height: 100%;
    gap: 0;
    width: 45%;   
    height: auto;
    z-index: 0;
    background-image: url('img/box2bg.png');
}

#pressUp, #pressDown, #pressLeft, #pressRight {
background-color: yellow;
}

@media (orientation: landscape) {
.grid-container {       
    width: 45%;  
    height:auto;     
}
}

@media (orientation: portrait) {
.grid-container {       
    height: 45%;
    width:100%;   
}
.box {       
    height: 45%;  
       width:100%;
}
}


.gi {
    background-color: black; 
    border: 2px solid gray;
    width: 100%;
    height: 100%;
    position: relative;

}

.gi2 {
    width: 100%;
    height: 100%;
   /* border: 1px solid #ccc;  see the grid items */
}

.gi2-icon {
  width: 100%;
  height: 100%;
  object-fit: contain; /* keeps aspect ratio */
  pointer-events: none; /* lets clicks hit the parent div */
}




.shapeyellow {
position: absolute;
top: 0;
left: 0;
width: 90%;
height: 90%;
border-radius: 50%;
background: radial-gradient(circle at top center, yellow, black);
}
.shapeblue {
position: absolute;
top: 0;
left: 0;
width: 90%;
height: 90%;
border-radius: 50%;
background: radial-gradient(circle at top center, rgb(255, 255, 255), rgb(0, 34, 252));
}
.shapered {
position: absolute;
top: 0;
left: 0;
width: 90%;
height: 90%;
border-radius: 50%;
background: radial-gradient(circle at top center, red, black);
}
.shapeorange {
position: absolute;
top: 0;
left: 0;
width: 90%;
height: 90%;
border-radius: 50%;
background: radial-gradient(circle at top center, orange, black);
}
.shapegreen {
position: absolute;
top: 0;
left: 0;
width: 90%;
height: 90%;
border-radius: 50%;
background: radial-gradient(circle at top center, rgb(0, 255, 0), rgb(0, 49, 17));
}
.shapepurple {
position: absolute;
top: 0;
left: 0;
width: 90%;
height: 90%;
border-radius: 50%;
background: radial-gradient(circle at top center, rgb(252, 0, 252), rgb(69, 0, 69));
}

.shapebrown {
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 90%;
  /*  border-radius: 100%; */
    background: linear-gradient(to bottom, rgb(252, 255, 178), rgb(110, 40, 0));
}

#score1 {
    color: yellow;
    text-align: center;
    font-size: large;
    font-weight: bold;
    display: flex;
    flex-direction: column; /* Stack children vertically */
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
    height: 100%; /* Ensure it takes the full height of its container */
}


#score2 {
    color: white;
    font-size: large;
    font-weight: bold;
}

#level1 {
    color: yellow;
    text-align: center;
    font-size: large;
    font-weight: bold;
    display: flex;
    flex-direction: column; /* Stack children vertically */
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
    height: 100%; /* Ensure it takes the full height of its container */
}


#level2 {
    color: white;
    font-size: large;
    font-weight: bold;
}
