@font-face {
  font-family: 'Montserrat-SemiBold'; /* Имя шрифта, которое вы будете использовать в вашем CSS */
  src: url('/static/font/Montserrat/Montserrat-SemiBold.ttf') format('truetype'); /* Путь к .woff2 файлу */
  /* Другие параметры шрифта (размер, начертание и т. д.) могут быть указаны здесь */
}

@font-face {
  font-family: 'Montserrat-ExtraBold'; /* Имя шрифта, которое вы будете использовать в вашем CSS */
  src: url('/static/font/Montserrat/Montserrat-ExtraBold.ttf') format('truetype'); /* Путь к .woff2 файлу */
  /* Другие параметры шрифта (размер, начертание и т. д.) могут быть указаны здесь */
}

@font-face {
  font-family: 'Montserrat-Medium'; /* Имя шрифта, которое вы будете использовать в вашем CSS */
  src: url('/static/font/Montserrat/Montserrat-Medium.ttf') format('truetype');
  /* Другие параметры шрифта (размер, начертание и т. д.) могут быть указаны здесь */
}


body{
  background-color: #D5E6F2;
}


.navbar{
  height: 9.25vh;
  min-height: 50px;
}


.navbar-brand {
  display: flex; /* Используйте flexbox для управления расположением дочерних элементов */
  align-items: center; /* Выравнивание по вертикали по центру */
  justify-content: center; /* Выравнивание по горизонтали по центру */
  width: auto;
  height: 90%;
  margin-left: 6.9%;
  border-radius: 50em;
  background-color: #D5E6F2;
  padding: 0 ;
}

.new_logo{
  height: 100%;
  margin-right: 4%;
}

.name{
  display: flex; /* Используйте flexbox для управления расположением дочерних элементов */
  align-items: center; /* Выравнивание по вертикали по центру */
  justify-content: center;
  height: 100%;
  margin-right: 20px;
  font-size: 2.3rem;
  font-family: 'Montserrat-ExtraBold';
  color: #353535;
}

#box{
  position: relative;
  width: 85%;
  z-index: 1;
  height: 58vh;
  min-height: 390px;
  border: 3px solid #ACD7FA;
  background-color: white;
  border-radius:20px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 9.25vh;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  font-family: 'Montserrat-SemiBold';
}


#head_container{
  display: flex;
  width: 100%;
  height: 13%;
  border-bottom: 3px solid #ACD7FA;
  padding: 0px 1.6% 0px 1.6%;
  align-items: center;
  justify-content: space-between;
}


#text_content{
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  position: relative;
  width: 100%;
  height: 75%;
  padding: 0.7% 1.6% 0px 1.6%;
  outline: none;
  color: black;
  text-align: left;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 2;
}


button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  /* Добавьте другие стили по вашему выбору */
}

#copy_text_img{
  width: auto;
  height: 100%;
  margin-right: 5px;
}

#copy_text_btn{
  display: flex; /* Используйте flexbox для управления расположением дочерних элементов */
  align-items: center; /* Выравнивание по вертикали по центру */
  justify-content: center;
  height: 100%;
  width: auto;
  padding: 4px 14px;
  margin: 0 20px 0 0;
  outline: none;
  border-radius: 0.9rem;
  border: 1px solid #4C4C4C;
  background-color: #FFFFFF;
  font-size: 1.4em;
  font-family: 'Montserrat-SemiBold';
  color: #4C4C4C;
}



#copy_text_btn:active{
  background-color: #FFFFFF;
  border: 1px solid #1E50A5;
  color: #1E50A5;
}

#copy_text_btn:active #copy_text_img{
  content: url('/static/images/new_copy2.png');
}


.dbl_btn{
  height: 62.5%;
}

.dbl_btn2{
  display: flex;
  height: 62.5%;
  align-items: center;
}

#error_btn{
  display: none;
  height: 100%;
  padding: 0px;
  margin: 0px 6px 0px 6px;
  outline: none;
}

#error_img{
  width: auto;
  height: 100%;
}



#error_btn:active #error_img{
  content:url('/static/images/previous3.png');
}

#error_btn2{
  display: none;
  height: 100%;
  padding: 0px;
  margin: 0px 6px 0px 6px;
  outline: none;
}

#error_img2{
  width: auto;
  height: 100%;
}



#error_btn2:active #error_img2{
  content:url('/static/images/next3.png');
}


