body, html {
    margin: 0;
    padding: 0;
    height: 100%; /* Устанавливает высоту на 100% от окна браузера */
    display: flex;
	overflow: hidden;
    flex-direction: column; 
  }
  
  header {
    background: #f1f1f1;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
	flex-shrink: 0;
  }
  
   main {
    display: flex;
    flex: 1;
	overflow-y: auto;
  }
  
  .return-button-container {
      display: block;
  }
  
  .return-button {
      display: block;
      width: 50px;
      height: 50px;
      margin-right: 15px;
      margin-left: 8px;
  }
  
  .custom-list {
      list-style-type: none;
      padding-left: 0;
  }
  
  .highlight {
    background-color: yellow;
    font-weight: bold;
}

  .current-highlight {
    background-color: orange;
}
  
  .custom-list-item {
      background-image: url(https://miolex.ru/img/lex_tools_img/icons8-law-16.png);
      background-repeat: no-repeat;
      background-position: 0 5px;
      padding-left: 40px;
      margin-bottom: 10px;
  }
  
  header input[type="search"] {
    flex-grow: 1;
	height: 29px;
  }
  
  section, aside {
    padding: 20px;
    border: 1px solid #ccc;
  }
  
  .tools-container {
      display: flex;
      box-sizing: border-box;
      margin: 10px;
  }
  
  #lawyer-comments {
    width: 20%;
  }
  
  h1 {
      font-size: 17px;
  }
  
  h2 {
      font-size: 16px
  }
 
  a {
     color: #c95c0c;
  }
  
  strong {
      font-size: 19px;
  }
  
  a:visited {
  color: purple; 
  }
  
  @media (max-width: 768px) {
    main {
      flex-direction: column;
	  height: auto;
    }
    #section-selector, #law-text, #lawyer-comments {
      width: 100%;
    }
  }

  #section-selector {
    width: 20%;
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  #section-selector a {
    display: block;
    text-decoration: none;
    font-family: sans-serif;
    font-size: 14px;
    color: rgb(51, 51, 51);
    font-weight: 500;
    margin: 0 5px;
    transition: color 0.5s ease;
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  #section-selector a:hover {
    color: #e25e21;  
  }
  
  .tool-img {
      display: flex;
      width: 50px;
      height: 50px;
  }
  
  .tool-button {
      border: 0px ;
	  cursor: pointer;
  }
  
  #search-button {
    position: relative;
    background-color: #ee8181;
    color: #f9f8f8;
    border-radius: 7px;
    border: none;
    width: 150px;
    height: 30px;
    margin-left: 10px;
    margin-right: 10px;
    cursor: pointer;
	font-size: 16px;
    font-weight: 600;
  }
  
  #search-next-button {
	position: relative;
    background-color: #fd7d4e;
    color: #f9f8f8;
    border-radius: 7px;
    border: none;
    width: 150px;
    height: 30px;
    margin-left: 3px;
    margin-right: 10px;
    cursor: pointer;
	font-size: 16px;
    font-weight: 600;	
  }
  
  #footer {
    background-color: #f1f1f1;
    text-align: center;
    padding: 10px 0; 
    width: 100%;   
	position: relative; 
	flex-shrink: 0;
}

.pgrant-img {
	justify-content: flex-start;
    display: flex;
}

  /* #law-text {
    width: 60%;
    font-size: 16px;
    overflow-y: auto;
    position: relative;
  } 

  canvas {
    display: block;
    margin: 0 auto;
  }
  
  .textLayer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
  } */