/* Cambios css para version movil */
@media screen and (max-width: 739px){
    .slicknav_menu #main-header{
        padding-top:0rem;
        padding-bottom:0.2rem;
        padding-left: 2.0rem;
    }
    body .slicknav_menu h1 a, body .slicknav_menu h2 a{
        background-size: 14.9rem;
        top: 0.5rem;
        height: 4.4rem;
    }
    .slicknav_menu #main-header .social-links {
        margin-left: 0.4rem;
    }
    .slicknav_menu #main-header .social-links ul a {
        padding: 0rem;
    }
    .slicknav_menu #main-header .social-links ul a img {
        width: 3.8rem;
    }
    #social-block-node{
        display: none !important;
    }
    #mdsocial-node{
        display: block;
    }
    /*
    .header_md_social .fb-cont, .header_md_social .tw-cont{
        position: absolute;
        left: 27px;
        top: 24px;
        font-size: 0.9rem;
        color: #fff; 
    }*/
    .header_md_social .tw_btn, .header_md_social .fb_btn{
        position: relative;
    }
    .slicknav_menu #main-header .social-links ul .rss_btn{
        display:none !important;
    }  
    .slicknav_menu #main-header .cw{
        width: 100%;        
    }
}

@media screen and (min-width: 740px){
    #social-block-node{
        display: table-cell;
    }
    #mdsocial-node{
        display: none !important;
    }
}

/*nuevos botones compartir en el detalle*/
@media screen and (min-width: 481px){
    .slicknav_menu #main-header .cw{
        margin-left: 2.0rem;
    }    
}
/**/

/*@media screen and (max-width: 390px){ /**/ /*nuevos botones compartir en el detalle */
@media screen and (max-width: 480px){
    .slicknav_menu #main-header{
        padding-top:0rem;
        padding-bottom:0.2rem;
        padding-left: 3.5rem;
        padding-right: 0.5rem;
    }
    
    body .slicknav_menu h1 a, body .slicknav_menu h2 a{
        background-size: 13.3rem;
        top: 0.5rem;
        height: 3.4rem;
    }
    .slicknav_menu #main-header .social-links {
        margin-left: 0rem;
        margin-top: 0.3rem;
        float: right;
    }    
    .slicknav_menu #main-header .social-links ul a img {
        width: 3.8rem;
    }   
    .slicknav_menu #main-header .social-links ul .rss_btn{
        display:none !important;
    }    
    .slicknav_menu #main-header .social-links li {
        margin-left: -0.1rem; 
    }
    .slicknav_menu #main-header .cw h2 a img{
        display:none;
    }
    /*nuevos botones compartir en el detalle*/
    .slicknav_menu #main-header .cw{
        width: 100%;
        min-width: 29.5rem;
    }
    .not-front .slicknav_menu #main-header .cw h2 a {
        font-size: 0rem;
        background: url(../../../../../sites/all/themes/mdtheme/files/images/logo-mobile.png);
        background-position: 0.5rem 0rem;
        width: 4.1rem;
        background-repeat: no-repeat;
        background-size: auto 3.5rem;
    }
    .not-front .slicknav_menu #main-header .cw h1, .not-front .slicknav_menu #main-header .cw h2 {
        width: 4.0rem;
    }
    .not-front .slicknav_menu #main-header .social-links ul a {
        padding: 1rem 0.5rem;
        min-width: 12.0rem; 
    }
    .front .slicknav_menu #main-header .cw h1, .front .slicknav_menu #main-header .cw h2 {
        margin-left: 1.0rem;
    }
    /*****/
}
/*nuevos botones compartir en el detalle*/
.slicknav_menu #main-header .social-links {
    margin-left: 0rem;
    margin-top: 0.3rem;
    float: right;
}
.front .slicknav_menu #main-header .social-links {
    margin-top: 0rem;    
}
.slicknav_menu #main-header .social-links ul a {
    padding: 1rem 0.5rem;
    min-width: 12.0rem; 
}
.slicknav_menu #main-header #social-block.social-links ul a {
    min-width: inherit; 
    padding: 0rem;
}
body .slicknav_menu .slicknav_btn {
    margin: -0.3rem 0.1rem 0 0;
    height: 3.8rem;
    left: 0.1rem;
    right: inherit;
    padding: 0.438em 0.525em 0.438em 0.525em;    
}
body .slicknav_menu .slicknav_icon {
    margin: 0rem;
    margin-top: 0.6rem;
}
/******/

