@import "_variables.css";
@import "./shared/reveal.css";

@import "fonts/font-dm-sans.css";
@import "fonts/font-canela-text-trial.css";

@font-face {
    font-family: 'Noto Sans';
    src: url('../../assets/fonts/Noto_Sans/NotoSans-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../../assets/fonts/Roboto/Roboto-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Semplicita';
    src: url('../../assets/fonts/Semplicita/Semplicita_Pro_Bold.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html {
  font-size: 13px;
}

@media (max-width: 1280px) {
  html { font-size: 12.5px; }
}

@media (max-width: 1024px) {
  html { font-size: 12px; }
}

@media (max-width: 768px) {
  html { font-size: 11.5px; }
}

@media (max-width: 639px) {
  html { font-size: 11px; }
}

@media (max-width: 480px) {
  html { font-size: 10.5px; }
}

@media (max-width: 360px) {
  html { font-size: 10px; }
}

body:not(.fa),
*:not(.fa) {
    font-family: 'DM Sans', 'Noto Sans', 'Roboto', sans-serif !important;
}

.fc-icon {
    font-family: fcicons !important;
}

.uk-container {
    padding-left: 2rem;
    padding-right: 2rem;
    display: block;
}

@media (min-width: 640px) {
    .uk-container {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (min-width: 960px) {
    .uk-container {
        padding-left: 6rem;
        padding-right: 6rem;
    }
}

@media (min-width: 1200px) {
    .uk-container {
        padding-left: 8rem;
        padding-right: 8rem;
    }
}

@media (min-width: 1600px) {
    .uk-container {
        padding-left: 9.846rem;
        padding-right: 9.846rem;
    }
}

@media (max-width: 468px) {
    #header .uk-container {
        padding: 0 3rem 0 1rem;
    }
}

#topNav>.header {
    z-index: 9999;
}

.uk-background-secondary {
    background-color: var(--secondary-bg-color);
}

.uk-background-primary {
    background-color: var(--primary-color);
}

.uk-button-primary {
    background-color: var(--primary-color);

    &.bg-transparent {
        background-color: transparent;
    }

    &:hover {
        background-color: var(--secondary-color);
    }

    &.uk-disabled {
        background-color: rgba(166, 156, 179, 1);
        color: var(--text-white);

        svg, path {
            fill: var(--text-white) !important;
        }
    }
}

/* global styles for site */
.header {
    .uk-subnav {
        gap: 1.846rem;
    }

    .uk-subnav,
    .uk-navbar-dropdown-nav {
        li {
            padding: 0;

            a {
                font-size: var(--font-size-16);
                font-weight: var(--font-semi-bold);
                color: var(--text-default);
                text-transform: initial;
            }

            &.uk-active {
                &>a {
                    color: var(--menu-active-color);
                    font-weight: var(--font-bold);
                }
            }
        }
    }

    .uk-navbar-right {
        .uk-subnav {
            gap: 1.231rem;

            li:first-child {
                margin-right: 0.769rem;
            }
        }

        .uk-button {
            font-size: var(--font-size-14);
            font-weight: var(--font-normal);

            &:not(.uk-button-primary) {
                color: var(--text-default);
            }

            &.uk-button-primary {
                font-size: var(--font-size-16);
                color: var(--text-white);
            }
        }
    }

    .header__language-dropdown {
        padding: 0.585rem 0.869rem;
        min-width: auto;
    }

    .header__language-dropdown-image {
        width: 1.385rem;
        height: 1.385rem;
    }

    .menu-children {
        padding: 4px 0;
        border-radius: 16px;

        li {
            padding: 4px 16px;

            a {
                font-size: var(--font-size-16);
                font-weight: var(--font-semi-bold);
                color: rgba(75, 85, 99, 1);
            }
        }
    }
}

.main-container {
    margin-top: 6.154rem;
    flex: 1 50.877rem;

    &.quiz-container {
        margin-top: 0;
    }
}

.uk-dropdown-nav>li>a {
    font-size: 1.077rem;
    color: var(--text-default);
}

.uk-h3,
h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

.uk-h4,
h4 {
    font-size: 1.25rem;
    line-height: 1.4;
}

.academy-home {
    .header-transparent {
        background-color: transparent;
        box-shadow: none;

        .uk-container {
            background-color: transparent;
        }
    }
}

.common-title {
    font-family: 'Semplicita', 'DM Sans', 'Noto Sans', 'Roboto', sans-serif !important;
    font-weight: 700;
    font-size: 2.462rem;
    line-height: 100%;
    letter-spacing: 0;
    vertical-align: middle;
}

.common-description-text {
    font-weight: 400;
    font-size: 1.385rem;
    letter-spacing: 0;
    vertical-align: middle;
}

.text-default {
    color: var(--text-default-50);
}

.text-default-500 {
    color: var(--text-default);
}

.text-black {
    color: rgba(16, 24, 40, 1);
}

.uk-button {
    text-transform: inherit;
    font-size: var(--font-size-16);

    &.uk-button-default {
        background-color: rgba(255, 255, 255, 1);
        border-color: #aaaaaa;

        &.bg-transparent {
            background-color: transparent;
        }
    }

    &.uk-button-default:hover {
        border-color: #000000;
    }

    &.uk-disabled:not(.uk-button-primary) {
        background-color: rgba(254, 242, 242, 1);
        color: var(--text-default) !important;
    }

    .loading-icon {
        display: none;
    }

    &.loading {
        pointer-events: none;

        .shared-icon {
            display: none;
        }

        .loading-icon {
            display: inherit;
        }
    }
}

.wrap-footer-link {
    display: flex;
    gap: 0.3rem;
    /*margin-top: 32px;*/
    /*justify-content: center;*/
}

.wrap-footer-link p {
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0%;
}

.wrap-footer-link a,
.wrap-footer-link button {
    color: #4C1D95;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0%;
}

button.btn-facebook, button.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 24px;
    font-weight: 500;
    border: 1px solid #D1D5DB;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #374151;
    padding: 0 12px;
    height: 38px;
    background-color: #FFFFFF;
}

button.btn-facebook:hover, button.btn-google:hover {
    background-color: #F0F5FE;
}

.btn-facebook span svg {
    fill: #fff;
    background-color: #1877F2;
    border: 1px solid transparent;
    border-radius: 50%;
}

.wrap-social-login.register-social {
    display: flex;
    justify-content: space-between;

    .btn-google {
        margin-bottom: 0;
    }

    .btn-facebook {
        display: flex;
        align-items: center;
    }
}

.divider-or {
    display: flex;
    align-items: center;
    text-align: center;
    /*margin: 24px 0;*/
    color: #999;
    font-weight: 500;
    font-size: 14px;
}

.divider-or::before,
.divider-or::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ccc;
}
.form-field label {
    display: inline-block;
    margin-bottom: 4px;
}
.auth-input {
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #d0d5dd;
    width: 100%;
    display: inline-block;
    padding-right: 35px;
}

