@font-face {
    font-family: 'LINE Seed Sans TH';
    src: url('../fonts/LINESeedSansTH/LINESeedSansTH_W_Rg.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'LINE Seed Sans TH';
    src: url('../fonts/LINESeedSansTH/LINESeedSansTH_W_Bd.woff2') format('woff2');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'LINE Seed Sans TH';
    src: url('../fonts/LINESeedSansTH/LINESeedSansTH_W_XBd.woff2') format('woff2');
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    --bs-body-color: #4b5563;
    --bs-body-bg: #e5e7eb;
    --swal2-color: #4b5563;
    --swal2-confirm-button-background-color: #22c55e;
    font-family: "LINE Seed Sans TH", "Sukhuvit Set", var(--bs-font-sans-serif);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    background-color: #e5e7eb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23d1d5db' fill-opacity='0.25'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v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V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

img,
picture,
video,
canvas {
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    line-height: 1.4;
    overflow-wrap: break-word;
}

p {
    overflow-wrap: break-word;
}

b,
strong {
    font-weight: 700;
}

.fs-12 {
    font-size: 12px;
}

.fs-14 {
    font-size: 14px;
}

.fw-800 {
    font-weight: 800;
}

.container {
    --bs-gutter-x: 3rem;
    max-width: 448px;
}

.btn-primary {
    background: #DC2626;
    background: linear-gradient(135deg, rgba(220, 38, 38, 1) 0%, rgba(153, 27, 27, 1) 100%);
    border: none;
    border-radius: 99px;
}

.btn-primary:hover {
    background: #991B1B;
    background: linear-gradient(135deg, rgba(153, 27, 27, 1) 0%, rgba(220, 38, 38, 1) 100%);
}

/* HEADER */
.site-header {
    padding-top: 24px;
    text-align: center;
}

.header-logo {
    display: inline-block;
    width: 80px;
    height: auto;
    max-width: 100%;
}

.w-title {
    font-size: 24px;
    font-weight: 800;
    background: #DC2626;
    background: linear-gradient(180deg, rgba(220, 38, 38, 1) 0%, rgba(153, 27, 27, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* CONTENT */
.site-content {
    margin-top: auto;
    margin-bottom: auto;
    padding: 60px 0;
}

.site-content h2 {
    font-size: 24px;
    font-weight: 800;
}

.site-content h3 {
    font-size: 20px;
    font-weight: 800;
}

/* STEP 1 */
.btn-file {
    position: relative;
    overflow: hidden;
}

.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
}

/* STEP 2 */
.adjust-panel {
    display: flex;
    gap: 12px;
    width: 100%;
}

.btn-light {
    color: var(--bs-body-color);
}

/* STEP 3 */
#img-canvas {
    width: 100%;
    height: auto;
    position: relative;
    line-height: 1;
    border-radius: 0.5rem;
    overflow: hidden;
}

#loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.6;
    color: #fff;
    font-size: 2em;
    text-align: center;
    padding-top: 45%;
    display: none;
}

#img-result {
    position: relative;
    line-height: 1;
    padding: 12px;
    border: 3px solid #9ca3af;
    border-radius: 1rem;
    overflow: hidden;
    background-color: #e5e7eb;
}

.tag-team {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* FOOTER */
.site-footer {
    color: #6b7280;
    text-align: center;
    padding-bottom: 24px;
}

.footer-logo {
    display: inline-block;
    width: 200px;
    height: auto;
    max-width: 100%;
}

.w-footer {
    font-weight: 700;
    background: #DC2626;
    background: linear-gradient(180deg, rgba(220, 38, 38, 1) 0%, rgba(153, 27, 27, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Swal2 */
.swal2-actions button {
    font-weight: 700;
    min-width: 120px;
}