/*
Theme Name: Learning Bits
Theme URI: https://wordpress.org/themes/learningbits/
Author: the Learning Bits team
Author URI: https://learning-bits.com
Description: Learning Bits is designed to be flexible, versatile and applicable to any website. Its collection of templates and patterns tailor to different needs, such as presenting a business, blogging and writing or showcasing work. A multitude of possibilities open up with just a few adjustments to color and typography. Twenty Twenty-Four comes with style variations and full page designs to help speed up the site building process, is fully compatible with the site editor, and takes advantage of new design tools introduced in WordPress 6.4.
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.0
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: learningbits
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/



/*****
        COLORES
******/

.negro {
    color: #151515 !important;
}
.naranja {
    color: #f39200 !important;
}
.azul {
    color: #24709c !important;
}
.verde {
    color: #8abd24 !important;
}
.azulMB {
    color: #00a5dc !important;
}

/*****
        HEADER
******/

header .wp-block-navigation-item a {
    color: #151515 !important;
}
header .wp-block-navigation-item a:hover {
    color: #f39200 !important;
}
header ul.wp-block-navigation__container li:first-child button {
    color: #f39200 !important;
}
header .dropdown-lang li a {
    text-transform: uppercase;
}

/*
    Color naranja icono
*/
.fa-user {
    color: #f39200 !important;
}

/*
    Desplegable hacia la derecha
*/
.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container {
    left: 0;
    min-width: 130px !important;
}

/*
    Desplegable idioma color borde
*/
.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
    border: 1px solid #f39200;
}

/* Sticky header */
body.doscroll header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

@media (max-width: 600px) {
    .fauser {
        display: none;
    }
}

@media (max-width: 768px) {
    header nav {
        flex-direction: row-reverse;
    }
    #modal-1-content ul:first-child {
        width: 100% !important;
        border-top: 2px solid #f39200;
        border-bottom: 2px solid #f39200;
        padding-top: 2%;
        padding-bottom: 2%;
    }
    #modal-1-content ul:first-child ul.wp-block-navigation__submenu-container li {
        align-items: center;
    }
    #modal-1-content ul.wp-block-navigation__container {
        align-items: center;
    }
    #modal-1-content ul.wp-block-navigation__container li.accesourl {
        margin-top: 3px;
        margin-bottom: 20px;
    }
    .archive main .wp-block-image img {
        max-width: 200px !important;
    }
    .archive main .wp-block-group.is-vertical.is-content-justification-center.is-layout-flex.wp-block-group-is-layout-flex {
        padding-right: 1rem !important;
        padding-left: 1rem !important;
        width: 200px;
    }
}


/*****
        MAIN
******/

main {
    color: #151515 !important;
    /*font-size: 23pt !important;*/
    max-width: 1110px;
    margin: 50px auto;
    padding-left: 10px;
    padding-right: 10px;
    line-height: pt !important;
}
body:not(.single-post) main {
    line-height: 37pt !important;
}

main p {
    margin-block-end: 30px !important;
}

main a:hover {
    text-decoration: underline !important;
}

body.single-post main figure.wp-block-table.table-custom {
    max-width: 100%;
}

body.single-post main h1.wp-block-post-title {
    text-align: center;
}

body.single-post main {
    font-family: 'Inter','Arial','Helvetica','sans-serif' !important;
}

body.single-post main h4 {
    font-family: 'Inter','Arial','Helvetica','sans-serif' !important;
    text-transform: uppercase;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

body.single-post main p {
    font-family: 'Inter','Arial','Helvetica','sans-serif' !important;
    /*margin-bottom: 0px !important;*/
}

body.single-post main .table-cookies tr th,
body.single-post main .table-cookies tr td {
    width: 10% !important;
}

body.single-post main .table-cookies tr th:first-child,
body.single-post main .table-cookies tr td:first-child,
body.single-post main .table-cookies tr th:nth-child(2),
body.single-post main .table-cookies tr td:nth-child(2) {
    width: 20% !important;
}

body.single-post main .table-cookies tr th:last-child,
body.single-post main .table-cookies tr td:last-child {
    width: 40% !important;
}

table {
    margin-top: 50px;
    border-spacing: 0;
}

main table th, table td {
    border: 1px solid black;
    padding: 1rem;
}

@media (max-width: 600px) {
    body.single-post main .table-cookies tr th,
    body.single-post main .table-cookies tr td {
        font-size: 0.675rem !important;
        width: 20% !important;
    }

    body.single-post main .table-cookies tr th:last-child,
    body.single-post main .table-cookies tr td:last-child {
        width: 20% !important;
    }
}

:root {
    --wp--style--global--content-size: 100%;
    --wp--style--global--wide-size: 100%;
}


@media (max-width: 600px) {
    main {
        margin-bottom: 0px;
    }

    main .logosb {
        margin-top: 50px;
    }

    body.single-post main figure.wp-block-table.table-custom {
        margin-bottom: 2rem;
    }
    body.archive main .wp-block-columns.is-style-default.is-layout-flex.wp-container-core-columns-is-layout-4c467a35.wp-block-columns-is-layout-flex {
        width: 230px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.single-post main table th,
    body.single-post table td {
        padding: 0.5rem;
        word-break: break-word;
    }

    body.single-post .entry-content {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}


/*****
        FOOTER
******/

footer .footer-1 {
    padding: 0;
}

footer .footer-container {
    margin: 0;
}

footer a {
    text-decoration: none !important;
}
footer a:hover {
    text-decoration: underline !important;
}

html.has-modal-open .fa-user {
    display: none;
}

html.has-modal-open li:not(.accesourl) a.wp-block-navigation-item__content:first-child {
    display: none;
}

#modal-1-content {
    padding-right: 5%;
}

footer .linkedin-off {
    cursor: pointer;
}

footer .linkedin-on {
    display: none;
}

footer .wp-block-columns-is-layout-flex {
    gap: 0;
}

@media (max-width: 768px) {
    footer .footer-social {
        justify-content: center;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    footer .footer-links {
        padding-top: 10px;
        padding-bottom: 10px;
        background-color: #2a2a2a !important;
        justify-content: center;
    }
    footer .footer-links p {
        text-align: center;
    }
    footer .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
        flex-basis: 100% !important;
    }
    footer .footer-links div:first-child {
        padding-top: 0 !important;
    }
    footer .footer-links p {
        width: 100%;
    }
}