.auth-input::placeholder {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0%;
}

.child-row-title-icon,
.child-column-title-icon {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: left;
    gap: 0.923rem;
    font-size: 1.385rem;
}

.child-row-button-rounded {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.615rem;
    font-weight: 500;

    &:not(.uk-disabled) {
        background-color: white;
        color: var(--text-black);
    }

    &.uk-disabled {
        background-color: rgba(254, 242, 242, 1);
        color: var(--text-default) !important;
    }
}

.common-button {
    .uk-spinner {
        display: none;
    }

    &.loading {
        pointer-events: none;
        cursor: not-allowed;

        .uk-icon {
            display: none;
        }

        .uk-spinner {
            display: inherit;
        }
    }
}
.font-12-normal {
    font-weight: 400;
    font-size: var(--font-size-12);
}

.font-14-normal {
    font-weight: 400;
    font-size: var(--font-size-14);
}

.font-14-500 {
    font-weight: 500;
    font-size: var(--font-size-14);
}

.font-14-600 {
    font-weight: 600;
    font-size: var(--font-size-14);
}

.font-16-normal {
    font-weight: 400;
    font-size: var(--font-size-16);
}

.font-16-600 {
    font-weight: 600;
    font-size: var(--font-size-16);
}

.font-24-normal {
    font-weight: 400;
    font-size: var(--font-size-24);
}

.font-24-bold {
    font-weight: 700;
    font-size: var(--font-size-24);
}

.font-16-bold {
    font-weight: 700;
    font-size: var(--font-size-16);
}

.font-16-bold {
    font-weight: 700;
    font-size: var(--font-size-16);
}

.font-18-normal {
    font-weight: 400;
    font-size: var(--font-size-18);
}

.font-18-bold {
    font-weight: 700;
    font-size: var(--font-size-18);
}
.font-20-bold {
    font-weight: 700;
    font-size: var(--font-size-20);
}

.font-20-600 {
    font-weight: 600;
    font-size: var(--font-size-20);
}

