/* NORMAL PC WIDESCREEN SETTINGS (min-WIDTH: 1500px) */
@media (min-width: 1500px){
    
  * { box-sizing: border-box; }

  body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #1e1e1e;
    color: white;
    display: flex;
    height: 100vh;
    overflow: hidden;
  }

  .sidebar {
    width: 300px;
    background: #2a2a2a;
    padding: 15px;
    overflow-y: auto;
    border-right: 1px solid #444;
  }

  .sidebar h2 {
    color: #7CFC00; /* Lawn green */
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 2px solid #7CFC00;
    padding-bottom: 5px;
  }

  .thumb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .thumb-block {
    text-align: center;
    cursor: pointer;
  }

  .thumb {
    width: 100%;
    max-width: 95px;
    height: auto;
    object-fit: contain;
    border: 2px solid #444;
    border-radius: 8px;
    background: white;
    transition: 0.2s ease;
  }

  .thumb:hover {
    transform: scale(1.03);
    border-color: #7CFC00; /* Lawn green hover */
  }

  .thumb-label {
    font-size: 0.8em;
    color: #ccc;
    margin-top: 4px;
    word-wrap: break-word;
    font-weight: bold;
  }

  .main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .main h1 {
    font-size: 34px;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
    margin-top: 10px; /* reduce this number as you like, can be 0 */
  }

  .viewer-columns {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: nowrap;
    margin-bottom: 20px;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .column {
    flex: 1 1 0;
    min-width: 0;
    max-width: 50%;
    display: flex;
    flex-direction: column;
  }

  .section-title {
    font-size: 30px;
    color: #ffcc00;
    margin-bottom: 10px;
    text-align: center;
    flex: 0 0 auto;
  }

  #backColumn .section-title {
    color: #00e6e6;
  }

  #backColumn .viewer-grid {
    border: 2px solid #00e6e6;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    flex: 1 1 auto;
    overflow: hidden;
  }

  #frontColumn .section-title {
    color: #FFD700;
  }

  #frontColumn .viewer-grid {
    border: 2px solid #FFD700;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    flex: 1 1 auto;
    overflow: hidden;
  }

.image-block {
  background: #2c2c2c;
  border-radius: 10px;
  padding: 6px;
  text-align: center;
  width: 100%;
  /* height: 100%;   <-- remove this */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;      /* important in grid/flex layouts */
}

.image-block img {
  width: 100%;
  height: auto;
  max-height: none;   /* remove hard cap */
  object-fit: contain;
  flex: 1 1 auto;     /* allow it to take remaining space */
  min-height: 0;      /* important so it can shrink */
}


.label {
  margin-top: 6px;
  font-weight: bold;
  font-size: 1.5em; /* 50% bigger */
  flex-shrink: 0;
}


  .normal {}
  .inverted { transform: scaleY(-1); }
  .reversed { transform: scaleX(-1); }
  .inverted-reversed { transform: scale(-1, -1); }

  #downloadBtn {
    display: inline-block;
    padding: 12px 20px;
    background: #00e6e6;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    align-self: center;
    max-width: 220px;
    margin: 0 auto 30px;
    cursor: pointer;
    flex: 0 0 auto;
  }

  #downloadBtn:hover {
    background: #00c2c2;
    color: #fff;
  }

  @media (max-width: 900px) {
    body {
      flex-direction: column;
    }
    .sidebar {
      width: 100%;
      border-right: none;
      border-bottom: 1px solid #444;
    }
    .main {
      padding: 10px;
    }
    .viewer-columns {
      flex-direction: column;
      gap: 30px;
    }
    .column {
      max-width: 100%;
    }
    .image-block img {
      max-height: 150px;
    }
  }
  
  .upload-label {
  background: #7CFC00;
  color: #000;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.5em; /* make this bigger or smaller as you like */
  display: inline-block; /* ensures padding and size work nicely */
  text-align: center;
}

.qv-link {
    display: inline-block;             /* allow transform */
    color: #ffffff;
    text-decoration: underline;
    transition: transform 0.3s ease, color 0.3s ease;
    transform-origin: left center;     /* anchor to left side */
}

.qv-link:hover {
    color: lawngreen;
    transform: scale(1.5);             /* 50% larger */
}