/* Listado articulos streaming en ver partidos en directo */
.md-article-list-cw.streaming .md-article-item-list>.img img {
    max-width: 12.1rem;
    height: auto;
    width: inherit !important;
}
#node-987{
    border: none;
    margin-bottom: 0rem;
    padding-bottom: 0rem;
}

/* Maquetacion home botones sociales en contenidos embed */
.enlace-embed{
    color: #605f5f !important;
    text-decoration: none;
}
.enlace-embed:hover{
    text-decoration: none;
}
.front .title-embed{
    font-size: 3rem;
    line-height: 3.6rem;
    font-weight: bold;
    text-decoration: none;
}
.front .content-embed p {
    font-size: 1.6rem;
    line-height: 2.2rem;
    text-align: justify;
}

.front .content-embed img, .md-article-list-cw .content-embed img{
    width: 100% !important;
    height: auto !important;        
}
.front .content-embed iframe, .node-embed .content-body iframe, .md-article-list-cw .content-embed iframe{
    width: 100% !important;
}
.front .content-embed iframe.vine-embed{
    max-height: 47.4rem;
}
@media screen and (max-width: 739px){
    .front .content-embed iframe.vine-embed, .node-embed .content-body iframe.vine-embed, .md-article-list-cw .content-embed iframe.vine-embed{
        max-height: 32.5rem;
        margin-bottom: -15px;
    }
}
@media screen and (max-width: 350px){
    .front .content-embed iframe.vine-embed, .node-embed .content-body iframe.vine-embed, .md-article-list-cw .content-embed iframe.vine-embed{
        max-height: 24.4rem;        
        margin-bottom: -10px;
    }    
}
/* Maquetacion para ios */
.iphone .front .content-embed iframe.vine-embed,
.ipad .front .content-embed iframe.vine-embed{
    height: 34.4rem;
}
.iphone .node-embed .content-body iframe.vine-embed,
.iphone .md-article-list-cw .content-embed iframe.vine-embed,
.ipad .node-embed .content-body iframe.vine-embed,
.ipad .md-article-list-cw .content-embed iframe.vine-embed{
    height: 47.5rem;
}    
/*****/

.content-embed iframe.video-youtube{
    height: 29.0rem !important;
    width: 100%;
}

.front .nav-social-buttons-links li{
    display: inline-block;
    background: transparent;
    padding: 0rem 0.3rem 0rem 0rem;
}
.front .nav-social-buttons-links li a{
    text-indent: -50000px;
    width: 1.8rem;
    height: 1.8rem;    
}
.front .nav-social-buttons-links .fb a {
    background: url(../../../../../sites/all/themes/mdtheme/files/images/facebook-icon48.png);
    background-size: 1.8rem;
    background-repeat: no-repeat;
}

.front .nav-social-buttons-links .tw a {
    background: url(../../../../../sites/all/themes/mdtheme/files/images/twitter-icon48.png);
    background-size: 1.8rem;
    background-repeat: no-repeat;
}

.front .nav-social-buttons-links .gl a {
    background: url(../../../../../sites/all/themes/mdtheme/files/images/google-plus-icon.png);
    background-size: 1.8rem;
    background-repeat: no-repeat;
}

.front .nav-social-buttons-links .mem {
    display: none !important;
}
.front .md-article-info.embed time, .md-article-info.list-embed time {
    padding-top: 0.5rem;
}
.front .md-article-info.embed, .md-article-info.list-embed{
    background: transparent;
}
.front .md-article-info.embed .nav-social-buttons-links, .md-article-info.list-embed .front{
    float: right;
}

