/****************
 * New Buttons! *
 ****************/

.button {
    display: inline-block;
    background-color: #8cc63e;
    padding: 10px 20px;
    margin: 5px 0px;

    border-width: none;
    border-radius: 5px;
    border-top-left-radius: none;

    color: white;
    font-weight: 300;
    font-size: 16px;

    -moz-text-shadow: 1px 1px 3px #444;
    -webkit-text-shadow: 1px 1px 3px #444;
    text-shadow: 1px 1px 3px #444;

    transition: opacity 0.3s ease;
    -moz-transition: opacity 0.3s ease;
    -webkit-transition: opacity 0.3s ease;
}


.button.small {
    font-size: 12px;
}


.button.large {
    font-size: 22px;
    padding: 10px 15px;
}


.button:hover,
.button:focus {
    opacity: 0.8;
    background-position: 0;
    text-decoration: none;
    color: white;
}


.button:active {
    background: #49A3ED;

    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.05);
    -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.05);
    -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.05);
}


/* Selected state for buttons */

.button.selected {
    background: #EEE;
    color: #444;

    -moz-text-shadow: 1px 1px 3px #888;
    -webkit-text-shadow: 1px 1px 3px #888;
    text-shadow: 1px 1px 3px #888;

    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.05);
    -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.05);
    -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.05);
}


.button.selected:hover,
.button.selected:focus {
    opacity: 0.8;
    color: #444;
}


.button.selected:active {
    color: white;

    -moz-text-shadow: 1px 1px 3px #444;
    -webkit-text-shadow: 1px 1px 3px #444;
    text-shadow: 1px 1px 3px #444;
}


/***************************************
 Place buttons within a button-group for
 button panels, either as a <ul> or <ol>
 or as <a> tags within a div.
 **************************************/

ul.button-group,
ol.button-group {
    list-style: none outside none;
    padding-left: 0;
    margin: 0;
}


.button-group li {
    display: inline-block;
}


/* Remove border-radius on all buttons */
.button-group > .button,
.button-group > li > .button {
    border-radius: 0;
}


/* Apply border-radius only the the left of the first button */
.button-group > .button:first-child,
.button-group > li:first-child > .button {
    margin-left: 0;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}


.button-group > .button,
.button-group > li > .button {
    margin-left: -4px;
}


/* Apply border-radius only to the right of the last button */
.button-group > .button:last-child,
.button-group > li:last-child > .button {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}