.label-inverted {
  color: #98fb98; /* pale green */
}

.label-reversed {
  color: yellow;
}

.label-invrev {
  color: #ffc0cb; /* pink */
}

}




/* MATEVIEW SETTINGS (min-height: 1000px) */
@media (min-height: 1000px){
    
  * { box-sizing: border-box; }

  body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #1e1e1e;
    color: white;
    display: flex;
    height: 100vh;
    overflow: hidden;
  }

  .sidebar {
    width: 300px;
    background: #2a2a2a;
    padding: 15px;
    overflow-y: auto;
    border-right: 1px solid #444;
  }

  .sidebar h2 {
    color: #7CFC00; /* Lawn green */
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 2px solid #7CFC00;
    padding-bottom: 5px;
  }

  .thumb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .thumb-block {
    text-align: center;
    cursor: pointer;
  }

  .thumb {
    width: 100%;
    max-width: 95px;
    height: auto;
    object-fit: contain;
    border: 2px solid #444;
    border-radius: 8px;
    background: white;
    transition: 0.2s ease;
  }

  .thumb:hover {
    transform: scale(1.03);
    border-color: #7CFC00; /* Lawn green hover */
  }

  .thumb-label {
    font-size: 0.8em;
    color: #ccc;
    margin-top: 4px;
    word-wrap: break-word;
    font-weight: bold;
  }

  .main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .main h1 {
    font-size: 34px;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
    margin-top: 10px; /* reduce this number as you like, can be 0 */
  }

  .viewer-columns {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: nowrap;
    margin-bottom: 20px;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .column {
    flex: 1 1 0;
    min-width: 0;
    max-width: 50%;
    display: flex;
    flex-direction: column;
  }

  .section-title {
    font-size: 30px;
    color: #ffcc00;
    margin-bottom: 10px;
    text-align: center;
    flex: 0 0 auto;
  }

  #backColumn .section-title {
    color: #00e6e6;
  }

  #backColumn .viewer-grid {
    border: 2px solid #00e6e6;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    flex: 1 1 auto;
    overflow: hidden;
  }

  #frontColumn .section-title {
    color: #FFD700;
  }

  #frontColumn .viewer-grid {
    border: 2px solid #FFD700;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    flex: 1 1 auto;
    overflow: hidden;
  }

.image-block {
  background: #2c2c2c;
  border-radius: 10px;
  padding: 6px;
  text-align: center;
  width: 100%;
  /* height: 100%;   <-- remove this */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;      /* important in grid/flex layouts */
}

.image-block img {
  width: 100%;
  height: auto;
  max-height: none;   /* remove hard cap */
  object-fit: contain;
  flex: 1 1 auto;     /* allow it to take remaining space */
  min-height: 0;      /* important so it can shrink */
}

.label {
  margin-top: 6px;
  font-weight: bold;
  font-size: 1.5em; /* 50% bigger */
  flex-shrink: 0;
}


  .normal {}
  .inverted { transform: scaleY(-1); }
  .reversed { transform: scaleX(-1); }
  .inverted-reversed { transform: scale(-1, -1); }

  #downloadBtn {
    display: inline-block;
    padding: 12px 20px;
    background: #00e6e6;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    align-self: center;
    max-width: 220px;
    margin: 0 auto 30px;
    cursor: pointer;
    flex: 0 0 auto;
  }

  #downloadBtn:hover {
    background: #00c2c2;
    color: #fff;
  }

  @media (max-width: 900px) {
    body {
      flex-direction: column;
    }
    .sidebar {
      width: 100%;
      border-right: none;
      border-bottom: 1px solid #444;
    }
    .main {
      padding: 10px;
    }
    .viewer-columns {
      flex-direction: column;
      gap: 30px;
    }
    .column {
      max-width: 100%;
    }
    .image-block img {
      max-height: 150px;
    }
  }
  
  .upload-label {
  background: #7CFC00;
  color: #000;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.5em; /* make this bigger or smaller as you like */
  display: inline-block; /* ensures padding and size work nicely */
  text-align: center;
}

.qv-link {
    display: inline-block;             /* allow transform */
    color: #ffffff;
    text-decoration: underline;
    transition: transform 0.3s ease, color 0.3s ease;
    transform-origin: left center;     /* anchor to left side */
}

