
body {
    max-width: 100%;
}

@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@700&display=swap');

@font-face {
    font-family: "Baskerville-old-face";
    src: url("/verify24/assests/fonts/BASKVILL.ttf") format("truetype");
}

.baskvile {
    font-family: "Baskerville-old-face", sans-serif;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: screen;
}
                        
#name-element {
    font-size: 62.0px;
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-weight: 700;
}

.header {
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 2rem;
}

.hidden {
    display: none;
}

@media (max-width: 767px) {
    .header {
        font-size: 0.8rem;
        line-height: 1.2rem;
    }
}

.transform img {
    width: 100%;
    max-width: 250.0px;
    height: auto;
}

.image-container img,
canvas {
    width: 100%;
    max-width: 250.0px;
    height: auto;
    display: block;
}

/* Keep certificate SVG within the viewport to avoid scrolling */
svg#certificate {
    max-height: 70vh; /* reduce from previous to fit better */
    max-width: 95vw;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Initially hide certificate elements until valid data is loaded */
#cert-header,
#certificate {
    display: none !important;
}

/* Show certificate elements when they don't have the hidden class */
#cert-header:not(.hidden),
#certificate:not(.hidden) {
    display: block !important;
}
