* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}


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


:root {
    --m-family: 'Inter', sans-serif;
    --h1: 24px;
    --caption: 16px;
    --label: 18px;
    --placeholder-text: 22px;
    --button-text: 22px;

    --placeholder-text-mobile: 16px;
    --button-text-mobile: 16px;

    --m-padding: 16px 24px 18px 24px;
    --m-radius: 24px;
    --input-radius: 16px;
    --m-gap: 8px;
    --m-border-color: #E5E5E5;

    --white: #fff;
    --black: #000;
    --text-primary: #000;
    --text-secondary: #9A9DAD;
    --accent: #9746FF;
    --background: #F5F6F7;
    --surface: #fff;
    --m-width: 420px;
    --border-primary: #d9dae0;
}

@keyframes showSections {
    0% {
        opacity: 0;
        transform: translateY(4%);
    }

    100% {
        opacity: 1;
        transform: translateY(0%);
    }
}

@keyframes showFromOpacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

#ctaBtn {
    align-items: center;
    animation: showFromOpacity .5s ease-in-out;
    transition: all .2s ease-in-out;
}

#ctaBtn:hover {
    background-color: #0e0e0e;
}

body {
    transition: all .2s ease-in-out;
    font-family: var(--m-family);
    /* font-size: 1rem; */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-variant-ligatures: common-ligatures;
}

header {
    display: flex;
    flex-flow: nowrap row;
    justify-content: space-between;
    padding: 24px 32px;
}

header a {
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    color: var(--text-secondary);
    text-decoration: none;
}

.container {
    display: flex;
    flex-flow: nowrap column;
    justify-content: center;
    align-items: center;
    /* gap: var(--m-gap); */
    gap: 7.222vw;
    height: calc(100vh - 140px);
}

.container>div {
    animation: showSections .2s ease-in-out;
}



h1 {
    font-style: normal;
    font-weight: 600;
    font-size: var(--h1);
    line-height: 1;
    letter-spacing: -0.015em;
}

.input__section {
    display: flex;
    flex-flow: nowrap row;
    width: 40vw;
}

.input__section input {
    width: 100%;
}

#qr-input {
    padding: 16px 0px 16px 24px;
    background: #fff;
    border-top: 2px solid var(--border-primary);
    border-left: 2px solid var(--border-primary);
    border-right: 0px solid var(--border-primary);
    border-bottom: 2px solid var(--border-primary);
    border-radius: 24px 0px 0px 24px;
}

.functional__wrapper {
    display: flex;
    flex-flow: nowrap row;
}

.functional__wrapper button {
    cursor: pointer;
    padding: 22.5px 24px;
    border-radius: 0 24px 24px 0;
    border: none;
    background-color: #1d1d1d;
    font-weight: 500;
    font-size: var(--button-text);
    line-height: 27px;
    letter-spacing: -0.38px;

    color: var(--surface);
}

.color-picker__wrapper {
    display: flex;
    align-items: center;
    padding: 16px;
    /* padding: 16px 24px 16px 16px; */
    border-top: 2px solid var(--border-primary);
    border-bottom: 2px solid var(--border-primary);
}

.color-picker__wrapper input {
    width: 40px;
    height: 40px;
}

input {
    font-size: var(--placeholder-text);
}

input:focus {
    border: 1px solid var(--accent);
    outline: none;
}

select:focus {
    border: 1px solid var(--accent);
}

::placeholder {
    color: var(--text-secondary);
    opacity: 1;
    font-size: var(--placeholder-text);
}

:-ms-input-placeholder {
    color: var(--text-secondary);
}

::-ms-input-placeholder {
    color: var(--text-secondary);
}

.color-select__wrapper {
    display: flex;
    flex-flow: nowrap row;
    align-items: center;
    gap: 12px;
}

.color-select__wrapper label {
    color: var(--text-secondary);
}

#qr-color {
    width: 32px;
    height: 32px;
    background: url(color.png) !important;
    padding: 0;
    border: none;
    border-radius: 1000px !important;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-repeat: no-repeat;
    background-size: cover;
    transition: all .2s ease-in-out;
    position: relative;
}

#qr-color:active {
    transform: scale(.9);
}

::-webkit-color-swatch-wrapper {
    padding: 0;
    border: none;
    border-radius: 1000px !important;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
}

#qr-color::before {
    content: "";
    position: absolute;
    height: 1rem;
    width: 1rem;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(var(--black)/.2);
    top: calc(50% - 0.5rem);
    left: calc(50% - 0.5rem);
    z-index: 1;
    -webkit-animation: showPointOnColor .19s ease-out;
    animation: showPointOnColor .19s ease-out;
}

.qr-code__section {
    display: flex;
    flex-flow: nowrap column;
    align-items: center;
    padding: var(--m-padding);
    background-color: var(--surface);
    border-radius: var(--m-radius);
}

#qr-code {
    cursor: pointer;
    transition: all .2s ease-in-out;
}

#qr-code:hover {
    transform: scale(.98);
}

#qr-code:focus {
    transform: scale(.98);
}

#qr-code:active {
    transform: scale(.98);
}

::-webkit-color-swatch {
    border: none;
}

svg {
    width: 256px;
    height: 256px;
    filter: drop-shadow(0px 4px 16px rgba(0, 0, 0, 0.05));
    border-radius: 24px;
}

@media (max-width: 1024px) {
    .input__section {
        width: 80%;
    }
}

@media (max-width: 576px) {
    header {
        padding: 16px 24px;
    }

    .container {
        max-width: 100%;
    }

    #qr-code {
        margin-bottom: 15%;
    }

    #qr-input {
        padding: 8px 0px 8px 12px;
        font-size: var(--placeholder-text-mobile);
    }

    ::-webkit-input-placeholder {
        font-size: var(--placeholder-text-mobile);
    }

    .color-picker__wrapper {
        padding: 8px;
    }

    .input__section {
        width: 90%;
    }

    .functional__wrapper button {
        padding: 11.25px 12px;
    }

    #qr-color {
        width: 24px;
        height: 24px;
    }

    #qr-color::before {
        width: 12px;
        height: 12px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #tooltip {
        text-align: center;
        padding: 0 24px;
        line-height: 1.4;
        bottom: 8% !important;
    }

    .bug-report {
        padding: 16px !important;
    }

    .functional__wrapper button {
        font-size: var(--button-text-mobile);
    }
}

#tooltip {
    display: none;
    position: fixed;
    bottom: 5%;
    color: var(--text-secondary);
}

#tooltip.animatedTooltip {
    animation: showSections 1s ease-out forwards;
}

#language-btn {
    cursor: pointer;
    background-color: var(--surface);
    border: none;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    color: var(--text-secondary);
    transition: all .2s ease-in-out;
}

#language-btn:active {
    transform: scale(.9);
}

.colorPickerInitial {
    border-right: 2px solid var(--border-primary);
    border-radius: 0px 24px 24px 0px;
    padding: 16px 24px 16px 16px;
}

.bug-report {
    width: 100%;
    padding: 16px 32px;
    display: flex;
    flex-flow: nowrap row;
    justify-content: flex-end;
}

.bug-report a {
    transition: all .2s ease-in-out;
}

.bug-report a:active {
    transform: scale(.9);
}

.bug-report a:focus {
    transform: scale(.9);
}