.qv-link:hover {
    color: lawngreen;
    transform: scale(1.5);             /* 50% larger */
}

.label-inverted {
  color: #98fb98; /* pale green */
}

.label-reversed {
  color: yellow;
}

.label-invrev {
  color: #ffc0cb; /* pink */
}

}

@media (max-width: 1400px) {
    
  * { box-sizing: border-box; }

  body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #1e1e1e;
    color: white;
    display: flex;
    height: 100vh;
    overflow: hidden;
  }

  .sidebar {
    width: 300px;
    background: #2a2a2a;
    padding: 15px;
    overflow-y: auto;
    border-right: 1px solid #444;
  }

  .sidebar h2 {
    color: #7CFC00; /* Lawn green */
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 2px solid #7CFC00;
    padding-bottom: 5px;
  }

  .thumb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .thumb-block {
    text-align: center;
    cursor: pointer;
  }

  .thumb {
    width: 100%;
    max-width: 95px;
    height: auto;
    object-fit: contain;
    border: 2px solid #444;
    border-radius: 8px;
    background: white;
    transition: 0.2s ease;
  }

  .thumb:hover {
    transform: scale(1.03);
    border-color: #7CFC00; /* Lawn green hover */
  }

  .thumb-label {
    font-size: 0.7em;
    color: #ccc;
    margin-top: 4px;
    word-wrap: break-word;
  }

  .main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .main h1 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
    margin-top: 10px; /* reduce this number as you like, can be 0 */
  }

  .viewer-columns {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: nowrap;
    margin-bottom: 20px;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .column {
    flex: 1 1 0;
    min-width: 0;
    max-width: 50%;
    display: flex;
    flex-direction: column;
  }

  .section-title {
    font-size: 20px;
    color: #ffcc00;
    margin-bottom: 10px;
    text-align: center;
    flex: 0 0 auto;
  }

  #backColumn .section-title {
    color: #00e6e6;
  }

  #backColumn .viewer-grid {
    border: 2px solid #00e6e6;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    flex: 1 1 auto;
    overflow: hidden;
  }

  #frontColumn .section-title {
    color: #FFD700;
  }

  #frontColumn .viewer-grid {
    border: 2px solid #FFD700;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .image-block {
    background: #2c2c2c;
    border-radius: 10px;
    padding: 6px;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .image-block img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    flex-shrink: 0;
  }

.label {
  margin-top: 6px;
  font-weight: bold;
  font-size: 0.8em; /* 50% bigger */
  flex-shrink: 0;
}


  .normal {}
  .inverted { transform: scaleY(-1); }
  .reversed { transform: scaleX(-1); }
  .inverted-reversed { transform: scale(-1, -1); }

  #downloadBtn {
    display: inline-block;
    padding: 12px 20px;
    background: #00e6e6;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    align-self: center;
    max-width: 220px;
    margin: 0 auto 30px;
    cursor: pointer;
    flex: 0 0 auto;
  }

  #downloadBtn:hover {
    background: #00c2c2;
    color: #fff;
  }

  @media (max-width: 900px) {
    body {
      flex-direction: column;
    }
    .sidebar {
      width: 100%;
      border-right: none;
      border-bottom: 1px solid #444;
    }
    .main {
      padding: 10px;
    }
    .viewer-columns {
      flex-direction: column;
      gap: 30px;
    }
    .column {
      max-width: 100%;
    }
    .image-block img {
      max-height: 150px;
    }
  }
  
  .upload-label {
  background: #7CFC00;
  color: #000;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em; /* make this bigger or smaller as you like */
  display: inline-block; /* ensures padding and size work nicely */
  text-align: center;
}

.qv-link {
    display: inline-block;             /* allow transform */
    color: #ffffff;
    text-decoration: underline;
    transition: transform 0.3s ease, color 0.3s ease;
    transform-origin: left center;     /* anchor to left side */
}

.qv-link:hover {
    color: lawngreen;
    transform: scale(1.2);             /* 50% larger */
}

.label-inverted {
  color: #98fb98; /* pale green */
}

.label-reversed {
  color: yellow;
}

