/*
 * 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 {
    font-size: 100%;
    line-height: 1.4;
    font-family: Arial, sans-serif;
    background: url(../images/background.png) repeat; 
    color: #797979;
}

/*
 * 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
   ========================================================================== */
.wrapper{
    margin: 0 auto;
    width: 80%;
    max-width: 1000px;
}
.fixer{
    clear: both;
}
.blue{
    background-color: #73B4D3;
}
.right{
    float: right;
}
.left{
    float: left;
}
h2{
    color: #797979;
    text-transform: uppercase;
    font-size: 1.5625em;
}
h3{
    font-size: 1.25em; /*20/15*/
}
img{
    max-width: 100%;
}
a{
    color: #1c86b8;
    text-decoration: underline;
    font-size: 0.875em;
    text-transform: capitalize;
}
.read_more{
    text-decoration: none;
}
p{
    font-size: 0.81255em; /*13/16*/
    color: #808080;
    line-height: 1.7;
}
.last{
    margin-right: 0!important;
}
.whitebox{
    background: #FFF;
    border: 0;
    padding: 1.955671447%;
    -webkit-box-shadow:  2px 2px 1px 1px rgba(00, 00, 00, 0.3);
    box-shadow:  2px 2px 1px 1px rgba(00, 00, 00, 0.3);   
    box-sizing: border-box; 
}
.framed_pic{
    border: 1px solid #edeaeb;
}
.pic_wrapper{
    padding: 5px;
    background: #FFF;
    border: 1px solid #edeaeb;
    box-sizing: border-box;
    moz-box-sizing: border-box;
    text-align: center;
}
.pic_wrapper a{
    width: 100%;
    display: block;
}
.headbar{
    height: 23px;
}
.langs{ 
    margin: 0;
    height: 20px;
    line-height: 20px;
}
.langs li{
    float:left;
    margin-left: 15px;
    list-style:none;
    padding-top:2px;
}
.langs a{
    width:24px;
    height:18px;
    display:block;
    background-repeat:no-repeat;
}
.langs a.pt-flag{background-image:url(../images/pt.png);}
.langs a.en-flag{background-image:url(../images/en.png);}
.langs a.zh-flag{background-image:url(../images/zh.png); display:none;}

.logo{
    position: absolute;
    z-index: 20;
    top: 5px;
}
.heading{
    background: url(../images/top_img.jpg) no-repeat;
    background-position: bottom center;
    overflow:hidden;
    min-height:157px;
    margin-bottom: 20px;
}
.heading_title{
   color: #797979;
   line-height:30px;
   padding:0px 15px;
   padding-top:78px;
}
header nav{
    width: 80%;
    height: 110px;
    position: relative; 
}
.top_menu{
    width: 100%;
    position: absolute;
    top: 50%;
    margin-top: -20px;
}
.top_menu> li{
    width: 14.28%;
    height: 40px;
    text-align: center;
    position: relative;
}
.main_entry{
    display: block;
    font-size: 0.8125em; /*13 / 16*/
    color: #585a66;
    text-decoration: none;
    text-transform: uppercase;
    height: 40px;
    line-height: 40px;
}
.main_entry:hover{
    color: #1c86b8;
}
.last .main_entry{
    padding-right: 0;
}
.dropdown:hover{
    background: white;
    -webkit-border-radius: 10px 10px 0px 0px;
    border-radius: 10px 10px 0px 0px; 
    -webkit-box-shadow:  1px 3px 5px 0px rgba(00, 00, 00, 0.3);  
    box-shadow:  1px 3px 5px 0px rgba(00, 00, 00, 0.3);    
}
.whiteline{
    height: 5px;
    width: 100%;
    background-color: #FFF;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: none;
}
.dropdown:hover .whiteline{
    display: block;
}
.submenu{
    position: absolute;
    top: 100%;
    z-index: 100;
    left:0;
    margin:0;
}
.submenu, .categories{
    padding: 10px;
    width: auto;
    white-space: nowrap;
    text-align: left;
    display: none;
    background: white;
    -webkit-border-radius: 0px 10px 10px 10px;
    border-radius: 0px 10px 10px 10px;
    -webkit-box-shadow:  1px 3px 5px 0px rgba(00, 00, 00, 0.3);   
    box-shadow:  1px 3px 5px 0px rgba(00, 00, 00, 0.3);
    list-style-type: 
}
.top_menu li:hover .submenu{
    display: block;
}
.submenu li, .categories li{
    border-bottom: 1px solid #f0f0f0;
    line-height: 30px;
    font-size: 0.625em;
    text-transform: uppercase;
    padding: 0 5px;
}
.submenu li a, .categories li a{
    font-size: 1.0em;
    text-decoration: none;   
    text-transform: uppercase;
    color: #585a66;
}
.submenu li:hover{
    background-color: #73b4d3;
    color: #FFF;
}
.submenu li:hover a{
    color: #FFF;
}
/*
 * Features
 */
