@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Kanit', sans-serif;
    background: #121212;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: url('bb1.png') no-repeat center center / cover;
    filter: brightness(0.3) blur(4px);
}

h2, h3 {
    color: #ff6b6b;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

form, .result {
    background-color: rgba(30, 30, 30, 0.9);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.7);
    width: 100%;
    max-width: 360px;
    text-align: center;
    margin-top: 20px;
    box-sizing: border-box;
}

input[type=file] {
    display: none;
}

label.custom-file-upload {
    display: inline-block;
    padding: 15px;
    background: linear-gradient(135deg, #ff6b6b, #c0392b);
    color: #fff;
    cursor: pointer;
    border-radius: 10px;
    width: 100%;
    margin-bottom: 15px;
    transition: 0.3s ease;
    font-weight: 500;
    font-family: 'Kanit', sans-serif;
}

label.custom-file-upload:hover {
    background: linear-gradient(135deg, #c0392b, #ff6b6b);
}

button {
    background: linear-gradient(135deg, #ff4e50, #b33939);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(255, 78, 80, 0.3);
    font-family: 'Kanit', sans-serif;
}

button:hover {
    background: linear-gradient(135deg, #b33939, #ff4e50);
    transform: scale(1.03);
}

img.preview {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    margin-top: 15px;
    max-width: 100%;
}

a {
    color: #ff6b6b;
    text-decoration: none;
}

a:hover {
    color: #ffffff;
}

#drop-zone {
    border: 2px dashed #ff6b6b;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    background-color: rgba(20, 20, 20, 0.7);
}

#drop-zone.drag-over {
    background-color: rgba(255,107,107,0.05);
    border-color: #ff6b6b;
}

#drop-zone p {
    margin: 0;
    font-size: 18px;
    color: #ff8787;
}

.upload-block {
    margin-bottom: 25px;
}

.url-link {
    display: flex;
    margin-top: 10px;
    gap: 10px;
    flex-direction: row;
}

.url-link input {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    border: none;
    background-color: #292929;
    color: #f8d7da;
    font-size: 14px;
}

.url-link button {
    background-color: #ff6b6b;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Kanit', sans-serif;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 0 6px rgba(255,107,107,0.4);
}

.url-link button:hover {
    background-color: #e74c3c;
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .url-link {
        flex-direction: column;
    }

    .url-link input, .url-link button {
        width: 100%;
    }

    label.custom-file-upload, button {
        font-size: 15px;
        padding: 12px;
    }

    h2, h3 {
        font-size: 20px;
    }
}