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

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.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/*
 * Colors:
 * #944976
 * #a97291
 */

body {
    font-family: Arial, sans-serif;
    font-size: 10pt;
    color: #7f7f7f;
}
/*strong {
    color: #2b2b2b;
}*/

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 10px 0;
  font-family: inherit;
  font-weight: normal;
  line-height: 20px;
  color: inherit;
  text-rendering: optimizelegibility;
  text-transform: uppercase;
}
h1 {
    font-size: 20pt;
}
h2 {
    font-size: 13pt;
    border-bottom: solid 1px #b3809f;
}
h3 {
    font-size: 10pt;
    border-bottom: solid 1px #b3b3b3;
}

a {
    color: rgb(192, 83, 148);
    color: rgba(148, 73, 118, 0.69);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#main {
    width: 972px;
    height: 100%;
    margin: 0 auto;
}
#header{
    margin-top: 22px;
    position: relative;
    z-index: 1;
}
#slider {
    position: relative;
    z-index: 0;
}
#left,#center {
    width: 306px;
    margin-right: 27px;
    float: left;
    position: relative;
}
#right {
    width: 306px;
    float: left;
    position: relative; 
}
#footer {
    height: 42px;
    position: relative;
    border-top: solid 1pt rgba(148, 73, 118, 0.69);
    margin-top: 42px;
    float: left;
    width: 100%;
}
#copyright {
    text-align: right;
    margin-top: 10px;
}
#block-system-main-menu {
    position: relative;
    height: 50px;
    margin-top: 27px;
    margin-bottom: 27px;
    border-top: solid 1pt rgba(148, 73, 118, 0.69);
    font-size: 11pt;
    font-family: arial, sans-serif;
}
#block-system-main-menu .menu {
    display: block;
    float: right;
    margin: 0;
    padding: 0;
}
#block-system-main-menu li {
    float: left;
    position: relative;
    text-transform: uppercase;
    margin: 0px 10px;
    padding: 10px 0px;
    list-style: none;
}
#block-system-main-menu li a {
    position: relative;
    color: #bfbfbf;
}
#block-system-main-menu li a.active-trail,
#block-system-main-menu li a.active {
    color: rgba(148, 73, 118, 0.69);
}
#block-system-main-menu .content>.menu>li>a.active-trail:after,
#block-system-main-menu .content>.menu>li>a.active:after {
    content: ' ';
    position: absolute;
    top: -13px;
    left: 0;
    background: url(img/seta2.png) center top no-repeat;
    width: 100%;
    height: 10px;
}
#block-system-main-menu .expanded {
    visibility: visible;
}
#block-system-main-menu .expanded .menu {
    position: absolute;
    top: 40px;
    left: 0;
    width: 150px;
    display: none;
    padding: 10px 10px 5px 10px;
    background: #a97291;
    background: rgba(148, 73, 118, 0.9);
    border: solid 1px #944976;
}
#block-system-main-menu .expanded:hover .menu {
    display: block;
}
#block-system-main-menu .expanded li {
    float: none;
    margin: 0;
    padding: 0 0 5px 0;
}
#block-system-main-menu .expanded .menu a {
    color: white;
}
#block-system-main-menu .expanded .menu a.active-trail {
    color: white;
}
#first-time {
    display: none;
}
.front h2 {
    line-height: 40px;
}
#block-views-slideshow-homepage-block-1, #moju .group_header {
    position: relative;
    margin-bottom: 45px;
}
#block-views-slideshow-homepage-block-1 .views-slideshow-controls-bottom {
    position: absolute;
    left: 40px;
    bottom: 10px;
    z-index: 100;
}
#block-views-slideshow-homepage-block-1 .slideshow-frame, #moju .field-name-mask {
    position: absolute;
    background-image: url(img/frame_slideshow.png);
    z-index: 10;
    width: 100%;
    height: 100%;
    top: 0px;
}
#block-views-slideshow-homepage-block-1 .views-field-title, #moju .field-name-title {
    position: absolute;
    right: 0;
    top: 40px;
    background: #fff;
    padding: 10px;
    min-width: 200px;
    z-index: 15;
}
#block-views-slideshow-homepage-block-1 .views-slideshow-controls-text-pause {
    display: none;
}
#block-views-eventos-homepage-block,
#block-views-projectos-homepage-block,
#block-views-noticias-homepage-block {
    background: url(img/homeanim.png) center top no-repeat;
    min-height: 94px;
    position: absolute;
    bottom: 0px;
    width: 100%;
}
#block-views-eventos-homepage-block h2,
#block-views-projectos-homepage-block h2,
#block-views-noticias-homepage-block h2 {
    color: #fff;
    border-bottom: solid 1pt #fff;
    font-size: 11pt;
    text-transform: uppercase;
    margin: 30px 20px 23px 20px;
}
#block-views-eventos-homepage-block h2:hover,
#block-views-projectos-homepage-block h2:hover,
#block-views-noticias-homepage-block h2:hover {
    cursor: pointer;
}
#block-views-eventos-homepage-block .content,
#block-views-projectos-homepage-block .content,
#block-views-noticias-homepage-block .content {
    background: rgba(148, 73, 118, 0.69);
    max-height: 0;
    overflow: hidden;

    -webkit-transition: all 0.5s ease-in-out;
       -moz-transition: all 0.5s ease-in-out;
        -ms-transition: all 0.5s ease-in-out;
         -o-transition: all 0.5s ease-in-out;
            transition: all 0.5s ease-in-out;
}
#block-views-eventos-homepage-block .content .view-content,
#block-views-projectos-homepage-block .content  .view-content,
#block-views-noticias-homepage-block .content  .view-content {
    padding-bottom: 20px;
}
#left .region:hover #block-views-eventos-homepage-block .content,
#center .region:hover #block-views-projectos-homepage-block .content,
#right .region:hover #block-views-noticias-homepage-block .content {
    max-height: 185px;
}
#block-views-eventos-homepage-block .content .views-row,
#block-views-projectos-homepage-block .content .views-row,
#block-views-noticias-homepage-block .content .views-row {
    padding: 5px 20px;
}
#block-views-eventos-homepage-block .content .views-row a:before,
#block-views-projectos-homepage-block .content .views-row a:before,
#block-views-noticias-homepage-block .content .views-row a:before{
    content: '> ';
    font-size: 12pt;
}
#block-views-eventos-homepage-block a,
#block-views-projectos-homepage-block a,
#block-views-noticias-homepage-block a{
    color: #fff;
}
#block-views-eventos-homepage-block a:hover,
#block-views-projectos-homepage-block a:hover,
#block-views-noticias-homepage-block a:hover{
    color: #7ccfff;
    text-decoration: none;
}

