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: 7em;
    /* Styles for all direct children of #comprehension */
}


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

        
#Instruction1, #Instruction2, #Instruction4,#Instruction3, #Instruction5,#Instruction6, #Bonus,#BonusTransition,#Result,#Showperformance,#Demographics,#Instruction7{
    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%);
}

#Instruction2{
    top: 50%;
    left: 50%;  
}
#Instruction5{
    top: 40%;
    left: 50%;  
}
#Instruction1,#Instruction4{
    top: 38%;
}




#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);
}

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

#grid-container,#PracticeGridContainer,#PracticeSession1GridContainer, #BonusgridContainer,#practiceGridContainer{
    display: grid !important;
    grid-template-columns: repeat(8, 60px);
    grid-template-rows: repeat(8, 60px);
    gap: 2px;
    background-color: rgb(80, 80, 80);
    border: 10px solid rgb(255, 255, 255);

    color : rgb(255,255,255)
}



/* 

#Instruction1 ,#Instruction2,#Instruction3,#Instruction4,#Instruction5,#Instruction6{
    align-items:center;
    justify-content:center;
} */

#comprehension{
    flex-direction: column; 
    
}

.grid-cell {
    width: 60px;
    height: 60px;
    text-align: center;
    user-select: none;
    font-size: 30px;

    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid gray;

 
}
.cursor-pointer {
    cursor: pointer;
}
#wait{
    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 */

    margin: 20px auto;
    font-size: 120px;
    color: white;

}


#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: white;
}

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


#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: white; /* 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;
    margin-left: 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: 80%;
    margin-bottom: 1.5em;
  }
  
  .question label {
    display: block;
    max-width: 100%;
    word-wrap: break-word;
  }