body {
    font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-direction: column; /* Stack children vertically */
    background-color: lightgrey;
    font-size: 16px; /* Set the font size */
  }
  
  #Consent,#comprehension {
    background-color: #fff; /* White background for readability */
    color: #000; /* Text color */
    padding: 40px;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 0 10px ;
    box-sizing: border-box;
    width: 80%; /* Set width to 100% of its parent */
    margin: 20px auto; /* Keep vertical margin, center horizontally */
  }

  #comprehension{
    width: 50%;
  }

#comprehension > * {
    margin-left: 9em;
    /* Styles for all direct children of #comprehension */
}




#Instruction1, #Instruction2, #Instruction4,#Instruction3, #Instruction5 , #Bonus,#Showperformance,#Demographics,#Result,#DemographicsPage{
    background-color: #fff; /* White background for readability */
    color: #000; /* Text color */
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 30%;
    left: 50%;
    border-radius: 10px;
    box-shadow: 0 0 10px ;
    transform: translate(-50%, -50%);
}
#Instruction3{
    top: 50%;
    left: 50%;
   
}
#Instruction5{
    top: 20%;
}


#comprehension{
    flex-direction: column; 
    align-items: flex-start; 
    left: 50%;
    
}


#task-container,#PracticeRound {
    display: flex;
    justify-content: center;
    flex-direction: column; /* Stack items vertically */
    align-items: center;
    gap: 5px;
}

#grid-container,#PracticeGridContainer,#PracticeDemoGridContainer{
    display: grid ;;
    grid-template-columns: repeat(8, 60px);
    grid-template-rows: repeat(8, 60px);
    gap: 2px;
    background-color: rgb(80, 80, 80);
    border: 2px solid rgb(255, 255, 255);
    color : rgb(255,255,255);
    z-index: 1; /* lower layer */
}


#SmoothContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed; /* Stays in place even when scrolling */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centers the element */
    width: 150px;
    height: 200px;
    background-color: rgb(80, 80, 80);
    border: 10px solid rgb(255,255,255);
    color : rgb(255,255,255);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.grid-cell {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 30px;
    /* font-weight: bold; */
    display: flex;
    user-select: none;
    justify-content: center;
    align-items: center;
    border: 1px solid gray;

}

.cursor-pointer {
    cursor: pointer;
}
  
  .cave-label {
    margin: 0;
    padding-top: 5px;
    /* font-size: 1rem; */
  }
   


#feedback {
    position: fixed; /* Stays in place even when scrolling */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centers the element */
    width: 200px;
    height: 100px;
    margin: 20px auto;
    border: 2px solid black;
    background-color: lightyellow;
}

#payoffValue {
    font-size: 70px;
    font-weight: bold;
}


#fixation {
    position: fixed; /* Stays in place even when scrolling */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centers the element */
    font-size: 70px; /* Adjust size as needed */
    font-weight: bold;
    color: black; /* Set color */
}



/* .context-smooth {
    /* background-color: lightblue; */
/* } */

/* .context-rough { */
    /* background-color: lightcoral; */
/* } */ */

#info-panel {
    width: 200px;
    padding: 20px;
    border: 1px solid black;
}



#ImageContainer {
    display: flex;
    justify-content: space-between; /* Space between left and right groups */
    align-items: center;
    gap: 40px;
    margin: 2rem;
    text-align: center;
}


.image-group {
    display: flex;
    flex-direction: column; /* Stack image row and text */
    align-items: center;
}

.image-row {
    display: flex;
    gap: 15px; /* Space between images */
}

.image-row img {
    width: 120px; /* Adjust size as needed */
    height: auto;
}

.image-group p {
    margin-top: 10px;
    font-size: 16px;
    /* font-weight: bold; */
}




.radio-option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1em;

  }
  
  .radio-option input[type="radio"] {
    margin-top: 0.3em;
    flex-shrink: 0;
  }
  
  .radio-option label {
    margin-left: 0.5em;
    line-height: 1.4;
    max-width: 600px; /* adjust as needed */
  }
  .question {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
    margin-bottom: 1.5em;
  }
  
  .question label {
    display: block;
    max-width: 100%;
    word-wrap: break-word;
  }