@font-face {
    font-family: "sharktooth-regular";
    font-weight: normal;
    src: url('/fonts/sharktooth/Sharktooth-Regular.ttf') format('truetype');
}

@font-face {
    font-family: "sharktooth-bold";
    src: url('/fonts/sharktooth/Sharktooth-Bold.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'sharktooth-heavy';
    src: url('/fonts/sharktooth/Sharktooth-Heavy.ttf') format('truetype');
    font-weight: normal;
}

:root {
    --ly-white: #FFFFFF;
    --ly-header-white: #F2F2F2;
    --ly-green: #01F311;
    --ly-prog-bar-green: #62FF67;
    --ly-dark-green: #006425;
    --ly-header-orange: #FF8239;
    --ly-lesson-orange: #FC8C29;
    --ly-bright-red: #E84B32;
    --ly-wrong-answer-red: #E63333;
    --ly-red: #840000;
    --ly-dark-red: #801F32;
    --ly-bprog-bar-gray: #D9D9D9;
    --ly-black: #000000;
    --bg-grey: #EDEDED;
    --black: #000;
    --white: #FFFFFF;
    --ai-purple: #6F2EFE;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100svh;
    color: var(--ly-dark-red);
    background: var(--ly-white) url('/images/lingofy/site/ly-bg.png') fixed no-repeat;
    background-size: cover;
    scroll-behavior:smooth;
    font-family: sharktooth-bold, sans-serif;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.no-scroll {
    overflow: hidden;
}

/*Shared Classes*/

.image-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ly-primary-btn:disabled, .ly-primary-btn.disabled {
    background: grey !important;
    pointer-events: none !important;
}

.ly-primary-btn span {
    vertical-align: middle;
    margin-top: 4px;
}

.ly-primary-btn.ly-login-btn {
    background-color: var(--ly-white);
    color: var(--ly-purple-bg);
}

.ly-primary-btn.ly-logout-btn {
    background-color: var(--ly-red);
    color: var(--ly-white);
}

.ly-secondary-btn {
    text-decoration: underline;
    color: var(--ly-dark-red);
    font-size: 20px;
}

    .ly-secondary-btn:hover {
        text-decoration: underline;
    }

/*Header*/
.ly-main-header-backdrop {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    width: 100%;
    padding: clamp(10px,1.5vw,30px) clamp(10px,8vw,160px) 0;
}

    .ly-main-header-backdrop.expanded {
        position: absolute;
        z-index: 7;
        inset: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0,0,0,.4);
        transition: background-color ease .3s;
    }

.ly-main-header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border-radius: 10px;
    background-color: var(--ly-header-white);
    padding: clamp(5px,1vw,15px) 30px;
}

.ly-logo-lang-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: clamp(10px,1.2vw,20px);
    min-width: max(120px,23vw);
}


.ly-main-header .ly-learning-lang-dropdown {
    margin-inline: auto;
    z-index: 1;
    min-width:130px;
}

.ly-learning-lang-dropdown {
    position: relative;
    height: 40px;
    font-family: sharktooth-regular;
    font-size: clamp(18px,1.5vw,22px);
}

.ly-learning-lang-dropdown-arrow {
    transition: all ease .3s;
}

.ly-learning-lang-dropdown.expanded .ly-learning-lang-dropdown-arrow {
    transform: rotate(180deg);
}

.ly-selected-learning-lang {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width:100%;
    height: 100%;
}

.ly-learning-lang-dropdown-options-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--ly-white);
    border-radius: 12px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.ly-leanring-lang-dropdown-option {
    padding-inline-end: 10px;
}

    .ly-leanring-lang-dropdown-option:not(:first-child) {
        margin-top: 8px;
    }

    .ly-leanring-lang-dropdown-option button,
    .ly-leanring-lang-dropdown-option a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        width: 100%;
        color: black;
    }

.ly-user-pts {
    margin-inline-start: auto;
    color: var(--ly-header-orange);
    font-size: clamp(22px,1.5vw,30px);
}

.ly-welcome-text {
    font-size: clamp(16px, 1vw, 19px);
    margin-inline-end: 12px;
    text-align: center;
}

/*******************/
/*Sidebar*/
.ly-sidebar {
    flex: 1;
    display: none;
    width: 300px;
    height: 100%;
    padding-bottom: 110px;
    background-color: var(--ly-white);
    border-radius: 18px 18px 0 0;
    overflow: hidden;
}

.ly-sidebar-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    height: 100%;
}

.ly-sidebar-close-btn {
    display: none;
    position: absolute;
    top: 25px;
    inset-inline-end: 25px;
}

.ly-sidebar .ly-learning-lang-dropdown {
    display: none;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
}

.ly-sidebar .lang-menu {
    display: none;
    position: absolute;
    top: 25px;
    inset-inline-start: 15px;
    font-size: 20px;
}

.ly-sidebar .selected-lang:before, .ly-sidebar .selected-lang:after {
    content: '';
    position: absolute;
    top: 11px;
    width: 12px;
    height: 2px;
    background-color: var(--ly-dark-red);
    transition: all ease .3s;
}

.ly-sidebar .selected-lang:after {
    right: 6px;
}

.ly-sidebar .selected-lang {
    padding-right: 15px;
}

.ly-sidebar-nav {
    flex: 1;
    width: 100%;
    overflow-y: auto;
}

