/* 
 Theme Name:     colormag-pro child
 Theme URI:      http://themegrill.com/themes/colormag-pro/
 Description:    Planetario de Madrid
 Author:         soko
 Author URI:     http://soko.tech
 Template:       colormag-pro
 Version:        1.0.0
*/
 
@import url("../colormag-pro/style.css");
 
/* =Theme customization starts here
------------------------------------------------------- */

/* ============================================ 
	                GENERAL 
============================================== */

.timely {
    font-family: 'Open Sans', serif!important;
}

body {
    padding: 0px !important;
}

#page {
    max-width: 1300px;
}

.main-content-section {
	padding-top: 0px;
	margin-top: 10px !important;
}


.two-col {
    -moz-column-count: 2;
    -moz-column-gap: 20px;
    -webkit-column-count: 2;
    -webkit-column-gap: 20px;
}



hr {
    margin: 10px 0;
}

img {
    margin-bottom: 0px !important;
}


.pfw-main-title {
    text-align: left !important;
    background-color: #004899 !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    color: white !important;
    padding: 7px 0px 7px 8px !important;
    margin-bottom: 10px !important;
}

.pfw-icon {
    padding: 0px !important;
}

.widget-title {
    text-align: left !important;
    background-color: #004899 !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    color: white !important;
    padding: 7px 0px 7px 8px !important;
    margin-bottom: 10px !important;
}

.wpml-ls-legacy-list-horizontal {
    border: 0px solid transparent !important;
}

.mc_merge_var {
    margin-bottom: -1em !important;
}

.lang_sel_sel {
	color: #004899 !important;
    font-size: 1em !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

.lang_sel_sel:hover {
    text-decoration: underline !important;
}

.lang_sel_sel:active {
    text-decoration: underline !important;
}

.lang_sel_other {
	color: #004899 !important;
	font-size: 1em !important;
	font-weight: 600 !important;
}


.widget_beside_slider {
    width: 27.2% !important;
}

.widget_slider_area {
    width: 69.3% !important;
}

.ai1ec-agenda-widget-view .ai1ec-date {
    border-top: transparent !important;
}
.widget_beside_slider .ai1ec-subscribe-container {
    display: none;
}
.widget_beside_slider #ai1ec-calendar-view-container #ai1ec-calendar-view .ai1ec-pull-left, .widget_beside_slider .timely.ai1ec-calendar-toolbar.ai1ec-clearfix {
    display: none;
}

.widget_beside_slider .timely.timely-widget.timely-calendar {
    min-height: 300px!important;
    max-height: 300px!important;
}
.ai1ec-modal-content {
    border: none!important;
    box-shadow: none;
    padding: 20px;
    margin: 0 -20px;
    min-height: 840px;
    top: 50px
}

/* ============================================ 
	             NAVIGATION
================================================ */


#site-navigation {
	background-color: white;
	border-top: 3px solid #294995 !important;
	box-shadow: none;
}

.madrid_corporate_bar {
    background: #004899;
}

#madrid_corporate_bar_text {
    color: white;
    padding-top: 10px;
}

#madrid_corporate_bar_logo img {
    display: block;
    float: right;
    width: 23%;
    margin-bottom: 0px;
}

.news-bar {
    display: true !important;
    background: #004899 !important;
    height: auto !important;
    margin-bottom: 10px !important;
    min-height: 45px !important;
    overflow: auto !important;
    width: 100% !important;
    padding: 0px !important; 
}

#header-text-nav-wrap {
    padding: 15px 0 30px;
}


.home-icon.front_page_on {
    background-color: transparent;
    border-bottom: 2px solid #294995;
    height: 43px;
}


.home-icon .fa {
    color: #333333;
    font-size: 27px;
}


.main-navigation a {
    text-transform: none!;
}


.main-navigation ul li a {
    font-size: 15px !important;
}


.main-navigation ul li a:hover {
    font-size: 16px;
    background-color: #0071A9;
    color: #333333;
}


.main-navigation ul li.current-menu-item > a, .main-navigation ul li.current_page_item > a {
    color: #333333;
    border-bottom: 2px solid #0071A9;
    background-color: transparent;
}


