/***************************************************************************/
/**
    The NA Cleatime Calculator (NACC)
    
    This file is the stylesheet for the NACC. It has been deliberately
    set up to apply low-specificity styling, so it can be fairly easily
    overridden.
    
    NACC is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    NACC is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this code. If not, see <http://www.gnu.org/licenses/>.
*/

/********************************************************************************************
######################################## GLOBAL STYLES ######################################
********************************************************************************************/
/** This is the overall container */
.NACC-Instance {
    width: 100%;
}

/** This is a generic "breaker" element that is designed to break floats. */
.NACC-Instance .breaker {
    float: none;
    clear: both;
}

/** This is the header, at the top. */
.NACC-Instance .NACC-Header {
    padding: 0.25em;
    text-align: center;
}

/** This is the label for the popups. */
.NACC-Instance .NACC-Prompt-Label {
    display: block;
}

/** These apply to the selects and the Calculate button. */
.NACC-Instance .NACC-Legend select,
.NACC-Instance .NACC-Legend input {
    display: block;
    float:left;
    margin-left: 0.125em;
}

/** This is the main result container div. */
.NACC-Instance .NACC-Results {
    padding: 0.25em;
    text-align: center;
}

/** This is the change layout button. */
.NACC-Instance .NACC-Change-Layout-Button {
    display: block;
    clear: both;
    width: 100%;
    margin-top: 0.25em;
}

.NACC-Instance .NACC-Change-Layout-Button {
    display: block;
    clear: both;
    width: 100%;
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}

/** This is the show special tags checkbox. */
.NACC-Instance .NACC-Show-Special-Tags-Checkbox {
    display: block;
    float:left;
    margin-right: 0.25em;
}

/** This is the show special tags checkbox label. */
.NACC-Instance .NACC-Show-Special-Tags-Checkbox-Label {
    clear: none;
    display: block;
    float:left;
}

/** This is the first line of the text display (total days). */
.NACC-Instance .NACC-Days {
}

/** This is the second line of the text (if provided). */
.NACC-Instance .NACC-MainBlurb {
}

/** This is the container for the keytag display. */
.NACC-Instance .NACC-Keytags {
    margin-top: 122px;
    display: table;
    margin-left: auto;
    margin-right: auto;
}

/** This describes a keytag image. */
.NACC-Instance .NACC-Keytag {
    background-color: rgba(0, 0, 0, 0); /* Transparent background */
    width: 100px;
}

.NACC-Instance .NACC-Keytag-Tabular {
    margin-top: 82px;
    padding-right: 50px;
}

/** If we are displaying a closed ring, then we add an image to the background. */
.NACC-Instance .NACC-Keytag-Tabular .NACC-Keytag,
.NACC-Instance .NACC-Keytag.NACC-Keytag-Ringtop {
    background-image: url('images/00_RingTop.png');
    background-position: top center;
    background-size: 100%;
    background-repeat: no-repeat;
}

.NACC-Instance .NACC-Keytag {
    margin-top:-122px;
    display: block;
    margin-left: auto;
    margin-right:auto;
}

.NACC-Instance .NACC-Keytag-Tabular .NACC-Keytag {
    display: inline;
    float:left;
    margin-top:-82px;
    margin-right:-50px;
}

.NACC-Instance .NACC-Keytag-Tabular .NACC-White-Tag {
    margin-left: auto;
}

/********************************************************************************************
######################################## DEFAULT STYLES #####################################
********************************************************************************************/

/** This is the overall container */
.NACC-Instance {
    border-radius: 0.4em;   /** Rounded corners. */
    border: solid 1px gray; /** Gray border. */
    background: linear-gradient(to bottom, gray, white);    /** Gray to white opaque gradient. */
}

/** These are the various textual items. */
.NACC-Instance {
    font-family: Arial,Sans-Serif;
    color: black;
}

/** This is the header, at the top. */
.NACC-Instance .NACC-Header {
    font-size: large;
    font-weight: bold;
}

/** This is the main form fieldset. */
.NACC-Instance .NACC-Fieldset {
    border-radius: 0.3em;
    border: solid 1px gray;
    padding: 0.25em;
}

/** This is the legend for the fieldset, which contains the selects and calculate button. */
.NACC-Instance .NACC-Legend {
    margin: auto;
    text-align: center;
    border-radius: 0.25em;
    border: solid 1px gray;
    padding: 0.25em;
    background: linear-gradient(to top, gray, white);
}

/********************************************************************************************
######################################## NACC-BT STYLES #####################################
********************************************************************************************/

/** This is the overall container */
.NACC-Instance.NACC-BT {
    border-color: white;
    background: #009;
}

/** These are the various textual items. */
.NACC-Instance.NACC-BT {
    font-family: Verdana,Sans-Serif;
}

/** This is the prompt above the selects. */
.NACC-Instance.NACC-BT .NACC-Prompt-Label {
    color: #009;
}

/** This is the header, at the top. */
.NACC-Instance.NACC-BT .NACC-Header {
    color: white;
}

/** This is the main form fieldset. */
.NACC-Instance.NACC-BT .NACC-Fieldset {
    border-color: white;
}

/** This is the legend for the fieldset, which contains the selects and calculate button. */
.NACC-Instance.NACC-BT .NACC-Legend {
    border-color: white;
    background: linear-gradient(to top, #009, white);
}
/** This is the show special tags checkbox. */
.NACC-Instance.NACC-BT .NACC-Results-Text,
.NACC-Instance.NACC-BT .NACC-Show-Special-Tags-Checkbox-Label {
    color:white
}

