@charset "utf-8";
/* CSS Document */
 * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        body {
            font-family: Arial, sans-serif;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            background: linear-gradient(135deg, #6e8efb, #a777e3);
            padding: 12px;
            color: #333;
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        header {
            text-align: center;
            margin-bottom: 15px;
            width: 100%;
        }
        
        h1 {
            font-size: 2rem;
            margin-bottom: 8px;
            color: white;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }
        
        .app-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
            width: 100%;
        }
        
        .game-section {
            flex: 1;
            min-width: 300px;
            max-width: 500px;
            background: white;
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        }
        
        .leaderboard-section {
            flex: 1;
            min-width: 300px;
            max-width: 600px;
            background: white;
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        }
        
        .controls {
            margin-bottom: 15px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 6px;
        }
        
        button {
            padding: 8px 16px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
            height: 34px;
            min-width: 80px;
        }
        
        button:hover {
            background-color: #45a049;
            transform: translateY(-2px);
        }
        
        button:disabled {
            background-color: #cccccc;
            cursor: not-allowed;
            transform: none;
        }
        
        select {
            padding: 8px;
            border-radius: 4px;
            border: 1px solid #ddd;
            background: white;
            height: 34px;
            font-size: 13px;
        }
        
        .table-container {
            display: flex;
            justify-content: center;
            width: 100%;
            margin-bottom: 15px;
        }
        
        #schulteTable {
            border-collapse: collapse;
            width: 100%;
            aspect-ratio: 1/1;
            max-width: 85vmin;
            border: 2px solid #333;
        }
        
        #schulteTable td {
            text-align: center;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
            background-color: white;
            user-select: none;
            padding: 0;
            height: 0;
            opacity: 0;
            transform: scale(0.8);
            animation: fadeIn 0.5s ease forwards;
            position: relative;
            border: none;
        }
        
        @keyframes fadeIn {
            to {
                opacity: 1;
                transform: scale(1);
            }
        }
        
        #schulteTable td:hover {
            background-color: #f0f0f0;
        }
        
        #schulteTable td.selected {
            background-color: #4CAF50;
            color: white;
        }
        
        .timer {
            margin: 12px 0;
            font-size: 20px;
            font-weight: bold;
            text-align: center;
            color: #2c3e50;
            height: 26px;
        }
        
        .instructions {
            margin-top: 15px;
            padding: 10px;
            background-color: #f9f9f9;
            border-radius: 5px;
            border-left: 3px solid #4CAF50;
        }
        
        .instructions h2 {
            margin-bottom: 6px;
            color: #2c3e50;
            font-size: 1rem;
        }
        
        .instructions p {
            margin-bottom: 6px;
            line-height: 1.3;
            font-size: 0.85rem;
        }
        
        .leaderboard {
            width: 100%;
            overflow-x: auto;
        }
        
        .leaderboard h2 {
            text-align: center;
            margin-bottom: 10px;
            color: #2c3e50;
            border-bottom: 2px solid #4CAF50;
            padding-bottom: 6px;
            font-size: 1.1rem;
        }
        
        .leaderboard-table-container {
            width: 100%;
            margin-bottom: 10px;
        }
        
        .leaderboard-table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .leaderboard-table th, .leaderboard-table td {
            border: 1px solid #ddd;
            padding: 3px 2px;
            text-align: center;
            font-size: 11px;
            height: 22px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .leaderboard-table th {
            background-color: #4CAF50;
            color: white;
            font-weight: bold;
            padding: 4px 2px;
        }
        
        .leaderboard-table tr:nth-child(even) {
            background-color: #f2f2f2;
        }
        
        .leaderboard-table tr:hover {
            background-color: #e9f7e9;
        }
        
        .device-badge {
            display: inline-block;
            padding: 1px 3px;
            border-radius: 4px;
            font-size: 9px;
            font-weight: bold;
        }
        
        .device-pc {
            background-color: #3498db;
            color: white;
        }
        
        .device-mobile {
            background-color: #e74c3c;
            color: white;
        }
        
        .filter-controls {
            display: flex;
            justify-content: center;
            margin-bottom: 10px;
            gap: 6px;
        }
        
        .qr-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        
        .qr-content {
            background: white;
            padding: 15px;
            border-radius: 6px;
            text-align: center;
            max-width: 95%;
            width: auto;
            min-width: 280px;
            max-width: 320px;
        }
        
        #qrCode {
            margin: 10px 0;
            background: white;
            padding: 10px;
            border-radius: 5px;
            border: 1px solid #ddd;
            min-height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .share-section {
            margin-top: 15px;
            text-align: center;
        }
        
        footer {
            margin-top: 20px;
            text-align: center;
            color: white;
            font-size: 12px;
            width: 100%;
            padding: 10px;
        }
        
        .footer-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
        }
        
        .copyright {
            font-size: 14px;
            opacity: 0.9;
        }
        
        .version {
            font-size: 11px;
            opacity: 0.7;
        }
        
        .date-time-cell {
            padding: 2px 2px;
        }
        
        .date-part {
            font-size: 9px;
            display: block;
        }
        
        .time-part {
            font-size: 9px;
            display: block;
            color: #666;
        }
        
        .no-results {
            text-align: center;
            padding: 12px;
            color: #666;
            font-style: italic;
        }
        
        .download-btn {
            padding: 8px 16px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            min-width: 90px;
        }

        .share-link {
            display: block;
            margin: 12px 0;
            font-size: 12px;
            color: #666;
            text-decoration: none;
        }

        .share-link:hover {
            color: #4CAF50;
            text-decoration: underline;
        }

        .buttons-container {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-top: 15px;
        }

        .modal-btn {
            padding: 8px 16px;
            min-width: 90px;
            font-size: 14px;
        }

        @media (max-width: 768px) {
            .leaderboard-table {
                font-size: 10px;
            }
            
            .leaderboard-table th, .leaderboard-table td {
                padding: 2px 1px;
                font-size: 10px;
            }
            
            .date-part, .time-part {
                font-size: 8px;
            }
            
            .device-badge {
                font-size: 8px;
                padding: 1px 2px;
            }
            
            .qr-content {
                width: 90%;
                padding: 12px;
            }

            .buttons-container {
                gap: 8px;
            }

            .modal-btn {
                padding: 7px 14px;
                min-width: 80px;
                font-size: 13px;
            }
            
            .copyright {
                font-size: 13px;
            }
            
            .version {
                font-size: 10px;
            }
        }

        @media (max-width: 480px) {
            .leaderboard-table {
                font-size: 9px;
            }
            
            .leaderboard-table th, .leaderboard-table td {
                padding: 1px 1px;
                font-size: 9px;
                height: 20px;
            }
            
            .date-part, .time-part {
                font-size: 7px;
            }
            
            .device-badge {
                font-size: 7px;
            }

            .buttons-container {
                flex-direction: column;
                gap: 6px;
            }

            .modal-btn {
                width: 100%;
                min-width: auto;
            }
            
            .copyright {
                font-size: 12px;
            }
            
            .version {
                font-size: 9px;
            }
        }