.header {

    margin: 0;
}

h5 {
    font-size: 14pt;
}

.icon {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    /* Font size example */

}

/* Picture captions: smaller, in their own pale lemon box, max 80% wide (Tom 14/11/2026) */
p.image-caption {

    display: table;
    max-width: 80%;
    box-sizing: border-box;
    border: 1px solid #ffe27a;
    border-radius: 10px;
    color: #222 !important;
    padding: 10px 16px !important;
    margin: -14px auto 30px auto !important;
    background: #fff8d6;
    font-size: 12pt;
    line-height: 1.5;
    text-align: center;

}

/* Camera emoji in front of every picture caption (Tom 14/11/2026) */
p.image-caption::before {
    content: "\1F4F7\00A0\00A0";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

@media (max-width: 600px) {
    p.image-caption {
        max-width: 92%;
        font-size: 11.5pt;
    }
}
.completion-section {
    margin: 40px 0;
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mark-complete-btn {
    padding: 12px 24px;
    font-size: 18px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mark-complete-btn:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

.mark-complete-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

#celebration {
    display: none;
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 5px solid #4CAF50;
    animation: fadeIn 1s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin-bottom: 20px;
    height: 25px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #4CAF50;
    text-align: center;
    line-height: 25px;
    color: white;
    font-weight: bold;
    transition: width 0.5s ease;
}

.login-prompt {
    background-color: #fff3e0;
    border: 1px solid #ffcc80;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.login-prompt p {
    margin-bottom: 15px;
    font-size: 16px;
}

img {

    max-width: 900px;
}

.login-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff9800;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #f57c00;
}

.completion-tag {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s;
}

.completion-tag span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
    @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Division written as a stacked fraction (physics lessons, Tom 12 Nov 2026: never the ÷ sign).
   <span class='frac'><span class='num'>distance moved</span><span class='frac-say'> divided by </span><span class='den'>time taken</span></span>
   frac-say is hidden on screen but read out by screen readers and the read-aloud button. */
.frac {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    vertical-align: middle;
    text-align: center;
    line-height: 1.2;
    margin: 0.15em 0.2em;
}
.frac > .num { padding: 0 0.25em 0.1em; border-bottom: 1.5px solid currentColor; }
.frac > .den { padding: 0.1em 0.25em 0; }
.frac-say {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
