/* ---------------------------------------
   MICROWAVE
   Copenhagen, Denmark
   --------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  background: #d8d8d8;
}

body {
  margin: 0;
  padding: 20px 0;

  background: #d8d8d8;
  color: #111;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}


/* ---------------------------------------
   MAIN SITE
   --------------------------------------- */

#site {
  width: 800px;
  margin: 0 auto;

  background: #fff;
  border: 1px solid #777;
}


/* ---------------------------------------
   HEADER
   --------------------------------------- */

header {
  padding: 14px 14px 0 14px;

  background: linear-gradient(
    to bottom,
    #f8f8f8 0%,
    #e9e9e9 50%,
    #c9c9c9 100%
  );

  border-bottom: 1px solid #777;
}

#branding {
  margin-bottom: 14px;
}

#branding h1 {
  margin: 0;
  padding: 0;

  font-family: "Gill Sans", "Gill Sans MT", sans-serif;
  font-size: 27px;
  line-height: 29px;
  font-weight: bold;
  letter-spacing: -1px;
}

.tagline {
  margin-top: 2px;

  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  letter-spacing: 0.5px;

  color: #444;
}


/* ---------------------------------------
   NAVIGATION
   --------------------------------------- */

nav {
  display: flex;
  margin: 0;
  padding: 0;
}

nav a {
  display: block;
  flex: 1;

  padding: 5px 8px;

  text-align: center;

  color: #111;
  text-decoration: none;

  font-size: 11px;
  font-weight: bold;

  border-top: 1px solid #777;
  border-left: 1px solid #888;
  border-right: 1px solid #fff;

  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #f7f7f7 15%,
    #d5d5d5 55%,
    #b8b8b8 100%
  );
}

nav a:first-child {
  border-left: 1px solid #777;
}

nav a:last-child {
  border-right: 1px solid #777;
}

nav a:hover {
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #e8f3ff 20%,
    #a9cef3 55%,
    #6fa5da 100%
  );
}

nav a.active {
  color: #fff;

  text-shadow: 0 1px #315b83;

  background: linear-gradient(
    to bottom,
    #b9dcff 0%,
    #72afe9 45%,
    #397fbd 55%,
    #65a5dc 100%
  );
}


/* ---------------------------------------
   CONTENT
   --------------------------------------- */

main {
  padding: 24px 20px 30px 20px;
}

.section-title {
  margin-bottom: 8px;

  font-size: 18px;
  font-weight: bold;
}

.intro {
  width: 520px;
  margin-bottom: 24px;

  color: #333;
  line-height: 1.5;
}


/* ---------------------------------------
   SECTION BAR
   --------------------------------------- */

.bar {
  padding: 4px 7px;
  margin-bottom: 12px;

  font-size: 11px;
  font-weight: bold;

  border: 1px solid #999;

  background: linear-gradient(
    to bottom,
    #f8f8f8,
    #d0d0d0
  );
}


/* ---------------------------------------
   GENERIC PRODUCTS
   --------------------------------------- */

.products {
  display: flex;
  gap: 12px;
}

.product {
  flex: 1 1 0;
  min-width: 0;

  padding: 8px;

  border: 1px solid #aaa;
  background: #fafafa;
}

.product-image {
  display: block;

  width: 100%;
  height: 150px;

  object-fit: cover;
  object-position: center;

  margin-bottom: 9px;

  background: #fff;
  border: 1px solid #bbb;
}

.image-placeholder {
  width: 100%;
  height: 120px;

  margin-bottom: 9px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #e5e5e5;
  border: 1px solid #bbb;

  color: #888;

  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
}

.product h2 {
  margin: 0 0 4px 0;

  font-size: 14px;
  font-weight: bold;
}

.product p {
  margin: 2px 0;
}

.status {
  margin-top: 8px !important;

  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: bold;
}

.product a {
  display: inline-block;

  margin-top: 8px;

  color: #0645ad;
  text-decoration: underline;
}

.product a:visited {
  color: #551a8b;
}


