@media (max-width: 320px) {

  .left-modal-box .modal-left {
    height: 80px;
    width: 80px;
  }
}

@media (max-width: 375px) {
  /* .router {
    margin: -1rem 0 -2rem;
  }

  #toLib {
    bottom: 52%;
    left: 36%;
  } */
}

@media (max-width: 575px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.2rem;

    &.row {
      border-bottom: 1px solid;
      padding-top: 0.5rem;
    }
  }

  form {
    & label {
      text-align: left;
    }
  }

  .row.header {
    height: auto;
  }

  :is(.library, .leisure, .services) {
    font-size: 1rem;
    letter-spacing: 0.1rem;

    & a {
      display: block;
      padding-top: 6px;
    }
  }

  .row.header .button-group {
    justify-content: flex-start;
  }

  .topControl {
    bottom: 0;
    top: unset;
  }

  .row.header {
    & .topControl {
      & button.button {
        line-height: unset;

        & i {
          font-size: 1.4rem;
        }

        & span:nth-child(1) {
          font-size: 1rem;
          font-weight: bold;
        }

        & span:nth-child(2) {
          font-size: 1.4rem;
          font-weight: bold;
        }
      }
    }
  }

  div#searchForm {
    padding-top: 0;
  }

  #mainMenu.sticky-top {
    z-index: 100;
  }

  #eMenu.sticky-top {
    top: 50px;
    z-index: 11;
  }

  .fUsers {
    height: calc(100vh - 310px);
    margin-bottom: 50px;
  }

  .router {
    margin: 1rem 0 -3rem;
  }

  #toLib {
    bottom: 58%;
    left: 36%;
  }

  #topPanels>div[type="button"] {
    font-size: 1.3rem;
    padding: 0;
  }

  #newBook h2,
  #latestNews h2 {
    font-size: 2.5rem;
  }

  #invites h2 {
    font-size: 2.1rem;
  }

  .firstBookTravel {
    background-size: cover;
    height: 88px;
  }

  .firstBookTravel h3 {
    margin: 5rem 0 0 5rem;
  }

  .firstBookTravel a {
    font-size: 2rem;
  }

  #go-top {
    display: none !important;
  }

  #vss.form_container {
    margin: -0.8rem 0 4rem;
    padding: 1rem 2rem 1rem;
  }

  section#footer {
    background: var(--old-paper);
  }

  #footerMenu {
    & .nav {
      justify-content: center;
    }

    & ul {
      & li {
        margin: 0.4rem 0;
        text-align: center;
      }

      & a {
        color: var(--light);
        font-size: 1rem;
      }
    }
  }

  #punkt_eu-logo,
  #distance-learning-logo {
    & img {
      margin-left: 1px;
      max-width: 36px;
    }

    & p {
      font-size: 0.8rem;
      line-height: 1;
      margin: 0;
      width: 50%;
    }
  }

  #punkt_eu-logo {
    & img {
      max-width: 56px;
    }
  }

  #soc-contact>.row {
    margin: 1rem 0 0;
  }

  .row.copyright {
    align-items: center;
    font-size: 0.8rem;

    & #logo {
      margin: 0;
      padding-left: 1rem;
    }

    & p {
      font-size: 0.8rem;
    }
  }

  input[name="form[name]"],
  input[name="form[country]"],
  input[name="form[city]"],
  input[name="form[occupation]"],
  input[name="form[mail]"] {
    width: 210px;
  }

  select[name="form[education]"] {
    width: 210px;
  }

  .left-modal-box {
    top: 20vh;
  }

  .left-modal-box .modal-left {
    height: 100px;
    width: 100px;
  }

  .left-modal-box a#setCookie {
    height: 30px;
    font-size: 1.5rem;
    width: 30px;
  }
}

@media (min-width: 576px) {
  .modal-dialog {
    max-width: 500px;
    margin: 20vh auto;
  }
}