.label-invrev {
  color: #ffc0cb; /* pink */
}

}


/* =========================
   TABLET (TALL)  (includes iPad landscape)
   ========================= */
@media (max-width: 1100px) and (min-aspect-ratio: 1/1) and (max-aspect-ratio: 89/50) {
    
  * { box-sizing: border-box; }

  body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #1e1e1e;
    color: white;
    display: flex;
    height: 100vh;
    overflow: hidden;
  }

  .sidebar {
    width: 300px;
    background: #2a2a2a;
    padding: 15px;
    overflow-y: auto;
    border-right: 1px solid #444;
  }

  .sidebar h2 {
    color: #7CFC00; /* Lawn green */
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 2px solid #7CFC00;
    padding-bottom: 5px;
  }

  .thumb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .thumb-block {
    text-align: center;
    cursor: pointer;
  }

  .thumb {
    width: 100%;
    max-width: 95px;
    height: auto;
    object-fit: contain;
    border: 2px solid #444;
    border-radius: 8px;
    background: white;
    transition: 0.2s ease;
  }

  .thumb:hover {
    transform: scale(1.03);
    border-color: #7CFC00; /* Lawn green hover */
  }

  .thumb-label {
    font-size: 0.8em;
    color: #ccc;
    margin-top: 4px;
    word-wrap: break-word;
    font-weight: bold;
  }

  .main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .main h1 {
    font-size: 34px;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
    margin-top: 10px; /* reduce this number as you like, can be 0 */
  }

  .viewer-columns {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: nowrap;
    margin-bottom: 20px;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .column {
    flex: 1 1 0;
    min-width: 0;
    max-width: 50%;
    display: flex;
    flex-direction: column;
  }

  .section-title {
    font-size: 30px;
    color: #ffcc00;
    margin-bottom: 10px;
    text-align: center;
    flex: 0 0 auto;
  }

  #backColumn .section-title {
    color: #00e6e6;
  }

  #backColumn .viewer-grid {
    border: 2px solid #00e6e6;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    flex: 1 1 auto;
    overflow: hidden;
  }

  #frontColumn .section-title {
    color: #FFD700;
  }

  #frontColumn .viewer-grid {
    border: 2px solid #FFD700;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    flex: 1 1 auto;
    overflow: hidden;
  }

.image-block {
  background: #2c2c2c;
  border-radius: 10px;
  padding: 6px;
  text-align: center;
  width: 100%;
  /* height: 100%;   <-- remove this */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;      /* important in grid/flex layouts */
}

.image-block img {
  width: 100%;
  height: auto;
  max-height: none;   /* remove hard cap */
  object-fit: contain;
  flex: 1 1 auto;     /* allow it to take remaining space */
  min-height: 0;      /* important so it can shrink */
}

.label {
  margin-top: 6px;
  font-weight: bold;
  font-size: 1.5em; /* 50% bigger */
  flex-shrink: 0;
}


  .normal {}
  .inverted { transform: scaleY(-1); }
  .reversed { transform: scaleX(-1); }
  .inverted-reversed { transform: scale(-1, -1); }

  #downloadBtn {
    display: inline-block;
    padding: 12px 20px;
    background: #00e6e6;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    align-self: center;
    max-width: 220px;
    margin: 0 auto 30px;
    cursor: pointer;
    flex: 0 0 auto;
  }

  #downloadBtn:hover {
    background: #00c2c2;
    color: #fff;
  }

  @media (max-width: 900px) {
    body {
      flex-direction: column;
    }
    .sidebar {
      width: 100%;
      border-right: none;
      border-bottom: 1px solid #444;
    }
    .main {
      padding: 10px;
    }
    .viewer-columns {
      flex-direction: column;
      gap: 30px;
    }
    .column {
      max-width: 100%;
    }
    .image-block img {
      max-height: 150px;
    }
  }
  
  .upload-label {
  background: #7CFC00;
  color: #000;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.5em; /* make this bigger or smaller as you like */
  display: inline-block; /* ensures padding and size work nicely */
  text-align: center;
}

.qv-link {
    display: inline-block;             /* allow transform */
    color: #ffffff;
    text-decoration: underline;
    transition: transform 0.3s ease, color 0.3s ease;
    transform-origin: left center;     /* anchor to left side */
}