/* ---------------------------------------
   RENT CATEGORY LANDING
   --------------------------------------- */

.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;

  margin-top: 18px;
  margin-bottom: 28px;
}


/* CATEGORY BOX */

.category-box {
  position: relative;
  display: block;

  height: 170px;

  overflow: hidden;

  color: #111;
  text-decoration: none;

  border: 1px solid #999;

  background: #ddd;
}


/* FULL-BLEED CATEGORY IMAGE */

.category-box .category-image {
  position: absolute;
  z-index: 0;

  top: 50%;
  left: 50%;

  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;
  object-position: center;

  margin: 0;
  padding: 0;
  border: 0;

  background: #f7f7f7;

  filter:
    grayscale(55%)
    contrast(0.95);

  opacity: 0.58;

  transform: translate(-50%, -50%);

  transition:
    opacity 0.15s ease,
    filter 0.15s ease;
}


/* GREY OVERLAY */

.category-box::before {
  content: "";

  position: absolute;
  z-index: 1;

  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  background: rgba(235, 235, 235, 0.46);

  pointer-events: none;

  transition: background 0.15s ease;
}


/* CENTERED CATEGORY TEXT */

.category-box .category-text {
  position: absolute;
  z-index: 2;

  top: 50%;
  left: 50%;

  width: 82%;

  transform: translate(-50%, -50%);

  text-align: center;
}

.category-box .category-text strong {
  display: block;

  margin: 0 0 7px 0;

  color: #111;

  font-size: 17px;
  font-weight: bold;
  line-height: 1.15;

  text-shadow:
    0 1px 0 #fff,
    0 0 4px #fff;
}

.category-box .category-text span {
  display: block;

  margin: 0;

  color: #222;

  font-size: 10px;
  line-height: 1.4;

  text-shadow:
    0 1px 0 #fff,
    0 0 3px #fff;
}


/* CATEGORY ARROW */

.category-box::after {
  content: "→";

  position: absolute;
  z-index: 3;

  right: 8px;
  bottom: 6px;

  color: #555;

  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
}


/* CATEGORY HOVER */

.category-box:hover {
  border-color: #666;
}

.category-box:hover .category-image {
  opacity: 0.82;

  filter:
    grayscale(15%)
    contrast(1);
}

.category-box:hover::before {
  background: rgba(220, 230, 240, 0.30);
}


/* ---------------------------------------
   RENTAL REQUEST AREA
   --------------------------------------- */

.rental-category {
  margin-top: 24px;
}

.rental-note {
  margin: 14px 0 10px 0;

  color: #444;

  font-size: 11px;
  line-height: 1.5;
}

.rental-request-link {
  display: inline-block;

  padding: 5px 8px;

  color: #111;
  text-decoration: none;

  font-size: 11px;
  font-weight: bold;

  border: 1px solid #999;

  background: linear-gradient(
    to bottom,
    #ffffff,
    #dddddd
  );
}

.rental-request-link:visited {
  color: #111;
}

.rental-request-link:hover {
  background: linear-gradient(
    to bottom,
    #ffffff,
    #b8d7f3
  );
}


/* ---------------------------------------
   RENTAL EQUIPMENT GRID
   --------------------------------------- */

.rental-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;

  margin-top: 14px;
  margin-bottom: 30px;

  border: 0;

  background: transparent;
}


/* RENTAL PRODUCT CARD */

.rental-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 7px 6px;

  align-items: center;

  min-width: 0;

  padding: 8px;
  margin: 0;

  color: #111;
  text-decoration: none;

  font-size: 11px;

  border: 1px solid #aaa;

  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #f5f5f5 72%,
    #e3e3e3 100%
  );
}

.rental-item:visited {
  color: #111;
}


/* RENTAL IMAGE */

.rental-thumb {
  grid-column: 1 / -1;

  display: block;

  width: 100%;
  height: auto;

  aspect-ratio: 4 / 3;

  object-fit: contain;

  margin: 0;

  background: #fafafa;

  border: 1px solid #bbb;
}


