
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: #29232c;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(255, 177, 221, .45),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(193, 181, 255, .4),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #fff7fc 0%,
            #f8f6ff 50%,
            #fff8f3 100%
        );

    padding: 24px 16px 50px;
}


/* =========================================================
   APP
========================================================= */

.meme-app {
    width: 100%;
    max-width: 760px;
    margin: 50px auto auto auto;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    text-align: center;
    margin-bottom: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin-bottom: 12px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #ff82c5,
            #a87cff
        );

    box-shadow:
        0 12px 30px
        rgba(203, 91, 176, .25);

    font-size: 29px;
}

.header h1 {
    margin: 0;

    font-size: clamp(28px, 6vw, 40px);

    line-height: 1.3;

    letter-spacing: -1.2px;

    font-weight: 800;

    background:
        linear-gradient(
            90deg,
            #df4fa8,
            #8e69df
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.header p {
    margin: 10px auto 0;

    max-width: 500px;

    color: #817682;

    font-size: 15px;

    line-height: 1.5;
}


/* =========================================================
   CARD
========================================================= */

.card {
    background:
        rgba(255, 255, 255, .88);

    border:
        1px solid
        rgba(255, 255, 255, .9);

    border-radius: 24px;

    padding: 18px;

    box-shadow:
        0 20px 60px
        rgba(102, 65, 110, .12),

        0 3px 10px
        rgba(100, 70, 100, .05);

    backdrop-filter: blur(15px);
}


/* =========================================================
   UPLOAD
========================================================= */

.upload-box {
    position: relative;

    width: 100%;

    min-height: 145px;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;

    border:
        2px dashed
        #e7cce1;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #fff8fd,
            #faf7ff
        );

    cursor: pointer;

    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.upload-box:hover {
    border-color: #df72b4;

    background:
        linear-gradient(
            135deg,
            #fff2fa,
            #f7f2ff
        );
}

.upload-box:active {
    transform: scale(.99);
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 34px;

    display: block;

    margin-bottom: 7px;
}

.upload-title {
    display: block;

    color: #3b303b;

    font-size: 16px;

    font-weight: 750;
}

.upload-subtitle {
    display: block;

    margin-top: 5px;

    color: #9a8e9a;

    font-size: 13px;
}

.upload-input {
    display: none;
}


/* =========================================================
   PREVIEW
========================================================= */

.preview-section {
    display: none;

    margin-top: 18px;

    animation:
        previewIn .35s ease;
}

@keyframes previewIn {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preview-label {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 9px;

    color: #806e7d;

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .08em;
}

.canvas-wrap {
    width: 100%;

    overflow: hidden;

    border-radius: 18px;

    background: #eee;

    box-shadow:
        0 12px 30px
        rgba(60, 40, 65, .12);
}

canvas {
    display: block;

    width: 100%;

    height: auto;
}


/* =========================================================
   EDITOR CONTROLS
========================================================= */

.editor-controls {
    margin-top: 18px;
}

.control-label {
    display: block;

    margin:
        0 0 7px 4px;

    color: #756675;

    font-size: 13px;

    font-weight: 700;
}


/* =========================================================
   TEXT ROW
========================================================= */

.text-row {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 10px;
}

.text-input-wrap {
    position: relative;

    flex: 1;

    min-width: 0;
}

.text-input {
    width: 100%;

    height: 50px;

    padding:
        0 15px;

    border:
        1px solid
        #e5dce5;

    border-radius: 14px;

    outline: none;

    background: #fff;

    color: #322932;

    font-family: inherit;

    font-size: 16px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.text-input::placeholder {
    color: #b5aab5;
}

.text-input:focus {
    border-color: #d96caf;

    box-shadow:
        0 0 0 4px
        rgba(217, 108, 175, .10);
}


/* =========================================================
   SIZE CONTROLS
========================================================= */

.size-controls {
    display: flex;

    gap: 5px;
}

.size-button {
    flex-shrink: 0;

    width: 45px;
    height: 45px;

    border: none;

    border-radius: 12px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #e86fb4,
            #c26bd7
        );

    font-size: 21px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 5px 12px
        rgba(200, 92, 173, .20);

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        filter .15s ease;
}

.size-button:hover {
    filter: brightness(1.04);

    box-shadow:
        0 7px 16px
        rgba(200, 92, 173, .27);
}

.size-button:active {
    transform: scale(.93);
}


/* =========================================================
   DOWNLOAD
========================================================= */

.download-button {
    width: 100%;

    height: 54px;

    margin-top: 8px;

    border: none;

    border-radius: 16px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #df5eae,
            #9b72df
        );

    font-family: inherit;

    font-size: 16px;

    font-weight: 750;

    letter-spacing: .1px;

    cursor: pointer;

    box-shadow:
        0 10px 25px
        rgba(175, 91, 187, .25);

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        filter .15s ease;
}

.download-button:hover {
    filter: brightness(1.04);

    box-shadow:
        0 13px 30px
        rgba(175, 91, 187, .32);
}

.download-button:active {
    transform: translateY(1px) scale(.99);
}


/* =========================================================
   FOOTER NOTE
========================================================= */

.privacy-note {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-top: 14px;

    color: #9b8d9b;

    font-size: 12px;

    text-align: center;
}


/* =========================================================
   FOCUS
========================================================= */

button:focus-visible,
label:focus-visible,
input:focus-visible {
    outline:
        3px solid
        rgba(214, 93, 174, .25);

    outline-offset: 2px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    body {
        padding:
            16px 10px 35px;
    }

    .header {
        margin-bottom: 18px;
    }

    .logo {
        width: 52px;
        height: 52px;

        border-radius: 16px;

        font-size: 26px;
    }

    .header h1 {
        font-size: 30px;
    }

    .header p {
        font-size: 14px;
    }

    .card {
        padding: 12px;

        border-radius: 20px;
    }

    .upload-box {
        min-height: 125px;

        border-radius: 15px;
    }

    .canvas-wrap {
        border-radius: 14px;
    }

    .text-row {
        gap: 6px;
    }

    .text-input {
        height: 48px;

        padding: 0 13px;

        border-radius: 13px;
    }

    .size-button {
        width: 43px;
        height: 43px;

        border-radius: 11px;
    }

    .download-button {
        height: 52px;

        border-radius: 14px;
    }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .size-button {
        width: 40px;
        height: 40px;
    }

    .text-input {
        font-size: 15px;
    }
}


/* =========================================================
   MOBILE TAP HIGHLIGHT
========================================================= */

button,
label {
    -webkit-tap-highlight-color:
        transparent;
}


/* =========================================================
   FOOTER LINKS
========================================================= */

.app-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: -10px;
    color: #abb5aa;
    font-size: 12px;
 
}

.footer-link {

    color: #b5aab5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #df4fa8;
    text-decoration: underline;
}

.footer-separator {
    color: #d1c7d1;
    font-size: 10px;
}


.footer-link-btn {
    background: none;
    border: none;
    padding: 0;
    color: #817682;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-link-btn:hover {
    color: #df4fa8;
    text-decoration: underline;
}

.footer-txt p{
    
text-align: center;
 color: #b5aab5;
    font-size: 14px;

}

