/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * 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; }
html { 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.
 */

::-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, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video { vertical-align: middle; }
/*
 * Remove default fieldset styles.
 */

fieldset { border: 0; margin: 0; padding: 0; }
/*
 * Allow only vertical resizing of textareas.
 */

textarea { resize: vertical; }
/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy { margin: 0; background: #ccc; color: #000; padding: 10px 0; text-align:center; }
.browsehappy a { font-style:italic; }
/* ==========================================================================
   Author's custom styles
   ========================================================================== */

















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

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


/* CSS Styles Added by Jucip */
.center-block {
	text-align: center;
}
.center-block h3 {
    font-size: 24px;
    line-height: 1.2;
    color: #ef4c7d;
    font-weight: 700;
}
.grid-block-container {
	margin-bottom: 80px;
}
.grid-block {
	position: relative;
	float: left;
	padding: 0 10px;
	border: 6px solid #E0E0E0;
}
.grid-block h4 {
	font-size: .9em;
	color: #333;
	background: #f5f5f5;
	margin: 0;
	padding: 10px;
	border: 1px solid #ddd;
}

.resource-caption {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	background: url("http://as1diabetes.com.au/wp-content/themes/as1diabetes/images/trans-pink-75.png");
	width: 100%;
	height: 100%;
	
}
.resource-caption h3, .resource-caption p {
	color: #fff;
	margin: 20px;
	text-align: center;
}
.resource-caption h3 {
	margin: 40px 20px 10px;
}
.resource-caption p {
	font-size: .75em;
	line-height: 1.5em;
	margin: 0 20px 15px !important;
}
.resource-caption a.learn-more {
	padding: 5px 10px;
	background: transparent;
	color: #fff;
	font-weight: bold;
	text-decoration: none;
	width: auto;
	display: block;
	border: #FFF solid 3px;
	text-align: center;
}

.resource-caption a.learn-more-only {
	margin: 90px 20px 10px;
}

.resource-wrapper img {
	width: 100%;
	max-width: 100%;
}
.well {
	box-shadow: 0 0 10px rgba(0,0,0,0.3);
	display:none;
	margin:1em;
	background: #FFF;
	width: 45%;
	height: auto;
	border: 4px solid #E0E0E0;
	padding: 5px;
}
.well-body {
	padding: 0px 20px;
}
.well span {
	font-size: 0.75em;
	margin-left: 5px;
}

.well span.close {
	float: right;
}



.container {
	padding-left: 0;
	padding-right: 0;
}
.initialism {
	font-weight: bold;
	letter-spacing: 1px;
	font-size: 12px;
}

#fadeandscale,
#webinar,
#educationplan,
#acknowledgements {
    -webkit-transform: scale(0.8);
       -moz-transform: scale(0.8);
        -ms-transform: scale(0.8);
            transform: scale(0.8);
}
.popup_visible #fadeandscale,
.popup_visible #webinar,
.popup_visible #educationplan,
.popup_visible #acknowledgements {
    -webkit-transform: scale(1);
       -moz-transform: scale(1);
        -ms-transform: scale(1);
            transform: scale(1);
}
.close_button {
	float:right; 
	border-radius: 25px; 
	padding: 3px 8px; 
	background: #E0E0E0;
	text-decoration: none;
	color: #FFF;
}

[class*='col-'] {
	float: left;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

[class*='col-'] {
	padding-right: 10px;
	margin-right: 0.5%;
}
[class*='col-']:last-of-type {
	padding-right: 10px;
	margin-right: 0px;
}

.col-1-2 {
	width: 49%;
}
.col-1-4 {
	width: 25%;
}
.col-1-8 {
	width: 12.5%;
}

.col-2-3 {
	width: 66.66%;
}
.col-1-3 {
	width: 33%;
}

.grid:after {
	content: "";
	display: table;
	clear: both;
}

.grid-pad {
	padding: 0px 0 20px 0px;
}

.grid-pad > [class*='col-']:last-of-type {
	padding-right: 0px;
}

.text-content {
	font-size: 12px;
}

.text-content a {
	color: #02bde8;
	text-decoration: underline;
}

.text-content a.link {
	color: #fff;
	background: #02bde8;
	padding: 10px 20px;
	font-size: 16px;
	text-decoration: none;
	font-weight: bold;
}

.resource-title {
	position: absolute;
	width: 100%;
    cursor: pointer;
    color: #63c3db;
}

.resource-title h3 {
	padding: 0px 10px 0;
	text-align: center;
	font-weight: normal;
	padding-right: 18px;
}

.video {
	height: 450px;
}

.circ-wrap .container .clearfix .wd20 {
	width: calc(16.66% - 10px) !important;
	margin-right: 10px;
}

/* for multinational */
.grid-block-container-mu {
	margin-bottom: 80px;
}
.grid-block-mu {
	position: relative;
	float: left;

	border: 6px solid #E0E0E0;
}
.grid-block-mu h4 {
	font-size: .9em;
	color: #333;
	background: #f5f5f5;
	margin: 0;
	padding: 10px;
	border: 1px solid #ddd;
}
[class*='colmu-'] {
	float: left;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

[class*='colmu-'] {
	margin-right: 0.5%;
}
[class*='colmu-']:last-of-type {
	
	margin-right: 0px;
}

.colmu-1-5 {
	width: 19%;
}

.front-v5 .front-more a {
    color: #FFF;
    font-size: 17px;
    padding: 26px 10px 0;
}


@media screen and (max-width: 768px) {
	.resource-title h3 {
        padding: 0px;
        font-size: 14px;
    }
}

@media screen and (max-width: 600px) {
	.resource-title h3 {
        padding: 0px;
        font-size: 12px;
    }
}

@media screen and (max-width: 420px) {
    .grid-block-container {
        margin-bottom: 125px;
    }
    
	.resource-title h3 {
        padding: 0px;
        font-size: 12px;
        line-height: 14px;
    }
    
    .resource-title  {
        right: 0;
        left: 0;
    }
    
    .resource-caption h3 {
        margin: 5px 0px 2px;
        font-size: 14px;
        display: none;
    }
    
    .resource-caption p {
        font-size: 12px;
        line-height: 14px;
        margin: 20px 5px 0px !important;
    }
    
    .well {
        width: 95% !important;
        margin: 0 !important;
    }
    
    .well-body {
        padding: 0px !important;
    }
}

@media screen and (max-width: 375px) {
    .grid-block-container {
        margin-bottom: 100px;
    }
    
	.resource-title h3 {
        padding: 0px;
        font-size: 11px;
    }
    
    .resource-caption h3 {
        margin: 5px 0px 2px;
        font-size: 12px;
        line-height: 12px;
        display: none;
    }
    
    .resource-caption p {
        font-size: 12px;
        line-height: 14px;
        margin: 20px 5px 0px !important;
    }
    
    .resource-caption a.learn-more {
        padding: 2px;
        border: #FFF solid 1px;
    }
    
    .well {
        width: 95% !important;
        margin: 0 !important;
    }
    
    .well-body {
        padding: 0px !important;
    }
}

@media screen and (max-width: 320px) {
	.grid-block-container {
        margin-bottom: 135px;
    }
    
	.resource-title h3 {
        padding: 0px;
        font-size: 10px;
    }
}