/* Listados */
.nodepage-relatedarticle .md-article-item-list>.img img ,.md-article-list-cw .node-import-apuesta-del-dia>.img img{
    max-width: 12.1rem !important;
    width: inherit !important;
    height: auto !important;
}
.md-article-list-cw .node-import-apuesta-del-dia .md-article-title{
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 1rem !important;
    font-size: 1.8rem !important;
    line-height: 2.16rem !important;
}

.md-article-list-cw .md-article-item-list{
    display:block;
}
.md-article-list-cw .md-article-item-list>.img img,.md-article-list-cw .md-article-item-list.view-mode-md_basic_page_list>figure img {
    max-width: none;
    width: 100%;
    height: auto;
}
body:not(.page-node) .md-article-list-cw .md-article-item-list .md-article-title{
    font-size: 3rem;
    line-height: 3.6rem;
    font-weight: bold;
    text-decoration: none;
}
.md-article-list-cw .node-embed p{
    font-size: 1.6rem;
    line-height: 2.2rem;
}

.field-name-field-resumen p {
    font-size: 1.6rem;
    line-height: 2.0rem;
}

/* Espacio en blanco en portada para bloque livescore */
.livescore-home{
    height: 41.5rem;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}
.livescore-home iframe{
    min-height: 15.0rem !important;    
}

/* Marcadores en directo a todo el ancho */
.all-width{
    width: 100% !important;
}

.md-article-list-cw .md-article-item-list.node.node-apuesta-del-dia>.img img, .md-article-list-cw .md-article-item-list.node.node-apuesta-del-dia.view-mode-md_basic_page_list>figure img {
    max-width: 121px;
    height: auto;
    width: inherit;
}

.md-article-list-cw .md-article-item-list.node.node-apuesta-del-dia h2 {
    margin: 0;
    padding: 0;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    line-height: 2.16rem;
}
/* Restyling apuesta del dia */
.md-block.apuestas-del-dia>h2{
    background-image: none;
    background-color: #3d3d3d;
    text-align: center;
    margin-bottom: 0;
}
.md-block.apuestas-del-dia>h2>span{
    color: #FDD200;
}
.md-block.apuestas-del-dia .md-article{
    background: #005f96;
    padding: 15px 15px 0px 15px;
}

.md-block.apuestas-del-dia .md-article .source-logo{
    background: #fff;
    padding: 10px 10px 5px 10px;
    margin-bottom: -10px;
}

.md-block.apuestas-del-dia .md-article h2.md-article-title{
    margin-bottom: 0rem;
    background: #fff;
    padding: 10px 10px 0px 10px;
}
.front .md-block.apuestas-del-dia .md-article h2.md-article-title a{
    font-size: 2.4rem !important;
    line-height: 2.6rem !important;
}
.md-block.apuestas-del-dia .md-article h2.md-article-title a{
    font-size: 1.8rem;
    line-height: 2rem;
}
.md-block.apuestas-del-dia .md-article .md-article-description, .md-block.apuestas-del-dia .md-article .field-name-field-resumen{
    background: #fff;
    padding: 12px 10px 10px 10px;
    margin-top: -5px;
}
.md-block.apuestas-del-dia .md-article .resumen .md-article-description, .md-block.apuestas-del-dia .md-article .resumen .md-block.apuestas-del-dia .md-article {
    margin-top: -15px;
}
/*
.front .md-block.apuestas-del-dia .md-article .md-article-description>*{
    font-size: 1.5rem !important;
    line-height: 1.76rem !important;
}*/

