@import "_variables.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;
}

html {
    font-size: 13px;
}

@media (max-width: 639px) {
    html {
        font-size: 12px;
    }
}

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;
}

@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;
    }
}

#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;
    }

    &.uk-disabled {
        background-color: rgba(254, 242, 242, 1);
        color: var(--text-default);
    }

    &:hover {
        background-color: var(--secondary-color);
    }
}

/* 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-14);
                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-14);
                font-weight: var(--font-semi-bold);
                color: rgba(75, 85, 99, 1);
            }
        }
    }
}

.main-container {
    margin-top: 6.154rem;
    flex: 1 425px;

    &.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: 'Canela Trial', '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;
    text-align: center;
    vertical-align: middle;
}

.text-default {
    color: var(--text-default-50);
}

.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 {
        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: 4px;
    margin-top: 32px;
  }

  .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-14-normal {
    font-weight: 400;
    font-size: var(--font-size-14);
}

.font-16-normal {
    font-weight: 400;
    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-18-normal {
    font-weight: 400;
    font-size: var(--font-size-18);
}

.font-18-bold {
    font-weight: 700;
    font-size: var(--font-size-18);
}

.font-30-bold {
    font-weight: 600;
    font-size: var(--font-size-30);
}

.font-40-normal {
    font-family: Canela Trial, serif !important;
    font-weight: 400;
    font-size: 3.077rem;
}

.font-40-bold {
    font-family: Canela Trial, 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;
    }
}