@font-face {
    font-family: 'Srinakharinwirot';
    src: url('../fonts/srinakharinwirot/srinakharinwirot-regular.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    --bs-body-color: #4b5563;
    --bs-body-bg: #fef2f2;
    --swal2-color: #4b5563;
    --swal2-confirm-button-background-color: #22c55e;
    font-family: "Srinakharinwirot", "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: #fef2f2;
    background: linear-gradient(135deg,rgba(254, 242, 242, 1) 0%, rgba(254, 226, 226, 1) 100%);
    font-variation-settings: "wdth" 87.5;
}

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; */
    font-weight: 400;
}

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

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

.fw-800 {
    /* font-weight: 800; */
    font-weight: 400;
}

.fw-bold {
    font-weight: 400 !important;
}

.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: 8px;
}

.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; */
    font-weight: 400;
    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; */
    font-weight: 400;
}

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

/* 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: 4px;
    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: 8px;
    border: 3px solid #9ca3af;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bs-body-bg);
}

.tag-team {
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    grid-template-columns: 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; */
    font-weight: 400;
    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; */
    font-weight: 400;
    min-width: 120px;
}