.main-navigation ul li.current-menu-ancestor > a {
    color: #333333 !important;
}


.main-navigation ul li ul li a:hover {
	color: rgb(0,72,153) !important;
	text-decoration: underline !important;
}


.site-header .menu-toggle::before {
    color: #333333;
}
.is-sticky #site-navigation {
    border-bottom: 3px solid #294995 !important;
    border-top: none!important;
}


.site-header .menu-toggle:hover {
    background-color: transparent !important;
}


.site-header .menu-toggle:active {
    color: #333333;
    border-bottom: 3px solid #0071A9;
    background-color: transparent;
}


.main-small-navigation li a:hover {
    background-color: transparent !important;
}


.site-header .menu-toggle {
    color: #ffffff;
    margin: 0;
    text-align: center;
    font-family: 'Open Sans', serif;
    padding-bottom: 0;
}


.tribe-events-promo {
	display: none;
}


.social-links-main {
    position: absolute;
    right: 43px;
}


.fa.search-top {
    color: #4f4f4f;
    right: 0px;
    padding: 14px 12px 14px;
}
.fa.search-top:hover {
    color: #fff;
}
.search-wrap button {
    line-height: 34px;
    padding: 0 10px;
}


.home-icon.front_page_on, .main-navigation a:hover, .main-navigation ul li ul li a:hover, .main-navigation ul li ul li:hover > a, .main-navigation ul li.current-menu-ancestor > a, .main-navigation ul li.current-menu-item ul li a:hover, .main-navigation ul li.current-menu-item > a, .main-navigation ul li.current_page_ancestor > a, .main-navigation ul li.current_page_item > a, .main-navigation ul li:hover > a, .main-small-navigation li a:hover, .site-header .menu-toggle:hover {
    background-color: transparent !important;
    color: #333333;
}


.main-navigation .sub-menu, .main-navigation .children {
    background-color: rgba(255, 255, 255, 0.84);
}


.front_page_on {
    background-color: transparent;
    border-bottom: 3px solid #294995;
    height: 43px;
}


.main-navigation ul li a:active {
    color: rgb(0,72,153) !important;
}


.main-navigation ul li ul {
    width: 170px;
}


.main-navigation ul li ul li a:hover, {
    color: rgb(0,72,153) !important;
    border-bottom: 2px #004899 solid !important;
}


#lang_sel_list img.iclflag {
    width: 19px !important;
    height: 15px !important;
    top: 10px !important;
}


.language_selector_text {
    font-size: 0.65em;
    font-weight: 600;
}

.telefono:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 14px;
    background: url(phone.png) no-repeat;
    background-size: contain;
    margin-top: 2px;
}

.mc_form_inside {	
	padding-top: 15px !important;
    padding-left: 15px !important;
}

#mc_display_rewards {
   display: none;
}


/* ============================================ 
	         Main Content Area 
=============================================== */


#main {
    padding-top: 5px;
}

.inner-wrap {
    max-width: 100% !important;
}

#secondary {
    padding: 17px 0 0 0px;
    border-left: 1px solid #EAEAEA;
    border-left: none !important;
}

#secondary .widget-title {
    border-bottom: 3px solid #004899 !important;
    background-color: #004899 !important;
}

#primary {

    padding-right: 10px;
}

.front-page-top-section {
    margin-bottom: 0px !important;
    margin-top: 5px !important;
}

.wpb_content_element {
    margin-bottom: 35px !important;
}

.slide-content {
    width: 100% important;
}

.slider-featured-image{
    width: 106% important;
}


.planetario-description-text {
	border-top: 3px solid #004899;
    border-bottom: 3px solid #004899;
    padding: 23px 0px;
    margin-top: 18px !important;
}

.planetario-description-text-p {
	font-size: large;
}

.planetario-contact-info {

    border-top: 3px solid #004899;
    border-bottom: 3px solid #004899;
    padding: 23px 0px;
    margin: 0px !important;
}


/* ============================================ 
	             VISIT
============================================= */

.visit-titles {
	text-decoration: underline;
}


/* ============================================ 
	              POSTS 
============================================ */


