@font-face {
  font-family: 'EmberModernDisplayStd';
  src: url('./fonts/EmberModernDisplayStd-Regular.ttf') format('trueType');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'EmberModernDisplayStd';
  src: url('./fonts/EmberModernDisplayStd-Bold.ttf') format('trueType');
  font-weight: 400;
  font-style: normal
}

@font-face {
  font-family: 'AmazonEmberMono';
  src: url('./fonts/AmazonEmberMono_Rg.ttf') format('trueType');
  font-weight: 200;
  font-style: normal;
}

:root{
  --left-col-width: 828px;     
  --fade-ms: 300ms;
  --bg-dim: rgba(0,0,0,0.55);
  --text: #ffffff;
  --muted: #b7b7b7;
}

/*scale wrap to fit fhd screen*/

.scale-wrap {
  transform-origin: top left;
  /* 1080 is 0.5 of 2160, so scale = 0.5 */
  transform: scale(0.5);
  width: 3840px;   /* your original design width */
  height: 2160px;  /* your original design height */
}

body {
  overflow: hidden;
  background: black;
}

* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  color: var(--text);
  font-family: 'EmberModernDisplayStd';
  overflow: hidden; /* kiosk feel */
}

/* Remove blue click highlight / focus ring */
*:focus {
  outline: none !important;
}

/* Prevent Chrome mobile tap highlight */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Fixed background image — replace url() */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background-image: url("assets/background.jpg"); 
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* keep it fixed */
  z-index: -1;
  transform: translateZ(0);
}

.app {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: stretch;
  opacity: 0;
  animation: fadeIn var(--fade-ms) ease forwards;
}

.left {
  width: 828px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.left .logo {
  position: fixed;
  top: 241px;
  left: -53px;
  width: 1018px;
  height: 1018px;
  object-fit: contain;
}

.left-copy {
  position: fixed;
  top: 1115px;
  left: 116px;
}

.left h1 {
  margin: 0;
  font-size: 96px;
  line-height: 1.1;
  position: relative;
  
}

.orange-h1 {
  color: #ff6200;
}

.left p {
  margin-top: 85px;
  color: var(--muted);
  font-size: 30px;
  font-family: 'AmazonEmberMono';
}

.right {
  width: 3012px;
  padding-top: 241px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  translate: -50px ;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  overflow: auto;
  padding-right: 30px;
  -webkit-overflow-scrolling: touch;
}

/* Card is just the thumbnail image */
.card {
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity var(--fade-ms) ease;
  opacity: 0;
  animation: fadeIn var(--fade-ms) ease forwards;
}

.card:active {
  transform: scale(95%);
}


.thumb {
  width: 689px;
  height: 388px;
  margin-left: 43px;
  margin-bottom: 43px;
}

/* Modal (big player) */
.modalWrap {
  position: fixed;
  inset: 0;
  display: none;             /* toggled to flex */
  align-items: center;
  justify-content: center;
  background: var(--bg-dim);
  padding: 3vh 3vw;
  z-index: 10;
  animation: fadeIn var(--fade-ms) ease;
}
.modalWrap.active { display: flex; }

.modal {
  position: relative;
  width: 3610px;
  height: 2031px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  background: rgba(0,0,0,0.1);
  animation: growIn var(--fade-ms) ease;
  border: 7px solid white;
  border-radius: 80px;
}

video.viewer {
  width: 3610px;
  height: auto;
  display: block;
  object-fit: contain;
  background: #000;
}

.closeBtn {
  position: absolute;
  top: 60px;
  right: 60px;
  width: 75px;
  height: 75px;
  border-radius: 999px;
  border: 5px solid #161D26;
  background: #F5F3EF;
  color: #ff6200;
  font-size: 75px;
  line-height: .909;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: background 120ms ease, transform 120ms ease;
}
.closeBtn:hover { background: rgba(0,0,0,0.7); transform: scale(1.02); }
.closeBtn:active { transform: scale(0.98); }

/* Idle CTA overlay */
.idleCTA {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: clamp(14px, 1vw, 20px);
  display: none;
}
.modal.idle .idleCTA { display: inline-block; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes growIn {
  from { transform: scale(0.985); }
  to   { transform: scale(1); }
}

/* Optional scrollbar styling */
.grid::-webkit-scrollbar { height: 12px; width: 12px; }
.grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 8px; }
