/* Basic Reset & Body */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0; /* Slightly lighter grey */
    color: #333;
    line-height: 1.6;
}

a {
    color: #007bff;
    text-decoration: none;
}
a:hover { text-decoration: underline; }

/* Container */
.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1.5rem 2rem; /* Slightly adjusted padding */
    background-color: #fff;
    border-radius: 10px; /* Slightly more rounded */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Slightly softer shadow */
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 1.5rem;
}
h2 { color: #333; margin-bottom: 0.75rem; /* Added margin */ }

/* Card Layout (index.html) - Unchanged */
.card-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.card { background-color: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 1.5rem; text-align: center; transition: transform 0.2s ease, box-shadow 0.2s ease; display: block; color: inherit; text-decoration: none; min-height: 100px; }
.card:hover { transform: translateY(-5px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); }
.card h2 { margin-top: 0; color: #007bff; }
.card p { color: #555; font-size: 0.9rem; }

/* Exercise Page Specific Styles */
.exercise-container { /* Already exists, ensures consistent padding */ }
.exercise-container h1 { text-align: left; margin-bottom: 0.5rem; }
.exercise-container > p:first-of-type a { /* Back link style */ display: inline-block; margin-bottom: 1.5rem; color: #555; }
.exercise-container > p:first-of-type a:hover { color: #007bff; }

/* --- Updated Global Form Element Styles (Inspired by Ex16) --- */
input[type="text"],
input[type="number"],
textarea {
    display: block;
    width: 100%; /* Simpler width */
    padding: 10px 12px; /* Adjusted padding */
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px; /* Consistent rounding */
    font-size: 1rem;
    font-family: inherit; /* Ensure consistent font */
    box-sizing: border-box;
    line-height: 1.4; /* Better textarea line height */
}
textarea {
    resize: vertical; /* Allow vertical resize */
    min-height: 60px; /* Default min height */
}
button {
    padding: 10px 20px; /* Consistent padding */
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px; /* Consistent rounding */
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
    margin-right: 0.5rem;
    vertical-align: middle;
}
button:not(:last-child) { margin-bottom: 0.5rem; }
button:hover:not(:disabled) { background-color: #0056b3; }
button:disabled { background-color: #ccc; cursor: not-allowed; opacity: 0.7; /* Slight fade */ }
.button-small { padding: 4px 10px; font-size: 0.85rem; border-radius: 4px; } /* Adjusted small button */

/* Feedback & Results styles (minor tweaks) */
.feedback { margin-top: 1rem; color: green; font-weight: bold; min-height: 1.6em; }
.results { margin-top: 1rem; padding: 1rem 1.5rem; border: 1px solid #eee; background-color: #f9f9f9; border-radius: 8px; /* Match container */ font-family: sans-serif; /* Use normal font */ line-height: 1.5; white-space: normal; /* Allow wrapping */ }
.results ul { padding-left: 20px; margin-top: 0.5em; margin-bottom: 0.5em; }
.results li { margin-bottom: 0.5em; /* Slightly more space */ }
.results h3 { margin-bottom: 0.75em; font-size: 1.1em;}
.results strong { font-weight: bold; color: #333; } /* Ensure contrast */
.results code, .results pre { font-family: monospace; background-color: #eee; padding: 2px 4px; border-radius: 3px;} /* Style code if used */


/* --- Existing Styles for Exercises 2-15 (Keep As Is) --- */
/* Ex 2: Narrow Down */
#narrow-down-step input[type="text"] { margin-bottom: 0.5rem; }
/* Ex 3: Simply Sort */
#sortable-list { list-style: none; padding: 0; margin-top: 1rem; border: 1px dashed #ccc; min-height: 50px; }
.sortable-item { background-color: #e9ecef; padding: 15px; margin: 5px 0; border: 1px solid #ced4da; border-radius: 4px; cursor: grab; transition: background-color 0.2s; line-height: 1.5; text-align: left; }
.sortable-item:active { cursor: grabbing; background-color: #dde2e6; }
.sortable-item strong { display: block; margin-bottom: 0.5em; font-weight: bold; color: #0056b3; }
.sortable-item.dragging { opacity: 0.5; border-style: dashed; transition: none; }
.sortable-item.drag-over { border-top: 2px solid #007bff; }
/* Ex 4: This or That */
.choice-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 5px; border-bottom: 1px solid #eee; margin-bottom: 0.5rem; gap: 1em; }
.choice-row label { cursor: pointer; display: flex; align-items: center; gap: 0.5em; flex: 1; }
.choice-row label:first-of-type { justify-content: flex-start; text-align: left; }
.choice-row label:last-of-type { justify-content: flex-end; text-align: right; }
.choice-row span { color: #888; font-weight: bold; flex-shrink: 0; }
.choice-row input[type="radio"] { margin: 0; flex-shrink: 0; }
.choice-row label:first-of-type input[type="radio"] { order: 1; margin-left: 0.5em; }
.choice-row label:last-of-type input[type="radio"] { order: -1; margin-right: 0.5em; }
/* Ex 5: Swiping (Card Sorting v1) */
.card-stack { position: relative; width: 280px; height: 400px; margin: 2rem auto; perspective: 1000px; }
.swipe-card { position: absolute; width: 100%; height: 100%; background-color: #fff; border: 1px solid #ccc; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); display: flex; justify-content: center; align-items: center; font-size: 1.3rem; text-align: center; padding: 25px; box-sizing: border-box; cursor: grab; user-select: none; overflow: hidden; transition: transform 0.3s ease; will-change: transform; touch-action: none; }
.swipe-card:nth-last-child(1) { z-index: 5; } .swipe-card:nth-last-child(2) { z-index: 4; transform: translateY(8px) scale(0.96); opacity: 0.9; } .swipe-card:nth-last-child(3) { z-index: 3; transform: translateY(16px) scale(0.92); opacity: 0.8; } .swipe-card:nth-last-child(4) { z-index: 2; transform: translateY(24px) scale(0.88); opacity: 0.7; } .swipe-card:nth-last-child(5) { z-index: 1; transform: translateY(32px) scale(0.84); opacity: 0.6; } .swipe-card:nth-last-child(n+6) { opacity: 0; pointer-events: none;}
.swipe-card.dragging { transition: none; cursor: grabbing; box-shadow: 0 8px 15px rgba(0,0,0,0.2); }
.swipe-card.swipe-out-right { animation: swipeOutRight 0.5s forwards ease-out; } .swipe-card.swipe-out-left { animation: swipeOutLeft 0.5s forwards ease-out; }
@keyframes swipeOutRight { to { transform: translateX(150%) rotate(20deg); opacity: 0; } } @keyframes swipeOutLeft { to { transform: translateX(-150%) rotate(-20deg); opacity: 0; } }
.swipe-indicator { position: absolute; top: 25px; padding: 6px 12px; border-radius: 8px; font-weight: bold; font-size: 1.6rem; opacity: 0; transition: opacity 0.2s ease-in-out; pointer-events: none; border-width: 3px; border-style: solid; }
.swipe-indicator.yes { right: 25px; color: mediumseagreen; border-color: mediumseagreen; transform: rotate(15deg); } .swipe-indicator.no { left: 25px; color: tomato; border-color: tomato; transform: rotate(-15deg); }
.swipe-card.show-yes .swipe-indicator.yes { opacity: 1; } .swipe-card.show-no .swipe-indicator.no { opacity: 1; }
#card-sort-done-btn { margin-top: 1.5rem; }
/* Ex 6: RIASEC Test */
.question-item { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid #eee; } .question-item p { font-weight: bold; margin-bottom: 0.5rem; } .options label { margin-right: 1rem; cursor: pointer; display: inline-block; white-space: nowrap; line-height: 1.8; } .options input[type="radio"] { margin-right: 0.3em; vertical-align: middle; } #riasec-summary p { margin-bottom: 0.5em; } #riasec-summary strong { color: #0056b3; display: inline-block; width: 20px; }
/* Ex 7: Pie Charts */
.pie-step-container { display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start; margin-bottom: 2rem; } .pie-chart-area { width: 300px; height: 300px; position: relative; flex-shrink: 0; } .pie-controls { flex: 1; min-width: 250px; } .pie-controls h4 { margin-top: 0; margin-bottom: 0.5rem;} .pie-controls ul { list-style: none; padding: 0; margin: 0 0 1rem 0; } .pie-controls li { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; flex-wrap: wrap; } .pie-controls input[type="text"] { width: 120px; margin-bottom: 0; flex-grow: 1; } .pie-controls input[type="number"] { width: 70px; margin-bottom: 0; text-align: center;} .pie-controls button { background-color: #dc3545; flex-shrink: 0; /* Use button-small class */ } .pie-controls button:hover { background-color: #c82333; } .add-slice-form { margin-top: 1rem; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; } .add-slice-form input[type="text"] { width: auto; flex-grow: 1; margin-bottom: 0; } .add-slice-form button { background-color: #28a745; flex-shrink: 0; /* Use button-small class */} .add-slice-form button:hover { background-color: #218838; } #finalChart1Display { width: 200px; height: 200px; margin-bottom: 1rem; position: relative; }
/* Ex 8: Upload */
#fileUpload { display: block; margin-bottom: 1rem;} #uploadFeedback { margin-top: 1rem; font-size: 0.9rem; color: #555; border: 1px dashed #ccc; padding: 10px; min-height: 30px; background-color: #f9f9f9; } #imagePreview { max-width: 300px; max-height: 300px; margin-top: 1rem; display: block; border: 1px solid #ddd; }
/* Ex 9: Rating Scale (Slider) */
.rating-item { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid #eee; } .rating-item p { margin-bottom: 0.75rem; } .rating-slider-container { display: flex; align-items: center; gap: 1rem; margin-left: 1rem; } input[type="range"].rating-slider { flex-grow: 1; max-width: 400px; cursor: pointer; margin: 0; height: 8px; background: #ddd; border-radius: 5px; appearance: none; -webkit-appearance: none; } input[type="range"].rating-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; background: #007bff; border-radius: 50%; cursor: pointer; } input[type="range"].rating-slider::-moz-range-thumb { width: 20px; height: 20px; background: #007bff; border-radius: 50%; cursor: pointer; border: none; } .rating-value-display { font-weight: bold; font-size: 1.1rem; min-width: 2em; text-align: center; color: #0056b3; background-color: #e9ecef; padding: 2px 8px; border-radius: 4px; } .rating-labels { display: flex; justify-content: space-between; max-width: 420px; margin-left: 1rem; font-size: 0.8rem; color: #666; padding: 0 5px; } #rating-user-answers { list-style: none; padding-left: 0; font-family: sans-serif; white-space: normal; } #rating-user-answers li { margin-bottom: 0.5em; }
/* Ex 10: Prioritization Matrix */
.matrix-container { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 1.5rem; } .matrix-items-pool { border: 1px solid #eee; padding: 1rem; min-height: 100px; width: 200px; background-color: #f9f9f9; flex-shrink: 0; } .matrix-items-pool h3 { margin-top: 0; font-size: 1rem; } .matrix-item { background-color: #e9ecef; padding: 8px 12px; margin-bottom: 8px; border: 1px solid #ced4da; border-radius: 4px; cursor: grab; font-size: 0.9rem; } .matrix-item:active { cursor: grabbing; } .matrix-item.dragging { opacity: 0.5; border-style: dashed; } #matrix-grid { flex-grow: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr 1fr; gap: 10px; min-width: 400px; position: relative; padding-top: 20px; padding-left: 50px; } .matrix-label-top { grid-column: 1 / 3; grid-row: 1 / 2; text-align: center; font-weight: bold; padding-bottom: 5px; } .matrix-label-bottom { grid-column: 1 / 3; grid-row: 4 / 5; text-align: center; font-size: 0.8em; padding-top: 5px; } .matrix-label-left { position: absolute; top: 50%; left: 0; transform: rotate(-90deg) translateY(-50%); transform-origin: left top; font-weight: bold; white-space: nowrap; padding-bottom: 5px; } .matrix-label-right { position: absolute; top: 50%; right: -30px; transform: rotate(-90deg) translateY(-50%); transform-origin: right top; font-size: 0.8em; white-space: nowrap; padding-bottom: 5px; } .matrix-quadrant { border: 2px dashed #ccc; background-color: #fdfdfd; padding: 10px; min-height: 150px; position: relative; transition: background-color 0.2s ease; } .matrix-quadrant.drag-over { background-color: #e8f4ff; border-color: #007bff; } .quadrant-label { position: absolute; top: 5px; left: 5px; font-size: 0.8em; color: #888; font-style: italic; pointer-events: none; } #q1 { grid-column: 1 / 2; grid-row: 2 / 3; } #q2 { grid-column: 2 / 3; grid-row: 2 / 3; } #q3 { grid-column: 1 / 2; grid-row: 3 / 4; } #q4 { grid-column: 2 / 3; grid-row: 3 / 4; }
/* Ex 11: Mind Map */
.mind-map-controls { margin-bottom: 1.5rem; display: flex; gap: 0.5rem; align-items: center; max-width: 500px; } .mind-map-controls input[type="text"] { flex-grow: 1; margin-bottom: 0; } .mind-map-canvas-container { width: 100%; min-height: 500px; border: 1px solid #eee; background-color: #fdfdfd; position: relative; } #mindMapSvg { display: block; } .mind-map-node-circle { fill: #e8f4ff; stroke: #007bff; stroke-width: 2; } .mind-map-node-text { font-size: 12px; font-family: sans-serif; text-anchor: middle; dominant-baseline: middle; fill: #333; pointer-events: none; } .mind-map-line { stroke: #aaa; stroke-width: 2; }
/* Ex 12: History View */
#history-view-container { position: relative; width: 100%; min-height: 400px; margin-top: 1rem; } #historyViewSvg { display: block; border: 1px solid #eee; background-color: #fdfdfd; } .history-node-circle { fill: #e9ecef; stroke: #adb5bd; stroke-width: 2; } .history-line { stroke: #adb5bd; stroke-width: 2; } .history-node-editor { position: absolute; width: 100px; height: 60px; transform: translate(-50%, -50%); display: flex; justify-content: center; align-items: center; padding: 5px; box-sizing: border-box; } .history-node-editor textarea { width: 100%; height: 100%; resize: none; border: 1px dashed #ccc; border-radius: 4px; font-size: 11px; text-align: center; background-color: rgba(255, 255, 255, 0.8); box-sizing: border-box; padding: 4px; overflow: hidden; } .history-node-editor textarea:focus { border-style: solid; border-color: #007bff; background-color: rgba(255, 255, 255, 0.95); }
/* Ex 13: Venn Diagram */
.venn-container { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; margin-top: 1.5rem; flex-wrap: wrap; } .venn-list-area { flex: 1; min-width: 180px; } .venn-list-area label { display: block; margin-bottom: 0.5rem; font-weight: bold; } .venn-list-area textarea { width: 100%; height: 250px; font-family: sans-serif; font-size: 0.9rem; line-height: 1.4; padding: 8px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; } .venn-svg-area { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; } #vennSvg { border: 1px solid #eee; background-color: #fdfdfd; max-width: 100%; width: 350px; height: 250px; } .venn-circle { stroke-width: 2; fill-opacity: 0.1; transition: cx 0.5s ease-in-out; } #vennCircleLeft { stroke: #007bff; fill: #cfe2ff; } #vennCircleRight { stroke: #dc3545; fill: #f8d7da; } .venn-intersection-area { fill: #d3c5ff; fill-opacity: 0.3; stroke: #6f42c1; stroke-width: 1; } #vennOverlapInfo { margin-top: 0.5rem; font-style: italic; color: #555; }
/* Ex 14: Combinator */
.combinator-container { display: flex; gap: 2rem; margin-top: 1.5rem; flex-wrap: wrap; } .combinator-source { border: 1px solid #eee; padding: 1rem; background-color: #f9f9f9; min-width: 200px; flex-basis: 30%; min-height: 300px; } .combinator-source h3 { margin-top: 0; font-size: 1rem; } #combinatorSourceList { list-style: none; padding: 0; margin: 0; } #combinatorSourceList li, #combinatorTargetList li { padding: 8px 12px; margin-bottom: 8px; border: 1px solid #ccc; border-radius: 20px; cursor: pointer; transition: background-color 0.2s ease, box-shadow 0.2s ease; font-size: 0.9rem; display: inline-block; margin-right: 5px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); } #combinatorSourceList li:hover { box-shadow: 0 2px 5px rgba(0,0,0,0.1); border-color: #999; } .combinator-item[data-color="orange"] { background-color: #ffe8cc; border-color: #ffc98a; } .combinator-item[data-color="yellow"] { background-color: #fff3cd; border-color: #ffe187; } .combinator-item[data-color="red"] { background-color: #f8d7da; border-color: #f1aeB5; } .combinator-target { border: 3px dashed #adb5bd; padding: 1rem; background-color: #fff; flex-grow: 1; min-height: 300px; position: relative; border-radius: 8px; display: flex; flex-direction: column; } .combinator-target .target-label { font-weight: bold; color: #6c757d; margin-bottom: 10px; font-size: 0.9em; } #combinatorTargetList { list-style: none; padding: 0; margin: 0; flex-grow: 1; min-height: 50px; } #combinatorTargetList li { background-color: #e9ecef; } .combinator-result { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; transition: opacity 0.3s ease; } .combinator-qm { font-size: 5rem; font-weight: bold; color: #e0e0e0; } .combinator-advice { font-size: 1.3rem; font-weight: bold; color: #198754; padding: 20px; background: rgba(232, 245, 233, 0.9); border-radius: 5px; }

/* --- Styles for Exercise 13: Card Sorting (Categories) --- */

/* Adjust stack position if needed */
.card-stack-13 {
    margin-bottom: 2rem; /* Space between stack and drop zones */
}

/* Use swipe-card style but allow override if needed */
/* #cardStack13 .swipe-card { ... } */

.drop-zones-container {
    display: flex;
    justify-content: space-around; /* Space out zones */
    gap: 1rem; /* Gap between zones */
    width: 100%;
    max-width: 700px; /* Limit container width */
    margin-top: 1rem;
}

.category-drop-zone {
    border: 3px dashed #ccc;
    background-color: #f8f9fa;
    padding: 10px;
    min-height: 150px; /* Min height for drop */
    flex: 1; /* Allow zones to grow equally */
    display: flex;
    flex-direction: column; /* Stack label and cards */
    align-items: center;
    border-radius: 8px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    position: relative; /* For label positioning */
}
.category-drop-zone .zone-label {
    font-weight: bold;
    color: #6c757d;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 1.1rem;
}

/* Style when dragging over a drop zone */
.category-drop-zone.drag-over {
    background-color: #e0e0e0;
    border-color: #999;
    border-style: solid;
}

/* Style for cards dropped into a zone */
.category-drop-zone .swipe-card {
    position: static; /* Override absolute position */
    width: 90%; /* Fit card inside zone */
    height: auto; /* Adjust height automatically */
    min-height: 50px;
    font-size: 0.9rem; /* Smaller font inside zone */
    padding: 8px;
    margin-top: 5px; /* Space between dropped cards */
    cursor: default; /* No longer draggable once dropped */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    /* Reset transforms/opacity if needed */
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
}
/* Specific zone colors (optional) */
#category-no { border-color: tomato; }
#category-no.drag-over { background-color: #ffebee; border-color: tomato; }
#category-maybe { border-color: #ffc107; }
#category-maybe.drag-over { background-color: #fff8e1; border-color: #ffc107; }
#category-yes { border-color: mediumseagreen; }
#category-yes.drag-over { background-color: #e8f5e9; border-color: mediumseagreen; }

#card-sort-done-btn-13 { margin-top: 2rem; }

#card-sort-results-13 ul { /* Styling results list */
    list-style: none; padding-left: 0; font-family: sans-serif; white-space: normal;
}
#card-sort-results-13 li { margin-bottom: 0.3em; }
#card-sort-results-13 strong { display: block; margin-bottom: 0.3em; color: #0056b3;}

/* --- End Styles for Exercise 13 --- */

/* --- Styles for Exercise 16: Outside-in --- */
/* Container for the layers - centered using flex on body might conflict, use margin auto */
#outside-in-layers-container {
    position: relative; /* Crucial for absolute positioning of layers */
    width: 90vw; /* Use viewport width */
    height: 80vh; /* Use viewport height */
    max-width: 600px; /* Max size */
    max-height: 550px; /* Max size */
    margin: 2rem auto; /* Center horizontally */
    /* border: 1px dotted red; /* For debugging layout */
}

.layer {
    position: absolute;
    /* Center using top/left 50% and transform */
    top: 50%;
    left: 50%;
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;

    /* Transition for opacity, transform, and filter */
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out, filter 0.6s ease-in-out;
    transform-origin: center center;
    text-align: center;
    box-sizing: border-box; /* Include padding in width/height */
}

/* Layer-specific sizes, z-index, and backgrounds */
#layer-1 {
    width: 100%; height: 100%; z-index: 3; background-color: #ffffff;
}
#layer-2 {
    width: 85%; height: 85%; z-index: 2; background-color: #f8f8ff; /* Slightly off-white */
}
#layer-3 {
    width: 70%; height: 70%; z-index: 1; background-color: #f0f8ff; /* Alice blue */
}


/* --- State Classes for Layers --- */
.layer.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    filter: blur(0px); /* No blur */
}
.layer.is-peeled {
    opacity: 0.15; /* More transparent */
    pointer-events: none;
    /* Slightly move and rotate peeled layers */
    transform: translate(-48%, -52%) scale(1.03) rotate(2deg); /* Example transform */
    filter: blur(1px); /* Optional: Slight blur */
}
.layer.is-hidden {
    opacity: 0;
    pointer-events: none;
    /* Start slightly scaled down and centered */
    transform: translate(-50%, -50%) scale(0.95) rotate(0deg);
    filter: blur(0px);
}

/* Styling for elements within layers */
.layer h2 {
    color: #333;
    margin-bottom: 5px;
    transition: color 0.6s ease-in-out;
}
.layer p {
    color: #555;
    line-height: 1.5;
    max-width: 90%;
    transition: color 0.6s ease-in-out;
}
/* Fade text color on peeled layers */
.layer.is-peeled h2, .layer.is-peeled p { color: #bbb; }

.layer textarea {
    width: 90%;
    /* min-height adjusted per layer via specific ID if needed */
    /* Make textarea less prominent on peeled layers */
    transition: background-color 0.6s ease-in-out, border-color 0.6s ease-in-out;
}
/* Style textarea in peeled layers */
.layer.is-peeled textarea {
    background-color: rgba(230, 230, 230, 0.3); /* More transparent */
    border-color: #ddd;
    color: #ccc; /* Fade text inside */
}

/* Adjust textarea height for specific layers if needed */
#layer-2 textarea { min-height: 60px; }
#layer-3 textarea { min-height: 50px; }

.layer button {
    margin-top: auto; /* Push button to bottom */
    flex-shrink: 0; /* Prevent button shrinking */
    transition: background-color 0.2s ease, opacity 0.6s ease-in-out;
}
/* Hide button on peeled layers */
.layer.is-peeled button {
    opacity: 0;
    pointer-events: none;
}

/* Finish button specific style */
.layer button[data-action="finish"] { background-color: #28a745; }
.layer button[data-action="finish"]:hover:not(:disabled) { background-color: #218838; }

/* --- End Styles for Exercise 16 --- */