/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/

/* Lang switcher */
.lang-switcher {
    position: relative;
    display: inline-block;
    z-index: 2;
}

@media screen and (min-width: 1024px) {
    .lang-switcher {
        margin-top: 10px;
    }
}
@media screen and (max-width: 768px) {
    .lang-switcher {
        margin-top: 7px;
    }
}

.lang-switcher__current {
    height: 1.5rem;
    width: 1.5rem;
    position: relative;
    cursor: pointer;
}

.lang-switcher__current:after {
    content: '';
    position: absolute;
    right: -2.15rem;
    top: 50%;
    transform: translateY(-50%);
    height: 1rem;
    width: 1rem;
    background-size: 1rem;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform .12s ease-in;
    box-sizing: content-box;
    padding: 1rem;
}

.lang-switcher__current img {
    height: 1.5rem;
    width: 1.5rem;
    object-fit: contain;
    object-position: center;
    border-radius: 100%;
}

.lang-switcher__dropdown {
    border-radius: 50px;
    background-color: #fff;
    padding: .5rem;
    box-shadow: 0 0 15px 0 rgba(0,0,0,.15);
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    top: 1.5rem;
    opacity: 0;
    pointer-events: none;
    width: 40px;
    transition: opacity .12s ease-in, transform .12s ease-in;
}

.lang-switcher:hover .lang-switcher__dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%);
}

.lang-switcher:hover .lang-switcher__current:after {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) rotate(180deg);
}

.lang-switcher__dropdown__item {
    display: block;
    height: 1.5rem;
    width: 100%;
    text-align: center;
}

.lang-switcher__dropdown__item:not(:last-child) {
    margin-bottom: .5rem;
}

.lang-switcher__dropdown__item img {
    height: 1.5rem;
    width: 1.5rem;
    object-fit: contain;
    object-position: center;
    border: 1px solid #fafafa;
    border-radius: 1.5rem;
    transition: transform .12s ease-in;
}

.lang-switcher__dropdown__item:hover {
    transform: scale(1.05);
}