.font-30-bold {
    font-weight: 600;
    font-size: var(--font-size-30);
}

.font-36-medium {
    font-weight: 500;
    font-size: var(--font-size-36);
}

.font-40-normal {
    font-family: Semplicita, serif !important;
    font-weight: 400;
    font-size: 3.077rem;
}

.font-40-bold {
    font-family: Semplicita, serif !important;
    font-weight: 700;
    font-size: 3.077rem;
}

.uk-text-primary {
    color: var(--primary-color) !important;

    &:hover {
        color: #7d51b9 !important;
        border-color: #7d51b9 !important;
    }
}

.border-primary {
    border-color: var(--primary-color);
}

.checkbox-input {
    font-size: var(--font-size-14);
    font-weight: var(--font-semi-bold);
    color: rgba(31, 41, 55, 1);

    .uk-checkbox {
        width: 17px;
        height: 17px;
        border-radius: 4px;
        border: 1px solid rgba(31, 41, 55, 1);
        position: relative;

        &:checked {
            background: rgba(31, 41, 55, 1);
            color: #fff;

            &:after {
                content: "";
                position: absolute;
                left: 5px;
                top: 1px;
                width: 5px;
                height: 10px;
                border: solid rgba(255, 255, 255, 1);
                border-width: 0 2px 2px 0;
                -webkit-transform: rotate(45deg);
                -ms-transform: rotate(45deg);
                transform: rotate(45deg);
            }
        }

        &:disabled {
            background-color: rgba(254, 242, 242, 1);
            border-color: rgb(236, 227, 227, 1);

            &:checked {
                background-color: rgba(254, 242, 242, 1);

                &:after {
                    border-color: #000000;
                }
            }
        }
    }

    .checkbox-input__hint {
        font-weight: var(--font-normal);
        font-size: var(--font-size-12);
        color: rgba(107, 114, 128, 1);
    }
}