.front .region-left {
    background: url('img/events.jpg') no-repeat;
    height: 306px;
    width: 306px;
}
.front .region-right {
    background: url('img/news.jpg') no-repeat;
    width: 306px;
    height: 306px;
}
.front .region-center {
    background: url('img/projects.jpg') no-repeat;
    width: 306px;
    height: 306px;
}

#moju {
    color: #7f7f7f;
    position: relative;
}
#moju .group-header {
    position: relative;
}
#moju .group-left {
    float: left;
    width: 40%;
    margin-right: 5%;
    text-align: justify;
}
#moju .group-right {
    float: left;
    width: 55%;
}
#moju .group-team-left {
    width: 45%;
    margin-right: 2.5%;
    float: left;
}
#moju .group-team-right {
    width: 45%;
    margin-left: 2.5%;
    float: left;
}
#moju .group-docs {
    clear: both;
}
#moju .group-docs h2 {
    text-align: right;
}
#moju .field-name-title {
    text-transform: uppercase;
    color: rgba(148, 73, 118, 0.69);
}
#moju h2 {
    color: #7f7f7f;
    border-bottom: solid 1pt rgba(148, 73, 118, 0.69);
    font-weight: normal;
}
#moju h3 {
    color: #7f7f7f;
    border-bottom:  solid 1pt rgba(191, 191, 191, 0.69);
}
#moju h3.nucleos {
    clear: both;
}
.page-noticias #block-system-main, .node-type-noticias .group-left {
    width: 410px;
    margin-right: 28px;
    float: left;
    position: relative;
}
#block-views-noticias-block-1, .node-type-noticias .group-right-top {
    float: left;
    position: relative;
    width: 534px;
    min-height: 452px;
    padding-bottom: 135px;
    background: #a97291 url(img/noticias.png) center bottom no-repeat;
    color: #fff;
}
#block-views-noticias-block-1 .content, 
.node-type-noticias .group-right-top .content  {
    padding: 20px;
}
#block-views-noticias-block-1 h2,
.node-type-noticias .group-right-top .field-name-title {
    margin-top: 0px;
}
#block-views-noticias-block-1 h2,
.node-type-noticias .group-right-top .field-name-title h2 {
    width: 400px;
    border-bottom: none;
}
#block-views-noticias-block-1 .views-field-created,
.node-type-noticias .group-right-top .field-name-post-date {
    text-align: right;
    margin-bottom: 30px;
    height: 5px;
    background: white;
    line-height: 0;
    font-size: 1.2em;
}
#block-views-noticias-block-1 .views-field-created .field-content,
.node-type-noticias .group-right-top .field-name-post-date .field-item {
    display: inline;
    vertical-align: middle;
    background: #a97291;
    padding: 5px 0 5px 10px;
    position: relative;
    left: 2px;
}
#block-views-noticias-block-1 .views-field-nothing,
.node-type-noticias .group-right-top .field-name-field-news-image {
    margin-bottom: 30px;
    position: relative;
}
.node-type-noticias h1, .page-noticias h1 {
    background: #944976;
    color: #fff;
    line-height: 51px;
    padding: 0px 20px;
    margin-top: 0px;
    margin-bottom: 51px;
}
.node-type-noticias .group-outer {
    position: relative;
}
.node-type-noticias .group-outer .field-name-image-mask, .page-noticias .image-mask {
    position: absolute;
    z-index: 1;
    top: 0;
    background-image: url(img/moldurafotonoticias.png);
    width: 495px;
    height: 254px;
}
.node-type-noticias .view-noticias .view-content,
.page-noticias #block-system-main .view-noticias .view-content  {
    text-align: right;
    text-transform: uppercase;
}
.node-type-noticias .views-field-title a.active,
.page-noticias .views-row-first .views-field-title a {
    color: #a97291;
}
.node-type-noticias .views-field-title a,
.page-noticias .views-field-title a {
    color: #7f7f7f;
}
.node-type-noticias .views-field-title a:before,
.page-noticias .views-field-title a:before {
    content: '> ';
}
/*.node-type-noticias .field-name-news-bot-mask {
    background-image: url(img/noticias.png);
    height: 190px;
    width: 535px;
    float: right;
}*/
.node-type-noticias .group-right-top a,
#block-views-noticias-block-1 a,
.view-eventos a,
.node-type-eventos #block-system-main a,
.node-type-projectos #block-system-main a {
    color: black;
}