.single #content .post, #content .post {
    box-shadow: none !important;
}


/* ============================================ 
	              CALENDAR 
============================================ */


.ai1ec-single-event .ai1ec-event-details, .ai1ec-multi-event .ai1ec-event-details{
	margin: 30px 0 !important;
}

.ai1ec-col-sm-pull-5 {
    right: 45% !important;
}

.ai1ec-col-sm-7 {
    width: 45% !important;
}

.ai1ec-col-sm-push-7 {
    left: 50% !important;
}

.ai1ec-single-event .ai1ec-actions {
    margin-right: 45px !important;
}

.ai1ec-single-event .ai1ec-time .ai1ec-field-value, .ai1ec-multi-event .ai1ec-time .ai1ec-field-value {
    font-size: 1.1em !important;
    font-weight: 700 !important;
}
.ai1ec-month-view td, .ai1ec-week > td, .ai1ec-week .ai1ec-day, .ai1ec-week .ai1ec-day .ai1ec-date {
    height: 46px;
}
.week > td {
    margin: 0;
}
body .ai1ec-month-view .ai1ec-date {
    background:none!important;
}
.ai1ec-week .ai1ec-day .ai1ec-date {
    border-radius: 100%;
    line-height: 46px;
    text-align: center;
}
body .ai1ec-month-view td, body .ai1ec-week-view td, body .ai1ec-oneday-view td {
    border: none!important;
}
.ai1ec-day-stretcher {
    display: none;
}
.textwidget .ai1ec-prev-year, .textwidget .ai1ec-next-year, .textwidget .ai1ec-views-dropdown {
    display: none!important;
}
.ai1ec-event-container.ai1ec-load-event.ai1ec-popup-trigger.ai1ec-event-id-393.ai1ec-event-instance-id-10.ai1ec-multiday {
    top: 28px;
}

article.ai1ec_event {}

/* ============================================ 
	              WIDGETS 
============================================ */


#twitter-widget-0 {
	height: 500px !important; 
}

.timely-widget {
    min-height: 300px;
}



/* ============================================ 
	              FOOTER 
============================================ */

.pre-footer{
	background-color: #004899;
	padding: 30px 0px;
	margin-top: 30px;
}

#pre-footer-info{
	line-height: 1px;
	border-right: 1px solid antiquewhite;
    margin: 0px 25px 0px 0px;
}


#pre-footer-info p {
    line-height: 11px;
    font-size: small;
    color: whitesmoke;
}

#pre-footer-info a {
    font-weight: 600;
}

#pre-footer-info a p:hover {
    color: #303440;
}

#pre-footer-logos {
    top: 23px;
}

.footer-socket-wrapper {
    padding: 0px 30px 20px 0px !important;
    background-color: #004899 ;
    margin: 0px 0px;
}

.footer-socket-wrapper .copyright {
    color: #ffffff;
    font-size: 12px;
    margin-top: 25px;
    margin-left: 30px;
}

.footer-socket-wrapper .copyright a {
    color: #ffffff;
    border-bottom: none;
}

#colophon .footer-menu ul li a {
    color: #fff;
}

#colophon .footer-menu ul li a:hover {
    color: #fff !important;
}



/* ============================================ 
	              TIMELY
============================================ */

.ai1ec-posterboard-view.ai1ec-posterboard-aligned .ai1ec-end-date-divider {

    border-width: 0px 0 28px 0px !important;

}

.ai1ec-posterboard-view .ai1ec-event {
    font-size: 9pt !important;
    }