/* RENTAL NAME */

.rental-name {
  min-width: 0;

  color: #111;
  text-decoration: none;

  font-size: 11px;
  font-weight: bold;
  line-height: 1.25;
}


/* AVAILABILITY */

.rental-item > span:last-child {
  color: #444;

  font-family: "Courier New", Courier, monospace;
  font-size: 8px;
  font-weight: normal;

  white-space: nowrap;
  text-align: right;
}


/* RENTAL HOVER */

.rental-item:hover {
  border-color: #777;

  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #eef6ff 60%,
    #cddff1 100%
  );
}


/* COMING SOON */

.rental-item.coming-soon {
  opacity: 0.42;

  filter: grayscale(100%);
}

.rental-item.coming-soon:hover {
  opacity: 0.6;
}


/* PLACEHOLDER */

.placeholder-thumb {
  grid-column: 1 / -1;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: auto;

  aspect-ratio: 4 / 3;

  background: #fafafa;

  border: 1px solid #bbb;

  color: #aaa;

  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
}


/* ---------------------------------------
   EQUIPMENT DETAIL PAGE
   --------------------------------------- */

.equipment-page {
  display: flex;
  gap: 20px;

  margin-bottom: 24px;
}

.equipment-photo {
  width: 440px;
}

.equipment-photo img {
  display: block;

  width: 100%;
  height: auto;

  border: 1px solid #aaa;
}

.equipment-info {
  flex: 1;

  min-width: 0;
}

.equipment-info h2 {
  margin: 0 0 3px 0;

  font-size: 16px;
}

.equipment-type {
  margin: 0 0 12px 0;

  color: #555;
}

.spec-table {
  width: 100%;

  margin-top: 12px;

  border-collapse: collapse;

  font-size: 11px;
}

.spec-table td {
  padding: 5px;

  vertical-align: top;

  border: 1px solid #bbb;
}

.spec-table td:first-child {
  width: 42%;

  font-weight: bold;

  background: #ededed;
}

.equipment-contact {
  margin-top: 14px;
}

.equipment-contact a {
  color: #0645ad;
  text-decoration: underline;
  font-weight: bold;
}

.equipment-description-bar {
  margin-top: 5px;
}

.equipment-description {
  width: 600px;

  line-height: 1.5;
}

.back-link {
  margin-top: 22px;
}

.back-link a {
  color: #0645ad;
  text-decoration: underline;
}

.status-bar {
  padding: 4px 7px;

  color: #333;

  font-size: 10px;

  background: #e9e9e9;

  border-top: 1px solid #fff;
  border-bottom: 1px solid #999;
}


/* ---------------------------------------
   RENTAL FORM
   --------------------------------------- */

.rental-form {
  width: 520px;

  margin-top: 12px;

  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 10px;

  align-items: center;
}

.rental-form label {
  font-size: 11px;
  font-weight: bold;
}

.rental-form input,
.rental-form select,
.rental-form textarea {
  width: 100%;

  padding: 4px 5px;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;

  border: 1px solid #999;

  background: #fff;
}

.rental-form textarea {
  height: 70px;

  resize: vertical;
}

.rental-form button {
  grid-column: 2;

  width: fit-content;

  margin-top: 4px;
  padding: 4px 10px;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: bold;

  border: 1px solid #777;

  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #f7f7f7 20%,
    #d5d5d5 60%,
    #b8b8b8 100%
  );
}

.rental-form button:hover {
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #e8f3ff 20%,
    #a9cef3 55%,
    #6fa5da 100%
  );
}


/* ---------------------------------------
   FOOTER
   --------------------------------------- */

footer {
  padding: 8px 12px;

  color: #666;

  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  line-height: 1.5;

  border-top: 1px solid #aaa;

  background: #ededed;
}


/* ---------------------------------------
   FIRE GIF
   --------------------------------------- */

