@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

html {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    overflow: hidden;
}

* {
    font-family: 'Inter', sans-serif;
}

.gradient-bg {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #0f172a 100%);
}

.glass-effect {
    background: rgba(30, 58, 138, 0.15);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(96, 165, 250, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.chess-board-container {
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.4), 0 0 80px rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(96, 165, 250, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
}

.pulse-animation {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

/* Chess Clock Styling */
#white-clock-container {
    transition: all 0.3s ease;
}

#white-clock-container.active {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 40px rgba(255, 255, 255, 0.2);
}

#black-clock-container {
    transition: all 0.3s ease;
}

#black-clock-container.active {
    border-color: rgba(100, 116, 139, 0.8);
    box-shadow: 0 0 20px rgba(100, 116, 139, 0.5), 0 0 40px rgba(100, 116, 139, 0.3);
}

.clock-warning {
    animation: clock-pulse 1s ease-in-out infinite;
}

@keyframes clock-pulse {
    0%, 100% {
        color: #ef4444;
    }
    50% {
        color: #fca5a5;
    }
}