/* ============================================
   GLOBAL RESET AND BODY STYLING
   ============================================ */

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

body {
    /* Remove any scrollbars and overflow */
    overflow: hidden;
    
    /* Set black background as fallback */
    background-color: #000000;
    
    /* Ensure body takes full viewport */
    width: 100vw;
    height: 100vh;
}


/* ============================================
   CANVAS STYLING
   ============================================ */

#matrixCanvas {
    /* Make canvas fill entire viewport */
    display: block;
    width: 100%;
    height: 100%;
    
    /* Ensure canvas is positioned properly */
    position: absolute;
    top: 0;
    left: 0;
    
    /* Black background for the canvas */
    background-color: #000000;
}


/* ============================================
   COLOR PICKER BUTTON
   ============================================ */

.colorpickerbtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid currentColor;
    background-color: rgba(0, 0, 0, 0.7);
    color: #00ff00;
    font-size: 28px;
    font-family: "MS Gothic", "Yu Gothic", "Hiragino Kaku Gothic Pro", sans-serif;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1000;
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
    pointer-events: none;
}

.colorpickerbtn.visible {
    opacity: 1;
    pointer-events: auto;
}

.colorpickerbtn:hover {
    background-color: rgba(0, 0, 0, 0.9);
    text-shadow: 0 0 15px currentColor, 0 0 30px currentColor, 0 0 45px currentColor;
}


/* ============================================
   COLOR PICKER MODAL OVERLAY
   ============================================ */

.colormodal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}
