* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: #00ff41;
    font-family: 'Share Tech Mono', monospace;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.15;
}

.matrix-rain canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    z-index: 10;
}

.ctrl-key {
    position: relative;
    width: 220px;
    height: 140px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 10%, #0a0a0a 100%);
    border: 2px solid #00ff41;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 
        /* Key depth shadow - taller underside */
        0 15px 0 #001a08,
        0 17px 0 #00ff41,
        0 17px 25px rgba(0, 0, 0, 0.8),
        /* Glow effects */
        0 0 50px rgba(0, 255, 65, 0.4),
        inset 0 1px 0 rgba(0, 255, 65, 0.3),
        inset 0 -4px 8px rgba(0, 0, 0, 0.6);
    animation: pulse 2s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.1s ease;
    transform-style: preserve-3d;
}

.ctrl-key:hover {
    transform: translateY(-3px);
    box-shadow: 
        /* Key depth shadow - raised even more */
        0 18px 0 #001a08,
        0 20px 0 #00ff41,
        0 20px 30px rgba(0, 0, 0, 0.9),
        /* Enhanced glow */
        0 0 80px rgba(0, 255, 65, 0.6),
        inset 0 1px 0 rgba(0, 255, 65, 0.4),
        inset 0 -4px 8px rgba(0, 0, 0, 0.6);
}

.ctrl-key:active {
    transform: translateY(6px);
    box-shadow: 
        /* Key depth shadow - pressed down */
        0 4px 0 #001a08,
        0 5px 0 #00ff41,
        0 5px 15px rgba(0, 0, 0, 0.8),
        /* Reduced glow when pressed */
        0 0 30px rgba(0, 255, 65, 0.3),
        inset 0 1px 0 rgba(0, 255, 65, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.8);
}

.key-text {
    font-size: 48px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 
        0 0 10px #00ff41,
        0 0 20px #00ff41,
        0 0 30px #00ff41;
    margin-bottom: 10px;
}

.hex-code {
    font-size: 20px;
    opacity: 0.7;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 2px;
    animation: flicker 3s infinite;
    margin-top: 5px;
}

.terminal-text {
    position: absolute;
    bottom: 50px;
    font-size: 14px;
    color: #00ff41;
    opacity: 0.6;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 
            0 15px 0 #001a08,
            0 17px 0 #00ff41,
            0 17px 25px rgba(0, 0, 0, 0.8),
            0 0 50px rgba(0, 255, 65, 0.4),
            inset 0 1px 0 rgba(0, 255, 65, 0.3),
            inset 0 -4px 8px rgba(0, 0, 0, 0.6);
    }
    50% {
        box-shadow: 
            0 15px 0 #001a08,
            0 17px 0 #00ff41,
            0 17px 25px rgba(0, 0, 0, 0.8),
            0 0 70px rgba(0, 255, 65, 0.5),
            inset 0 1px 0 rgba(0, 255, 65, 0.4),
            inset 0 -4px 8px rgba(0, 0, 0, 0.6);
    }
}

@keyframes flicker {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.9; }
    75% { opacity: 0.6; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@media (max-width: 768px) {
    .ctrl-key {
        width: 170px;
        height: 110px;
    }
    
    .key-text {
        font-size: 36px;
    }
    
    .hex-code {
        font-size: 16px;
    }
}