     justify-content: center;
     z-index: 9999999;
     position: fixed;
-    bottom: 50px;    
     font-size: 15px;
   }
   #flash {

    border: none;
    padding: 12px 24px;
  }
"""

flash = fetch('flash')

clear_flash = ->
  flash.message = flash.args = null 
  save flash

window.show_flash_error = (message, time_in_ms) ->


  render : -> 
    flash = fetch('flash')
  
    is_error = flash.args?.error 

    DIV
      id: "flash-container"
      style: 
        animation: if flash.message then "flashfadein 500ms, flashfadeout 500ms #{flash.time - 500}ms"
        visibility: if flash.message then 'visible' else 'hidden'
        opacity: if flash.message then 1 else 0 
        bottom: if flash.message then 50 else 0

      DIV
        id: 'flash'
