@charset "utf-8";
/* subject-style.css */

/* ===========================
   Background div style
   =========================== */
#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url(../nightwatch_1920x1200.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-color: white;
  z-index: -1;
}

#background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: 0;
  pointer-events: none;
}

/* ===========================
   Content box
   =========================== */
.content {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  max-width: 90%;
  background-color: white;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  overflow-y: auto;
  z-index: 2;
}

/* ===========================
   Typography
   =========================== */
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: visible;
}

body, td, th {
  font-size: medium;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
}

/* ===========================
   Figures and images
   =========================== */
.text-and-figure {
  display: flex;
  align-items: flex-start;
}

.right-figure { margin-left: 0; }
.left-figure { margin-right: 0; }

.image-row {
  text-align: left;
  margin-top: 20px;
}

.uniform-image {
  height: 150px;
  width: auto !important;
  margin-right: 5px;
  object-fit: contain;
  vertical-align: top;
}

.image-row img:last-child {
  margin-right: 0;
}

/* ===========================
   Media queries
   =========================== */

/* Tablets */
@media (max-width: 768px) {
  body {
    background-size: contain;
  }

  .content {
    width: 90%;
    padding: 15px;
    font-size: 0.9rem;
  }

  body, td, th {
    font-size: 0.85rem;
  }
}

/* Phones */
@media (max-width: 480px) {
  body {
    justify-content: flex-start;
  }

  .content {
    width: 100%;
    padding: 10px;
    font-size: 0.8rem;
    box-shadow: none;
  }

  body, td, th {
    font-size: 0.75rem;
  }
}