.md-block.apuestas-del-dia .md-article .md-article-description>*, 
.md-block.apuestas-del-dia .md-article .field-name-field-resumen>*{
    font-size: 1.3rem;
    line-height: 1.56rem;
}
.front .md-block.apuestas-del-dia .patrocinado-por {
    padding: 10px 0px 20px 0px !important;
}
.md-block.apuestas-del-dia .patrocinado-por{
    padding: 15px 0px 30px 0px;
    background-color: #ececec;    
    font-size: 2rem;
    text-align: center;
    margin-top: -10px;
    line-height: 2.3rem;
}/*
.front .md-block.apuestas-del-dia .patrocinado-por>a {
    font-size: 1.4rem !important;
}*/
.md-block.apuestas-del-dia .patrocinado-por>a{
    color: #005f96;
    font-size: 2rem;
    text-decoration: none;
}
/*.front .md-block.apuestas-del-dia .patrocinado-por>a>span {
    font-size: 1.6rem !important;
}*/
.md-block.apuestas-del-dia .patrocinado-por>a>span{
    font-weight: bold;
    font-size: 2.4rem;
}
/*
.front .md-block.apuestas-del-dia .patrocinado-por .cantidad {
    font-size: 1.8rem !important;
}*/
.md-block.apuestas-del-dia .patrocinado-por .cantidad{
    color: #FDD200;
    font-size: 2.8rem;
    font-weight: bold;
}
/*
.front .md-block.apuestas-del-dia .apuesta-ya{
    padding: 10px 5px !important;
    margin-top: -20px;
}*/
.md-block.apuestas-del-dia .apuesta-ya{
    padding: 10px 10px;
    background-color: #80bf00;
    text-align: center;
    width: 165px;
    position: relative;
    margin: 0 auto;
    margin-top: -18px;
}
/*
.front .md-block.apuestas-del-dia .apuesta-ya a {
    font-size: 1.4rem !important;
}*/
.md-block.apuestas-del-dia .apuesta-ya a{
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
}
.md-block.apuestas-del-dia .img-apuesta-del-dia{
    text-align: center;
    background: #005f96;
    padding-top: 20px;
    margin-top: -20px;
}
.md-block.apuestas-del-dia .md-article .md-article-info{
    margin-right: -15px;
    margin-left: -15px;
    border: none;
    border-top: solid 10px #fff;
}

/* Eliminamos background de cabeceras, cambiar cuando se suba la interior */
#layout-menu-main .cw {
    background: #3d3d3d !important;
}
#layout-menu-sections{
    background: none repeat scroll 0 0 #2a2a2a !important;
}
.block-title, .md-comments>h1, .md-comments>h2, .md-comments .md-comments-title, .md-block>h1, .md-block>h2, .md-block>.md-block-title {
    background: #3d3d3d !important;
}
.md-en-pocas-palabras > h2 {
    background: none !important;
}
.list_users>h2{
    background: none !important;
}

/* Compactamos las relacionadas en la interior
@media screen and (min-width: 500px){
    body .node-story.view-mode-full .md-block--list .md-block-cw .md-block-title{
        display: inline;
    }
    body .node-story.view-mode-full .md-block--list .md-block-cw .md-block-meta--date{
        background: none;
        display: inline;
        top: -1px;
        float: right;
    }
}*/
@media screen and (max-width: 969px){
    body .node-story.view-mode-full .md-block--list .md-block-cw .md-block-title a{
        font-size: 1.3rem;
        line-height: 1.8rem;  
    }
}

body .node-story.view-mode-full .content-body,
body .node-embed.view-mode-full .content-body{
    border-bottom: 0px !important;
}
body .node-story.view-mode-full .md-block.md-block--list > h2, 
body .node-embed.view-mode-full .md-block.md-block--list > h2{
    background: none !important;
}
body .md-article-list li > span:before, .md-block .md-block-meta.md-block-meta--date:before {
  color: #4d4d4d !important;
}

/* Cambios css para version movil para las relacionadas de webapuestas */
@media screen and (max-width: 739px){
    body #webapuestas-relacionado .md-article-item-list.node.node-import-apuesta-del-dia.node-promoted.import_content.view-mode-md_basic_page_list > figure.img {
        position: relative !important;
        display: block !important;
        width: 135px !important;
        float: left !important;
    }
    body #webapuestas-relacionado .md-article-item-list.node.node-import-apuesta-del-dia.node-promoted.import_content.view-mode-md_basic_page_list > .md-article-description {
        display: block !important;
        vertical-align: top !important;
        width: 100% !important;
    }
    body #webapuestas-relacionado .md-article-description p,
    body #webapuestas-relacionado .md-article-description .md-fecha-logo .md-info-date{
        font-size: 1.3rem !important;
        line-height: 1.6rem !important;
    }
    body #webapuestas-relacionado.md-article-list-cw .md-article-item-list {
      display: table !important;
    }
}