@import url("button.ccf8aa7031fb.css");

.certificate-box {
    width: 100%;
    height: var(--paperH);
    max-width: 1030px;
    overflow: hidden;
    position: relative;
}

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

.certificate-box .paper {
    transform: scale(var(--scale));
    transform-origin: 0% 0;
    width: 1030px;
    height: 700px;
    aspect-ratio: 1030/700;
    position: relative;
}

/* width小於300不顯示證書 */
/* Why subtract .02px? Browsers don’t currently support range context queries, so we work around the limitations of min- and max- prefixes and viewports with fractional widths (which can occur under certain conditions on high-dpi devices, for instance) by using values with higher precision. */
@media (max-width: 299.98px) {
    .certificate-box, .certificate-banner {
        display: none;
    }
}

.certificate-box .paper *,
.certificate-infos * {
    font-family: "Noto Sans TC", sans-serif !important;
    font-style: normal;
}

.certificate-box .paper-img {
    height: var(--paperH);
    max-width: 1030px;
    position: absolute;
    top: 0;
    z-index: -1;
}

.certificate-box .paper .content>p,
.certificate-infos {
    font-weight: 400;
    font-size: 21px;
}

.certificate-box .paper .school-zh{
    position: absolute;
    left: 293px;
    width: auto;
    height: 56px;
}

.certificate-box .paper .school-zh {
    top: 105px;
}

.certificate-box .paper .content {
    position: absolute;
    top: 185px;
    left: 118px;
    width: 506px;
    height: 280px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.certificate-box .paper .content p {
    line-height: 1.2em;
    margin-bottom: 10px;
}

.certificate-box .paper .content p.name,
.certificate-box .paper .content p.class-name {
    font-family: "Noto Sans TC", sans-serif !important;
    font-style: normal;
    font-size: 32px !important;
    font-weight: 700 !important;
    color: rgb(116, 40, 45);
    word-break: break-word;
}

.certificate-box .paper .content p.nid {
    font-family: "Noto Sans TC", sans-serif !important;
    font-style: normal;
    font-size: 20px !important;
    color: rgb(116, 40, 45);
    word-break: break-word;
}

.certificate-box .bottom {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    bottom: 60px;
    min-width: 70%;
    min-height: 200px;
}

.certificate-box .qrcode-container {
    min-width: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.certificate-box .paper .signs {
    display: flex;
    align-items: flex-end;
    padding-right: 26px;
}

.certificate-box .paper .signs .sign {
    min-width: 150px;
    margin: 0.5%;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.certificate-box .paper .signs .sign .sign-img-container {
    display: flex;
    align-items: end;
    justify-content: center;
    max-height: 50px;
}

.certificate-box .paper .signs .sign .sign-img {
    max-height: 50px;
    vertical-align: middle;
}

.certificate-box .paper .signs .sign .sign-detail {
    border-top: 1px solid #000;
    font-weight: 900;
    font-size: 12px;
    text-align: center;
    min-height: 95px;
}

.certificate-box .paper .issue-date-normal-zh {
    position: absolute;
    height: 17px;
    font-size: 12px;
    color: #fff;
}

.certificate-box .paper .issue-date-normal-zh {
    top: 645px;
    left: 860px;
    width: 130px;
}

.certificate-box .paper .verified-id-zh a {
    font-size: 12px;
    height: 17px;
    text-decoration: none;
    color: rgb(116, 40, 45);
}

.certificate-infos {
    width: 100%;
    height: var(--paperH);
    max-width: 1030px;
    overflow: hidden;
}

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

.certificate-infos .paper-addition-info {
    transform: scale(var(--scale));
    transform-origin: 0% 0;
    width: 1030px;
    height: 700px;
    aspect-ratio: 1030/700;
    background-color: gray;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.certificate-infos .paper-addition-info .addition-info-content {
    position: absolute;
    top: 194px;
    left: 91px;
    width: 840px;
    height: 445px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.certificate-infos .paper-addition-info .addition-info-content p {
    font-size: 20px;
    line-height: 1.5em;
}

.read-to-download {
    margin-top: 10px;
}