.qv-link:hover {
    color: lawngreen;
    transform: scale(1.5);             /* 50% larger */
}

.label-inverted {
  color: #98fb98; /* pale green */
}

.label-reversed {
  color: yellow;
}

.label-invrev {
  color: #ffc0cb; /* pink */
}

}

@media (max-width: 1400px) {
    
  * { box-sizing: border-box; }

  body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #1e1e1e;
    color: white;
    display: flex;
    height: 100vh;
    overflow: hidden;
  }

  .sidebar {
    width: 300px;
    background: #2a2a2a;
    padding: 15px;
    overflow-y: auto;
    border-right: 1px solid #444;
  }

  .sidebar h2 {
    color: #7CFC00; /* Lawn green */
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 2px solid #7CFC00;
    padding-bottom: 5px;
  }

  .thumb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .thumb-block {
    text-align: center;
    cursor: pointer;
  }

  .thumb {
    width: 100%;
    max-width: 95px;
    height: auto;
    object-fit: contain;
    border: 2px solid #444;
    border-radius: 8px;
    background: white;
    transition: 0.2s ease;
  }

  .thumb:hover {
    transform: scale(1.03);
    border-color: #7CFC00; /* Lawn green hover */
  }

  .thumb-label {
    font-size: 0.7em;
    color: #ccc;
    margin-top: 4px;
    word-wrap: break-word;
  }

  .main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .main h1 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
    margin-top: 10px; /* reduce this number as you like, can be 0 */
  }

  .viewer-columns {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: nowrap;
    margin-bottom: 20px;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .column {
    flex: 1 1 0;
    min-width: 0;
    max-width: 50%;
    display: flex;
    flex-direction: column;
  }

  .section-title {
    font-size: 20px;
    color: #ffcc00;
    margin-bottom: 10px;
    text-align: center;
    flex: 0 0 auto;
  }

  #backColumn .section-title {
    color: #00e6e6;
  }

  #backColumn .viewer-grid {
    border: 2px solid #00e6e6;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    flex: 1 1 auto;
    overflow: hidden;
  }

  #frontColumn .section-title {
    color: #FFD700;
  }

  #frontColumn .viewer-grid {
    border: 2px solid #FFD700;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .image-block {
    background: #2c2c2c;
    border-radius: 10px;
    padding: 6px;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .image-block img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    flex-shrink: 0;
  }

.label {
  margin-top: 6px;
  font-weight: bold;
  font-size: 0.8em; /* 50% bigger */
  flex-shrink: 0;
}


  .normal {}
  .inverted { transform: scaleY(-1); }
  .reversed { transform: scaleX(-1); }
  .inverted-reversed { transform: scale(-1, -1); }

  #downloadBtn {
    display: inline-block;
    padding: 12px 20px;
    background: #00e6e6;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    align-self: center;
    max-width: 220px;
    margin: 0 auto 30px;
    cursor: pointer;
    flex: 0 0 auto;
  }

  #downloadBtn:hover {
    background: #00c2c2;
    color: #fff;
  }

  @media (max-width: 900px) {
    body {
      flex-direction: column;
    }
    .sidebar {
      width: 100%;
      border-right: none;
      border-bottom: 1px solid #444;
    }
    .main {
      padding: 10px;
    }
    .viewer-columns {
      flex-direction: column;
      gap: 30px;
    }
    .column {
      max-width: 100%;
    }
    .image-block img {
      max-height: 140px;
    }
  }
  
  .upload-label {
  background: #7CFC00;
  color: #000;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em; /* make this bigger or smaller as you like */
  display: inline-block; /* ensures padding and size work nicely */
  text-align: center;
}

.qv-link {
    display: inline-block;             /* allow transform */
    color: #ffffff;
    text-decoration: underline;
    transition: transform 0.3s ease, color 0.3s ease;
    transform-origin: left center;     /* anchor to left side */
}

.qv-link:hover {
    color: lawngreen;
    transform: scale(1.2);             /* 50% larger */
}

.label-inverted {
  color: #98fb98; /* pale green */
}

.label-reversed {
  color: yellow;
}

.label-invrev {
  color: #ffc0cb; /* pink */
}

}

