/* css/epp-style.css */
/**
 * Example Problem Pair (EPP) Styles
 * Updated: Hides inner content instead of outer container.
 */

/* === NEW RULE: Match EPP Answer Font Size to Question Font Size === */
.epp-active-mode #problem-left-answer-box,
.epp-active-mode #problem-right-answer-box {
    font-size: 0.9em; /* Match the size set for .problem-content */
}
/* === END NEW RULE === */

/* Rule to make the main generator container always wide */
.redgen-main.redgen-main-wide {
    max-width: 1600px;
}

/* Slightly smaller font inside EPP panels to improve layout */
.epp-active-mode .problem-content {
    font-size: 0.9em;
}

/* Widen the control panel in EPP mode */
.redgen-control-box {
    width: 140px;
}

/* The main container for the side-by-side view */
.problem-container-parent {
    display: none;
    flex-direction: row;
    gap: 15px;
    width: 100%;
}

/* Individual panel for "I Do" and "You Do" problems */
.problem-container {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--brand-light-blue);
    border-radius: 6px;
    background: linear-gradient(45deg, var(--brand-lightest-blue) 0%, var(--white) 100%);
}

.problem-header {
    font-weight: bold;
    font-size: 0.9em;
    color: var(--brand-dark-blue);
    text-align: center;
    padding: 8px;
    border-bottom: 1px solid var(--brand-light-blue);
    flex-shrink: 0;
}

.problem-content {
    padding: 15px;
    flex-grow: 1; /* Keep this so the container fills space */
    min-height: 150px; /* Keep this for consistent minimum size */
    white-space: pre-wrap; /* Keep this for line breaks */
    /* Optional: display: flex can help if inner content needs complex layout */
    /* display: flex; */
    /* flex-direction: column; */
}

/* Rule to hide the INNER content div */
.problem-inner-content.content-hidden {
    display: none;
}

/* Removed rules for .problem-content.is-hidden, .you-do-placeholder, .reveal-btn */

/* Rule to adjust button grid in EPP mode */
.redgen-btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5px;
    margin-bottom: 8px;
}

/* Panel controls container */
.panel-controls {
    padding: 8px 15px;
    border-top: 1px solid var(--brand-light-blue);
    background-color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    /* Added to ensure controls stay at bottom */
    margin-top: auto;
}

/* Alignment classes for panel controls */
.panel-controls.align-right {
    justify-content: flex-end;
}

.panel-controls.align-left {
    justify-content: flex-start;
}


/* Styles for Icon Buttons in Panels */
.panel-icon-btn {
    background-color: var(--white);
    border: 1px solid var(--brand-mid-blue);
    color: var(--brand-dark-blue);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 0.9em;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.panel-icon-btn:hover {
    background-color: var(--brand-mid-blue);
    color: var(--white);
    transform: scale(1.1);
}


/* Responsive stacking for smaller screens */
@media (max-width: 820px) {
    .problem-container-parent {
        flex-direction: column;
    }
    .redgen-main.epp-active-mode {
        max-width: 800px;
    }
}