/*
 * Projecto
 */
.node-type-projectos h1 {
    float: left;
    background: #944976;
    color: #fff;
    line-height: 1;
    width: 370px;
    padding: 12px 20px;
    margin-top: 0px;
    margin-bottom: 51px;
}
.node-type-projectos .group-right {
    float: right;
    width: 534px;
    min-height: 385px;
    padding-bottom: 135px;
    background: #a97291 url(img/noticias.png) center bottom no-repeat;
    color: white;

}
.node-type-projectos .group-left {
    width: auto !important;
}
.node-type-projectos .group-left .field-name-field-project-contacts,
.node-type-projectos .group-left .field-name-field-projects-funding,
.node-type-projectos .group-left .field-name-field-projects-links,
.node-type-projectos .group-right>.field {
    padding: 20px;
}
.node-type-projectos #block-views-projecto-block,
.node-type-projectos #block-views-projecto-block-1 {
    float: left;
    clear: left;
    width: 410px;
    margin-right: 28px;
}
.node-type-projectos #block-views-projecto-block .view-content,
.node-type-projectos #block-views-projecto-block-1 .view-content {
    min-height: 184px;
}
.node-type-projectos #block-views-projecto-block img,
.node-type-projectos #block-views-projecto-block-1 img {
    margin-right: 20px;
    margin-bottom: 10px;
}
.node-type-projectos #block-views-projecto-block .col-last img,
.node-type-projectos #block-views-projecto-block-1 .col-last img {
    margin-right: 0;
}
.page-projetos h1 {
    font-size: 13pt;
    border-bottom: solid 1px #b3809f;
    margin-bottom: 50px;
    background: #944976;
    color: #fff;
    line-height: 51px;
    padding: 0px 20px;
    margin-top: 0px;
    margin-bottom: 21px;
}
.page-projetos .view-content {
    padding-top: 20px;
    padding-bottom: 20px;
}
.page-projetos .views-row {
    float: left;
    margin: 7px;
}
.page-projetos h2 {
    font-size: 11pt;
}
/*
 * Evento
 */
