body {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    font-family: "Inter", serif;
    font-weight: 400;
    margin: 0px;
    background-color: white;
}

#content-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

#game-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


#shape-bank-container {
    padding: 4px;
    border-radius: 8px;
    border: 2px solid #e5e5e5;
    box-sizing: border-box;
    margin: 0px 10px;
    gap: 10px;
    background-color: #f4f4f4;
}

#shape-bank {
display: grid;
grid-template-columns: repeat(4, 54px);
grid-template-rows: repeat(2, 54px);
gap: 4px;
justify-content: center;
background-color: none;
border-radius: 8px;
}



.shape-cell {
width: 54px;
height: 54px;
background-color: #f4f4f4;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}




#grid-container {
position: relative;
display: grid;
grid-template-columns: repeat(7, 50px);
grid-template-rows: repeat(7, 50px);
gap: 2px;
background-color: white;
padding: 10px;
justify-content: center;
align-items: center;
touch-action: none;       /* prevents mobile scrolling on touch-drags */
-webkit-user-select: none;
user-select: none; 
}

.grid-cell {
width: 50px;
height: 50px;
background-color: #e5e5e5; /* Default background */
display: flex;
justify-content: center;
align-items: center;
font-family: "Inter", sans-serif;
font-weight: 500;
font-size: 16px;
border-radius: 4px;
user-select: none;
}

.disabled {
background-color: #FFFFFF; /* White for disabled cells */
}

.blocked {
background-color: black; /* Black for blocked cells */
color: white;
}

.drawn {
background-color: #F7DA21; /* Highlighted color */
}



.shape-cell.placed {
background-color: #71bfeb;
}

.shape-block {
width: 7px;
height: 7px;
background-color: #606060;
position: absolute;
border-radius: 1px;
}


.shape-cell.placed .shape-block {
width: 7px;
height: 7px;
background-color: white;
position: absolute;
}

#current-date {
text-align: center;
margin-top: 5%;
font-family: 'Merriweather';
font-size: 18px;
font-weight: 600;
}

#shape-bank-container {
display: flex;
flex-direction: row;
justify-content: space-between;
}


#timerDisplay {
width: 50px;
}

.time-display-container {
    position: relative;
    top: 0px;
    transform: none;
width: auto;
height: 50px;
background-color: #F4F4F4;
box-sizing: border-box;
border-radius: 8px;
gap: 4px;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
color:#5E5E5E;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
.time-display-container p {
margin: 0px!important;
}

#menu-button {
width: 54px;
height: 54px;
background-color: #F7DA21;
box-sizing: border-box;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
font-weight: 500;
color:#000000;
cursor: pointer;

position: relative;
top: 0px;
transform: none;
}


#hint-button {
border: 2px solid #f5f5f7;
background-color: #F4F4F4;
box-sizing: border-box;
border-radius: 8px;
display: flex;
height: 100%;
align-items: center;
justify-content: center;
font-size: 16px;
color:#5E5E5E;
cursor: pointer;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;

position: relative;
top: 0px;
transform: none;
}

#leaderboard {
width: 54px;
height: 54px;
background-color: #71BFEB;
border: none;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
color:white;
cursor: pointer;

position: relative;
top: 0px;
transform: none;
}

/* Scale from 100% to 104% and back to 100% */
@keyframes pulseScale {
0% {
transform: scale(1);
}
50% {
transform: scale(1.06);
}
100% {
transform: scale(1);
}
}

/* A class that applies the animation once */
.pulse-animate {
animation: pulseScale 0.2s ease-in-out;
/* No forwards fill mode, so it returns to scale(1) at the end */
}

#resetButton {
background-color: transparent;
border: none;
cursor: pointer;

position: relative;
top: 0px;
transform: none;

}

.menu-buttons-wrapper {
display: flex;
gap: 4px;
flex-direction: column;
height: 100%;
}



#menu {
margin: 10px;

}

#hintModal {
    position: absolute;
    margin: auto 10px;
    width: 100%;
    max-width: 362px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    background-color: #CAC0DF;
    border-radius: 12px;
    padding: 24px;
    padding-bottom: 32px;
    box-sizing: border-box;
    z-index: 999;
    overflow: hidden;
  
}


#how-to-play {
    margin: 10px;
    }


    .menu-container {
top: 5px;
    }


.menu-content-outer-wrapper {
    gap: 32px;
    display: flex;
    flex-direction: column;
}

#menu {
    display: none;
}

#daily-button {
    background-color: #c1e9ff;
    }

    #weekday-button {
        background-color: #F7DA21;
        }


@media screen and (min-width: 768px) {

#menu {
    display: flex;
}

#how-to-play {
    top: 10px;
    max-width: 50%;
    left: 25%;
}


.menu-container {
    position: relative;
opacity: 1;
top: 0;
margin: 10px;
width: calc(100% - 20px);
max-width: calc(100% - 20px);
box-sizing: border-box;
flex-direction: row;
justify-content: space-between;
align-items: center;
    }
    .menu-content-wrapper {
        flex-direction: column;
        justify-content: flex-end;
        
    }
    .menu-cta-wrapper {
        flex-direction: row;
    }
    .menu-options-wrapper {
        gap: 4px;
        align-items: flex-start;
        justify-content: space-between;
        }
    .menu-options-item {
    max-width: 110px;
    width: 100px;
    }

.menu-title-container {
max-width: 340px;
}


    .menu-content-outer-wrapper {
        width: 100%;
        height: 100%;
        gap: 32px;
        display: flex;
        flex-direction: column;
        align-items: left;
    }

    #current-date {
        display: none;
    }
    #closeMenu {
        display: none; 
    }
    #menu-button {
        display: none;  
    }
    .menu-buttons-wrapper {
        display: none;  
    }
    
        #game-wrapper {
        display: flex;
        flex-direction: row;
        gap: 8px;
    }
    #content-container {
        display: flex;
        flex-direction: row-reverse;
        gap: 8px;
        align-items: flex-end!important;
        justify-content: flex-start;
    }
    
          #shape-bank {
        display: grid;
        grid-template-columns: repeat(2, 55px)!important;
        grid-template-rows: repeat(4, 55px)!important;
        gap: 2px;
        justify-content: center;
        align-items: center;
    }
    #shape-bank-container {
    display: flex;
    flex-direction: column!important;
    gap: 3px;
    margin: 10px;
    }
    
    
    body {
        display: flex;
        flex-direction: column;
    }


    }



    @media screen and (min-width: 1000px) {

    .menu-content-outer-wrapper {
        width: 100%;
        height: 100%;
        gap: 32px;
        display: flex;
        flex-direction: row;
    }
        .menu-options-wrapper {
        gap: 4px;
        justify-content: flex-end;
        align-items: center;
        }
    }