@font-face {
  font-family: "TimezoneMono";
  src: url("../Font/timezone-mono.otf") format("opentype");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-image: url("../Images/background.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
}

.page-frame {
  width: calc(100vw - 80px);
  min-height: calc(100vh - 80px);
  margin: 40px;
  padding: 24px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.top-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-family: "TimezoneMono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.top-bar a,
.top-bar button {
  color: white;
  background: transparent;
  border: none;
  text-decoration: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.top-bar h1 {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
}

.top-bar button {
  justify-self: end;
}

.lab-layout {
  height: calc(100vh - 160px);
  margin-top: 28px;
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: 24px;
}

.left-panel,
.right-panel,
.canvas-panel {
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.left-panel {
  padding: 24px;
}

.left-panel h2 {
  margin: 0 0 24px;
  font-family: "TimezoneMono", monospace;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

.upload-box {
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "TimezoneMono", monospace;
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.upload-box:hover {
  background: white;
  color: black;
}

.upload-box input {
  display: none;
}

.panel-note {
  margin-top: 24px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
}

.canvas-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  overflow: hidden;
}

canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: black;
}

.right-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.control {
  display: grid;
  gap: 4px;
}

.control label {
  font-family: "TimezoneMono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

input[type="range"] {
  width: 100%;
  accent-color: white;
  cursor: pointer;
}

.checkbox-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkbox-control input {
  width: 18px;
  height: 18px;
}

#reset-button,
#download-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: white;
  padding: 14px;
  font-family: "TimezoneMono", monospace;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

#download-button {
  font-size: 17px;
  line-height: 1.2;
}

#reset-button:hover,
#download-button:hover {
  background: white;
  color: black;
}

#export-button {
  background: none;
  border: none;
  color: white;
  font-family: "TimezoneMono", monospace;
  font-size: 12px;
  cursor: pointer;

  padding: 0;
  margin: 0;

  pointer-events: auto;
}

#export-button:hover {
  opacity: 0.6;
}

.sample-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

.sample-card {
  width: 100%;
  aspect-ratio: 3.4 / 3;

  border: 1px solid white;
  overflow: hidden;
  cursor: pointer;
}

.sample-image {
  width: 100%;
  height: 100%;

  object-fit: cover;
  display: block;
}

.sample-card:hover img {
  filter: invert(1);
  transform: scale(1.02);
}