﻿/*
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
*/
a, .btn-link {
  color: #006bb7;
}

div.area.blue {
  background-color: #0A3555;
  color: #fff;
}
div.area.diamond {
  position: absolute;
  transform: rotate(45deg);
}

.page {
  overflow: hidden;
}
@media (min-width: 768px) {
  .page {
    display: grid;
    grid-template-columns: 50px auto 50px;
    grid-template-rows: 50px auto 50px;
    height: 100vh;
    gap: 1px;
    position: relative;
  }
  .page::before {
    content: "";
    position: fixed; /* cover entire viewport regardless of scroll */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background-image: linear-gradient(to right, #00bbcc 1px, transparent 1px), linear-gradient(to bottom, #00bbcc 1px, transparent 1px);
    background-size: calc(100vw - 100px) calc(100vh - 100px); /* cell size + gap */
    background-position: 50px 50px; /* offset to center the grid */
    padding: 1px; /* to show top-left line */
    z-index: 10;
  }
}
.page main {
  grid-column: 2;
  grid-row: 2;
}
@media (min-width: 768px) {
  .page main {
    padding: 2em;
  }
}
.page main h2 {
  color: #0A3555;
  text-align: center;
  margin: 1em;
}

userDetails {
  display: block;
  margin: 0.5em 0 0 0.5em;
  font-size: 1.2rem;
}

topright {
  position: fixed;
  top: 0;
  right: 0;
  display: block;
  width: 16vw;
  aspect-ratio: 1/1;
  background: #0A3555;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  z-index: 9;
  pointer-events: none;
  --pad: clamp(56px, 2.7vw, 86px);
}
topright img {
  position: absolute;
  top: var(--pad);
  right: var(--pad);
  /* largest axis-aligned box that always fits inside the triangle */
  max-width: calc(60% - var(--pad));
  max-height: calc(60% - var(--pad));
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

bottomleft {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 10vw;
  height: 10vw;
  background: #f62d19;
  clip-path: polygon(0 100%, 0 0, 100% 100%); /* right-angle triangle in bottom-left */
  z-index: 9; /* above everything */
  pointer-events: none;
}

bottomright {
  padding: 2em;
  display: block;
}
@media (min-width: 768px) {
  bottomright {
    position: fixed;
    display: flex;
    bottom: 50px;
    right: 50px;
    padding: 1vw;
    width: clamp(150px, 14.5vw, 14.5vw);
    /*height: 8.8vw;*/
    z-index: 9; /* above everything */
    pointer-events: none;
  }
}

nhlogo {
  display: flex;
}
nhlogo img {
  height: auto; /* preserve aspect ratio */
  max-width: 100%;
  object-fit: contain; /* prevent distortion */
  margin-bottom: 1em;
}
nhlogo img:first-child {
  width: 71.2%;
  margin-right: 5%;
}
nhlogo img:last-child {
  width: 23.8%;
}

.mud-simple-table table * tr > th {
  font-weight: bold;
}

home {
  overflow: hidden;
}
home div.area {
  --halfWidthMultiplier: 0.707;
  --widthMultiplier: 1.414;
  --gap: 5px;
}
home div.area.diamond {
  position: fixed;
  transform: rotate(45deg);
}
home div.area.large {
  height: clamp(min(100vh * var(--halfWidthMultiplier), 200vw * var(--halfWidthMultiplier)), 142vw, 50vw / var(--halfWidthMultiplier) - 250px - 2 * var(--gap));
  width: clamp(min(100vh * var(--halfWidthMultiplier), 200vw * var(--halfWidthMultiplier)), 142vw, 50vw / var(--halfWidthMultiplier) - 250px - 2 * var(--gap));
}
home div.area.small {
  height: 250px;
  width: 250px;
}
home div.area.main {
  left: clamp(-850px, 0%, 0px);
  transform: translate(-50%, -50%) rotate(45deg);
  transform-origin: center;
  top: min(50%, clamp(min(100vh * var(--halfWidthMultiplier), 200vw * var(--halfWidthMultiplier)), 142vw, 50vw / var(--halfWidthMultiplier) - 250px - 2 * var(--gap)) * var(--halfWidthMultiplier));
  z-index: 1;
}
home div.area.main content {
  position: absolute;
  transform: translate(-50%, -50%) rotate(-45deg);
  top: 30%;
  left: 70%;
}
home div.area.main content div {
  width: clamp(200px, 50vh, 133%);
}
home div.area.pos1 {
  height: calc(50vh / var(--halfWidthMultiplier));
  width: calc(50vh / var(--halfWidthMultiplier));
  left: min(100vw + var(--gap), clamp(min(100vh * var(--halfWidthMultiplier), 200vw * var(--halfWidthMultiplier)), 142vw, 50vw / var(--halfWidthMultiplier) - 250px - 2 * var(--gap)) * var(--halfWidthMultiplier) + 250px * var(--halfWidthMultiplier) + var(--gap) * 2);
  top: calc(min(50%, clamp(min(100vh * var(--halfWidthMultiplier), 200vw * var(--halfWidthMultiplier)), 142vw, 50vw / var(--halfWidthMultiplier) - 250px - 2 * var(--gap)) * var(--halfWidthMultiplier)) - var(--gap));
  transform: translate(-50%, calc(-50% - 50vh / var(--halfWidthMultiplier) * var(--halfWidthMultiplier))) rotate(45deg);
}
home div.area.pos2 {
  left: min(clamp(min(100vh * var(--halfWidthMultiplier), 200vw * var(--halfWidthMultiplier)), 142vw, 50vw / var(--halfWidthMultiplier) - 250px - 2 * var(--gap)) * var(--halfWidthMultiplier) + var(--gap), 100vw + var(--gap));
  top: min(50% + 250px * var(--halfWidthMultiplier) + var(--gap), clamp(min(100vh * var(--halfWidthMultiplier), 200vw * var(--halfWidthMultiplier)), 142vw, 50vw / var(--halfWidthMultiplier) - 250px - 2 * var(--gap)) * var(--halfWidthMultiplier) + 250px * var(--halfWidthMultiplier) + var(--gap));
  transform: translate(-50%, -50%) rotate(45deg);
}
home div.area.pos3 {
  left: calc(clamp(min(100vh * var(--halfWidthMultiplier), 200vw * var(--halfWidthMultiplier)), 142vw, 50vw / var(--halfWidthMultiplier) - 250px - 2 * var(--gap)) * var(--halfWidthMultiplier) + 250px * var(--widthMultiplier) + var(--gap) * 3);
  top: min(50% + 250px * var(--halfWidthMultiplier) + var(--gap), clamp(min(100vh * var(--halfWidthMultiplier), 200vw * var(--halfWidthMultiplier)), 142vw, 50vw / var(--halfWidthMultiplier) - 250px - 2 * var(--gap)) * var(--halfWidthMultiplier) + 250px * var(--halfWidthMultiplier) + var(--gap));
  transform: translate(-50%, -50%) rotate(45deg);
}
home div.area.pos4 {
  left: calc(clamp(min(100vh * var(--halfWidthMultiplier), 200vw * var(--halfWidthMultiplier)), 142vw, 50vw / var(--halfWidthMultiplier) - 250px - 2 * var(--gap)) * var(--halfWidthMultiplier) + 250px * var(--halfWidthMultiplier) + var(--gap) * 2);
  top: calc(50% + 250px * var(--widthMultiplier) + var(--gap) * 2);
  transform: translate(-50%, -50%) rotate(45deg);
}
home div.area.pos5 {
  left: calc(clamp(min(100vh * var(--halfWidthMultiplier), 200vw * var(--halfWidthMultiplier)), 142vw, 50vw / var(--halfWidthMultiplier) - 250px - 2 * var(--gap)) * var(--widthMultiplier) + 250px * var(--widthMultiplier) + var(--gap) * 4);
  transform: translate(-50%, -50%) rotate(45deg);
  transform-origin: center;
  top: min(50%, clamp(min(100vh * var(--halfWidthMultiplier), 200vw * var(--halfWidthMultiplier)), 142vw, 50vw / var(--halfWidthMultiplier) - 250px - 2 * var(--gap)) * var(--halfWidthMultiplier));
}
home div.area.image {
  overflow: hidden;
}
home div.area.image::after {
  content: "";
  position: absolute;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transform: rotate(-45deg);
}
home div.area.image.img1::after {
  left: 0;
  bottom: 0;
  top: 0;
  right: 0;
  margin: -56%;
  background-image: url("/images/house2.jpg");
  background-size: 70%;
  background-position-x: min(50vw, 50%);
  background-position-y: 85%;
  /*background-size: clamp(880px, 87vw, 1270px);
  background-position: clamp(-82px, 100vw - 580px, 220px) clamp(100%, 85vw, 112%);*/
}
home div.area.image.img2::after {
  left: 0;
  bottom: 0;
  top: 0;
  right: 0;
  margin: -56%;
  background-image: url(/images/house1.jpg);
}
home div.area.image.img3::after {
  left: 0;
  bottom: 0;
  top: 0;
  right: 0;
  margin: -56%;
  background-image: url(/images/house2.jpg);
}

plots {
  display: grid;
  grid-template-columns: auto;
  grid-gap: 1.5em;
}
@media (min-width: 768px) {
  plots {
    grid-template-columns: 20vw auto;
    height: calc(100vh - 161px - 5.2em);
  }
}
@media (min-width: 768px) {
  plots basket {
    background: url("/images/CallOff.png"), rgba(255, 255, 255, 0.9);
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: screen;
    overflow-y: auto;
    padding: 1em;
    padding-top: 0.2em;
  }
  plots basket .mud-table {
    margin-top: 0.8em;
  }
}
plots plotlist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  grid-gap: 0.5em;
  overflow-y: scroll;
}
@media (min-width: 768px) {
  plots plotlist {
    grid-gap: 1em;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}
plots plotlist plot {
  font-weight: bold;
  padding-bottom: 0.8em;
  grid-column: 1/-1;
  border-bottom: 1px solid #00bbcc;
}
plots plotlist plot:not(:first-child) {
  margin-top: 2em;
}
plots plotlist plot .houseType {
  color: #00bbcc;
}
plots plotlist buildstage {
  text-align: center;
  margin-left: 1em;
  margin-right: -1em;
}
plots plotlist buildstage span {
  display: block;
}
plots plotlist buildstage .btn-icon {
  border: 2px solid #0A3555;
  width: 4em;
  height: 3em;
  background-color: #eee;
  border-radius: 0.6em;
  background-size: 2.3em;
  background-repeat: no-repeat;
  background-position: center;
}
@media (min-width: 768px) {
  plots plotlist buildstage .btn-icon {
    width: 7em;
    height: 6em;
    background-size: 4em;
  }
}
plots plotlist buildstage .btn-icon.Doors {
  background-image: url("/images/BuildStages/Doors.png");
}
plots plotlist buildstage .btn-icon.Doors:hover {
  background-image: url("/images/BuildStages/Doors-h.png");
}
plots plotlist buildstage .btn-icon.Linings {
  background-image: url("/images/BuildStages/Linings.png");
}
plots plotlist buildstage .btn-icon.Linings:hover {
  background-image: url("/images/BuildStages/Linings-h.png");
}
plots plotlist buildstage .btn-icon.secondFix {
  background-image: url("/images/BuildStages/2nd Fix.png");
}
plots plotlist buildstage .btn-icon.secondFix:hover {
  background-image: url("/images/BuildStages/2nd Fix-h.png");
}
plots plotlist buildstage .btn-icon.WinBoard {
  background-image: url("/images/BuildStages/Win Board.png");
}
plots plotlist buildstage .btn-icon.WinBoard:hover {
  background-image: url("/images/BuildStages/Win Board-h.png");
}

sites {
  display: grid;
  grid-template-rows: 100%;
  overflow: hidden;
}
@media (min-width: 768px) {
  sites {
    height: calc(100vh - 161px - 5.2em);
  }
}
sites .mud-table {
  overflow-y: scroll;
}

calloffs {
  margin: 0 auto;
  display: block;
}
@media (min-width: 768px) {
  calloffs {
    width: 30vw;
  }
}
calloffs grid {
  display: table;
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}
calloffs grid row {
  display: table-row;
  /*border-bottom: 1px solid --var(mud-primary);*/
}
calloffs grid row.plot-items {
  color: --var(mud-secondary);
}
calloffs grid row.plot-items > :first-child {
  padding-left: 2em;
  text-align: left;
}
calloffs grid row > span {
  display: table-cell;
  padding: 0.5em;
}
calloffs grid row :last-child {
  text-align: right;
}
calloffs grid row input {
  box-sizing: border-box;
  padding: 0.5em;
  border: none;
  border-bottom: 1px solid #00bbcc;
}
calloffs grid row svg {
  cursor: pointer;
  text-align: center;
}