@media (max-width: 768px) {
  .row.header {
    height: auto;
  }

  #logo,
  #title {
    margin-top: 30px;
  }

  .fUsers {
    height: calc(100vh - 240px);
  }

  .router {
    margin-top: 2rem;
  }

  div#searchForm {
    padding-top: 2rem;
  }

  #lendMenu ul>li {
    width: 100%;
    margin: 0;
  }

  #newBook h2,
  #latestNews h2 {
    font-size: 3.7rem;
  }

  #invites h2 {
    font-size: 3.6rem;
  }

  .artCalendar {
    padding-bottom: 30px;
  }

  .latestNews,
  .firstHero {
    background-size: cover;
    height: auto;
  }

  .latestNew {
    height: 350px;
    margin-bottom: 10px;
    width: 264px;
  }

  .wrapperNewImg {
    height: 244px;
    width: 244px;
  }

  #navbarMainMenu>ul>li,
  #navbarEMenu>ul>li {
    padding: 10px 20px;
    text-align: center;
  }

  .left-modal-box {
    top: 35vh;
  }

  .firstBookTravel {
    background-size: cover;
    height: 188px;
  }

  .firstBookTravel h3 {
    margin: 8rem 0 0 8rem;
  }

  .contentEditor {
    & img {
      height: auto !important;
      margin-bottom: 12px;
      max-width: 86vw !important;
    }
  }

}

@media (min-width: 769px) and (max-width: 992px) {

  #newBook h2,
  #latestNews h2 {
    font-size: 5rem;
  }

  .latestNew {
    height: 250px;
    width: 170px;
  }

  .wrapperNewImg {
    height: 150px;
    width: 150px;
  }

  .artCalendar {
    padding-bottom: 170px;
  }

  #invites {
    margin-top: -150px;
  }

  #invites h2 {
    margin: 0;
  }
}

@media (max-width: 992px) {
  .sticky-top {
    position: relative;
  }

  #logo img,
  #title img {
    width: 100%;
  }

  #lendMenu.sticky-top,
  #mainMenu.sticky-top {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  #eMenu.sticky-top {
    position: -webkit-sticky;
    position: sticky;
    top: 30px;
  }

  .eMenu {
    & ul {
      & li {
        & a {
          font-size: 0.8rem;
        }
      }
    }
  }

  #breadcrumb.sticky-top {
    position: relative;
    top: 0;
  }

  .fPage {
    height: auto;
  }

  #fContent {
    min-height: calc(100vh - 280px);
    height: auto;
  }

  .newBook {
    background-position: center;
    background-size: cover;
    height: auto;
  }

  .artCalendar {
    height: auto;
  }

  .container.artCalendar,
  .container.firstHero {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
  }

  .mainMenu ul>li {
    padding: 0 0.8rem;
  }

  #punkt_eu-logo {
    padding-top: 0;
  }

  .copyright {
    font-size: 0.9rem;

    & #logo {
      margin-top: 1rem;
    }
  }
}

@media (max-width: 1024px) {
  #desktop {
    display: none;
  }

  #mobile {
    display: block;
  }

  #pagepiling {
    height: calc(100vh - 275px);
  }
}

@media(max-width: 1366px) {

  #logo img {
    width: 70%;
  }

  #lendMenu {
    height: 40px;
  }

  #lendMenu ul>li {
    height: 40px;
  }

  #users img {
    width: 70%;
  }

  #pagepiling {
    height: calc(100vh - 286px);
  }

  :is(.newBook, .latestNews, .artCalendar, .firstBookTravel, .firstLitMapa, .firstHero, .e_course) {
    height: 430px;
  }

  :where(#newBook, #latestNews) h2 {
    padding: 0.1rem 1rem;
  }

  .newBook .all {
    padding: 0;
  }

  #invites h2 {
    padding: 0;
  }

  .row.copyright {
    margin-top: -1.2rem;
  }

}

@media(max-width: 1600px) {

  #lendMenu {
    height: 40px;
  }

  #lendMenu ul>li {
    height: 40px;
  }

  #pagepiling {
    height: calc(100vh - 276px);
  }

  :is(.newBook, .latestNews, .artCalendar, .firstBookTravel, .firstLitMapa, .firstHero, .e_course) {
    height: 410px;
  }

  :where(#newBook, #latestNews) h2 {
    font-size: 4rem;
    padding: 0.1rem 1rem;
  }

  .all {
    line-height: 1;
    padding: 0;
  }

  #year {
    font-size: 10rem;
  }

  #invites div {
    height: 320px;
  }

  #invites h2 {
    padding: 0;
  }

}

@media (min-width: 1024px) {
  #desktop {
    display: block;
  }

  #mobile {
    display: none;
  }
}
