@font-face {
  font-family: 'Figtree';
  src: url('./fonts/Figtree-VariableFont_wght.ttf') format('truetype'); /* Or other formats like woff2 */
  font-weight: 400 600; /* Defines the weight range */
  font-style: normal; /* Or italic, etc. */
}

.nooked-widget {
  display: flex;
  font-family: 'Figtree';
  font-weight: 400;
  overflow: hidden;
  height: 100% !important;
  position: relative !important;
  /* aspect-ratio: 16/9;     */

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.nooked-widget button {
  border: 1px solid rgba(253, 250, 246, 0.15);
  background: rgba(86, 86, 86, 0.20);
  backdrop-filter: blur(10.5px);
  border-radius: 6px;
  font-family: 'Figtree';
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: background 100ms ease-in-out;
}

.nooked-widget button:hover {
  background: rgba(141, 141, 141, 0.3);
}

.nooked-widget .video-container {
  background: #000;
  display: grid;          /* new */
  width: 100%;
  overflow: hidden;
}

.carousel-video {
  pointer-events: none;
  grid-area: 1 / 1;       /* place every video in the same grid cell */
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 800ms ease-in-out;
}

/* only the “active” one shows */
.carousel-video.visible {
  opacity: 1;
  z-index: 1;
}


.nooked-widget .overlay {
  position: absolute;
  bottom: 0;
  top: 0; 
  left: 0;
  right: 0;
  z-index: 9999;
}

.nooked-widget .overlay .overlay-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  top: 0;
  width: 30vw;
  /* background: linear-gradient(90deg, rgba(48, 32, 8, 0.5) 0%, rgba(48, 32, 8, 0) 100%); */
  pointer-events: none; /* allows clicks to pass through */
}

.nooked-widget .overlay .nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  position: absolute;
  left: 0;
  top: 0;
  padding: 24px;
}

.nooked-widget .overlay .watermark {
  display: block;
  background-image: url("./assets/watermark.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  width: 122px;
  height: 52px;
  margin-bottom: 32px;
  pointer-events: none;
}

.nooked-widget .overlay .nav button {
  padding: 12px 20px;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%; /* 24px */
  
}
.nooked-widget .overlay .nav button.active {
  background: #FDFAF6;
  color: #1F1302;
  border-color: transparent;
  cursor: default;
}

.nooked-widget .overlay .toolbar {
  display: flex;
  gap: 8px;
  flex-direction: row;
  position: absolute;
  bottom: 24px;
  left: 24px;
}


.nooked-widget .overlay .toolbar button {
  background-repeat: no-repeat;
  background-position: center center;
  width: 40px;
  height: 40px;
  padding: 4px;
}

.nooked-widget .overlay .toolbar .fullscreen-toggle {
  background-image: url("./assets/icons/fullscreen-off.svg");
}

.nooked-widget .overlay .toolbar .fullscreen-toggle.fullscreen-on {
  background-image: url("./assets/icons/fullscreen-on.svg");
}

.nooked-widget .overlay .toolbar .info-toggle {
  background-image: url("./assets/icons/information-circle.svg");
}

.nooked-widget .overlay .toolbar .audio-toggle {
  background-image: url("./assets/icons/audio-muted.svg");
}

.nooked-widget .overlay .toolbar .audio-toggle.audio-on {
  background-image: url("./assets/icons/audio-on.svg");
}

@media (max-width: 600px) {
  /* .nooked-widget {
    aspect-ratio: 9 / 16;      /* portrait */
  } */
  /* Flip to portrait aspect and ensure it fills/crops */
  /* .nooked-widget .video-container {

    width: 100%;               /* full width of parent */
    /* height will be derived from aspect-ratio */
  } */
  
  /* Still cover the container and crop as needed */
  .nooked-widget .video-container .carousel-video {
    object-fit: cover;
  }
}


/* MODAL */

/* backdrop styling (darkens the video behind) */
.nooked-widget dialog::backdrop {
  /* background: rgba(0, 0, 0, 0.5); */
}

/* the dialog itself */
.nooked-widget dialog.nooked-modal {
  border: 1px solid rgba(253, 250, 246, 0.15);
  background: rgb(39 38 28 / 75%);
  backdrop-filter: blur(10.5px);
  border-radius: 6px;
  padding: 40px 24px;
  max-width: 200px;
  min-width: 20%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* the inner content & close button */
.nooked-widget .modal-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  color: #fff;
  font-size: 14px;
  text-align: center;
}
.nooked-widget .modal-content p {
  margin: 0;
  line-height: 20px;
}

.nooked-widget .modal-content .modal-logo {
  display: block;
  border-radius: 2px;
  width: 30%;
  margin: auto;
}

.nooked-widget .modal-content a {
  color:white
}

.nooked-widget .modal-close {
  align-self: center;
  padding: 8px 16px;
  background: #4b4444; 
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer; 
}