html,
body {
  background-color: black;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

/* Use grid instead of flex to ensure full height */
body {
  display: grid;
  place-items: center;
}

/* Default "desktop" look — phone frame */
.frame-container {
  width: min(430px, 100vw); /* scales down gracefully */
  height: min(932px, 100vh);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  background-color: black;
}

/* Always make iframe fill its parent fully */
.app-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* On mobile: fullscreen, no borders or centering */
@media (max-width: 768px) {
  body {
    display: block;
  }

  .frame-container {
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
  }
}
