body {
  background-color: #f1f1f1;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.header {
  background-color: #336699;
  color: #fff;
  padding: 20px;
  text-align: center;
}

.container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.card {
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 20px;
  background-color: #f9f9f9;
}

.card h2 {
  margin-top: 0;
}

.card p {
  margin-bottom: 5px;
}

.footer {
  background-color: #336699;
  color: #fff;
  padding: 10px;
  text-align: center;
}

img {
  max-width: 100%;
  height: auto;
}

#pages a {
  display: block;
  text-decoration: none !important;
  margin: 5px;
  padding: 5px;
  text-align: center;
  width: 20px;
  background-color: #f9f9f9;
  border: 1px solid #336699;
  color: black;
}

#pages a[href] {
  color: white !important;
  background-color: #336699 !important;
}

#pages a:hover {
  background-color: #444242 !important;
  color: white !important;
}

#pages {
  display: flex;
  margin-bottom: 10px;
  width: 100%;
  flex-wrap: wrap;
}

/* Стили для мобильных устройств */
@media (max-width: 600px) {
  img {
    width: 100%;
    /* Ширина изображения на мобильных устройствах занимает 100% экрана */
  }
}

.card button {
  font-weight: bold;
  /* Жирный шрифт */
  font-size: 2em;
  /* Размер шрифта в два раза больше (можно настроить по желанию) */
  padding: 10px 20px;
  /* Отступы вокруг текста кнопки */
}

.modal-overlay {
  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;
  backdrop-filter: blur(5px);
}

.modal {
  display: none;
  background-color: white;
  padding: 20px;
  animation: fadeIn 0.3s ease-in-out;
  color: black !important;
  max-width: 800px;
  min-width: 256px;
  width: 50%;
}

.modal h2 {
  margin: 0;
  padding: 0;
  margin-bottom: 10px;
}

.modal form {
  display: flex;
  flex-direction: column;
  min-width: 200px;
}


.modal form select {
  background-color: white;
  border: 1px solid #8f8f9d;
  padding: 5px;
  font-size: 16px;
}

.modal form input {
  padding: 5px;
  font-size: 16px;
  border: 1px solid #8f8f9d;
}

.modal form label {
  margin-top: 5px;
  margin-bottom: 5px;
}

.modal-message {
  min-width: 200px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


.modal form input[type="submit"] {
  background-color: #336699;
  font-size: 1.2em;
  border: none;
  padding: 10px 20px;
  color: white;
  transition: background-color 200ms;
}

.modal form input[type="submit"]:hover {
  background-color: #444242;
  transition: background-color 200ms;
}

.modal button {
  margin-top: 2px;
  background-color: #993333;
  font-size: 1.2em;
  border: none;
  padding: 5px 20px;
  color: white;
  transition: background-color 200ms;
  width: 100%;
}

.error {
  color: #993333;
}

.modal button:hover {
  background-color: #444242;
  transition: background-color 200ms;
}


@media (max-width: 800px) {
  .modal {
    overflow-y: scroll;
    max-height: 97vh;
    max-width: 100%;
  }
}

.radio-container {
  display: flex;
  flex-direction: column;
}

.radio {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  border: 2px solid #ccc;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.radio:hover {
  border-color: 2px solid #336699;
}

input[type="radio"] {
  display: none;
}

.radio-text {
  margin-left: 10px;
}

.radio.selected {
  border: 4px solid #001f3f;
}

.autocomplete {
  /*the container must be positioned relative:*/
  position: relative;
  display: inline-block;
}

.search-box {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 10px;
}

.search-box input[type="search"] {
  display: block;
  width: 100%;
  min-width: 300px;
  height: 50px;
  font-size: 1em;
  padding-left: 10px;
  padding-right: 10px;
}

.search-box input[type="submit"] {
  background-color: #336699;
  height: 50px;
  border: none;
  padding: 10px 20px;
  color: white;
  transition: background-color 200ms;
  font-size: 1em;
}

.autocomplete-items {
  position: absolute;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  /*position the autocomplete items to be the same width as the container:*/
  top: 100%;
  left: 0;
  right: 0;
  text-align: left;
}
.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color: #fff;
  border-bottom: 1px solid #d4d4d4;
}
.autocomplete-items div:hover {
  /*when hovering an item:*/
  background-color: #e9e9e9;
}

.autocomplete-active {
  /*when navigating through the items using the arrow keys:*/
  background-color: DodgerBlue !important;
  color: #ffffff;
}
