#qrcodify .tool-note {
    width: 80%;
    max-width: 1000px;

    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;

    margin-bottom: 15px;
    text-align: left;
}

/* Panel (matches the framed-card pattern used by .project / .contact-form) */
#qrcodify .qr-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;

    width: 80%;
    max-width: 1000px;
    min-height: 190px;

    margin-top: 15px;
    margin-bottom: 15px;

    padding: 20px;

    border: 11px solid transparent; /* Provide space for the border */
    background-color: transparent;
    box-sizing: border-box;

    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.35);

    /* Create a boundary for blending so it doesn't affect the main page background */
    position: relative;
    isolation: isolate;
}

/* Layer the border image and a tinted multiply mask! Same 96px scale as the
   rest of the site's panels - min-height above keeps the corners from
   overlapping since this panel is otherwise much shorter. */
#qrcodify .qr-panel::before, #qrcodify .qr-panel::after {
    content: "";
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border: 96px solid transparent;
    pointer-events: none;
}

#qrcodify .qr-panel::before {
    z-index: -2;
    border-image: url('../images/border.png') 127 fill;
}

#qrcodify .qr-panel::after {
    z-index: -1;
    background-color: rgb(34, 35, 37);
    mix-blend-mode: multiply;
    -webkit-mask-box-image: url('../images/border.png') 127 fill;
}

/* Form */
#qrcodify input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 20px;
    background-color: rgb(0, 0, 0, 0.2);
    color: rgb(255, 255, 255);
}

#qrcodify input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* Result */
#qrcodify .qr-result {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

#qrcodify .qr-result[hidden] {
    display: none;
}

#qrcodify .qr-swatch {
    background-color: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.35);
    line-height: 0;
}

#qrcodify #qrCanvas {
    display: block;
    width: 220px;
    height: 220px;
}

#qrcodify .target-url {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    word-break: break-all;
}

/* Download buttons (matches .project .download) */
#qrcodify .qr-downloads {
    display: inline-flex;
    gap: 20px;
    flex-wrap: wrap;
}

#qrcodify .download {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-size: 22px;
    color: white;

    padding: 5px 20px;
    padding-right: 15px;

    border-radius: 10px;

    text-decoration: none;
    background-color: rgb(87, 114, 172);

    user-select: none;

    white-space: nowrap;
    overflow: hidden;

    transition: background-color 0.3s ease;
}

#qrcodify .download:hover {
    background-color: rgb(87, 114, 172, 0.65);
}

/* Media Query for Larger Screens */
@media ((min-width: 768px) and (min-aspect-ratio: 7/10)) {
    #qrcodify .tool-note {
        width: 60%;
    }

    #qrcodify .qr-panel {
        width: 60%;
        max-width: 1000px;
    }
}
