* {
  line-height: 25px;
  margin: 0;
  color: black;
}

body {
  display: table-cell;
  vertical-align: middle;
  margin: 2em auto;
  background: url(../img/background.png);
  background-color: #ff005308;
  max-width: 1200px;
  min-width: 100px;
  height: 100%;
  width: 100%;
  font-family: 'math', 'Cambria Math', 'STIX General', 'Nimbus Roman No9 L', serif;
  font-size: 20px;
  text-align: center;
  padding: 25px;
}

.header {
  white-space: nowrap;
  border-bottom: solid 1px black;
  padding: 0 1.5em;
  width: 100%;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
}

.header div{
  margin: 5px 0;
}

.header *
{
  white-space: normal;
}

.section {
  margin: 10px auto;
  padding: 10px;
  background: linear-gradient(334deg, #ffffff00, #ffffff);
  box-shadow: 9px 9px 10px 0px #999;
  border: solid 2px #00000052;
  border-top: solid 1px #00000036;
  border-left: solid 1px #00000036;
  background-color: white;
  text-align: justify;
}

h1, h2 {
  color: #555;
  text-align: center;
}

h1{
    font-size: 1.6em;
}

h2{
  font-size: 1.4em;
}

.center {
  margin: 0 auto;
  justify-content: center;
  display: block;
}

.float{
  float: right;
  display: block;
  margin-left: 35px;
}

#docs{
  padding: 10px 0;
}

ul{
  list-style: none;
}

ul, p{
  hyphens: auto;
  white-space: pre-line;
  text-align: left;
  word-break: auto-phrase;
  font-size: 1.2em;
}

p{
  text-indent: 1.0em;
  padding: 1.0em 1.0em 0 1.0em;
}

img{
  width: 100%;
  border: solid 2px transparent;
  border-radius: 20px;
  background-image: linear-gradient(white, white), linear-gradient(to right, green, gold);
  background-origin: border-box;
  background-clip: content-box, border-box;
}

.carousel-inner{
  width: 95%;
}

.profile
{
  display: inline-flex;
}

.profile *{
  float: right;
}

.profile img{
  width: 58px;
  margin: 5px;
}

.text-italic {
  font-style: italic;
}

.image-container {
  max-width: 300px;
}

.image-container img{
  width: 60px;
  margin: 0 5px;
  border: none;
}

.zoom-img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: transform 0.3s ease, z-index 0.3s ease;
  position: relative;
  z-index: 1;
}

.zoom-img.active {
  transform: scale(2);
  z-index: 999;
  cursor: zoom-out;
}

.name{
  font-weight: bold;
  font-size: 25px;
}

.name span{
  color: #471AFF;
}

.icon-text-wrapper {
  display: inline-flex;  /* Делает контейнер строчным, как текст */
  align-items: center;   /* Выравнивает все элементы внутри строго по центру */
  gap: 8px;              /* Задает удобный отступ между SVG и текстом */
}

.no-download {
  /* Запрещает выделение картинки */
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;

  /* Запрещает вызов контекстного меню "Сохранить как" на смартфонах */
  -webkit-touch-callout: none;

  /* Запрещает перетаскивание картинки мышкой */
  -webkit-user-drag: none;
  user-drag: none;
}

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a::after {
    content: "" !important;
    display: none !important;
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }

  .no-print {
    display: none !important;
  }

  img.large-print {
    width: 100% !important;
    max-width: 600px !important;
    height: auto !important;
  }

  .carousel-control-prev,
  .carousel-control-next,
  .carousel-indicators {
    display: none !important;
  }

  .carousel-item {
    display: none !important;
  }
  .carousel-item.active {
    display: block !important;
    position: relative !important;
    float: none !important;
  }

  .carousel,
  .carousel.slide,
  .carousel-inner,
  .carousel-item.active {
    display: block !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: visible !important;
  }
}
