@font-face {
    font-family: montserrat;
    font-style: normal;
    font-weight: 400;
    src: local('Montserrat'),
    url(../fonts/Montserrat-Regular.woff) format('woff')
}

@font-face {
    font-family: montserrat;
    font-style: normal;
    font-weight: 300;
    src: local('Montserrat'),
    url(../fonts/Montserrat-Light.woff) format('woff')
}

@font-face {
    font-family: montserrat;
    font-style: normal;
    font-weight: 500;
    src: local('Montserrat'),
    url(../fonts/Montserrat-Medium.woff) format('woff')
}

@font-face {
    font-family: montserrat;
    font-style: normal;
    font-weight: 600;
    src: local('Montserrat'),
    url(../fonts/Montserrat-SemiBold.woff) format('woff')
}

@font-face {
    font-family: montserrat;
    font-style: normal;
    font-weight: 700;
    src: local('Montserrat'),
    url(../fonts/Montserrat-Bold.woff) format('woff')
}

/*********** SELECT STYLES ***********/

.select2-container {
    width: 200px !important;
}

.select2-container--default .select2-selection--single {
    border: none;
    background-color: transparent;
    border-bottom-right-radius: 6px !important;
    border-bottom-left-radius: 6px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    background-image: url("/static/images/ico-arrow.svg");
    background-repeat: no-repeat;
    background-position: center;
    width: 1.5rem;
    height: 1rem;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none;
}

.select2-dropdown {
    border: none;
    box-shadow: 0 0 20px rgba(43, 68, 89, 0.08);
    margin-top: 6px;
    border-top-right-radius: 6px !important;
    border-top-left-radius: 6px !important;
}

.select2-search--dropdown .select2-search__field {
    border: none;
    outline: none;
    background-image: url('/static/images/ico-search.svg');
    background-repeat: no-repeat;
    background-position: 10px center;
    padding-left: 35px;
    font-size: 16px;
    font-weight: 400;
}

