/*
 * File:        alert.css
 * CVS:         $Id$
 * Description: Alert styling
 * Author:      Allan Jardine
 * Created:     26-8-07
 * Modified:    $Date$ by $Author$
 * Language:    CSS
 * Project:     Alert
 * 
 * Copyright 2007 Allan Jardine. All rights reserved.


 DOM layout that this style sheet applies to:

 +--div #alert_background--------------------------------------------------+
 |                                                                         |
 |                                                                         |
 |     +--div #alert_wrapper---------------------------------------+       |
 |     |                                                           |       |
 |     | +--div #alert_header------------------------------------+ |       |
 |     | |                        Header                         | |       |
 |     | +-------------------------------------------------------+ |       |
 |     |                                                           |       |
 |     | +--div #alert_content-----------------------------------+ |       |
 |     | |                                                       | |       |
 |     | |                        Content                        | |       |
 |     | |                                                       | |       |
 |     | +-------------------------------------------------------+ |       |
 |     |                                                           |       |
 |     | +--div #alert_buttons-----------------------------------+ |       |
 |     | |                        Buttons                        | |       |
 |     | +-------------------------------------------------------+ |       |
 |     |                                                           |       |
 |     +-----------------------------------------------------------+       |
 |                                                                         |
 |                                                                         |
 +-------------------------------------------------------------------------+

*/

/*
 * Generic styles for the demo html page
 */


#fw_wrapper {
	padding: 2em;
}


/*
 * Alert styles
 */
#alert_background {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	z-index: 1;
	background-color: black;
	_position: absolute;
	_top:expression( document.body.scrollTop+'px' );
	/* for IE */
  filter:alpha(opacity=40);
  /* CSS3 standard */
  opacity:0.4;
}

#alert_wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    height: auto;
    min-height: 25vh;
    max-height: 70vh;
    width: auto;
    min-width: 25vw;
    max-width: 50vw;
    transform: translate(-50%, -50%);
    padding: 12px;
    z-index: 2;
    background-color: #FFFFFF;
    border: 1px solid #3E3E3E;
    color: #3E3E3E;
    /* Hooray for webkit! */
    -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);
    -webkit-border-radius: 4px;
    _position: absolute;
    _top: expression( (documentElement.scrollTop + ((document.body.clientHeight-this.clientHeight)/2))+'px');
}

#alert_header {
	height: 32px;
	padding-top: 10px;
	font-size: 9pt;
	font-weight: bold;
	text-align: left;
	/* Hooray for webkit - again! */
	-webkit-border-radius: 2px;
}

#alert_content {
    height: auto;
    min-height: 10vh;
    max-height: 50vh;
    overflow-y: scroll;
	padding-top: 10px;
	font-family:Verdana;
	font-size:10pt;
	font-weight:bold;
}

#alert_buttons {
	height: 45px;
}

#alert_buttons table {
    margin-top: 20px;
}

#alert_buttons td {
    max-width: 25%;
    height: 100%;
}

#alert_buttons td.selected {
    max-width: 25%;
    height: 100%;
}

#alert_buttons td.empty {
	background: none;
    width: auto;
    max-width: 25%;
}

#alert_buttons a {
    margin: auto;
    display: flex;
    width: auto;
    height: 100%;
    text-align: center;
    background: url(../images/button.jpg) no-repeat top left;
    background-size: 100% 100%;
    cursor: pointer;
    line-height: 1.5;
    justify-content: center;
}

#alert_buttons a.selected {
    margin: auto;
    display: flex;
    width: auto;
    height: 100%;
    text-align: center;
    background: url(../images/button_selected.jpg) no-repeat top left;
    background-size: 100% 100%;
    cursor: pointer;
    line-height: 1.5;
    justify-content:center;
}

/*
 * This comment was added to this file by Procomp Solutions Oy, to ensure that
 * the license information is distributed along with the licensed source code.
 *
 * Copyright (c) 2007, Allan Jardine
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 *  - Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 *  - Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 *  - Neither the name of Allan Jardine nor SpryMedia UK may be used to endorse
 *    or promote products derived from this software without specific prior
 *    written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS "AS IS" AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