.fire-bottom {
  position: fixed;

  left: 0;
  bottom: 0;

  width: 100%;
  height: 56px;

  background-image: url("images/fuego.gif");
  background-repeat: repeat-x;
  background-position: bottom left;

  pointer-events: none;

  z-index: 9999;
}


/* ---------------------------------------
   CUSTOM CURSOR
   --------------------------------------- */

* {
  cursor: url("images/the_finger.png"), pointer !important;
}

/* ---------------------------------------
   HOME PAGE
   --------------------------------------- */



.home-section-bar {
  margin-top: 24px;
}


/* RECENTLY ADDED */

.recent-list {
  margin-bottom: 26px;

  border: 1px solid #aaa;
  background: #fafafa;
}

.recent-item {
  display: grid;
  grid-template-columns: 70px 1fr 70px 16px;
  gap: 8px;

  align-items: center;

  padding: 6px 8px;

  color: #111;
  text-decoration: none;

  border-bottom: 1px solid #ddd;

  font-size: 10px;
}

.recent-item:last-child {
  border-bottom: 0;
}

.recent-item:hover {
  background: #eef5fc;
}

.recent-date,
.recent-type,
.recent-arrow {
  font-family: "Courier New", Courier, monospace;
}

.recent-date {
  color: #666;
}

.recent-name {
  font-weight: bold;
}

.recent-type {
  color: #555;
  text-align: right;
}

.recent-arrow {
  text-align: right;
}


/* HOME INFO PANELS */

.home-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;

  margin-top: 4px;
}

.home-panel .bar {
  margin-bottom: 0;
}

.home-panel-content {
  min-height: 120px;

  padding: 10px;

  border: 1px solid #aaa;
  border-top: 0;

  background: #fafafa;

  font-size: 10px;
  line-height: 1.45;
}

.home-panel-content p {
  margin: 0 0 7px 0;
}

.home-panel-link {
  margin-top: 12px !important;
}

.home-panel-link a {
  color: #0645ad;
  text-decoration: underline;
}

.microwave-status {
  font-family: "Courier New", Courier, monospace;
}

.microwave-status strong {
  font-family: Arial, Helvetica, sans-serif;
}

.online-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.online-gif {
  display: block;
  width: 12px;
  height: 12px;
  object-fit: contain;
}


/* ---------------------------------------
   ABOUT PAGE
   --------------------------------------- */

.about-image {
  display: block;
  width: 520px;
  max-width: 100%;
  height: auto;
  margin: 16px auto 22px auto;
  border: 1px solid #aaa;
}

.about-text {
  width: 620px;
  max-width: 100%;
  line-height: 1.55;
}

.about-text p {
  margin: 0 0 14px 0;
}

.about-manifesto {
  margin-top: 24px !important;
  font-weight: bold;
}


/* ---------------------------------------
   TABLET / SMALL SCREEN
   --------------------------------------- */

@media (max-width: 830px) {

  body {
    padding: 0;
  }

  #site {
    width: 100%;
    border-left: 0;
    border-right: 0;
  }

  .intro {
    width: auto;
  }

  .home-info-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .equipment-page {
    display: block;
  }

  .equipment-photo {
    width: 100%;
    margin-bottom: 15px;
  }

  .equipment-description {
    width: auto;
  }

  .rental-form {
    width: 100%;
    grid-template-columns: 100px 1fr;
  }

  .rental-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


/* ---------------------------------------
   MOBILE — 520px AND BELOW
   --------------------------------------- */