.select2-search--dropdown .select2-search__field::placeholder {
    color: #9EAAB3;
    font-size: 16px;
    font-weight: 400;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default .select2-selection--single:focus {
    outline: none;
    box-shadow: none;
}

.select2-container--default .select2-results__option--selected {
    background-color: transparent;
}

.select2-search--dropdown .select2-search__field {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.select2-search--dropdown .select2-search__field:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default .select2-selection--single:focus {
    outline: none;
    box-shadow: none;
}

.select2-results__option {
    color: #0F3144;
    font-weight: 400;
    font-size: 16px;
    padding: 8px 12px;
    border-top: 1px solid #E4E8EA;
    margin-right: 20px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: transparent;
    color: #176C77;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: transparent;
    color: #176C77;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option[aria-selected=true],
.select2-container--default .select2-results__option:hover {
    background-color: transparent;
    color: #176C77;
    font-weight: 600;
}

.select2-container--default.gray .select2-search--dropdown .select2-search__field:focus-visible {
    outline: -webkit-focus-ring-color auto 0px;
}

.select2-container.gray {
    background: #F2F3F5;
    border-radius: 6px;
}

.select2-container.gray .select2-selection--single {
    height: auto;
    padding: 6px 20px;
    border-radius: 6px;
}

.select2-container--default.gray .select2-selection--single .select2-selection__rendered {
    font-size: 16px;
}

.select2-container.gray .select2-selection {
    background: #F2F3F5;
}

.select2-container.gray .select2-container--default {
    background: #F2F3F5;
}

.select2-container--default.glossary .select2-search--dropdown .select2-search__field:focus-visible {
    outline: -webkit-focus-ring-color auto 0px;
}

.select2-container.glossary {
    background: #F8F9FA;
    width: 270px !important;
    border-radius: 6px;
}

.select2-container.glossary .select2-selection--single {
    height: auto;
    padding: 12px 20px;
    border-radius: 6px;
}

.select2-container--default.glossary .select2-selection--single .select2-selection__rendered {
    font-size: 16px;
    border-radius: 6px;
}

.select2-container.glossary .select2-selection {
    background: #F8F9FA;
}

.select2-container.glossary .select2-container--open {
    background: #F8F9FA;
}

.select2-container.glossary .select2-container--default {
    background: #F8F9FA;
}

.select2-container--default.error .select2-search--dropdown .select2-search__field:focus-visible {
    outline: -webkit-focus-ring-color auto 0px;
}

.select2-container.error {
    background: #FFF7F7;
}

.select2-container.error .select2-selection--single {
    height: auto;
    border-radius: 6px;
}

.select2-container--default.error .select2-selection--single .select2-selection__rendered {
    color: #9EAAB3;
    border-radius: 6px;
}

.select2-container.error .select2-selection {
    background: #FFF7F7;
}

.select2-container.error .select2-container--open {
    background: #FFF7F7;
    border-radius: 6px;
}

.select2-container.error .select2-container--default {
    background: #FFF7F7;
}

.select2-container.error .select2-dropdown {
    background: #FFF7F7;
}

.select2-container.error .select2-search {
    background-color: #FFF7F7;
}

.select2-container.error .select2-search input {
    background-color: #FFF7F7;
}

.select2-container.error .select2-results {
    background-color: #FFF7F7;
}

.select2-container.gray.action {
    width: 350px !important;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
}

button:focus,
select:focus,
input:focus,
textarea:focus {
    outline: none;
}

.border-line {
    background-image: repeating-linear-gradient(to right, currentColor, currentColor 5px, transparent 5px, transparent 10px),
    repeating-linear-gradient(to right, currentColor, currentColor 5px, transparent 5px, transparent 10px),
    repeating-linear-gradient(to bottom, currentColor, currentColor 5px, transparent 5px, transparent 10px),
    repeating-linear-gradient(to bottom, currentColor, currentColor 5px, transparent 5px, transparent 10px);
    background-position: top, bottom, left, right;
    background-size: 100% 1px, 100% 1px, 1px 100%, 1px 100%;
    background-repeat: no-repeat;
}

.loader {
    width: 48px;
    height: 48px;
    border: 2px solid #556A7B;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#source-text,
#translated-text {
    resize: none;
    box-sizing: border-box;
    min-height: 320px;
    max-height: 100%;
    overflow: hidden;
}

#pre-text,
#post-text {
    resize: none;
    box-sizing: border-box;
    min-height: 200px;
    max-height: 100%;
    overflow: hidden;
}

input[type="checkbox"]:checked {
    background-image: url("/static/images/ico-check.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 10px;
}

.select2-container.languages .select2-results__options {
    width: 550px !important;
    height: 400px !important;
    max-height: 350px !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    padding: 8px !important;
}

.select2-container.languages .select2-dropdown {
    width: 550px !important;
    height: 400px !important;
}

.select2-container.detect-languages .select2-results__options {
    width: 400px !important;
    height: 400px !important;
    max-height: 350px !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    padding: 8px !important;
}

.select2-container.detect-languages .select2-dropdown {
    width: 400px !important;
    height: 400px !important;
}

.ql-editor {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #0F3144;
    transition: height 0.2s ease;
    overflow-y: hidden;
    padding: 0;
    height: auto;
}

.ql-editor.ql-blank::before {
    left: 20px;
    color: #CACACA;
    font-size: 16px;
    font-style: normal;
}

.border-vertical {
    background-image: repeating-linear-gradient(
            to bottom,
            currentColor,
            currentColor 5px,
            transparent 5px,
            transparent 10px
    );
    background-size: 1px 100%;
    background-repeat: no-repeat;
    background-position: center;
    width: 1px;
    height: 100%;
    display: block;
}

.no-ring {
    --tw-ring-inset: initial;
    --tw-ring-offset-width: initial;
    --tw-ring-offset-color: initial;
    --tw-ring-color: initial;
    --tw-ring-offset-shadow: initial;
    --tw-ring-shadow: initial;
    --tw-shadow: initial;
    --tw-shadow-colored: initial;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

nav::-webkit-scrollbar {
    display: none;
}
