/*
 * 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
   ========================================================================== */

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

body {
    line-height: 1.0;
	font-family: Arial, Vardana;
	color: #6d6d6d;
	font-size: 16px;
}

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

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

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

/*
 * A better looking default horizontal rule
 */

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
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

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

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
@media screen and (min-width:960px)  {
	/* Style adjustments for viewports that meet the condition - WEB */
	header {
	height: 167px;  background-image: url(/grf/header-full.jpg); background-repeat: no-repeat; background-position: top center;
	}
	#header-wrapper { width: 912px; margin: auto; padding-top: 104px; }
	#logo { float: left; }
	header nav { float: right; padding-top: 28px; }
	header nav a { padding: 11px; text-decoration: none; font-size: 14px; color: #4f4f4f; font-family: 'robotoregular'; }
	header nav a:hover { color: #fff; background-color: #016498; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; text-decoration: none;  }
	
	#wrapper { width: 900px; margin: auto; padding-left: 12px; margin-top: 41px;   }
	section { padding-bottom: 100px; }
	
	footer { width: 900px; margin: auto;  font-size: 12px; }
	
	#copy { width: 300px; float: left; }
	#copyweb {  float: right; }
	#fb { clear: both; padding-top: 15px; padding-bottom: 30px;}
	
	.nydiv { width: 191px; height: 376px; text-align: center; padding: 37px 10px 23px 10px;  float: left; }
	
	.a { background-color: #004063; margin-right: 18px; }
	.a h1 { font-size: 24px; color: white; padding: 0; margin: 0; padding-top: 25px; font-weight: normal; }
	.a h2 { font-size: 18px; color: white; padding: 0; margin: 0; padding-top: 5px; font-weight: normal; }
	.a h3 { font-size: 12px; color: #6fccff; padding: 0; margin: 0; padding-top: 35px; font-weight: normal; line-height: 20px; }
	.a a { clear: both; padding: 9px 35px; background-color: #336682; color: white;  text-decoration: none; font-size: 12px; display: block;  width: 50px; margin: auto; margin-top: 30px;  }
	.a a:hover { background-color: #6fccff; text-decoration: none; }
	
	.b { background-color: #016398; margin-right: 18px; }
	.b h1 { font-size: 24px; color: white; padding: 0; margin: 0; padding-top: 25px; font-weight: normal; }
	.b h2 { font-size: 18px; color: white; padding: 0; margin: 0; padding-top: 5px; font-weight: normal; }
	.b h3 { font-size: 12px; color: #6fccff; padding: 0; margin: 0; padding-top: 35px; font-weight: normal; line-height: 20px; }
	.b a { clear: both; padding: 9px 35px; background-color: #3482ad; color: white;  text-decoration: none; font-size: 12px; display: block;  width: 50px; margin: auto; margin-top: 30px;  }
	.b a:hover { background-color: #6fccff; text-decoration: none; }
	
	.c { background-color: #3497cc; margin-right: 18px; }
	.c h1 { font-size: 24px; color: white; padding: 0; margin: 0; padding-top: 25px; font-weight: normal; }
	.c h2 { font-size: 18px; color: white; padding: 0; margin: 0; padding-top: 5px; font-weight: normal; }
	.c h3 { font-size: 12px; color: #d0ecfc; padding: 0; margin: 0; padding-top: 35px; font-weight: normal; line-height: 20px; }
	.c a { clear: both; padding: 9px 35px; background-color: #5dacd6; color: white;  text-decoration: none; font-size: 12px; display: block;  width: 50px; margin: auto; margin-top: 30px;  }
	.c a:hover { background-color: #6fccff; text-decoration: none; }
	
	.d { background-color: #5ca5cc; }
	.d h1 { font-size: 24px; color: white; padding: 0; margin: 0; padding-top: 25px; font-weight: normal; }
	.d h2 { font-size: 18px; color: white; padding: 0; margin: 0; padding-top: 5px; font-weight: normal; }
	.d h3 { font-size: 12px; color: #d0ecfc; padding: 0; margin: 0; padding-top: 35px; font-weight: normal; line-height: 20px; }
	.d a { clear: both; padding: 9px 35px; background-color: #7db7d6; color: white;  text-decoration: none; font-size: 12px; display: block;  width: 50px; margin: auto; margin-top: 30px;  }
	.d a:hover { background-color: #6fccff; text-decoration: none; }
	
}
   
@media only screen and (max-width: 959px) and (min-width:641px) {
    /* Style adjustments for viewports that meet the condition - TAB */
	header {
	height: 149px; background-image: url(/grf/header-tab.jpg); background-repeat: no-repeat; background-position: top center;
	}
	#header-wrapper { width: 724px; margin: auto; padding-top: 22px; }
	#logo {  }
	header nav { padding-top: 25px }
	header nav a { padding: 11px; text-decoration: none; font-size: 14px; color: #4f4f4f; font-family: 'robotoregular'; }
	header nav a:hover { color: #fff; background-color: #016498; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; text-decoration: none;  }
	
	#wrapper { width: 712px; margin: auto; padding-left: 12px; margin-top: 41px;   }
	section { padding-bottom: 100px; }
	
	footer { width: 712px; margin: auto;  font-size: 12px; }
	
	#copy { width: 300px; float: left; }
	#copyweb {  float: right; }
	#fb { clear: both; padding-top: 15px; padding-bottom: 30px;}
	
	.nydiv { width: 150px; height: 376px; text-align: center; padding: 37px 10px 23px 10px;  float: left; }
	
	.a { background-color: #004063; margin-right: 10px; }
	.a h1 { font-size: 24px; color: white; padding: 0; margin: 0; padding-top: 25px; font-weight: normal; }
	.a h2 { font-size: 16px; color: white; padding: 0; margin: 0; padding-top: 5px; font-weight: normal; }
	.a h3 { font-size: 12px; color: #6fccff; padding: 0; margin: 0; padding-top: 35px; font-weight: normal; line-height: 20px; }
	.a a { clear: both; padding: 9px 35px; background-color: #336682; color: white;  text-decoration: none; font-size: 12px; display: block;  width: 50px; margin: auto; margin-top: 30px;  }
	.a a:hover { background-color: #6fccff; text-decoration: none; }
	
	.b { background-color: #016398; margin-right: 10px; }
	.b h1 { font-size: 24px; color: white; padding: 0; margin: 0; padding-top: 25px; font-weight: normal; }
	.b h2 { font-size: 16px; color: white; padding: 0; margin: 0; padding-top: 5px; font-weight: normal; }
	.b h3 { font-size: 12px; color: #6fccff; padding: 0; margin: 0; padding-top: 35px; font-weight: normal; line-height: 20px; }
	.b a { clear: both; padding: 9px 35px; background-color: #3482ad; color: white;  text-decoration: none; font-size: 12px; display: block;  width: 50px; margin: auto; margin-top: 30px;  }
	.b a:hover { background-color: #6fccff; text-decoration: none; }
	
	.c { background-color: #3497cc; margin-right: 10px; }
	.c h1 { font-size: 24px; color: white; padding: 0; margin: 0; padding-top: 25px; font-weight: normal; }
	.c h2 { font-size: 16px; color: white; padding: 0; margin: 0; padding-top: 5px; font-weight: normal; }
	.c h3 { font-size: 12px; color: #d0ecfc; padding: 0; margin: 0; padding-top: 35px; font-weight: normal; line-height: 20px; }
	.c a { clear: both; padding: 9px 35px; background-color: #5dacd6; color: white;  text-decoration: none; font-size: 12px; display: block;  width: 50px; margin: auto; margin-top: 30px;  }
	.c a:hover { background-color: #6fccff; text-decoration: none; }
	
	.d { background-color: #5ca5cc; }
	.d h1 { font-size: 24px; color: white; padding: 0; margin: 0; padding-top: 25px; font-weight: normal; }
	.d h2 { font-size: 16px; color: white; padding: 0; margin: 0; padding-top: 5px; font-weight: normal; }
	.d h3 { font-size: 12px; color: #d0ecfc; padding: 0; margin: 0; padding-top: 35px; font-weight: normal; line-height: 20px; }
	.d a { clear: both; padding: 9px 35px; background-color: #7db7d6; color: white;  text-decoration: none; font-size: 12px; display: block;  width: 50px; margin: auto; margin-top: 30px;  }
	.d a:hover { background-color: #6fccff; text-decoration: none; }
	
}

@media screen and (max-width:640px) {
	/* Style adjustments for viewports that meet the condition - MOBILE */
	header {
	height: 252px; background-image: url(/grf/header-mob.jpg); background-repeat: no-repeat; background-position: top center; 
	}
	#header-wrapper { padding-top: 20px; text-align: center }
	#logo { margin: auto; }
	header nav { margin: auto; padding-top: 20px;}
	header nav a { padding: 11px; text-decoration: none; font-size: 14px; color: #4f4f4f; font-family: 'robotoregular'; display: block; width: 140px; padding-top: 5px; padding-bottom: 5px; margin: auto; }
	header nav a:hover { color: #fff; background-color: #016498; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px;  text-decoration: none;  }
	
	#wrapper { width: 280px; margin: auto;  margin-top: 10px; padding-left: 10px; padding-right: 10px;  }
	section { padding-bottom: 100px; }
	
	footer { width: 280px; margin: auto;  font-size: 12px; }
	
	#copy { text-align: center; padding-bottom: 10px; }
	#copyweb {  text-align: center; width: 200px; margin: auto;}
	#fb { clear: both; padding-top: 15px; padding-bottom: 30px; text-align: center;}
	
	.nydiv { width: 220px; height: 118px; text-align: center; padding: 15px;   margin-left: auto; margin-right: auto; }
	
	.nydiv img {display: none;}
	
	.a { background-color: #004063; margin-bottom: 15px; }
	.a h1 { font-size: 24px; color: white; padding: 0; margin: 0;  font-weight: normal; }
	.a h2 { font-size: 16px; color: white; padding: 0; margin: 0; padding-top: 5px; font-weight: normal; }
	.a h3 { font-size: 12px; color: #6fccff; padding: 0; margin: 0; padding-top: 10px; font-weight: normal; line-height: 16px; }
	.a a { clear: both; padding: 9px 35px; background-color: #336682; color: white;  text-decoration: none; font-size: 12px; display: block;  width: 50px; margin: auto; margin-top: 30px; display: none; }
	.a a:hover { background-color: #6fccff; text-decoration: none; }
	
	.b { background-color: #016398; margin-bottom: 15px; }
	.b h1 { font-size: 24px; color: white; padding: 0; margin: 0;  font-weight: normal; }
	.b h2 { font-size: 16px; color: white; padding: 0; margin: 0; padding-top: 5px; font-weight: normal; }
	.b h3 { font-size: 12px; color: #6fccff; padding: 0; margin: 0; padding-top: 10px; font-weight: normal; line-height: 16px; }
	.b a { clear: both; padding: 9px 35px; background-color: #3482ad; color: white;  text-decoration: none; font-size: 12px; display: block;  width: 50px; margin: auto; margin-top: 30px; display: none;  }
	.b a:hover { background-color: #6fccff; text-decoration: none; }
	
	.c { background-color: #3497cc; margin-bottom: 15px; }
	.c h1 { font-size: 24px; color: white; padding: 0; margin: 0;  font-weight: normal; }
	.c h2 { font-size: 16px; color: white; padding: 0; margin: 0; padding-top: 5px; font-weight: normal; }
	.c h3 { font-size: 12px; color: #d0ecfc; padding: 0; margin: 0; padding-top: 10px; font-weight: normal; line-height: 16px; }
	.c a { clear: both; padding: 9px 35px; background-color: #5dacd6; color: white;  text-decoration: none; font-size: 12px; display: block;  width: 50px; margin: auto; margin-top: 30px; display: none;  }
	.c a:hover { background-color: #6fccff; text-decoration: none; }
	
	.d { background-color: #5ca5cc; }
	.d h1 { font-size: 24px; color: white; padding: 0; margin: 0; font-weight: normal; }
	.d h2 { font-size: 16px; color: white; padding: 0; margin: 0; padding-top: 5px; font-weight: normal; }
	.d h3 { font-size: 12px; color: #d0ecfc; padding: 0; margin: 0; padding-top: 10px; font-weight: normal; line-height: 16px; }
	.d a { clear: both; padding: 9px 35px; background-color: #7db7d6; color: white;  text-decoration: none; font-size: 12px; display: block;  width: 50px; margin: auto; margin-top: 30px; display: none; }
	
	#tw { float: none !important; margin: 20px auto;}
	.d a:hover { background-color: #6fccff; text-decoration: none; }
}
   
header {
	background-color: #bababa; 
}

#sectionhr {
	clear: both; border-bottom: 6px solid #e9e9e9; margin-bottom: 8px; padding-top: 30px;
}

h1 { font-size: 22px; font-weight: normal; }

a { color: #016498; text-decoration: none; }
a:hover { color: #016498; text-decoration: underline; }







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

/*
 * Image replacement
 */

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

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

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

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

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

.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
 */

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

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

.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.
 */

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

.clearfix:after {
    clear: both;
}

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

.clearfix {
    *zoom: 1;
}

/*MEDIA QUIRES OIGNIAL PLACE */



/* ==========================================================================
   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;
    }

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

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

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

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

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

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

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

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

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

    @page {
        margin: 0.5cm;
    }

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

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