@media (max-width: 520px) {

  body {
    padding: 0 0 34px 0;
  }

  #site {
    width: 100%;
    border-left: 0;
    border-right: 0;
  }


  /* HEADER */

  header {
    padding-top: 0;
  }

  #branding {
    padding: 14px 12px 12px 12px;
  }

  #branding h1 {
    font-size: 27px;
  }

  .tagline {
    margin-top: 6px;
    font-size: 9px;
  }

  nav a {
    padding: 7px 2px;
    font-size: 10px;
  }


  /* MAIN CONTENT */

  main {
    padding: 18px 12px 24px 12px;
  }

  .section-title {
    font-size: 18px;
  }

  .intro {
    width: auto;
    margin-bottom: 16px;
    line-height: 1.45;
  }



  .home-section-bar {
    margin-top: 18px;
  }


  /* FEATURED EQUIPMENT — 2 COLUMNS */

  .products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 7px;
  }

  .product-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 7px 0;
  }

  .product h2 {
    margin: 0 0 3px 0;
    font-size: 12px;
    line-height: 1.2;
  }

  .product p {
    margin: 0 0 5px 0;
    font-size: 9px;
    line-height: 1.3;
  }

  .product .status {
    font-size: 8px;
  }

  .product a {
    font-size: 10px;
  }


  /* RECENTLY ADDED */

  .recent-item {
    grid-template-columns: 62px 1fr 16px;
  }

  .recent-type {
    display: none;
  }


/* RENT CATEGORIES */

.category-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.category-box {
  width: 100%;
  height: 150px;
}

.category-box .category-image {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  transform: translate(-50%, -50%);
}

.category-box .category-text {
  width: 88%;
}

.category-box .category-text strong {
  font-size: 16px;
}

/* ABOUT — MOBILE */

.about-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 12px auto 18px auto;
}

.about-text {
  width: 100%;
  max-width: 100%;
  line-height: 1.5;
}


}

/* -------------------------
   RENTAL CART BUTTONS
------------------------- */

.rental-item-wrap {
  position: relative;
}

.rental-item-wrap .rental-item {
  width: 100%;
  box-sizing: border-box;
}

.add-rental-button {
  display: block;
  width: 100%;
  margin: 3px 0 8px 0;
  padding: 5px 6px;

  border: 1px solid #888;
  background: linear-gradient(#f4f4f4, #cfcfcf);

  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: bold;

  cursor: pointer;
}

.add-rental-button:hover {
  background: linear-gradient(#e8eef5, #bcc9d8);
}

.add-rental-button.added {
  background: #ddd;
  color: #666;
}
/* -------------------------
   RENTAL CART PAGE
------------------------- */

#rental-cart-items {
  margin: 12px 0 18px 0;
  border-top: 1px solid #aaa;
}

.rental-cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 8px;

  border-left: 1px solid #aaa;
  border-right: 1px solid #aaa;
  border-bottom: 1px solid #aaa;

  background: #eee;
}

.rental-cart-name {
  font-size: 11px;
  font-weight: bold;
}

.rental-cart-remove {
  padding: 3px 6px;

  border: 1px solid #888;
  background: linear-gradient(#f5f5f5, #ccc);

  font-family: Arial, Helvetica, sans-serif;
  font-size: 8px;
  font-weight: bold;

  cursor: pointer;
}

.rental-cart-remove:hover {
  background: #bbb;
}

.empty-cart {
  padding: 10px;
  margin: 0;

  border-left: 1px solid #aaa;
  border-right: 1px solid #aaa;
  border-bottom: 1px solid #aaa;

  font-size: 10px;
  color: #666;
}
/* ---------------------------------
   RENTAL SUCCESS
--------------------------------- */

.rental-success-box {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #888;
  background:
    linear-gradient(
      to bottom,
      #f8f8f8 0%,
      #e7e7e7 100%
    );
}

.rental-success-status {
  display: flex;
  align-items: center;
  gap: 9px;

  font-family: "Courier New", monospace;
  font-size: 18px;
  font-weight: bold;

  margin-bottom: 16px;
}

.status-light {
  width: 12px;
  height: 12px;

  display: inline-block;

  background: #00c900;
  border: 1px solid #006900;

  box-shadow:
    0 0 3px #00ff00,
    0 0 8px #00ff00;
}

.rental-success-code {
  display: inline-block;

  padding: 7px 10px;
  margin-bottom: 12px;

  background: #111;
  color: #00ff41;

  border: 1px inset #777;

  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.5px;
}

.rental-success-box p {
  margin: 5px 0 0 0;
}

.rental-success-return {
  margin-top: 22px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: bold;
}
