/* The watermark behind the module home pages (npSchoolWatermark): the background-link picture,
   or the signed-in school's logo, faded. It stays fixed in the middle of the content area.
   z-index -1 puts it under the page content and above the body colour, without making a new
   stacking context that would hide dropdowns. */
.school-watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 36vw;
  height: 36vh;
  transform: translate(-50%, -50%);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 0.12;
  z-index: -1;
  pointer-events: none;
}

/* The background-link picture is made to be a watermark already: show it at its own size and
   strength, only made smaller when it does not fit */
.school-watermark-picture {
  position: fixed;
  top: 50%;
  left: 50%;
  max-width: 60vw;
  max-height: 60vh;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

/* Keep it centred on the content, not the window: shift away from the side menu */
@media (min-width: 991px) {
  .nav-md .school-watermark,
  .nav-md .school-watermark-picture {
    margin-left: -135px;
  }

  .nav-sm .school-watermark,
  .nav-sm .school-watermark-picture {
    margin-left: -40px;
  }

  .en.nav-md .school-watermark,
  .en.nav-md .school-watermark-picture {
    margin-left: 135px;
  }

  .en.nav-sm .school-watermark,
  .en.nav-sm .school-watermark-picture {
    margin-left: 40px;
  }
}

@media print {
  .school-watermark,
  .school-watermark-picture {
    display: none;
  }
}
