#footer,
#header {
  min-height: 35px;
  max-height: 45px;
  height: 8.5%;
  width: 100%;
  transition: margin 0.3s;
  padding: 0 25px;
  font-size: 14px;

  /*  //kreska*/
  width: 94%;
  left: 3%;
  width: 100%;
  position: absolute;
  /*padding: 0 0px;*/

  /*belka*/
  width: 100%;
  left: 0%;
}

#header {
  display: flex;
  align-items: center;
  justify-content: normal;
  z-index: 3;
}

.header__border {
  position: absolute;
  left: 0px;
  bottom: 0px;
  height: 100%;
  width: 100%;
  background-color: black;

  opacity: 0.1;
}

body.light .header__border {
  background-color: #fff !important;
  opacity: 0.5;
}

.footer__border {
  position: absolute;
  left: 0px;
  bottom: 0px;
  height: 100%;
  width: 100%;
  background-color: black;

  opacity: 0;
}

#footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  bottom: 0;
}

.header__icons {
  width: 100%;
}

.header__book-name {
  color: inherit;
  font-weight: 600;
  opacity: 0.95;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  position: relative;
  left: 0;
  color: inherit;
  width: 90%;
  display: block;
}

.header__left {
  width: 25%;
  position: relative;
  left: 0px;
  display: block;
  z-index: 1;
}
.header__left .header__icons {
  justify-content: flex-start;

  height: 100%;
  justify-content: flex-start;
  align-items: center;
  display: flex;
}

.header__center {
  width: 50%;
  height: 28px;
  position: relative;
  left: 0px;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
}

.header__center .header__icons {
  display: flex;
  justify-content: center;
  height: 100%;
}

.header__center .header__book-name {
  color: inherit;
  font-weight: 400;
  opacity: 0.8;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  position: relative;
  left: 0;
  color: inherit;
  width: 100%;
  display: block;
  font-size: 17px;
  letter-spacing: 0.5px;
}

.header__right {
  width: 25%;
  height: 100%;
  position: relative;
  /*left: 0px;*/
  display: block;
  display: flex;
  text-align: right;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.header__right.absolute {
  position: absolute;
  right: 0px;
  top: 0px;
}

.header__right .header__logo {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top right;
  width: 100%;
  height: calc(100% - 8px);
  position: absolute;
  top: 4px;
  right: 25px;

  border: 0px dashed red;
  background-position: center right;
}

.header__right .header__logo img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.header__right .header__icons {
  justify-content: flex-end;
  height: 100%;
  justify-content: center;
  align-items: center;
  display: flex;
}

.header__right .header__icons button:last-child {
  margin-right: 0;
}

.footer__left {
  width: 25%;
  display: flex;
  align-items: center;
}

.footer__left .footer__page-num {
  width: 100%;
}

.footer__left .page-num-input {
  text-align: left;
  font-size: 100%;
  min-width: 20px;
}

.footer__center {
  width: 50%;
  display: flex;
  justify-content: center;
}

.footer__center .header__right .header__logo {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 30px;
}

.footer__right {
  width: 25%;
  height: 100%;
}

.footer__right .header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
}


.footer__right .footer__icons {
  width: 100%;
  height: 100%;

  text-align: center;
  justify-content: flex-end;
  align-items: center;
}

.footer__page-num {
  padding: 0 0px;
  font-weight: 400;
}

.footer__page-num span {
  opacity: 0.8;
}
.footer__icons {
  display: flex;
  order: 2;
  justify-content: flex-end;
}

.footer__icons > button,
.header__icons > button {
  width: 28px;
  height: 28px;
  margin: 0px 4px;
  z-index: 3;
  opacity: 0.8;
  border-radius: 4px;
  color: inherit;
  border: 0px solid red;
}

.footer__icons > button > div,
.header__icons > button > div {
  color: inherit;
  width: 100%;
  height: 100%;
}

#header.hide {
  margin-top: -45px;
}
#footer.hide {
  margin-bottom: -45px;
}

.Ranger {
  display: flex;
}
.Ranger__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 550px;
}

.Ranger_page-num {
  font-weight: 600;
  display: none;
}
.total-pages-num {
  position: absolute;
  right: -25px;
  display: none;
}

.fs-modal {
  position: absolute;
  top: calc(50% - 35px);
  left: calc(50% - 35px);
  position: absolute;
  background-color: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  width: 70px;
  height: 70px;
  font-weight: 300;
  letter-spacing: 0;
  transition: .5s opacity ease, .5s visibility ease;
  z-index: 299;
}

.fs-modal:hover {
  background: rgba(0, 0, 0, 0.5);
}

.fs-modal.show {
  visibility: visible;
  opacity: 1;
}

.fs-modal .wrapper {
  width: 100%;
  height: 100%;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-align: center;
  align-items: center;
}

.fs-modal .wrapper * {
  pointer-events: none;
}

.fs-modal .wrapper svg {
  fill: white;
  width: 18px;
  height: 18px;
  moz-transition: transform 0.35s ease-in-out 0s;
  -webkit-transition: transform 0.35s ease-in-out 0s;
  -o-transition: transform 0.35s ease-in-out 0s;
  transform: scale(1);
}

.fs-modal:hover .wrapper svg {
  fill: white;
  transform: scale(1.1);
}

.fs-modal .wrapper span {
  text-align: center;
  /* font-style: italic; */
  font-size: 11px;
  font-weight: bold;
  user-select: none;
  color: #fff;
  padding: 4px 6px 0;
  letter-spacing: 0.3px;
}

.spinner-modal {
  position: absolute;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  z-index: 0;
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  width: 60px;
  height: 60px;
  font-weight: 300;
  letter-spacing: 0;
  /*transition: opacity 0.5s;*/
}

.spinner-modal:hover {
  /*background: rgba(0,0,0,.8);*/
}

.spinner-modal.show {
  z-index: 9999;
  transition: opacity 0.25s;
  opacity: 1;
}

@media only screen and (max-width: 1024px) {
  #header {
  }
  .header__book-name {
    font-size: 13px;
  }

  #footer {
    font-size: 13px;
  }
}

/*MOBILE*/
@media only screen and (max-device-width: 480px) {
}
@media only screen and (max-width: 480px) {
}

@media only screen and (max-height: 270px) { /* bylo 290px do zmiany */
  #header {
    margin-top: -45px;
  }
  #footer {
    margin-bottom: -45px;
  }
}

@media only screen and (max-width: 350px) {
  #header {
    margin-top: -45px;
  }
  #footer {
    margin-bottom: -45px;
  }
}

@media only screen and (max-width: 568px) {
  .Ranger__container {
    /*display: none;*/
  }

  @media (orientation: portrait) {
    .header__logo-container {
      display: none;
    }

    .header__logo {
      text-align: center;
    }
  }
}