.node-type-eventos h1,
.page-eventos h1 {
    float: left;
    background: #944976;
    color: #fff;
    line-height: 1;
    width: 370px;
    padding: 12px 20px;
    margin-top: 0px;
    margin-bottom: 51px;
}
.node-type-eventos #block-system-main,
.page-eventos #block-system-main {
    position: relative;
    float: right;
    width: 534px;
    min-height: 385px;
    padding-bottom: 135px;
    background: #a97291 url(img/noticias.png) center bottom no-repeat;
    color: white;
}
.node-type-eventos #block-system-main>.content,
.page-eventos #block-system-main>.content {
    padding: 20px;
}
.node-type-eventos #block-system-main h2,
.page-eventos #block-system-main h2 {
    width: 400px;
    border-bottom: none;
    margin-top: 0px;
}
.node-type-eventos #block-system-main .group_img {
    position: relative;
}
.node-type-eventos #block-system-main .group_img .field-name-mask {
    position: absolute;
    z-index: 1;
    top: 0;
    background-image: url(img/moldurafotonoticias.png);
    width: 495px;
    height: 254px;
}
.node-type-eventos #block-system-main .field-name-field-data,
.page-eventos #block-system-main .field-name-field-data {
    text-align: right;
    margin-bottom: 15px;
    height: 5px;
    background: white;
    line-height: 0;
    font-size: 1.2em;
}
.node-type-eventos #block-system-main .field-name-field-data .field-item,
.page-eventos #block-system-main .field-name-field-data .field-item {
    display: none;
}
.node-type-eventos #block-system-main .field-name-link-galeria,
.page-eventos #block-system-main .field-name-link-galeria {
    border-top: solid 1px #944976;
    margin-top: 20px;
    padding-top: 20px;
}
.node-type-eventos #block-system-main .field-name-link-galeria a,
.page-eventos #block-system-main .field-name-link-galeria a {
    text-transform: uppercase;
    color: white;
    font-size: 13pt;
}
.node-type-eventos #block-views-eventos-block,
.page-eventos #block-views-eventos-block {
    float: left;
    clear: left;
    width: 410px;
    margin-right: 28px;
    text-align: right;
}
.node-type-eventos #block-views-eventos-block .views-row a,
.page-eventos #block-views-eventos-block .views-row a {
    color: #7f7f7f;
    text-transform: uppercase;
}
.node-type-eventos #block-views-eventos-block .views-row a:before,
.page-eventos #block-views-eventos-block .views-row a:before {
    content: '> ';
}
.node-type-eventos #block-views-eventos-block .views-row a.active,
.page-eventos #block-views-eventos-block .views-row.views-row-first a {
    color: #a97291;
}
/* Barra Eventos */
#block-views-barra-de-eventos-block {
    position: relative;
    height: 45px;
    margin-bottom: 60px;
}
#block-views-barra-de-eventos-block .views-row {
    float: left;
    margin-left: 10px;
}
#block-views-barra-de-eventos-block .views-row.views-row-first {
    margin-left: 0;
}
#block-views-barra-de-eventos-block .views-row a {
    display: block;
    width: 130px;
    padding: 15px 0;
    font-size: 15px;
    line-height: 1;
    color: #fff;
    background: #b2b2b2;
    text-transform: uppercase;
    text-align: center;
}
#block-views-barra-de-eventos-block .views-row a.active {
    color: #a97291;
}
#block-views-barra-de-eventos-block .pager-previous a,
#block-views-barra-de-eventos-block .pager-next a {
    display: block;
    position: absolute;
    top: 0;
    left: -30px;
    width: 30px;
    height: 45px;
    padding: 0;
    margin: 0;
    line-height: 1;
    font-size: 45px;
    text-align: center;
    color: #a97291;
}
#block-views-barra-de-eventos-block .pager-next a {
    left: auto;
    right: -30px;
}
#block-views-barra-de-eventos-block .pager-previous a:hover,
#block-views-barra-de-eventos-block .pager-next a:hover {
    text-decoration: none;
}
#block-views-barra-de-eventos-block .pager-current {
    display: none;
}

/*
 * Contactos
 */
#node-23 .group-moju {
    float: left;
    width: 410px;
    margin-right: 28px;
}
#node-23 .group-form {
    float: left;
    width: 534px;
}
#node-23 .field-name-body .field-label,
#node-23 .field-group-fieldset legend {
    display: block;
    width: 100%;
    font-size: 13pt;
    border-bottom: solid 1px #b3809f;
    font-weight: normal;
    text-transform: uppercase;
}

.page-node-23 h1 {
    
    background: #944976;
    color: #fff;
    line-height: 1;
    padding: 12px 20px;
    margin:30px 0px;
}

/*
 * Parceiros
 */
