/* Media query for mobile devices */
@media (max-width: 768px) {
    #understand {
        width: 100% !important; /* Set full width */
        padding: 10px; /* Adjust padding as needed */
        margin: 0 auto; /* Centering might still be desired */
        box-sizing: border-box; /* Ensures padding does not add to the width */
    }

    #understand h2 {
        width: 100%; /* Set full width */
        margin: 0; /* Remove margins if necessary */
        padding: 10px 0; /* Optional: Add some vertical padding */
        box-sizing: border-box; /* Ensures padding does not add to the width */
    }

    #understand p {
        width: 100%; /* Set full width */
        margin: 10px 0; /* Adjust margins as needed */
        padding: 0 15px; /* Add horizontal padding for better text alignment */
        box-sizing: border-box; /* Ensures padding does not add to the width */
    }
}


#understand {
    text-align: center;
    padding: 20px;
    margin: auto;
    width: 80%;
}

#understand h2, #understand p {
    margin-bottom: 20px;
}


.clickable-block {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #bbbbbb8a;
    margin-bottom: 30px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    border: 2px solid transparent; /* Set a transparent border first */
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5); /* Initial shadow for 3D effect */
    border-radius: 15px;
}

.clickable-block:hover, .clickable-block:active {
    background-color: #0000008a; /* Darker background on hover */
    box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.5); /* Inset shadow makes it look pushed in */
    transform: translateY(2px); /* Slightly shift down to mimic pressing */
}

.content {
    display: flex;
    align-items: center;
    width: 100%;
}

.text-section {
    flex: 1;
    padding: 20px;
}

.image-section {
    flex: 1;
    padding: 0px;
}

.text-section h3 {
    color: #ff7b00;
}

.image-section img {
    width: 100%;
    height: auto;
    border-radius: 5px; /* Consistent border radius for all corners */
}


/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }
}

.crossed-out {
    text-decoration: line-through; /* Crosses out the text */
    opacity: 0.6; /* Slightly fades the text to emphasize it's not the current term */
}

.highlighted {
    color: rgb(104, 0, 0); /* Highlights the new term in red */
    font-weight: bold; /* Optionally make the new term bold to stand out more */
}