#clean_text{
  height: 4.5%;
  min-height: 24px;
  width: 1.75%;
  min-width: 24px;
  background-image:url('/static/images/clean_text.png');
  background-size:100%;
  padding: 0px;
  outline: none;
}



#clean_text:active{
  background-image:url('/static/images/clean_text3.png');
  background-size: cover;
}

#inform{
  position: absolute;
  left: 1.6%;
  bottom: 3%;
  display: none;
  height: 30px;
  border: 1px solid #ACD7FA;
  border-radius: 20px;
  padding: 0px 10px 0px 10px;
}


#placeholder {
  position: absolute;
  z-index: 2;
  top: 15%;
  left: 1.6%;
  color: #999;
  pointer-events: none; /* Это предотвращает взаимодействие с подсказкой */
  user-select: none; /* Это предотвращает выделение текста в подсказке */
}




.dropdown-trigger {
  position: relative;
  cursor: pointer;
  border-bottom: 3px solid #FF4C4C;
}


#rightWordDiv{
  display: none;
  position: absolute;
  z-index: 9999;
  background-color: #F7F8FB;
  border: 2px solid #B3C7DF;
  border-radius: 7%;
  width: 24%;
  min-width: min(300px, 100%);
  max-width: 100%;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  color: #4C4C4C;
}


#lineOne{
  margin: 4.8% 4.8% 0 4.8%;
}


#dropdownlist{
  display: block;
  list-style: none;
  padding: 0;
  margin: 15px 4.8%;
  text-decoration: underline;
}

#dropdownlist li{
  cursor: pointer;
  margin: 2px 0;
}




#ignor{
  position: relative;
  margin: 0 5% 10px 5%;
  width: 90%;
  min-width: 0;
  padding: 0;
  outline: none;
  display: flex; /* Используйте flexbox для управления расположением дочерних элементов */
  align-items: center; /* Выравнивание по вертикали по центру */
  justify-content: center;
}

::highlight(spelling) {
  text-decoration: underline wavy #e52929;
  text-decoration-thickness: 2px;
}

#spellcheck_marks {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

#spellcheck_marks span {
  position: absolute;
  border-bottom: 2px solid #e52929;
}

#check_feedback {
  position: absolute;
  right: 2%;
  bottom: -32px;
  font-size: 13px;
}

#retry_check, #dropdownlist button {
  color: #1e50a5;
  text-decoration: underline;
  text-align: left;
  padding: 2px 0;
}

#t_ig{
  position: absolute;
  z-index: 2;

}

#ignor_img{
  width: 100%;
  z-index: 0;
}



#ignor:active #ignor_img{
    content:url('/static/images/new_ignor3.png');
}


@media (hover: hover) {
  #copy_text_btn:hover {
    background-color: #D5E6F2;
  }
  #error_btn:hover #error_img{
    content:url('/static/images/previous2.png');
  }
  #error_btn2:hover #error_img2{
    content:url('/static/images/next2.png');
  }
  #clean_text:hover{
    background-image:url('/static/images/clean_text2.png');
    background-size: 100%;
  }
  #dropdownlist li:hover{
    color: #1E50A5;
    text-decoration: underline #1E50A5;
  }
  #ignor:hover #ignor_img{
    content:url('/static/images/new_ignor2.png');
  }
}

@media (max-width: 400px) {
    #copy_text_btn {
        font-size: 0;
        margin-right: 10px;
    }
    #copy_text_img{
      margin: 0px;
    }

}