/* ==========================================================
   WATERMARK VIEWER — OPENING INSTRUCTION CARD
   Complete replacement for previously added welcome-card CSS
   ========================================================== */

/* Reliable JavaScript-controlled hiding */
.is-hidden{
    display:none !important;
}

/* Ensure the results become visible when the hidden class is removed */
.viewer-columns:not(.is-hidden){
    display:flex !important;
}

/* Main central instruction card */
.viewer-start-panel{
    position:relative;

    width:min(720px, calc(100% - 60px));

    margin:52px auto 24px;
    padding:36px 46px 32px;

    box-sizing:border-box;

    background:
        linear-gradient(
            145deg,
            #303231 0%,
            #272828 58%,
            #222323 100%
        );

    color:#F6F3E8;

    text-align:center;

    border:1px solid rgba(213,192,138,0.78);
    border-radius:16px;

    box-shadow:
        0 18px 48px rgba(0,0,0,0.38),
        inset 0 1px 0 rgba(255,255,255,0.06),
        inset 0 0 32px rgba(0,0,0,0.16);
}

/* Subtle inner frame */
.viewer-start-panel::before{
    content:"";

    position:absolute;
    inset:10px;

    border:1px solid rgba(213,192,138,0.22);
    border-radius:10px;

    pointer-events:none;
}

/* Small decorative diamond */
.viewer-start-panel::after{
    content:"◆";

    position:absolute;
    top:-13px;
    left:50%;

    transform:translateX(-50%);

    padding:0 14px;

    background:#1E1E1E;
    color:#D5C08A;

    font-size:18px;
    line-height:24px;
}

/* Left-pointing arrow */
.viewer-start-icon{
    width:70px;
    height:60px;

    margin:0 auto 11px;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#7CFC00;

    font-family:Arial, Helvetica, sans-serif;
    font-size:62px;
    line-height:1;
    font-weight:700;

    text-shadow:
        0 0 14px rgba(124,252,0,0.20);

    animation:wmkStartArrow 1.5s ease-in-out infinite;
}

/* Heading */
.viewer-start-panel h2{
    margin:0 0 17px;

    color:#FFFFFF;

    font-family:Georgia, "Times New Roman", serif;
    font-size:31px;
    line-height:1.2;
    font-weight:normal;

    letter-spacing:0.015em;
}

/* Instruction text */
.viewer-start-panel p{
    max-width:620px;

    margin:0 auto;

    color:#E6E4DD;

    font-family:Arial, Helvetica, sans-serif;
    font-size:18px;
    line-height:1.52;
    font-weight:400;
}

.viewer-start-panel .viewer-start-main-instruction{
    color:#FFFFFF;
    font-weight:700;
}

/* OR divider */
.viewer-start-divider{
    width:100%;

    margin:21px auto;

    display:flex;
    align-items:center;
    justify-content:center;

    gap:16px;
}

.viewer-start-divider::before,
.viewer-start-divider::after{
    content:"";

    flex:1 1 auto;

    height:1px;

    background:
        linear-gradient(
            to right,
            transparent,
            rgba(213,192,138,0.58),
            transparent
        );
}

.viewer-start-divider span{
    flex:0 0 auto;

    color:#7CFC00;

    font-family:Arial, Helvetica, sans-serif;
    font-size:14px;
    line-height:1;
    font-weight:800;

    letter-spacing:0.14em;
    text-transform:uppercase;
}

/* Smaller explanation beneath the main instructions */
.viewer-start-panel .viewer-start-note{
    max-width:650px;

    margin:24px auto 0;
    padding-top:20px;

    color:#BFC0BC;

    border-top:1px solid rgba(213,192,138,0.25);

    font-size:14px;
    line-height:1.55;
    font-weight:400;
}

/* ==========================================================
   UPLOAD AREA BELOW THE CARD
   ========================================================== */

.upload-wrapper{
    width:100%;

    margin:0 auto 35px;

    flex:0 0 auto;

    text-align:center;
}

