        :root {
            --primary-color: #6C3D91; 
            --accent-color: #00889C; 
            --neutral-color: #78848E; 
            --warning-color: #FF4C4C; 
            --success-color: #45B39D;  
            --background-color: #2C2C2C; 
            --card-color: #373737;  
        }

        body {
            font-family: 'Courier New', monospace;
            background-color: var(--background-color);
            background-image: url('data:image/svg+xml,%3Csvg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%236C3D91" fill-opacity="0.05"%3E%3Cpath d="M0 0h20L0 20z"/%3E%3C/g%3E%3C/svg%3E');
            color: var(--accent-color);
            margin: 0;
            padding: 20px;
            min-height: 100vh;
            position: relative;
            padding-bottom: 100px;
        }

        #venue-container {
            text-align: center;
            margin-bottom: 20px;
        }

        #venue-display {
            font-size: 52px;
            font-weight: bold;
            color: var(--primary-color);
            text-transform: uppercase;
            letter-spacing: 3px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }

        #setup-container {
            background: var(--card-color);
            border: 3px solid var(--primary-color);
            padding: 25px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            margin-bottom: 20px;
            animation: fadeIn 0.5s ease-out;
        }

        #timers-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 20px;
            margin-top: 20px;
            margin-bottom: 80px;
            overflow-x: auto;
            white-space: nowrap;
        }

        @media (max-width: 768px) {
            #timers-container {
                grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
                overflow-x: auto;
                display: flex; 
                gap: 10px; 
            }

            .timer {
                flex: 0 0 auto;
                width: 300px;
                min-height: 150px; 
            }

            .time-display {
                font-size: 28px; 
                padding: 10px;
            }

            button {
                font-size: 12px;
                padding: 6px 10px;
            }
        }

        @media (max-width: 480px) {
            #timers-container {
                gap: 5px;
            }

            .timer {
                width: 250px; 
                min-height: 120px; 
            }

            .time-display {
                font-size: 24px;
                padding: 8px;
            }

            button {
                font-size: 10px;
                padding: 4px 8px;
            }
        }

        .timer {
            background: var(--card-color);
            border: 4px solid var(--primary-color);
            border-radius: 0;
            box-shadow: inset 0 0 15px rgba(184, 115, 51, 0.3);
            position: relative;
            overflow: hidden;
            min-height: 200px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            animation: fadeIn 0.3s ease-out;
        }

        .timer::before {
            content: '';
            position: absolute;
            top: 5px;
            left: 5px;
            right: 5px;
            bottom: 5px;
            border: 2px solid var(--primary-color);
            pointer-events: none;
        }

        .timer.removing {
            animation: fadeOut 0.3s ease-out;
        }

        .timer h2 {
            color: var(--primary-color);
            font-family: 'Georgia', serif;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
            font-size: 42px;
            margin-bottom: 20px;
            text-align: center;
        }

        .time-display {
            font-size: 64px;
            font-family: 'Courier New', monospace;
            color: var(--timer-text-color);
            text-shadow: 0 0 10px var(--primary-color);
            background: linear-gradient(45deg, var(--background-color), var(--card-color));
            padding: 20px;
            border: 2px solid var(--primary-color);
            text-align: center;
            margin: 20px 0;
            transition: all 0.3s ease;
        }

        .warning .time-display {
            color: var(--warning-color);
            text-shadow: 0 0 20px var(--warning-color);
            animation: pulse 1s infinite;
            transition: color 0.3s ease, text-shadow 0.3s ease;
        }

        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.7; }
            100% { opacity: 1; }
        }

        .progress-bar {
            position: absolute;
            bottom: 0;
            left: 0;
            height: 12px;
            background: linear-gradient(to right, var(--primary-color), var(--accent-color));
            border-top: 2px solid #704214;
            transition: width 1s linear;
        }

        button {
            background-color: var(--accent-color);
            border: 2px solid var(--primary-color);
            color: #FFFFFF;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
            transition: all 0.3s;
            padding: 10px 20px;
            border-radius: 4px;
            cursor: pointer;
            margin: 5px;
        }

        button:hover {
            background-color: var(--neutral-color);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.3), 0 0 15px var(--primary-color);
            text-shadow: 0 0 5px #FFF;
        }

        .timer-btn:hover {
            box-shadow: 0 0 20px var(--primary-color);
            text-shadow: 0 0 5px #FFF;
        }

        #start-all:hover {
            background-color: var(--neutral-color);
            transform: scale(1.05);
            box-shadow: 0 4px 8px rgba(0,0,0,0.3), 0 0 25px var(--primary-color);
            text-shadow: 0 0 10px #D4AF37;
        }

        .remove-timer {
            position: absolute;
            top: 10px;
            right: 10px;
            padding: 8px 16px;
            font-size: 24px;
            border-radius: 50%;
            min-width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #6C3D91;
            border: 2px solid #8B4DB8;
            color: #D4AF37;
            transition: all 0.3s ease;
        }

        .remove-timer:hover {
            background-color: var(--warning-color);
            box-shadow: 0 0 15px var(--primary-color);
            border-color: var(--warning-color);
            color: #FFFFFF;
        }

        .warning {
            color: var(--warning-color);
        }

        .finished {
            background-color: var(--warning-color) !important;
            border-color: #da190b !important;
            opacity: 1;
        }

        .finished .time-display {
            color: white;
            text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        }

        .finished .progress-bar {
            background: #da190b;
        }

        @keyframes flashBackground {
            0% { background-color: var(--card-color); }
            25% { background-color: var(--warning-color); }
            50% { background-color: var(--card-color); }
            75% { background-color: var(--warning-color); }
            100% { background-color: var(--card-color); }
        }

        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px;
            background-color: var(--warning-color);
            color: white;
            border-radius: 5px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            animation: fadeIn 0.3s ease-out;
        }

        @keyframes slideIn {
            from { transform: translateX(100%); }
            to { transform: translateX(0); }
        }

        #start-all-container {
            position: fixed;
            bottom: 20px;
            left: 0;
            right: 0;
            text-align: center;
            background-color: rgba(255, 255, 255, 0.9);
            padding: 10px;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        }

        #start-all {
            background: var(--accent-color);
            border: 3px solid var(--primary-color);
            font-family: 'Georgia', serif;
            text-transform: uppercase;
            letter-spacing: 2px;
            position: relative;
            overflow: hidden;
            font-size: 20px;
            padding: 15px 40px;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            transition: transform 0.2s;
            font-weight: bold;
        }

        #start-all::before {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            right: 2px;
            bottom: 2px;
            border: 1px solid #D4AF37;
            pointer-events: none;
        }

        #start-all:hover {
            background-color: var(--neutral-color);
            transform: scale(1.05);
        }

        #start-all:disabled {
            background-color: #ccc;
            cursor: not-allowed;
            transform: none;
        }

        #pause-all, #reset-all {
            background: var(--accent-color);
            border: 3px solid var(--primary-color);
            font-family: 'Georgia', serif;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-size: 20px;
            padding: 15px 40px;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            transition: transform 0.2s;
            font-weight: bold;
        }

        #pause-all.active {
            background-color: var(--warning-color);
        }

        .timer-controls {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin: 10px 0;
            flex-wrap: wrap;
        }

        .timer-btn {
            background: var(--accent-color);
            border: 2px solid var(--primary-color);
            padding: 8px 16px;
            font-size: 14px;
            min-width: 80px;
            transition: all 0.3s ease;
        }

        .timer-btn.paused {
            background-color: var(--warning-color);
        }

        .timer.paused .time-display {
            opacity: 0.7;
        }

        .add-time-btn {
            background-color: var(--success-color);
            min-width: 50px;
            padding: 8px 12px;
            font-size: 12px;
        }

        .add-time-btn:hover {
            background-color: #2E8B57;
            box-shadow: 0 0 15px var(--success-color);
        }

        #reload-btn {
            position: fixed;
            top: 20px;
            left: 20px;
            background-color: var(--primary-color);
            width: 44px;
            height: 44px;
            border-radius: 50%;
            font-size: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            z-index: 1000;
            transition: all 0.3s ease;
        }

        #reload-btn:hover {
            background-color: var(--neutral-color);
            transform: rotate(180deg);
            box-shadow: 0 0 15px var(--primary-color);
            text-shadow: 0 0 5px #FFF;
        }

        
        .screw {
            position: absolute;
            width: 25px;
            height: 25px;
            background-color: #6C3D91;
            border: 3px solid #8B4DB8;
            border-radius: 50%;
            box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.5), 0 3px 6px rgba(0, 0, 0, 0.3);
            z-index: 10;
        }

        .screw::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 10px;
            height: 3px;
            background-color: #D4AF37;
            transform: translate(-50%, -50%) rotate(45deg);
            box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
        }

        .screw::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 10px;
            height: 3px;
            background-color: #D4AF37;
            transform: translate(-50%, -50%) rotate(-45deg);
            box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
        }

        
        .screw.top-left {
            top: 5px;
            left: 5px;
        }

        .screw.top-right {
            top: 5px;
            right: 5px;
        }

        .screw.bottom-left {
            bottom: 5px;
            left: 5px;
        }

        .screw.bottom-right {
            bottom: 5px;
            right: 5px;
        }

        .preset-buttons {
            display: flex;
            gap: 8px;
            margin: 10px 0;
            flex-wrap: wrap;
            justify-content: center;
        }

        .preset-btn {
            background-color: var(--accent-color);
            min-width: 60px;
            padding: 8px 12px;
            font-size: 14px;
            border: 2px solid var(--primary-color);
            color: #D4AF37;
            border-radius: 4px;
        }

        .preset-btn:hover {
            background-color: var(--neutral-color);
            transform: translateY(-2px);
            box-shadow: 0 0 15px var(--primary-color);
        }

        .preset-btn.active {
            background-color: var(--primary-color);
            box-shadow: 0 0 15px var(--primary-color);
            animation: fadeIn 0.2s ease-out;
        }

        #help-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            animation: fadeIn 0.3s ease-out;
        }

        #help-popup {
            background: var(--card-color);
            border: 4px solid var(--primary-color);
            border-radius: 8px;
            padding: 30px;
            max-width: 800px;
            width: 90%;
            max-height: 80vh;
            position: relative;
            overflow-y: auto;
            box-shadow: 0 0 30px rgba(184, 115, 51, 0.3);
            animation: fadeIn 0.4s ease-out;
        }

        .help-content {
            color: #D4AF37;
            font-family: 'Courier New', monospace;
        }

        .help-content h2 {
            color: #D4AF37;
            text-align: center;
            margin-bottom: 20px;
            font-family: 'Georgia', serif;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .help-content section {
            margin-bottom: 20px;
            padding: 15px;
            border: 1px solid var(--primary-color);
            background: rgba(0, 0, 0, 0.2);
        }

        .help-content h3 {
            color: var(--primary-color);
            margin-bottom: 10px;
        }

        .help-content ul, .help-content ol {
            padding-left: 20px;
            line-height: 1.6;
        }

        .close-help {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background-color: var(--warning-color);
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1;
        }

        .hidden {
            display: none !important;
        }

        #help-btn {
            position: fixed;
            top: 20px;
            left: 80px;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            font-size: 24px;
            background-color: var(--primary-color);
            color: #D4AF37;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            font-weight: bold;
        }

        #help-btn:hover {
            background-color: var(--neutral-color);
            transform: scale(1.1);
            box-shadow: 0 0 15px var(--primary-color);
        }

        #accessibility-btn {
            position: fixed;
            top: 20px;
            left: 140px;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            font-size: 20px;
            background-color: var(--primary-color);
            color: #D4AF37;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }

        #accessibility-btn:hover {
            background-color: var(--neutral-color);
            transform: scale(1.1);
            box-shadow: 0 0 15px var(--primary-color);
        }

        
        body.high-contrast {
            --primary-color: #5928ed;
            --accent-color: #00b4c5;
            --neutral-color: #00bf7d;
            --background-color: #000000;
            --card-color: #000000;
            --highlight-color: #0073e6;
            --emphasis-color: #2546f0;
        }

        body.high-contrast .timer {
            border-color: var(--primary-color);
        }

        body.high-contrast .time-display {
            color: var(--accent-color);
            text-shadow: none;
            background: #000000;
            border-color: var(--primary-color);
        }

        body.high-contrast button {
            background-color: var(--neutral-color);
            border-color: var(--primary-color);
            color: #000000;
        }

        body.high-contrast button:hover {
            background-color: var(--highlight-color);
            border-color: var(--emphasis-color);
        }

        body.high-contrast input {
            background-color: #000000;
            border-color: var(--accent-color);
            color: var(--accent-color);
        }

        body.high-contrast .progress-bar {
            background: linear-gradient(to right, var(--neutral-color), var(--accent-color));
        }

        body.high-contrast .warning {
            color: var(--emphasis-color);
        }

        body.high-contrast #accessibility-btn {
            background-color: var(--neutral-color);
            border-color: var(--primary-color);
            color: #000000;
        }

       
        #fullscreen-btn {
            position: fixed;
            top: 20px;
            left: 200px;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            font-size: 24px;
            background-color: var(--primary-color);
            color: #D4AF37;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            z-index: 1000;
            border: 2px solid var(--primary-color);
        }

        #fullscreen-btn:hover {
            background-color: var(--neutral-color);
            transform: scale(1.1);
            box-shadow: 0 0 15px var(--primary-color);
            text-shadow: none;
        }

      
        #light-mode-btn {
            position: fixed;
            top: 20px;
            left: 260px;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            font-size: 20px;
            background-color: var(--primary-color);
            color: #D4AF37;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            border: 2px solid var(--primary-color);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        #light-mode-btn:hover {
            background-color: var(--neutral-color);
            transform: scale(1.1);
            box-shadow: 0 0 15px var(--primary-color);
        }

        #date-time-display {
            position: fixed;
            top: 20px;
            right: 20px;
            font-size: 24px;
            font-family: 'Courier New', monospace;
            color: var(--accent-color);
            background-color: var(--card-color);
            padding: 15px 20px;
            border: 2px solid var(--primary-color);
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            text-align: center;
        }

        #undo-button {
            position: fixed;
            bottom: 80px;
            right: 20px;
            background-color: var(--accent-color);
            color: white;
            padding: 10px 20px;
            border-radius: 4px;
            border: 2px solid var(--primary-color);
            cursor: pointer;
            display: none;
            animation: slideIn 0.3s ease-out;
            z-index: 1000;
            font-family: 'Courier New', monospace;
        }

        #undo-button:hover {
            background-color: var(--neutral-color);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        }

        @keyframes slideIn {
            from { transform: translateX(100%); }
            to { transform: translateX(0); }
        }

        #timer-counter {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background-color: var(--card-color);
            border: 2px solid var(--primary-color);
            color: var(--accent-color);
            padding: 8px 15px;
            border-radius: 8px;
            font-family: 'Courier New', monospace;
            font-size: 14px;
            z-index: 1000;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

     
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes fadeOut {
            from { opacity: 1; transform: translateY(0); }
            to { opacity: 0; transform: translateY(20px); }
        }