/* Both tools share the same page, typography and blue/white palette. */
[hidden] { display: none !important; }
.tool-tabs {
  display: flex;
  gap: 8px;
  width: 85%;
  margin: 5vh auto 14px;
  font-family: 'Montserrat-SemiBold', sans-serif;
}
.tool-tabs button {
  padding: 11px 20px;
  border-radius: 12px;
  color: #42556b;
  border: 2px solid transparent;
}
.tool-tabs button[aria-selected="true"] {
  color: #163d69;
  background: #fff;
  border-color: #acd7fa;
}
.tool-tabs button:focus-visible, .morphology-panel button:focus-visible {
  outline: 3px solid #1e50a5;
  outline-offset: 3px;
}
.tool-tabs + #box { margin-top: 0; }
.morphology-panel {
  width: 85%;
  margin: 0 auto 50px;
  padding: 30px 34px;
  border: 3px solid #acd7fa;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,.3);
  color: #353535;
  font-family: 'Montserrat-Medium', sans-serif;
}
.morphology-intro h2 { font-family: 'Montserrat-SemiBold', sans-serif; font-size: 25px; margin: 0 0 10px; }
.morphology-intro p { color: #5b6d80; margin-bottom: 25px; }
#morphology_form label { display: block; font-size: 13px; margin-bottom: 8px; }
.morphology-input-row { display: flex; gap: 12px; }
#morphology_word {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border: 2px solid #b3c7df;
  border-radius: 12px;
  background: #fbfdff;
  color: #263d55;
  font-size: 19px;
}
#morphology_word:focus { outline: 2px solid #1e50a5; outline-offset: 1px; }
#analyze_button { padding: 12px 22px; border-radius: 12px; background: #d5e6f2; color: #163d69; font-family: 'Montserrat-SemiBold', sans-serif; white-space: nowrap; }
#analyze_button:hover { background: #acd7fa; }
#analyze_button span { margin-left: 12px; }
.morphology-examples { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-top: 13px; font-size: 12px; color: #60758a; }
.morphology-examples button { padding: 2px 0; text-decoration: underline; color: #1e50a5; }
#morphology_status { margin: 18px 0 0; color: #425b76; }
#morphology_status:empty { margin: 0; }
.morphology-result-heading { margin-top: 32px; padding-bottom: 16px; border-bottom: 2px solid #d5e6f2; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; }
.morphology-result-heading h3 { margin: 0; font-size: 25px; font-family: 'Montserrat-SemiBold', sans-serif; overflow-wrap: anywhere; }
.morphology-result-heading p { margin: 0; color: #60758a; font-size: 12px; }
.word-analysis { padding: 22px 0; border-bottom: 1px solid #dce6ef; }
.analysis-heading { display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: baseline; }
.analysis-number { font-size: 12px; color: #7a8d9f; }
.analysis-heading h4 { font-size: 15px; margin: 0; font-family: 'Montserrat-SemiBold', sans-serif; overflow-wrap: anywhere; }
.grammar-tag { color: #1e50a5; font-size: 12px; }
.part-of-speech { color: #60758a; font-size: 12px; }
.morpheme-chain { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 18px; }
.morpheme { display: flex; flex-direction: column; min-width: 28px; max-width: 100%; }
.morpheme-text { font-size: 24px; font-family: 'Montserrat-SemiBold', sans-serif; color: #1e50a5; border-bottom: 2px solid #acd7fa; padding: 0 2px 6px; overflow-wrap: anywhere; }
.morpheme-stem .morpheme-text { color: #353535; border-color: #7b8c9e; }
.morpheme-tags { color: #60758a; font-size: 11px; padding-top: 6px; }
.morpheme-plus { padding-top: 3px; color: #94a7ba; font-size: 21px; }
.morpheme-tags abbr, .grammar-tag { text-decoration: none; cursor: help; }
.analysis-changes { font-size: 12px; color: #60758a; margin: 14px 0 0; }
.morphology-legend { padding-top: 28px; }
.morphology-legend h3 { font-family: 'Montserrat-SemiBold', sans-serif; font-size: 19px; margin-bottom: 18px; }
#morphology_legend { margin: 0; }
.legend-entry { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 15px; padding: 12px 0; border-bottom: 1px solid #edf2f6; }
.legend-entry:last-child { border: 0; }
.legend-entry dt { color: #1e50a5; font-weight: normal; font-size: 13px; overflow-wrap: anywhere; }
.legend-entry dd { margin: 0; font-size: 13px; }
.legend-entry strong { display: block; font-family: 'Montserrat-SemiBold', sans-serif; font-weight: normal; margin-bottom: 4px; }
.legend-entry dd span { color: #60758a; }
@media (max-width: 600px) {
  .tool-tabs, .morphology-panel { width: 92%; }
  .tool-tabs { gap: 4px; margin-top: 25px; }
  .tool-tabs button { flex: 1; padding: 9px 8px; font-size: 12px; }
  .morphology-panel { padding: 22px 18px; }
  .morphology-intro h2 { font-size: 21px; }
  .morphology-intro p { font-size: 13px; }
  .morphology-input-row { flex-direction: column; }
  #morphology_word { width: 100%; font-size: 16px; }
  #analyze_button { align-self: flex-start; padding: 11px 17px; font-size: 14px; }
  .morpheme-text { font-size: 21px; }
  .morphology-result-heading h3 { font-size: 21px; }
  .legend-entry { grid-template-columns: 80px minmax(0,1fr); gap: 10px; }
}
