/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
#fundRefWidget {
	margin: 0 auto;
	width: 50em;
	border: 2px solid black;
}
#fundRefWidget #main-content {
	padding: 10px;
	border: 3px solid black;
	border-radius: 10px;
	font-size: 1.3em;
}

#fundRefWidget html,
#fundRefWidget button,
#fundRefWidget input,
#fundRefWidget select,
#fundRefWidget textarea {
    color: #222;
}

#fundRefWidget body {
    font-size: 1em;
    line-height: 1.4;
}


/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

.fundrefWidget::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

.fundrefWidget::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

#fundRefWidget hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

#fundRefWidget img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

#fundRefWidget fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

#fundRefWidget textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

#fundRefWidget .chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
#fundRefWidget html {
    background: #ddd;
}

#fundRefWidget body {
    padding: 2em 0;

}

#fundRefWidget body * {
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
        -moz-box-sizing: border-box;    /* Firefox, other Gecko */
         box-sizing: border-box;         /* Opera/IE 8+ */
}

#fundRefWidget a {
    text-decoration: none;
    color: #8cc641;
}

#fundRefWidget {
    position: relative;
    padding: 2em;
    background: #fff;
    width: 50em;
    margin: 0 auto;
    border-radius: 8px;
}

#fundRefWidget h1 {
    margin: 0;
}

#fundRefWidget img {
    position: absolute;
    top: 0.6em;
    right: 0.6em;
    width: 9em;
}

#fundRefWidget fieldset {
    border-top: 1px solid #ccc;
    padding-top: 2em;
    margin-top: 1em;
}

#fundRefWidget fieldset small {
    top: -0.75em;
    position: relative;
}

#fundRefWidget label {
    display: block;
    margin-bottom: 0.5em;
}

#fundRefWidget .twitter-typeahead {
    width: 100%;
    margin-bottom: 1em;
}

#fundRefWidget .twitter-typeahead input,
#fundRefWidget input[type=search],
#fundRefWidget input[type=text],
#fundRefWidget input[type=url],
#fundRefWidget input[type=tel],
#fundRefWidget input[type=number],
#fundRefWidget input[type=color],
#fundRefWidget input[type=email] {
    width: 97%;
    margin-bottom: 1em;
    padding: 0.5em;
        
}

#fundRefWidget select {
    width: 100%;
    margin-bottom: 1em;
}

#fundRefWidget #closeIcon {
  position: absolute;
  top: 0px;
  left: 0px;
  background-color: #8cc641;
  /* border-radius: 5px; */
  width: 20px;
  height: 20px;
  text-align: center;
  font-weight: bold;
  color: #fff;
}
#fundRefWidget #closeIcon a {
  color: #fff;
}
#fundRefWidget #closeIcon, #fundRefWidget #closeButton {
	display: none;
} 

#fundRefWidget input[type=submit],
#fundRefWidget button,
#fundRefWidget .button {
    background-color: #8cc641;
    border: none;
    color: #fff;
    padding: 0.75em;
    line-height: 1em;
    cursor: pointer;
    -webkit-border-radius: 0.2em;
       -moz-border-radius: 0.2em;
            border-radius: 0.2em;
}

#fundRefWidget .add-funder a {
    background: #f6f6f6;
    padding: 0.5em;
    margin: 2em 0;
    width: 97%;
    display: block;
}

#fundRefWidget .add-funder a:hover {
    background-color: #8cc641;
    color: #fff;
}

#fundRefWidget .grant-number-entry {
  position: relative;
}

#fundRefWidget .grant-number-entry .remove-award-link {  
  position: absolute;
  color: #A35F51;
  font-size: .6em;
  margin-left: .7em;
  right: 0;
  top: .5em;
}

#fundRefWidget .required {
    color: #8D2C17;
}

#fundRefWidget .funder-entry {
  position: relative;
}

#fundRefWidget .funder-entry .remove-funder-link {
  color: #A35F51;
  font-size: .8em;
  position: absolute;
  top: 2.7em;
  right: 0;
}











/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

#fundRefWidget .ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

#fundRefWidget .ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

#fundRefWidget .hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

#fundRefWidget .visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

#fundRefWidget .visuallyhidden.focusable:active,
#fundRefWidget .visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

#fundRefWidget .invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

#fundRefWidget .clearfix:before,
#fundRefWidget .clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

#fundRefWidget .clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

#fundRefWidget .clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    #fundRefWidget a,
    #fundRefWidget a:visited {
        text-decoration: underline;
    }

    #fundRefWidget a[href]:after {
        content: " (" attr(href) ")";
    }

    #fundRefWidget abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    #fundRefWidget .ir a:after,
    #fundRefWidget a[href^="javascript:"]:after,
    #fundRefWidget a[href^="#"]:after {
        content: "";
    }

    #fundRefWidget pre,
    #fundRefWidget blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    #fundRefWidget thead {
        display: table-header-group; /* h5bp.com/t */
    }

    #fundRefWidget tr,
    #fundRefWidget img {
        page-break-inside: avoid;
    }

    #fundRefWidget img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    #fundRefWidget p,
    #fundRefWidget h2,
    #fundRefWidget h3 {
        orphans: 3;
        widows: 3;
    }

    #fundRefWidget h2,
    #fundRefWidget h3 {
        page-break-after: avoid;
    }
}
