/* 
    Theme Name: WordPress Moodle Training Platform
    Description: WordPress + Moodle Training Platform Theme
    Author: Apphia s.r.l.
    Author URI: https://www.apphia.it/
    Template: hello-elementor
    Version: 1.0.3
    Text Domain: wordpress-moodle-training-platform
*/

:root {
    --sidebar-width: 300px;
    --sidebar-border-color: #D8D8D8;
    --sidebar-border-width: 2px;
}

html, body {
    height: 100%;
    margin: 0;
}

#primary-sidebar {
    display: flex;
    position: fixed;
    z-index: 9999;

    background-color: white;

    left: calc(0px - var(--sidebar-width));
    width: var(--sidebar-width);
    height: 100%;
    
    border-right: var(--sidebar-border-color) solid var(--sidebar-border-width);
}

#primary-sidebar.show {
    left: 0;
}

/* For large screens, show sidebar */
@media (min-width: 1024px) {
    #primary-sidebar {
        left: 0;
    }

    #main-content {
        margin-left: var(--sidebar-width);
    }
}

main {
    flex-grow: 1;
    margin: 0
}

.elementor a {
    color: inherit !important;
}

.elementor-widget-login_logout_buttons .dropdown-content {
	z-index: 99 !important;
}

.trp-ls-shortcode-language {
	z-index: 99 !important;
}

/* Custom CSS for TRP Language Switcher */

/*
 *  Menu Language Switcher
 */

 .menu-item-object-language_switcher .trp-flag-image {
    display: inline-block;
    margin: -1px 5px;
    vertical-align: baseline;
    padding: 0;
    border: 0;
    border-radius:0;
}

/*
 *  Shortcode Language Switcher
 */

.trp-language-switcher > div {
    box-sizing: border-box;
    padding:4px 20px 3px 13px;
    border: 1.5px solid #949494;
    border-radius: 2px;
    background-image: url(../../assets/images/arrow-down-3101.svg);
    background-repeat: no-repeat;

    background-position:
            calc(100% - 20px) calc(1em + 2px),
            calc(100% - 3px) calc(1em + 0px);

    background-size:
            8px 8px,
            8px 8px;

    background-repeat: no-repeat;

    background-color: #fff;
}

.trp-language-switcher > div:hover {
    background-image: none;
}

.trp-language-switcher > div > a:hover {
    background: #F0F0F0;
    border-radius: 2px;
}
.trp-language-switcher > div > a.trp-ls-shortcode-disabled-language {
    cursor: default;
}
.trp-language-switcher > div > a.trp-ls-shortcode-disabled-language:hover {
    background: none;
}

.trp-language-switcher .trp-ls-shortcode-current-language{
    display: inline-block;
    width: inherit !important;
}
.trp-language-switcher:focus .trp-ls-shortcode-current-language,
.trp-language-switcher:hover .trp-ls-shortcode-current-language{
    visibility: hidden;
}

.trp-language-switcher .trp-ls-shortcode-language{
    display: inline-block;
    height: 1px;
    overflow: hidden;
    visibility: hidden;
    z-index: 1;

    max-height: 250px;
    overflow-y: auto;
    left: 0;
    top: 0;
    min-height: auto;
}

.trp-language-switcher:focus .trp-ls-shortcode-language,
.trp-language-switcher:hover .trp-ls-shortcode-language{
    visibility: visible;
    max-height: 250px;
    padding: 4px 13px;
    height: auto;
    overflow-y: auto;
    position: absolute;
    left: 0;
    top: 0;
    display: inline-block !important;
    min-height: auto;
    padding: 4px !important;
    width: 100% !important;
}

/*
 *  Front-end Admin Bar Icon
 */
#wpadminbar #wp-admin-bar-trp_edit_translation .ab-icon:before {
    content: '\f326';
    top: 3px;
}

@media screen and ( max-width: 782px ) {
    #wpadminbar #wp-admin-bar-trp_edit_translation > .ab-item {
        text-indent: 0;
    }

    #wpadminbar li#wp-admin-bar-trp_edit_translation {
        display: block;
    }
}


/* New CSS Design */


.trp-language-switcher > div {
    border: none !important;
    border-radius: 15px !important;
    background-image: unset !important;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    padding: 4px 9px 3px 4px;
    width: inherit !important;
}

.trp-language-switcher > div > a {
    display: block;
    border-radius: 3px;
    text-decoration: none;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    color: var(--e-global-color-text) !important;
    padding: 0px;
}

.trp-language-switcher > div > a > img {
    display: inline;
    margin: 0 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    vertical-align: text-bottom;
    border: 1px solid white;
}


.trp-language-switcher-container > .trp-ls-shortcode-current-language:hover{
    background-color: white !important;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
}

.trp-language-switcher {
    position: relative;
    box-sizing: border-box;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    margin-left: 10px;
    height: auto;
}

.trp-language-switcher .trp-ls-shortcode-language{
    border-radius: 8px !important;
    padding: 0px 6px;
}

.trp-language-switcher > div > a:hover,
.trp-language-switcher > div > a.trp-ls-shortcode-disabled-language:hover
{
    background: unset;
    color: var(--e-global-color-primary) !important;
    font-weight: bold !important;
}

/* Hide TRP language switcher dropdown arrow icon */
.trp-ls-shortcode-current-language > a::after {
    display: none;
}


/* logout/login button  */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Navigation menu */
li.current-menu-item>a:not([href*="#"]) {
    /* Highlight current selected item with primary color */
    /* Do not highlight anchor links */
    color: var(--e-global-color-primary) !important;
}

/* Video Tutorial Pop CSS */
.pum-close-x {
    background-color: var(--e-global-color-primary);
    position: absolute !important;
    top: -44px;
    right: -44px;
    z-index: 11;
    width: 48px;
    height: 48px;
    border-radius: 50px;
    padding: 0;
    bottom: none !important;
    float: none !important;
}

.pum-close.popmake-close {
    position: relative !important;
    bottom: 0 !important;
    float: right !important;
	border: unset;
    color: #ffff;
}

.pum-close.popmake-close:hover{
	background-color: rgba(51, 51, 51, 0.7) !important;
}
