* {
  padding: 0;
  margin: 0;
  list-style: none;
  text-decoration: none;
}

body {
  background: url(lix1.jpg) no-repeat center center fixed; 
}

.active{
  display: block;
}

.modal__block {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal__content {
  background-color: white;
  margin: 25% auto;
  padding: 20px;
  width: 70%;
  text-align: center;
}

.modal__button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 10px;
  cursor: pointer;
  transition: all .3s;
}

.modal__button:hover {
  transform: scale(1.2);
}

.modal__button:focus {
  transform: scale(1.2);
}

.modal__button:active {
  transform: scale(.8);
}

.modal__text {
    text-align: justify;
    font-size: 20px;
    text-indent: 30px;
    
}

.modal__text_bold{
  font-weight: 700;
    
}

.container {
  margin: 0 auto;
  max-width: 1400px;
  min-width: 320px;
  padding: 0 20px;
}

.page {
  padding-top: 50px;
}

.page__wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}

.page__container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1100px;

  padding: 20px;
  border-radius: 10px;
}

.page__text {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  color: #024c5e;
  font-size: 16px;
  text-indent: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.books {
  padding-top: 50px;
  padding-bottom: 50px;
}

.books__wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: center;
}

.books__container {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(2, 1fr);
  max-width: 1100px;
  gap: 10px;
  padding-right: 400px;
}

.books__img {
  height: 230px;
  width: 180px;
  cursor: pointer;
  transition: transform .3s ease;
}

.books__img:hover {
  transform: scale(1.1);
}

.books__img:active {
  transform: scale(.9);
}

.books__empty{
  opacity: 0;
}

.modal__book-block {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal__book-content{
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  width: 70%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal__book-box{
  display: flex;
  flex-direction: row;
  gap: 15px;
}

.modal__book-img{
  height: 400px;
  width: 350px;
}

.modal__text-block{
  display: flex;
  flex-direction: column;
}

.modal__book-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  max-width: 150px;
  margin: 0 auto;
  padding: 10px 20px;
  cursor: pointer;
  transition: all .3s;
  border-radius: 15px;
}

.modal__book-button:hover {
  transform: scale(1.2);
}

.modal__book-button:focus {
  transform: scale(1.2);
}

.modal__book-button:active {
  transform: scale(.8);
}

.nazad {
  position: absolute;
 top: 100px;
     left: 100px;
   transition: transform .3s ease;
 
}

.nazad:hover {
transform: scale(1.2);
}

.nazad:focus {
transform: scale(1.2);
}

.nazad:active {
transform: scale(.8);
}