/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/



html{
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::after,
*::before{
  -webkit-box-sizing: inherit;
          box-sizing: inherit;
          margin: 0;
          padding: 0;
          -webkit-box-sizing: border-box;
                  box-sizing: border-box;
}


a{
  color: inherit;
  text-decoration: none;
}

img{
  max-width: 100%;
}

body{
  font-family: 'Roboto', sans-serif;
  background-color: #f5f5f5;
  color: #333;
 
}

.list-reset{
    margin: 0;
    padding: 0;
    list-style: none;
  }

.btn-reset{
    padding: 0;
    border: none;
    background-color: inherit;
    cursor: pointer;
  }

.flex{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

/* Контейнер */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Шапка */
.header {
  background-color: #14213d;
  padding: 40px 0;
  text-align: center;
  border-bottom: 5px solid #fca311;
  color: white;
  margin: 0;
}


.header__links p{
  margin: 0;
  padding: 0;
  font-size: 24px;
}

.header__links{
  flex-direction: column;
  gap: 30px;
}

.header__text h1 {
  font-size: 3em;
  margin-bottom: 10px;
  font-weight: bold;
}

.header__text p {
  font-size: 1.2em;
}

/* Основной раздел */
.main {
  background-color: white;
  padding: 40px;
  border-radius: 15px;
  -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 50px;
}

.main__title {
  text-align: center;
  font-size: 2.5em;
  color: #333;
  font-weight: bold;
}

.login__form{
  width: 60%;
  margin: 0 auto;
  padding: 30px;
}

.catalog{
  flex-direction: column;
  gap: 20px;
  margin-bottom: 50px;
  align-items: center;
}

.catalog__showName{
    font-size: 20px;
    flex-direction: column;
    gap: 20px
}

.catalog__showName p{
  margin: 0;
  padding: 0;
  text-align: center;
}

.catalog__experts{
  flex-direction: row;
  gap: 50px;
}

.catalog__dogList{
  flex-direction: column;
  width: 100%;
  align-items: center;
  gap: 20px;
}

.catalog__breed{
  font-size: 24px;
  color: red;
}

.catalog__blockDog{
  width: 100%;
  gap: 20px;
  justify-content: space-between;
}

.catalog__blockDog-text{
  flex-direction: row;
  gap: 20px;
  text-align: left;
}

.referi{
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.main__dog{
  width: 100%;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  position: relative;
}

.main__order{
  width: 20%;
  flex-direction: row;
  gap: 20px;
  padding: 10px;

}

.main__list-dog{
  width: 70%;
}

.main__list-dog h3{
  margin-bottom: 20px;
}

.list__dog{
  width: 100%;
  flex-wrap: wrap;
  gap: 20px;
}

.list__dog-item{
  width: 30%;
  height: 100px;
  border: 1px solid orange;
  border-radius: 20px;
  gap: 10px;
  flex-direction: column;
  padding: 10px;
}

/* Форма */
.main__form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 20px;
}

/* Стиль для полей формы */
.main__form-input {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1.1em;
  outline: none;
  width: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.main__form-input:focus {
  border-color: #fca311;
}

/* Стили для кнопок */
.main__form-input[type="submit"] {
  background-color: #fca311;
  color: white;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  padding: 15px;
  border-radius: 8px;
  -webkit-transition: background-color 0.3s;
  -o-transition: background-color 0.3s;
  transition: background-color 0.3s;
}

.main__form-input-a{
  background-color: #fca311;
  color: #f5f5f5;
  display: block;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1.1em;
  outline: none;
  width: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  text-align: center;
}

.main__form-button{
  background-color: #fca311;
  color: white;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  padding: 15px;
  border-radius: 8px;
  -webkit-transition: background-color 0.3s;
  -o-transition: background-color 0.3s;
  transition: background-color 0.3s;
}


.main__form-input[type="submit"]:hover {
  background-color: #936720;
}
.main__form-button:hover {
  background-color: #936720;
}

/* Стили для радио кнопок */
.main__form-gender {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 70px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}


/* Стили для футера */
.footer {
  background-color: #f5f5f5;
  text-align: center;
  padding: 20px 0;
  border-top: 5px solid #ddd;
}

.footer__descr{
  text-align: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.footer__descr h3,
.footer__descr h4 {
  margin: 5px 0;
  font-size: 1.2em;
  color: #555;
}


.main__form-info{
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 20px;
}

.info1, .info2, .info3, info4{
  gap: 10px;
}

.main__form-h3{
  padding: 0;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 20px;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1000;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.aboute__dog{
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.aboute__dog-text{
  flex-direction: row;
  gap: 10px;
}

.aboute__dog h2{
  text-align: center;
}

.text__voice{
  width: 100%;


}

.dog-item{
  flex-direction: row;
  justify-content: space-between;
  padding: 20px 10px 10px 10px;
  position: relative;
  align-items: center;
}


.dog__search-list{
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  width: 100%;

}

.dog__text{
  font-size: 16px;
  gap: 10px;
}

.dog__info{

  font-size: 12px;
  gap: 10px;

}



.breed__order{
  width: 30%;
  position: relative;
}

.breed__section{
  flex-direction: column;
  gap: 20px;
}

.fixed__order{
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
  padding: 5px;
  flex-direction: column;
  gap: 20px;
  max-height: 100vh;
}

.order__list{
  gap: 10px;
  word-wrap: normal;
  flex-direction: column;
  max-height: 300px;
  overflow-y: scroll;
}

.order__block{
  max-height: 350px;
}

.search__block{
  width: 100%;
  flex-direction: column;
  padding: 20px;
  align-items: center;
  gap: 40px;
}

.add__block{
  width: 100%;
  padding: 10px;
}

.sub-breeds{
  padding: 5px;
  gap: 5px;
  word-wrap: normal;
  flex-direction: column;
  padding-left: 20px;
}

.breed__item-name{
  cursor: pointer;
}
.breed__item-name:hover{
  color:#fca311;
}

.subbreed__item-name{
  cursor: pointer;
}
.subbreed__item-name:hover{
  color:#fca311;
}

.dog__block{
  flex-direction: column;
  gap: 50px;
}





.editor__block{
  width: 100%;
}
.editor__list{
  width: 100%;
  flex-direction: column;
  gap: 70px;
}

.editor__list-item{

  border: 1px solid black;
 
}

.form__item{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.editor__list-input{
  width: 100%;
  padding: 10px;
  outline: none;
  background-color: none;
  border: 1px solid #fca311;

}
.insert_dog{
  width: 100%;
  margin-bottom: 40px;
}
.button__block{
  display: flex;
  flex-direction: row;
  gap: 10px;
  z-index: 0;

}

.listDog{
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 100%;
}

.listDog-item{
  flex-direction: row;
  gap: 20px;
  padding: 10px;
  align-items: center;
  width: 80%;
  justify-content: space-between;
}

.listDog p {
  text-align: left;
}



.modal {
  display: none; /* Скрываем все модальные окна по умолчанию */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background-color: white;
  padding: 10px;
  border-radius: 10px;
  width: 80%;
  height: 70%;
  overflow-y: auto;
}
.close {
  float: right;
  font-size: 28px;
  cursor: pointer;
}

.close_modal{
  float: right;
  font-size: 28px;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 0;
}


.form-modal{
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  align-items: center;
  position: relative;
}

#addRing{
  border: 1px solid #fca311;
  outline: none;
  font-size: 20px;
  padding: 10px;
  background: none;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
}

#addRing:hover{
  color: #fca311;
}

.ring-list{
  flex-direction: column;
  gap: 10px;

}

.ring-item{
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 10px;
  font-size: 20px;

}
.ring-item a{
  transition: all 0.2s ease-in-out;
}
.ring-item a:hover{
  color: #fca311;
}

.delete-ring{
  border: 1px solid #fca311;
  outline: none;
  font-size: 20px;
  padding: 10px;
  background: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}


.delete-ring:hover{
  color: #fca311;
}



.btn-del{
  background-image: url('../image/delete.png');
}

.formDogBlock{
  background-image: url('../image/edit.png');
  width: 30px;
  height: 30px;
  background-size: 20px;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  background-color: transparent;
  outline: none;
  cursor: pointer;
  z-index: 0;
}

.deleteDog{
  background-image: url('../image/delete.png');
  width: 30px;
  height: 30px;
  background-size: 20px;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  background-color: transparent;
  outline: none;
  cursor: pointer;
  z-index: 0;
}


.position-form{
  flex-direction: column;
  gap: 10px;
} 

.dog__result-text{
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;

}


.dogs__contain{
  width: 100%;
  flex-direction: column;
  gap: 20px;
}

.dogs__links{
  width: 100%;
  margin: 0 auto;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.dogs__contain-text{
  width: 100%;
  flex-direction: column;
  gap: 20px;
}

.dogs__aboute-list{
  flex-direction: row;
  gap: 20px;
  justify-content: space-around;

}

.dogs__aboute{
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.main__catalogDog{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.main__dogClass{
  padding: 5px;
}

.main__dogType{
  padding: 5px;
}

.main__dogGender{
  padding: 10px;
}

.dogLists{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.dogLists li{
    display: flex;
  flex-direction: column;
  gap: 5px;
  width: 45%;
}

.dogLists li input{
    display: flex;
  flex-direction: column;
  width: 100%;
}

.dogLists li select{
    display: flex;
  flex-direction: column;
  width: 100%;
}

.dogLists li button{
    display: flex;
  flex-direction: column;
  width: 100%;
}





#searchBlock {
    position: sticky;
    top: 10px;
    background: #fff;
    z-index: 1000;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    display: flex;
    flex-direction: column; /* чтобы список шел ниже инпута */
    gap: 10px;
}

#searchResults {
    position: sticky;
    top: 100%; /* сразу под поисковой строкой */
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 2000; /* выше всего */
}

#searchInput {
    flex: 1;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

#nextBtn {
    display: none;
    padding: 8px 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
}


.selected {
    background-color: #f0f8ff;
    border: 2px solid #007bff;
}

.dog-item {
    padding: 8px;
    border: 1px solid #ccc;
    margin-bottom: 4px;
    cursor: pointer;
}
.dog-item.selected {
    background-color: #d4edda; /* зеленоватый фон */
    border: 2px solid #28a745; /* зеленая рамка */
}