/* Render-blocking external fonts - loaded synchronously */
@import url('https://fonts.googleapis.com/css2?family=Comic+Sans+MS:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lobster+2:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

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

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


body {
    font-family: Arial, sans-serif;
    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));
}

/* Comic Sans for maximum pain */
* {
    font-family: 'Comic Sans MS', 'Lobster 2', 'Pacifico', 'VT323', cursive !important;
    /* 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;
}