.shared-notify {
    .shared-notify__icon {
        padding: 16px;
        border-radius: 12px;

        &.--success {
            background: linear-gradient(0deg, #ECFDF5, #ECFDF5),
            linear-gradient(0deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4));

            img, svg, path {
                fill: revert-layer !important;
            }
        }

        &.--error {
            background: linear-gradient(0deg, #FEF2F2, #FEF2F2),
            linear-gradient(0deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4));


            img, svg, path {
                fill: revert-layer !important;
            }
        }
    }

    .shared-notify__title {
        font-weight: 600;
        font-size: var(--font-size-30);
        text-align: center;
    }

    .shared-notify__description {
        font-size: var(--font-size-16);
        font-weight: var(--font-semi-bold);
        color: rgba(107, 114, 128, 1);
    }

    .shared-notify__button {
        padding: 6px 55px;
    }
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

.uk-notification-message {
    &.uk-notification-message-success {
        background-color: rgba(16, 185, 129, 1);
        color: #ffffff;
    }

    &.uk-notification-message-danger {
        background-color: rgba(239, 68, 68, 1);
        color: #ffffff;
    }

    .uk-close {
        color: #ffffff;
    }
}

.builder-row.builder-r0-c0 > div:first-of-type, .builder-row.builder-r0-c0 > section:first-of-type {
    padding-top: var(--mp32);
    padding-bottom: var(--mp32);
}

.section-0 .builder-row.builder-r0-c0 > div:first-of-type {
    padding-top: 0;
}

.loading-spinner {
    &:before {
        content: '';
        width: 100%;
        height: 100%;
        position: absolute;
        background: #ffffff;
        opacity: 0.7;
    }
}

@keyframes zoomLoop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.animate-zoom-loop {
    animation: zoomLoop 1.5s ease-in-out infinite;
}

@keyframes backgroundZoom {
    0% {
        background-size: 100%;
    }

    50% {
        background-size: 105%;
    }

    100% {
        background-size: 100%;
    }
}

.bg-zoom-animation {
    animation: backgroundZoom 6s ease-in-out infinite;
    background-position: cover;
    background-repeat: no-repeat;
    background-size: 100%;
}

@keyframes shake-horizontal {
    0% { transform: translateX(0); }
    20% { transform: translateX(-0.385rem); }
    40% { transform: translateX(0.385rem); }
    60% { transform: translateX(-0.3077rem); }
    80% { transform: translateX(0.3077rem); }
    100% { transform: translateX(0); }
}

.scrolling-text {
    overflow: hidden;
    position: relative;
    top: 2.307rem;
    white-space: nowrap;
    color: rgba(225, 29, 72, 1);
    text-shadow:
            2px 2px 4px rgba(0, 0, 0, 0.6),
            0 0 8px rgba(0, 0, 0, 0.4);
    padding: 0 0.385rem;
}

.scrolling-text-inner {
    transform: translateX(100%);
    animation: slide-in 5s ease-out forwards;
}

@keyframes slide-in {
    to {
        transform: translateX(0);
    }
}

.account-content-right {
    .uk-card {
        border-top-right-radius: 1.23rem;
        border-bottom-right-radius: 1.23rem;
        box-shadow: none;
        border: 0.08rem solid rgba(0, 0, 0, 0.05);
        border-left: 0;

        .uk-card-header {
            padding: 0.92rem 1.54rem;
        }
        .uk-card-body,
        .uk-card-footer {
            padding: 0 2.46rem;
        }

        .uk-card-title {
            color: rgba(31, 41, 55, 1);
            font-size: var(--font-size-18);
            font-weight: var(--font-bold);
        }

        hr.divider {
            width: calc(100% + 4.92rem);
            margin-left: -2.46rem;
        }
    }
}

.uk-radio:not(.quiz-radio) {
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    border-radius: 50%;
    width: 1.538rem;
    height: 1.538rem;
    position: relative;
    cursor: pointer;
    border: 0.115rem solid var(--primary-color);
    outline: none;

    &:not(:disabled):checked, &:not(:disabled):checked:focus {
        background-color: transparent;
        background-image: none;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0.115rem solid var(--primary-color);

        &:after {
            content: ' ';
            display: block;
            width: 0.769rem;
            height: 0.769rem;
            border-radius: 50%;
            background-color: var(--primary-color);
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
    }

    &:disabled:checked, &:disabled:checked:focus {
        background-color: #9a91a7;
        background-image: none;
    }

    &.c-custom-radio {
        appearance: none;
        -webkit-appearance: none;
        background-color: transparent;
        border-radius: 50%;
        width: 1.846rem;
        height: 1.846rem;
        position: relative;
        cursor: pointer;
        border: 0.115rem solid rgba(209, 213, 219, 1);
        outline: none;

        &:not(:disabled):checked, &:not(:disabled):checked:focus {
            &:after {
                display: none;
            }
        }

        &:not(:disabled):checked, &:not(:disabled):checked:focus {
            background-color: var(--primary-color);
            background-image: url("/site/assets/icons/icon-check.svg");
            background-position: center;
        }

        &:disabled:checked, &:disabled:checked:focus {
            background-color: #9a91a7;
            background-image: url("/site/assets/icons/icon-check.svg");
            background-position: center;
        }
    }
}

.common-font-title {
    font-family: 'Semplicita', 'DM Sans', 'Noto Sans', 'Roboto', sans-serif !important;
}

.uk-offcanvas-bar .uk-nav-default > li {
    & > a {
        color: var(--text-default);

        &:hover {
            color: var(--menu-active-color);
            font-weight: var(--font-bold);
        }
    }

    &.uk-active > a {
        color: var(--menu-active-color);
        font-weight: var(--font-bold);
    }

    & > .uk-nav-sub {
        li > a {
            color: var(--text-default);

            &:hover {
                color: var(--menu-active-color);
                font-weight: var(--font-bold);
            }
        }

        li.uk-active > a {
            color: var(--menu-active-color);
            font-weight: var(--font-bold);
        }
    }
}


.uk-offcanvas-bar .uk-nav-default {
    & > li > a.login-button {
        background-color: var(--primary-color);
        font-size: var(--font-size-16);
        color: var(--text-white);
    }

    .uk-nav-divider {
        border-top-color: #e5e5e5;
    }
}

.login-page, .register-page, .quiz {
    .builder-row.builder-r0-c0 > div:first-of-type {
        padding: 0;
    }
}

#content .uk-container {
    overflow: hidden;
}

.text-primary {
    color: var(--primary-color);
}

.card-media-description {
    &.--blur-bg {
        background: linear-gradient(282.95deg, rgba(38, 15, 70, 0) 1.56%, #260F46 102.58%);
    }

    &:before {
        content: '';
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.64) 43.65%, rgba(0, 0, 0, 0.8) 100%);
        position: absolute;
        width: 100%;
        height: 30%;
        bottom: 0;
    }
}

.choices__inner { @apply uk-input; }
.choices__item--choice { @apply uk-dropdown; }
