/*
 * Coding Ireland proprietary interactive activity
 * Copyright (c) 2017-2026 Coding Ireland. All rights reserved.
 *
 * Part of the Coding Ireland online learning platform. Licensed for use only
 * as delivered on the platform. Copying, redistributing, or adapting this
 * file, in whole or in part, for use in any other product or service is not
 * permitted. Ref: CI-maths-states-of-matter
 */

.som-stage { display: flex; gap: 18px; align-items: stretch; flex-wrap: wrap; }
.som-scene { flex: 1 1 380px; min-width: 300px; height: auto; }
.som-side { flex: 0 1 250px; display: flex; flex-direction: column; gap: 12px; }

.som-vessel { fill: #f4f9ff; stroke: #9db8d2; stroke-width: 3; }
.som-p { fill: #1565c0; stroke: #0d3f7a; stroke-width: 1.5; }

/* The state name is the one word the class reads from the back of the room. */
.som-statecard { background: #fff; border: 2px solid #d9e6f2; border-radius: 10px; padding: 10px 12px; }
.som-statename { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 26px; line-height: 1.1; }
.som-is-solid  { color: #1d4ed8; }
.som-is-liquid { color: #0e7490; }
.som-is-gas    { color: #b45309; }
.som-statewhat { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: #334155; }

.som-thermo-label { display: block; font-weight: 700; font-size: 14px; color: #163a5f; margin-bottom: 4px; }
#somTemp { width: 100%; }
.som-marks { display: flex; justify-content: space-between; font-size: 11.5px; color: #64748b; margin-top: 2px; }

.som-chips { display: flex; gap: 6px; }
.som-chip {
    flex: 1; border: 2px solid #cbd5e1; background: #fff; border-radius: 999px;
    padding: 6px 4px; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 13px;
    color: #334155; cursor: pointer;
}
.som-chip.is-on { background: #1565c0; border-color: #1565c0; color: #fff; }

.som-guided { background: #f8fafc; border-left: 4px solid #1565c0; border-radius: 8px; padding: 10px 12px; }
.som-guided-text { margin: 0 0 8px; font-size: 14px; line-height: 1.45; color: #1e293b; }
.som-guided-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.som-guided-count { font-size: 12px; color: #64748b; white-space: nowrap; }

.som-your-turn {
    margin-top: 16px; background: #fffaf0; border-left: 4px solid #dd6b20;
    border-radius: 8px; padding: 10px 14px;
}
.som-your-turn-label { font-weight: 800; color: #9a3412; font-size: 13px; margin-bottom: 4px; }
#yourTurnList { margin: 0; padding-left: 18px; font-size: 14px; color: #334155; }

/* Display mode: the picture and the one-line reading, nothing else. The particles
   keep moving — a frozen frame of a gas teaches the opposite of the lesson. */
body.display-mode .activity-header,
.activity-container.display-mode .activity-header { display: none; }
body.display-mode .som-scene { flex-basis: 460px; }
body.display-mode .som-statename { font-size: 32px; }
body.display-mode .som-statewhat { font-size: 16px; }

@media (max-width: 560px) {
    .som-side { flex-basis: 100%; }
    .som-statename { font-size: 22px; }
}