/*
   These rules deliberately override the earlier upload-label
   definitions in the existing stylesheet.
*/
.upload-wrapper .upload-label{
    min-width:275px;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:15px 28px;

    box-sizing:border-box;

    background:
        linear-gradient(
            180deg,
            #98FF36 0%,
            #7CFC00 52%,
            #60CD00 100%
        );

    color:#111111;

    border:1px solid #B8FF76;
    border-radius:9px;

    font-family:Arial, Helvetica, sans-serif;
    font-size:21px;
    line-height:1;
    font-weight:800;

    text-align:center;
    text-decoration:none;

    cursor:pointer;

    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.38),
        0 7px 18px rgba(0,0,0,0.32),
        0 0 18px rgba(124,252,0,0.10);

    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        filter 0.16s ease;
}

.upload-wrapper .upload-label:hover{
    filter:brightness(1.08);

    transform:translateY(-2px);

    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.42),
        0 10px 24px rgba(0,0,0,0.38),
        0 0 22px rgba(124,252,0,0.18);
}

.upload-wrapper .upload-label:active{
    transform:translateY(1px);
}

.upload-wrapper .upload-help{
    margin-top:11px;

    color:#AEB1AE;

    font-family:Arial, Helvetica, sans-serif;
    font-size:13px;
    line-height:1.35;
}

/* Keyboard focus */
.thumb-block:focus-visible,
.upload-wrapper .upload-label:focus-visible{
    outline:3px solid #7CFC00;
    outline-offset:3px;
}

/* Gentle arrow movement */
@keyframes wmkStartArrow{

    0%,
    100%{
        transform:translateX(0);
    }

    50%{
        transform:translateX(-10px);
    }
}

/* ==========================================================
   SMALLER PC / TABLET LANDSCAPE
   ========================================================== */

@media (max-width:1400px){

    .viewer-start-panel{
        width:min(620px, calc(100% - 40px));

        margin-top:30px;
        padding:28px 34px 25px;
    }

    .viewer-start-icon{
        width:54px;
        height:48px;

        margin-bottom:8px;

        font-size:49px;
    }

    .viewer-start-panel h2{
        margin-bottom:14px;

        font-size:25px;
    }

    .viewer-start-panel p{
        font-size:15px;
        line-height:1.48;
    }

    .viewer-start-divider{
        margin:17px auto;
    }

    .viewer-start-panel .viewer-start-note{
        margin-top:19px;
        padding-top:17px;

        font-size:12px;
    }

    .upload-wrapper .upload-label{
        min-width:235px;

        padding:12px 22px;

        font-size:18px;
    }

    .upload-wrapper .upload-help{
        font-size:12px;
    }
}

/* Reduced-motion accessibility */
@media (prefers-reduced-motion:reduce){

    .viewer-start-icon{
        animation:none;
    }

    .upload-wrapper .upload-label{
        transition:none;
    }
}

/* ==========================================================
   COMPACT BANNER WHEN WATERMARK RESULTS ARE DISPLAYED
   ========================================================== */

/* Never allow flexbox to squash and crop the banner */
.main .qv-page-banner{
    flex-shrink:0;
}

/*
   When the results panel is visible, reduce the banner and all
   of its contents proportionally rather than cropping them.
*/
.main:has(.viewer-columns:not(.is-hidden)) .qv-page-banner{
    margin-top:8px;
    margin-bottom:12px;

    padding:8px 18px;

    gap:18px;
}

/* Smaller logo */
.main:has(.viewer-columns:not(.is-hidden))
.qv-page-banner__logo-link img.qv-page-banner__logo{
    width:110px;
    height:110px;
}

/* Narrower divider */
.main:has(.viewer-columns:not(.is-hidden))
.qv-page-banner .qv-page-banner__divider{
    flex-basis:14px;
    width:14px;
}

/* Smaller title */
.main:has(.viewer-columns:not(.is-hidden))
#qvBannerTitle{
    font-size:clamp(25px, 2.5vw, 38px) !important;
}

/* Slightly tighter ornament spacing */
.main:has(.viewer-columns:not(.is-hidden))
.qv-page-banner .qv-page-banner__ornament{
    margin:7px 0;
}

/* Smaller explanatory text */
.main:has(.viewer-columns:not(.is-hidden))
.qv-page-banner .qv-page-banner__text{
    font-size:clamp(14px, 1.1vw, 17px) !important;
    line-height:1.25;
}