.ly-sidebar-nav-wrapper{
    width:100%;
}

.ly-sidebar-nav-link {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    padding: 20px 10px;
    border-radius: 15px;
    font-family: sharktooth-regular;
    color:inherit;
    transition: all ease .3s;
}

.ly-sidebar-nav-link > img {
    width: 48px;
}

    .ly-sidebar-nav-link.selected, .ly-sidebar-nav-link:hover {
        font-family: sharktooth-bold;
        background-color: rgba(255, 176, 106, 0.5);
    }

/*******************/

/*Inner Layout*/

.ly-inner-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding:0 20px 40px;
}

.ly-inner-layout-sections-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    width: clamp(420px,50%,600px);
}

.ly-inner-layout-sections-wrapper.ly-levels-section {
    padding-bottom: 25px;
}

/**************************/

/*DropDown Select*/
.ec-dropdown-holder {
    position: relative;
    z-index: 2;
    height: 50px;
    width: clamp(170px,14vw,220px);
}

    .ec-dropdown-holder.expanded {
        z-index: 3;
    }

.ec-dropdown {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    background-color: var(--ly-white);
    border-radius: clamp(10px,1vw,20px);
    overflow: hidden;
    font-size: clamp(18px,1.5vw,23px);
    color: var(--ly-dark-red);
    box-shadow: 0px 6.93px 6.93px 0px rgba(0, 0, 0, 0.1);
}

.ec-dropdown-selected-item {
    position: relative;
    z-index: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(5px,.7vw,10px);
    width: 100%;
    height: max(40px,3vw);
    padding: 5px 15px 0;
    background-color: var(--ly-white);
    color: inherit;
}

.ec-dropdown-options {
    position: relative;
    z-index: 1;
    display: none;
    left: 0;
    border-radius: 0 0 20px 20px;
    background-color: var(--ly-white);
    max-height: 180px;
    margin-bottom: 15px;
    overflow-y: scroll;
    /*scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #D6D6D6 var(--ec-white);*/
}

    .ec-dropdown-options::-webkit-scrollbar {
        width: 15px;
        margin-inline-end: 3px;
        margin-bottom: 5px;
    }

    .ec-dropdown-options::-webkit-scrollbar-track {
        background-color: var(--ly-white);
    }

    .ec-dropdown-options::-webkit-scrollbar-thumb {
        background-color: #D6D6D6;
        border-radius: 8px;
        cursor: pointer;
        border: solid 4px transparent;
        background-clip: content-box;
    }

    .ec-dropdown-options .ec-dropdown-option {
        color: inherit;
        padding: 10px 15px;
    }

.ec-dropdown-selected-item img {
    transition: all ease .3s;
    width: max(1.5vw,18px);
}

.ec-dropdown-holder.expanded .ec-dropdown-selected-item img {
    transform: rotate(180deg);
}

/******************/

button.ly-primary-btn, input[type="submit"].ly-primary-btn, .ly-primary-btn {
    -webkit-appearance: none;
    background-color: var(--ly-dark-red);
    border-radius: 15px;
    min-width: 50px;
    font-size: clamp(18px,1.4vw,25px);
    color: var(--ly-white);
    box-shadow: 0px 4px 0px 0px rgba(215, 215, 215, 1);
    padding: 15px 25px;
    font-family: inherit;
    width: fit-content;
    text-align: center;
    transition: all ease .3s;
}

    button.ly-primary-btn:hover, input[type="submit"].ly-primary-btn:hover, .ly-primary-btn:hover {
        box-shadow: 0px 3.82px 3.82px 0px #00000040 inset;
    }


@media screen and (max-width:820px) {

    .ly-main-header-backdrop {
        padding: unset;
    }

        .ly-main-header-backdrop.expanded .ly-main-header {
            display: none;
        }

    .ly-main-header {
        background-color: unset;
        border-radius: unset;
        padding: 15px;
    }

        .ly-main-header .lang-menu,
        .ly-main-header .ly-learning-lang-dropdown {
            display: none;
        }

    .ly-grid-menu {
        order: 1;
        margin-inline-end: clamp(40px,11vw,80px);
    }

    .ly-logo-lang-wrapper {
        order: 2;
        min-width: unset;
        margin-inline-start: auto;
    }

    .ly-user-pts {
        order: 3;
        font-size: 18px;
    }

    .ly-welcome-text {
        font-size: 12px;
        margin-inline-end: 0;
    }

    .ly-sidebar {
        position: absolute;
        top: 0;
        inset-inline-start: -300px;
        height: 100vh;
        border-radius: 0;
        border-start-end-radius: 50px;
        padding-top: 100px;
        transition: all ease .3s;
    }

        .ly-sidebar .ly-sidebar-close-btn,
        .ly-sidebar .ly-learning-lang-dropdown,
        .ly-sidebar .lang-menu {
            display: block;
        }

        .ly-sidebar .ly-learning-lang-dropdown {
            width: 120px;
        }

        .ly-sidebar .lang-menu {
            z-index: 2;
        }

    .ly-main-header-backdrop.expanded .ly-sidebar {
        inset-inline-start: 0;
    }

    .ly-sidebar-nav-link {
        padding: 10px;
    }
}

@media screen and (max-width:480px) {
    .ly-inner-layout-sections-wrapper {
        width: 100%;
    }
}
