.btn-small {
    font-size: 3px;
    padding: 2px 8px;
}

.btn-large {
    font-size: 24px;
    padding: 15px 30px;
}


body {
    width: 100vw;
}

.site-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
}

.site-logo {
    height: 56px;
    width: auto;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}



/* Swap label positions */
label {
    display: inline-block;
    transform: skew(5deg) scale(1.05);
    transition: all 0.2s ease-in-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), -2px -2px 4px rgba(255, 255, 255, 0.5);
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.5));
}

/* Universal visual noise for maximum pain */
* {
    /* Expensive universal selector - forces layout recalculation */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5), inset 0 0 5px rgba(255, 255, 255, 0.3) !important;
    /* Multiple shadows force repaints */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5), 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
    /* Blur filter - very expensive */
    filter: blur(0.3px) brightness(1.05) saturate(1.1);
}

.submitbutton::after {
    content: "submit";
}

/* Live Chat Widget */
.chat-toggle {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    padding: 12px 20px !important;
    background: #0d6efd !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    z-index: 10000 !important;
    font-size: 16px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    filter: none !important;
}

.chat-widget {
    display: none !important;
    position: fixed !important;
    bottom: 80px !important;
    right: 20px !important;
    width: 350px !important;
    height: 450px !important;
    background: white !important;
    border: 2px solid #ddd !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    flex-direction: column !important;
    z-index: 10000 !important;
    filter: none !important;
}

.chat-widget.active {
    display: flex !important;
}

.chat-header {
    background: #0d6efd !important;
    color: white !important;
    padding: 12px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-radius: 8px 8px 0 0 !important;
    filter: none !important;
    box-shadow: none !important;
}

.chat-header span {
    filter: none !important;
    text-shadow: none !important;
}

.chat-header button {
    background: none !important;
    border: none !important;
    color: white !important;
    font-size: 24px !important;
    cursor: pointer !important;
    padding: 0 !important;
    filter: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.chat-messages {
    flex: 1 !important;
    padding: 12px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #f9f9f9 !important;
    filter: none !important;
    box-shadow: none !important;
}

.chat-message {
    margin-bottom: 10px !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: pre-wrap !important;
    filter: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

.chat-message.user {
    background: #0d6efd !important;
    color: white !important;
    margin-left: auto !important;
}

.chat-message.bot {
    background: #e9ecef !important;
    color: #333 !important;
}

.chat-input-container {
    display: flex !important;
    padding: 10px !important;
    border-top: 1px solid #ddd !important;
    background: white !important;
    filter: none !important;
    box-shadow: none !important;
}

.chat-input-container input {
    flex: 1 !important;
    padding: 8px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    filter: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.chat-input-container button {
    margin-left: 8px !important;
    padding: 8px 16px !important;
    background: #0d6efd !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    filter: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}


body.dark-mode {
    background-color: black;
}

body.dark-mode h1 {
    color: black;
}

body.dark-mode h2 {
    color:black;
}

body.dark-mode p {
    /* Forgot to style paragraphs */
}

body.dark-mode input {
    background-color: #111111;
    color: #111111;
    border: 1px solid #111111;
}

body.dark-mode button {
    background-color: pink;
   
}

body.dark-mode label {
    color: #2a2a2a; 
}

/* ===== PERFORMANCE KILLERS ===== */

/* Expensive animations that run constantly */
@keyframes jitter {
    0% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(2px, -2px) scale(1.05); }
    50% { transform: translate(-2px, 2px) scale(0.95); }
    75% { transform: translate(1px, 1px) scale(1.02); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.8), 0 0 30px rgba(0, 0, 255, 0.8); }
    100% { box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); }
}

@keyframes slideIn {
    from { transform: translateX(-100%) skewX(20deg); opacity: 0; }
    to { transform: translateX(0) skewX(0); opacity: 1; }
}

/* Heavy shadows on all buttons */
button {
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.3),
        0 15px 40px rgba(0, 0, 0, 0.3),
        inset 0 -2px 5px rgba(0, 0, 0, 0.2),
        inset 0 2px 5px rgba(255, 255, 255, 0.5),
        0 0 30px rgba(100, 100, 255, 0.5);
    transition: all 0.15s ease-in-out;
}

