:root {
  --bg-primary: #ffffff;
  --bg-card: #ffffff;
  --border-card: #1f2937;
  --text-primary: #09090b;
  --text-secondary: #52525b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-primary);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Certificate container */
.certificate-container {
  width: calc(100% - 14px);
  margin: 15px auto 20px auto;
  border: 2px solid var(--border-card);
  background-color: var(--bg-card);
  line-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* Desktop layout: exact 70.8% width ratio matching reference screenshot, causing natural height overflow and right vertical scrollbar */
@media (min-width: 768px) {
  .certificate-container {
    width: 70.8%;
    margin: 23px auto 30px auto;
  }
}

.certificate-image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