@media (max-width: 991px) {
    #page {
        width: 100%;
    }
    #madrid_corporate_bar_text {
        float: left;
    }
}
@media (max-width: 766px) {
    .front-page-top-section .widget_beside_slider, .front-page-top-section .widget_slider_area {
        width: 100% !important;
    }
    #site-navigation.main-small-navigation div.social-links-main {
        width: 100%;
        right: 0;
        position: relative;
    }
    #site-navigation.main-small-navigation div.social-links-main a {
        display: inline-block;
    }
    /*#site-navigation-sticky-wrapper .inner-wrap i.social-links-main {
        position: relative;
        left: 0;
    }
    #site-navigation-sticky-wrapper .inner-wrap i.social-links-main .main-small-navigation a {
        display: inline-block;
    }*/
    .widget_beside_slider .timely.timely-widget.timely-calendar {
        min-height: 200px!important;
    }
	.event-template-default img.alignleft {
	    display: block;
	    float: none;
    	margin: 0 auto;
	}
	.vc_pageable-slide-wrapper .vc_grid-item {
	    width: 50%;
	    display: inline-block!important;
	}
	.page-id-234 .wpb_wrapper img.alignright {
		display: block;
		float: none;
		margin:0 auto;
	}
}


/* ==== xxxx-large devices =================== */

@media (min-width: 1651px)  { 

}


/* ==== xxx-large devices =================== */

@media (min-width: 1501px) and (max-width: 1650px) { 

}


/* ==== xx-large devices =================== */

@media (min-width: 1401px) and (max-width: 1500px) { 

}

/* ==== x-large devices =================== */

@media (min-width: 1316px) and (max-width: 1400px) { 

}


/* ==== large devices =================== */

@media (min-width: 1200px) and (max-width: 1315px) { 

}


/* ==== medium devices  ================= */


@media (min-width: 992px) and (max-width: 1199px) { 
	.main-navigation ul li a {
        font-size: 14px !important;
    }
    .social-links-main .social-links a {
        padding: 12px 0;
    }
}

@media (min-width: 992px) {
    .widget_beside_slider {
        height: 365px;
    }
    .telefono {
        margin-right: 15px;
    }
	.post-type-archive-event .content-area .event {
		width: 32%;
		margin-right: 1%;
		margin-bottom: 20px;
		padding: 4px 8px;
		display: inline-block;
		vertical-align: top;
	}
}

@media (min-width: 551px) {
    .social-links-main{
        position: absolute;
        top: -80px;
        right: -5px;
    }
    #secondary {
        margin-top: 30px
    }
}

/* ==== small devices ================== */


@media (min-width: 551px) and (max-width: 991px) { 
    .social-links-main{
        position: absolute;
        top: -80px;
        right: -10px;
    }
    .main-navigation ul li a {
        font-size: 14px !important;
    }
	.post-type-archive-event .content-area .event {
		width: 48%;
		margin-right: 1.5%;
		margin-bottom: 10px;
		padding: 4px 8px;
		display: inline-block;
		vertical-align: top;
	}		
}
@media (max-width: 550px) {
.post-type-archive.archive article .eo-event-content p {
	margin-top: 6px;
    font-size: 14px;	
	line-height: 1.2;
}
.post-type-archive.archive article.event h2 {
	font-size: 20px;
}
.archive .content-area .eo-event-thumbnail {
	max-width: 180px!important;
}
.post-type-archive-event .content-area {
	text-align: center;
}
.post-type-archive-event .content-area .event {
		max-width: 300px;
		padding-top: 30px;
		margin-bottom: 10px;
		padding: 4px 8px;
		display: inline-block;
	}
}


/* ===== extra small devices ========== */


@media (min-width: 240px) and (max-width: 550px) { 
	#madrid_corporate_bar_logo img {
		width: 33%;
	}
}
	


/* ===== other sizes ================= */
@media (min-width: 800px) and (max-width: 1300px) { 
    body {
		padding: 0 10px!important;
	}
}


/* ============================================ 
	            NEW CALENDAR
============================================ */
#wp-calendar caption {
    text-align: center;
    background: #333;
    color: #fff;
    height: 40px;
    margin-bottom: 1px;
    line-height: 40px;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 700;
}
#wp-calendar thead tr th  {
    background:#3e9ed9;
    color:#fff;
    border: 1px solid white;
    text-align: center;
    height: 32px;
    width: calc(100% / 7);
    width: -webkit-calc(100% / 7);
    line-height: 32px;
    padding: 0 5px;
}
thead, tbody {
    border: 2px solid #3e9ed9;
}
#wp-calendar thead td, #wp-calendar tbody td {
    border: none;
    text-align: center;
    width: calc(100% / 7);
    width: -webkit-calc(100% / 7);
    display: table-cell;
}
#wp-calendar td[class*="eo"] {
    color: #333;
    padding: 3px 0;
}