.feature_area{
    width: 100%;
    height: 425px;
    border-top: 4px solid #73B4D3;
    border-bottom: 6px solid #FFF;
    background: url(../images/feature_area.jpg) no-repeat;
    background-position: top center;
    margin-bottom: 15px;
}
.flexislider{
    overflow: hidden;
    position: relative;
    height: 425px;
}
.slide_wrap{
    height: 425px;
    position: relative;
}
.slide_img{
    margin: 0 0 2px 5%;
    position: absolute;
    bottom: 0;
    left: 0;
    vertical-align: bottom;
    max-width: 500px;
}
.caption{
    background: #73b4d3;
    width: 42% !important;
    padding: 20px;
    position: absolute;
    top: 13%;
    right: 0;   
    box-sizing: border-box;
}
.caption .read_more a{
    color: #FFF;
}
.events{
    width: 76%; /*760 / 1000*/
    max-width: 760px;
    overflow: hidden;
}
.event{
    width: 29.210526316%; /* 220 / 760 */
    max-width: 222px;
    margin-right: 5.605263158%; /* 30 / 760 */
    height: 455px;
}
.event_cat_name{
    padding: 12px 0 0 3.153153153%;
    display: block;
}
.event p{
    padding-left: 3.153153153%;
}
.event a.read_more{
   padding-left: 3.153153153%;
   font-size: 1.05em; 
   width: 100%;
}
.latest_news{
    width: 22.2%;
}
.home_news{
    padding-top: 6.69509144%;
}
.home_news .read_more{
    font-size: 1.05em;
}
a.more_news{
    text-align: center;
    display: block;
    height: 45px;
    line-height: 45px;
    width: 100%;
    background: #FFF;
}