.page-parceiros h1 {
    /*font-size: 13pt;
    border-bottom: solid 1px #b3809f;
    margin-bottom: 50px;*/

    font-size: 13pt;
    border-bottom: solid 1px #b3809f;
    margin-bottom: 50px;
    background: #944976;
    color: #fff;
    line-height: 51px;
    padding: 0px 20px;
    margin-top: 0px;
    margin-bottom: 21px;
}
.page-parceiros .view-header {
    padding: 20px;
}
.page-parceiros .view-id-parceiros table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 15px;
}
.page-parceiros .view-id-parceiros td {
    width: 33%;
    vertical-align: top;
}
.page-parceiros .view-id-parceiros .col-1 {
    padding-left: 0;
}
.page-parceiros .view-id-parceiros .col-2 {
    padding-right: 0;
}
.page-parceiros .view-id-parceiros .views-field-title {
    text-transform: uppercase;
/*    border-bottom: solid 1px #b3b3b3;*/
    margin-top: 10px;
    font-size: 11pt;
}
.page-parceiros .view-id-parceiros .views-field-field-website {
    margin-top: 10px;
}
.page-parceiros .view-id-parceiros .views-field-field-website .field-content {
    display: inline;
}

/*
 * Galeria
 */
.page-galeria h1,
.node-type-galerias h1 {
    background: #944976;
    color: #fff;
    line-height: 1;
    padding: 12px 20px;
    margin: 30px 0px;
}
.page-galeria #block-system-main table {
    /*width: 100%;*/
}
.page-galeria #block-system-main td {
    padding: 0 20px 20px 0;
    vertical-align: top;
}
.page-galeria #block-system-main td.col-last {
    padding-right: 0;
}
.page-galeria #block-system-main .views-field-title a {
    color: #bfbfbf;
    text-transform: uppercase;
    font-size: 13pt;
}
.node-type-galerias .node-galerias table {
    /*width: 100%;*/
}
.node-type-galerias .node-galerias tbody {
    border: none;
}
.node-type-galerias .node-galerias td {
    padding: 0 20px 20px 0;
}
.node-type-galerias .node-galerias td.col-last {
    padding-right: 0;
}

/*
 * Galeria Facebook
 */
/** Albuns **/
#fb-albums-albums .img {
    width: 180px;
    height: 180px;
    border: solid 5px #944976;
    background: center center no-repeat #fff;
    /*-webkit-background-size: cover;
       -moz-background-size: cover;
         -o-background-size: cover;
            background-size: cover;*/
}
#fb-albums-albums h2 {
    border-bottom: none;
}
#fb-albums-albums td {
    vertical-align: top;
    padding: 10px 69px 10px 0;
}
#fb-albums-albums .col-last {
    padding-right: 0;
}
/** Fotos **/
#fb-albums-photos .img {
    width: 130px;
    height: 130px;
    border: solid 5px #944976;
    background: center center no-repeat #fff;
    /*-webkit-background-size: cover;
       -moz-background-size: cover;
         -o-background-size: cover;
            background-size: cover;*/
}
#fb-albums-photos h2 {
    border-bottom: none;
}
#fb-albums-photos td {
    vertical-align: top;
    padding: 10px 26px 10px 0;
}
#fb-albums-photos .col-last {
    padding-right: 0;
}

/*
 * Facebook Widget
 */
#block-block-2 {
    position: fixed;
    top: 126px;
    right: -255px;
    width: 235px;
    padding: 0 10px 10px 10px;
    background: #944976;
}
#block-block-2 iframe {
    background: white;
    float: left;
}
#block-block-2 h2 {
    color: white;
}
#block-block-2 .trigger {
    position: absolute;
    top: 0;
    left: -40px;
    width: 40px;
    height: 40px;
    background: #944976 url(img/facebook_logo_30x30.gif) center center no-repeat;
}

/*
 * Forms
 */
input,
textarea {
    background: #dfc4d3;
    border: none;
    padding: 10px;
    line-height: 1;
    color: white;
}
input.form-submit {
    background: #944976;
    border: solid 1px #944976;
}
input.form-submit:hover {
    background: #dfc4d3;
}
::-webkit-input-placeholder {
   color: white;
}
:-moz-placeholder {
   color: white;
}
::-moz-placeholder {
   color: white;
}
:-ms-input-placeholder {  
   color: white;
}
.form-item {
    margin-right: 20px;
}
.form-item input {
    width: 100%;
}
.form-item.webform-component-textarea {
    margin-right: 0;
}

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