/* Deeply nested selectors (slow to parse) */
body > div > section > article > header > nav > ul > li > a {
    color: blue;
    text-decoration: none;
}

/* Multiple media queries that trigger reflow */
@media (min-width: 320px) {
    * { padding: 5px; }
}

@media (min-width: 480px) {
    * { padding: 10px; }
}

@media (min-width: 768px) {
    * { padding: 15px; }
}

@media (min-width: 1024px) {
    * { padding: 20px; }
}

@media (min-width: 1200px) {
    * { padding: 25px; }
}

@media (min-width: 1400px) {
    * { padding: 30px; }
}

/* Inefficient selectors - removed spinning to keep site usable */


/* Inline SVGs for every element (massive payload) */
input::before {
    content: '';
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="1000"><defs><pattern id="p" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="50" cy="50" r="40" fill="red"/><circle cx="50" cy="50" r="30" fill="blue"/><circle cx="50" cy="50" r="20" fill="green"/></pattern></defs><rect width="1000" height="1000" fill="url(%23p)"/></svg>');
}

/* Force layout thrashing with negative margins */
.chat-widget {
    margin: -50px -50px -50px -50px;
    width: calc(100% + 100px);
}

/* Inefficient selectors with attribute matching */
a[href*="http"], a[href^="https"], a[href$=".com"], a[href*="@"] {
    color: purple;
}


/* Learn with Southbank: lesson images */
.lesson-img {
    width: 12%;
    height: auto;
}

.lesson-quiz-button {
    display: block;
    margin: 28px 0;
}

.recovery-panel {
    margin: 24px 0;
    padding: 18px;
    border: 3px dashed #0d6efd;
    background: #eef6ff;
    max-width: 720px;
    filter: none !important;
}

.recovery-panel[hidden] {
    display: none !important;
}

.password-checklist {
    list-style: none;
    margin: 10px 0;
    padding: 10px;
    max-width: 520px;
    background: #ffffff;
    border: 1px solid #cfd8dc;
    filter: none !important;
}

.password-checklist li {
    margin: 4px 0;
    filter: none !important;
}

.password-checklist li.valid {
    color: #137333;
}

.password-checklist li.invalid {
    color: #b3261e;
}

.announcement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
    padding: 16px;
    border: 4px double #ff9800;
    background: #fff8e1;
    max-width: 960px;
    filter: none !important;
}

.announcement-grid h2 {
    grid-column: 1 / -1;
    margin: 0;
}

.announcement-card {
    padding: 12px;
    background: #ffffff;
    border: 2px solid #ffcc80;
    filter: none !important;
}

.announcement-card h3,
.announcement-card p {
    filter: none !important;
}

.privacy-panel {
    position: fixed !important;
    left: 18px !important;
    bottom: 18px !important;
    width: min(560px, calc(100vw - 36px));
    max-height: 80vh;
    overflow: auto;
    padding: 16px;
    background: #ffffff;
    border: 3px solid #263238;
    z-index: 10001;
    filter: none !important;
}

.privacy-panel-minimized {
    width: auto;
    max-height: none;
    padding: 6px;
}

.privacy-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    padding: 8px;
    border: 1px solid #cfd8dc;
    transform: none;
    filter: none !important;
}

.privacy-option input {
    margin-top: 5px;
}

.privacy-option span,
.privacy-option small,
.privacy-status {
    display: block;
    filter: none !important;
}

.privacy-option small {
    color: #546e7a;
}

.privacy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.alerts-popup {
    position: fixed !important;
    right: 18px !important;
    bottom: 18px !important;
    width: min(420px, calc(100vw - 36px));
    padding: 18px;
    background: #e8f5e9;
    border: 3px solid #2e7d32;
    z-index: 10002;
    filter: none !important;
}

.alerts-popup input,
.alerts-popup select {
    display: block;
    width: 100%;
    margin: 8px 0;
    filter: none !important;
}

.alerts-close {
    float: right;
    border: 0;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    filter: none !important;
}