#wp-calendar tr td a {
    border-radius: 100%;
    text-align: center;
    height: 32px;
    width: 32px;
    line-height: 32px;
    padding: 0 5px;
    display: inline-block;
}

.eo-event-past a {
    background:#ddd;
    color:#333;
}

.eo-event-future a {
    background: #004998;
    color:#fff;
}

#wp-calendar tfoot {
    position: absolute;
    top: 0;
    height: 40px;
    width: 100%;
    line-height: 40px;
}

#wp-calendar tfoot tr {
    width: 100%;
    display: block;
}

td#eo-widget-prev-month, td#eo-widget-next-month {
	width: 49%;
    display: inline-block;
    padding: 0 3%;
	border: none;
}

#wp-calendar tbody tr {
    height: 40px;
}

#wp-calendar tfoot tr td#eo-widget-prev-month a {text-align: left;}
#wp-calendar tfoot tr td#eo-widget-next-month a {text-align: right;}

#wp-calendar tfoot tr .pad {
    display: none;
}

#wp-calendar tfoot tr a {
	outline: none;
    width: 100%;
    text-transform: uppercase;
    color: #fff;
	font-size: 14px;
}

.eo-event-meta > li {
    padding: 2px;
    text-align: center;
}

.eo-tc-event .eo-event-date {
    font-style: normal!important;
}

.archive .content-area .eo-event-thumbnail {
	float: none;
    display: inline-block;
    max-width: 90%;
    margin: 0 5%;
}
.archive .content-area .page-header .page-title {
    background: #004998;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    color: #fff;
}

#facebook-likebox-3 h3 span a {
	color: #fff;
}

.single-post .above-entry-meta {
	margin-bottom: 4px;
}
.single-post .below-entry-meta, .single-post .featured-image, .category .below-entry-meta, .category .cat-links, .sharedaddy.sd-sharing-enabled, .event-template-default article .featured-image, .event-template-default .eventorganiser-event-meta {
	display: none;
}

.event-template-default #site-navigation {
	z-index: 999999;
}
.event-template-default .article-content:before {
	content: "Detalles del evento";
	font-size: 28px;
	font-weight: bold;
	margin-bottom: 10px;
}
.eo-event-title.entry-title a:after {
	content: "Ver evento »";
	font-size: 18px;
	border: 2px solid #004998;
	padding: 4px 6px;
	border-radius: 4px;
	white-space: nowrap;
	background: #dedede;
}
.eo-event-title.entry-title a:after:hover {
	background: #004998;
	color: #fff;
}
.eo-event-content[itemprop="description"] p:after {
	content: "...";
}
.archive article[class*=“event-category-“] {
    padding: 14px 12px;
    border-radius: 4px;
}
.archive article.event h2 {
	font-size: 24px;
}
.archive article.event {
	background: #dedede;
}
.post-type-archive-event .content-area .event {
	position: relative;
	padding-top: 40px;
}
.archive article.event ul.eo-event-meta {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
	margin: 0;
}
.archive article.event ul.eo-event-meta li a {
    font-size: 12px;
	color: #333;
}
.archive article.event ul.eo-event-meta a:not([rel="tag"]) {
    display: none;
}
.archive article.event-category-exposiciones .eo-event-meta{
    background: #ef9d94;
}
.archive article.event-category-peliculas-fulldome-y-proyecciones .eo-event-meta{
    background: #95a9bc;
}
.archive article.event-category-talleres .eo-event-meta{
    background: #fff29f;
}
.archive article.event-category-conferencias-y-ciclos-de-conferencias .eo-event-meta{
    background: #bbd199;
}
.archive article.event-category-conciertos .eo-event-meta{
    background: #f1bb85;
}
.archive article.event-category-cursos .eo-event-meta{
    background: #b79882;
}
.archive article.event-category-observacion-con-telescopios .eo-event-meta {
    background: #7f7f7f;
}
.archive article.event-category-especiales .eo-event-meta {
    background: #bd91a7;
}