#main_footer{
    background: url(../images/footer_bg.jpg) repeat-x;
    height: 209px;
    margin-top: 50px;
}
#main_footer h3{
    color: #407898;
    margin: 0;    
}
.footer_nav, .footer_contacts{
    margin-top: 50px;
    border-right: 1px solid #689bb4;    
}
.footer_nav{
    width: 30%; /*380 / 1000*/
    margin-right: 1.5%;
}
.footer_menu li{
    margin-right: 3.157894737%; /*12 / 380*/
    padding-left: 12px;
    height: 30px;
    position: relative;
}
.footer_menu li::before{
    content: ".";
    position: absolute;
    left: 0;
    color: #FFF;
}
.footer_entry{
    color: #FFF;
    font-size: 0.9375em;
}
.footer_contacts{
    width: 39%; /*400 / 1000*/
    margin-right: 1.5%;
}
.contacts_ul{
    margin: 0 auto;
    list-style: none;
}
.contacts_row{
    width: 180px; /*187 / 490*/
    margin-bottom: 15px;
    font-size: 0.9375em;
}
.contacts_row img{
    float: left;
    width: 32px;
}
.contacts_row p{
    line-height: 1.2!important;
    padding: 0;
    margin: 0;
    padding-left:40px;
    color: #FFF;
}
.footer_logo{
    margin-top: 50px;
    width: 27.7%;
}
.footer_logo a{
    float:left;
    text-align:center;
    width:50%;
}
.footer_logo img{
    max-width: 100%;
}
#blog, #galleries, #gallery{
    overflow: hidden;
    padding-bottom: 30px;
}
.categories{
    width: 28%;
    display: block;
    -webkit-border-radius: 15px; 
    border-radius: 15px;
    font-size: 1.5em;
    margin-right: 4.2%;
    white-space: normal; 
    box-sizing: border-box;    
}
.categories ul{
    margin: 0;
}
.blog_article{
    width: 65.5%;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #c0c0c0; 
    position: relative;  
}
.article_title{
    margin: 0;
    font-size: 1.5625em; /*25 / 16*/
}
.blog_article header{
    overflow: hidden;
    margin-bottom: 15px;
}
.postmetadata{
    list-style: none;
    margin: 0;
}
.date{
    font-size: 1em;
}
.archive{
    font-size: 0.8125em; /*13 / 16*/ 
}
.archive span{
    text-transform: uppercase;
    padding-right: 10px;
}
.archive a{
    text-decoration: none;
    text-transform: uppercase;
}
.article_thumb{
    width: 30%;
    margin: 0 2% 2px 0;
}
.readmore{
    position: absolute;
    bottom: -20px;
    right: 1px;
}
.readmore a{
    height: 40px;
    line-height: 40px; 
    background: #FFF;
    display: block;
    text-decoration: none;
    text-transform: uppercase;
    -webkit-border-radius: 15px; 
    border-radius: 15px;
    padding: 0 5px;    
    font-size: 1em;
    text-align: center;
    -webkit-box-shadow:  0px 0px 2px 0px rgba(00, 00, 00, 0.3);
    box-shadow:  0px 0px 2px 0px rgba(00, 00, 00, 0.3);    
}
.readmore a:hover{
    text-decoration: underline;
}
#gallery{
    position: relative;
    padding-bottom: 50px;
}
.gallery_article{
    width: 46%; /*460/1000*/
    height: 420px;
    box-sizing: border-box;
    position: relative;
}
.gallery_article h2{
    font-size: 1.1875em;
}
.gallery_article img{
    max-width: 100%;
}
.gallery_article .readmore{
    bottom: 10px;
}
.gallery_article.odd{
    margin-right: 8%; /*8/1000*/
}
.gallery_description{
    width: 70.826086957%;
}
.gallery_pic{
    width: 138px;
    margin: 0 2% 15px 0;
    box-sizing: content-box;
}
#gallery .readmore{
    bottom: 20px;
}
#events{
    overflow: hidden;
}
#events .venue{
    display:block;
    clear:both;
    font-size:0.8em;
}
.small-gallery{
    width: 100%;
    overflow: hidden;
}
.small-gallery .pic_wrapper{
    margin: 0 2.5% 15px 0;
    width: 29%;
}
.files{
    overflow: hidden;
    padding-left: 25px;
}
.files li{
    width: 33.333333333%;
    box-sizing: border-box;
    height: 80px;

}
/* ==========================================================================
   Mypages Overrides
   ========================================================================== */
#page-blocks .page-block .block-content{
    padding: 2.5%!important;
}.block-type-galleryblock .block-content{
    padding: 3%!important;
}
.gallery-photo{
    width: 100%;
    box-sizing: border-box!important;  
}
.gallery-photo a {
    margin: 0!important;
    box-shadow: 0!important;
    width: 100%;
}
.gallery-photo a img{
    border: 3px solid #FFF;
}
.big_thumb{
    margin-bottom: 2.614379085%!important;
}
.smaller_thumb{
    max-width: 44.78%;   
    margin: 2.614379085%!important;
    margin-left: 0!important;      
}
.smaller_thumb.odd{
    margin: 2.614379085%!important;
    margin-right: 0!important;
    float: right;
}
/* ==========================================================================
   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;
}

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

.mobile-nav{
    display:none;   
    margin-top:28px;
    padding:12px;
    float:right;
    width:100px;
    cursor:pointer;
    background-color:#FFFFFF;
}
.mobile-nav b{
    font-size:18px;
    line-height:36px;
    color:#689bb4;
    display:block;
    float:left;
}
.mobile-nav small{
    display:block;
    float:right;
    height:3px;
    width:35px;
    border-bottom:5px #689bb4 solid;
}
.mobile-nav-close{
    display:none;
    font-size:32px;
    color:#FFF;
    position:absolute;
    top:-58px;
    right:0px;
    width:58px;
    height:58px;
    line-height:58px;
    text-align:center;
    background-color:#666;
    cursor:pointer;
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* 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;
    }
}
