/* =============================================
// * Pop QR
// * app.css V0.1
// =============================================
// * 0. Globals
// *    0.1. Grid
// * 1. Navigation
// * 2. Components
// * 3. Specific
//      3.1. Codes list
//      3.2. Articles
// =============================================

// =============================================
// 0. Globals 
// ========================================== */

*   {
    position: relative;
    float: left;
    box-sizing: border-box;
    width:100%;
    height:auto;
}

@media screen and (min-width:0px)   {
    :root   {
        --theme-color-main: #fff;
        --theme-color-secondary: #000;
        --theme-color-tertiary: #03a9f4;

        --brand-color-purple:rgba(59, 39, 149, 1);

        --font-size-base:13px;

        --padding-global:20px;

        --spacer:5px;
    }

    body    {
        margin:0;
        /* padding:0 20px; */
        background: var(--theme-color-main);
        color:var(--theme-color-secondary);
        font-size:var(--font-size-base);
        background:var(--brand-color-purple) url('../images/background.svg') repeat center center;
        background-size:53px 50px;
        font-family: "Poppins", sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size:11px;
    }
}

@media screen and (min-width:768px)   {
    :root   {
        --font-size-base:13px;

        --padding-global:20px;

        --spacer:10px;
    }

    body    {
        font-size:13px;
    }
}

h1, h2, h3, h4, h5, h6  {
    display: block;
    font-size: 1.7em;
    line-height:1.2em;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
    margin:0 0 20px 0;
}

p   {
    margin-block-start: 0;
    margin-block-end: 0;
    line-height:1.6em;
    margin:0 0 20px 0;
}
strong  {
    display:contents;
}

.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.poppins-bold {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}

a   {
    display: contents;
}

label, input, select    {
    width:100%;
    display: block;
    font-size:1.1em;
}
label   {
    margin:0 0 5px 0;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
}
input[type="text" i], input[type="file" i], input[type="color" i], select    {
    height:50px;
    padding:0 20px;
    border-radius:5px;
    border:1px solid rgba(59, 39, 149, 1);
    font-size:1.3em;
}
input[type="file" i]    {
    background:#fff;
    padding:11px 20px;
}
input[type="color" i]   {
    padding:0;
}
textarea    {
    padding:20px;
    border-radius:5px;
    border:1px solid rgba(59, 39, 149, 1);
    font-size:1.3em;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.flex   {
    display: flex;
    justify-content: center;
    align-items: center;
}
.flex .left {
    justify-content: flex-start;
}

.hide   {
    display: none;
}

.spacer {
    height:var(--spacer);
}
.spacer.full    {
    height: calc(var(--spacer) * 15);
}
.spacer.half    {
    height: calc(var(--spacer) * 7.5);
}
.spacer.third    {
    height: calc(var(--spacer) * 5);
}
.spacer.quarter    {
    height: calc(var(--spacer) * 3.75);
}

/* =============================================
// 0.1. Grid
// ========================================== */

@media only screen and (min-width:200px) {
    .one-column, .two-columns, .three-columns, .four-columns, .five-columns, .six-columns, .seven-columns, .eight-cxolumns, .nine-columns, .ten-columns, .eleven-columns, .twelve-columns  {
        width:100%;
    }
}

@media only screen and (min-width:768px) {
    .one-column {
        width:8.333%;
    }
    .two-columns {
        width:16.666%;
    }
    .three-columns {
        width:25%;
    }
    .four-columns {
        width:33.333%;
    }
    .five-columns {
        width:41.666%;
    }
    .six-columns {
        width:50%;
    }
    .seven-columns {
        width:58.333%;
    }
    .eight-columns {
        width:66.666%;
    }
    .nine-columns {
        width:74.999%;
    }
    .ten-columns {
        width:83.333%;
    }
    .eleven-columns {
        width:91.666%;
    }
    .twelve-columns {
        width:100%;
    }
}

/* =============================================
// 1. Navigation
// ========================================== */

.mobile-nav {
    position: fixed;
    top:initial;
    bottom:0;
    left:0;
    width:100%;
    height:70px;
    background: var(--theme-color-main);
    z-index:2;
}
.mobile-nav div {
    width:25%;
    height:70px;
    cursor:pointer;
}
.mobile-nav div > div   {
    width:100%;
    height:30px;
}
.mobile-nav div img {
    width:30px;
    height:30px;
}
.mobile-nav div span    {
    text-align: center;
    text-transform: uppercase;
    font-size:0.8em;
}

/* =============================================
// 2. Components
// ========================================== */

.header {
    color:#fff;
}

.ads    {
    height:80px;
    color:#fff;
}

.ui {
    /* background:var(--theme-color-main); */
    border-radius:10px;
    max-width:1140px;

    background:rgb(231, 227, 249);
}

@media screen and (min-width:0px)   {
    .header .logo a {
        width:auto;
    }
    .header .logo img   {
        max-width:200px;
    }
    .header p   {
        text-align: center;
        font-size:1em;
    }
    .tabs    {
        width: 100%;
        padding: 20px;
        border-radius:0 0 0 20px;
    }
    .code-output    {
        width:100%;
        height:100%;
        background:#fff;
        border-radius: 0 0 20px 20px;
        padding:20px;
    }
}

@media screen and (min-width:768px)   {
    .header .logo img   {
        max-width:300px;
    }
    .header p   {
        text-align: center;
        font-size:1.2em;
    }
    .tabs    {
        width: 60%;
        padding: 30px 35px;
        border-radius:0 0 0 20px;
    }
    .code-output    {
        width:40%;
        height:100%;
        border-radius: 0 20px 20px 0;
        padding:35px;
    }
}

@media screen and (min-width:1024px)   {
    .tabs    {
        width:70%;
        padding: 30px 35px;
        border-radius:0 0 0 20px;
    }
    .code-output    {
        width:30%;
        height:100%;
        border-radius: 0 20px 20px 0;
        padding:35px;
    }
}

.tabs .descriptor   {
    /* border-top:1px solid rgb(212, 203, 254); */
    padding:10px 0 0 0;
}
.tabs .descriptor img  {
    height:20px;
    width:20px;
}
.tabs .descriptor div   {
    height:20px;
    width:20px;
}
.tabs .descriptor p {
    width:auto;
    padding:0 0 0 10px;
    margin: 0;
}

.card   {
    padding:20px;
    border-radius:20px;
    box-shadow: 0px 5px 48px 0px #555;
}

.button {
    padding:10px 20px;
    border-radius:5px;
    width:auto;
    cursor:pointer;
    border:none;
    font-size:1.2em;
}
.button.selected    {
    border-bottom:3px solid #fff;
    opacity:1;
}
.button.filled  {
    background: limegreen;
    color:#fff;
}

@media screen and (min-width:0px)   {
    .buttons    {
        overflow: auto;
        width:900px;
    }
    .buttons .inner    {
        width:900px;
        padding:0 15px;
    }
    .buttons .button    {
        color:#fff;
        border-radius:0;
        text-transform: uppercase;
        border-bottom:3px solid var(--brand-color-purple);
        padding:0;
        opacity:0.7;
        padding:15px 10px;
    }

    .button.generate, .button.download    {
        font-family: "Poppins", sans-serif;
        font-weight: 700;
        font-style: normal;
        width:100%;
    }
    .button.download    {
        background:limegreen;
    }
}

@media screen and (min-width:768px) {
    .buttons    {
        width:1140px;
    }
    .buttons .inner    {
        width:1140px;
    }
    .buttons .button    {
        padding:15px 15px;
    }

    .button.generate, .button.download {
        widtH:auto;
    }
}

@media screen and (min-width:1024px)   {
    .buttons    {
        overflow: hidden;
        max-width:1140px;
    }
    .buttons .inner    {
        max-width:1140px;
        padding:0 35px;
    }
    .buttons .button    {
        padding:15px 15px;
    }
}

.buttons .button.selected   {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
    opacity:1;
    border-bottom:3px solid #fff;
}

.generator  {
    width:100%;
}

.export {
    
}

.export .type-text, .export .options-text  {
    text-transform: uppercase;
    font-size:1.2em;
}

.export p   {
    font-size: 0.85em;
    opacity: 0.7;
}

.export .qrcode  {
    top:0px;
    left:0px;
    background:grey;
    width:100%;
    border:1px solid rgb(231, 227, 249);
    border-bottom:none;
    border-radius:5px 5px 0 0;
}

p.warning   {
    padding:10px;
    border:1px solid rgb(231, 227, 249);
    border-top:none;
    border-radius:0 0 5px 5px;
    background:rgb(231, 227, 249);
    color:#032536;
}

.colour-picker p    {
    margin:0;
}

.size-slider    {
    height: 35px;
}
.size-slider .node  {
    position: absolute;
    top:0;
    left:0;
    width: 35px;
    height:35px;
    background: var(--theme-color-tertiary);
    border-radius: 20px;
    cursor:pointer;
}

.sizes p  {
    width: 33%;
}
.sizes p:first-child    {
    text-align: left;
}
.sizes p:nth-child(2)   {
    text-align: center;
}
.sizes p:last-child    {
    text-align: right;
}

@media screen and (min-width:0px)   {
    .blurb  {
        background:var(--theme-color-main);
        color: #000;
        padding: 40px 20px;
        font-size:1.2em;
    }
    .blurb.purple  {
        background:none;
        color: #fff;
        padding: 40px 20px;
    }
}

@media screen and (min-width:768px)   {
    .blurb  {
        padding: 50px;
        font-size:1em;
    }
    .blurb.purple  {
        padding: 50px;
    }

    .blurb p, .blurb ul li    {
        font-size: 1.2em;
    }

    .blurb p, .blurb h1, .blurb h2, .blurb h3, .blurb h4, .blurb h5, .blurb h6  {
        padding:0 20px;
    }
}


.footer {
    color:#fff;
}
.footer .logo   {
    font-size:1.5em;
    text-align: center;
}
.footer .logo img   {
    max-widtH:150px;
}
.footer ul  {
    width: auto;
        display: block;
    list-style-type: none;
    margin-block-start: 0;
    margin-block-end: 0;
    padding-inline-start: 0;
    unicode-bidi: isolate;
}
.footer ul li a {
    color:var(--theme-color-main);
    text-decoration: none;
}

.overlay .inner {
    background:var(--theme-color-main);
    max-width:800px;
    border-radius:10px;
}

@media screen and (min-width:0px)   {
    .footer ul li   {
        list-style-type: none;
        width: 100%;
        display: inline-block;
        padding:5px 20px;
        text-align: center;
    }
    .overlay    {
        position: fixed;
        top:0;
        left:0;
        width:100%;
        height:100%;
        padding:0 20px;
        background: rgba(0, 0, 0, 0.6);
        z-index:10;
    }
    .overlay .inner .bar    {
        min-height:70px;
        background: var(--brand-color-purple);
        color:#fff;
        font-size:0.95em;
        border-radius:10px 10px 0 0;
    }
    .overlay .inner .bar span    {
        width:calc(100% - 70px);
        padding:0 0 0 20px;
    }

    .overlay .inner .bar .button.close  {
        position: absolute;
        top:15px;
        right:15px;
        width:30px;
        height:30px;
        padding:0;
        transform-origin: top right;
        transform: scale(0.7);
    }
    .overlay .inner .bar .button.close div  {
        position: absolute;
        height: 3px;
        width: 30px;
        background: #fff;
        border-radius: 5px;
        top: 15px;
    }

    .spinner    {
        width:20px;
        height:20px;
        background:none;
        border:3px solid #fff;
        border-radius:15px;
        animation: spin 3s ease infinite;
    }
    .spinner.complete   {
        border:2px solid limegreen;
        background:limegreen;
        animation: none;
    }
}

@media screen and (min-width:768px)   {
    .footer ul li   {
        list-style-type: none;
        width: auto;
        display: inline-block;
        padding:0 20px;
    }
    .overlay    {
        padding:0 20px;
    }
    .overlay .inner .bar    {
        min-height:70px;
        font-size:1.2em;
        border-radius:10px 10px 0 0;
    }
    .overlay .inner .bar span    {
        width:auto;
        padding:0 0 0 20px;
    }

    .overlay .inner .bar .button.close  {
        transform:scale(1);
    }

    .spinner    {
        width:30px;
        height:30px;
    }
}

.overlay .inner .bar .button.close div:first-child  {
    transform: rotate(45deg);
}
.overlay .inner .bar .button.close div:last-child  {
    transform: rotate(-45deg);
}

.overlay .inner .progress   {
    width:100%;
    height:10px;
}
.overlay .inner .progress .progress-bar   {
    position: absolute;
    top:0;
    left:0;
    width:0%;
    height:10px;
    background:green;
}

.overlay .inner .ad {
    min-height:300px;
    background: var(--theme-color-main);
    border-radius:0 0 10px 10px;
}

@keyframes spin {
    0%      {opacity:0}
    50%     {opacity:1}
    100%    {opacity:0}
}

/* =============================================
// 3. Specific
// =============================================
// 3.1. Codes list
// ========================================== */

.codes-list .code   {
    padding:Var(--padding-global);
}
.codes-list .code:nth-child(1n)   {
    background:var(--theme-color-main);
}
.codes-list .code:nth-child(2n)   {
    background:#ddd;
}

/* =============================================
// 3.2. Articles
// ========================================== */

.article-wrapper    {
    padding: 0 20px;
}

@media screen and (min-width:0px)   {
    section.article {
        background:#fff;
        max-width:960px;
        padding:30px;
        border-radius:10px;
    }
}

@media screen and (min-width:1024px)   {
    section.article {
        padding:40px;
        border-radius:10px;
    }
}

section.article h1  {
    font-size:2.5em;
    margin:0 0 10px 0;;
}
span.meta   {
    margin:0 0 20px 0;
}
section.article p   {
    font-size:1.2em;
}
section.article p.intro   {
    font-size:1.5em;
}
section.article img {
    border-radius:10px;
}
section.article a   {
    color: var(--brand-color-purple);
    text-decoration: underline;
}

.floating-cta   {
    position: fixed;
    top:initial;
    bottom:20px;   
    display: flex;
    justify-content: center;
    align-items: center;
    padding:0 30px;
    z-index:2;
}
.floating-cta .inner    {
    background:#fff;
    max-width:900px;
    padding:20px;
    border-radius:10px;
    border:3px solid var(--brand-color-purple);
}

@media screen and (min-width:0) {
    .floating-cta p {
        margin:0 0 10px 0;
    }
}

@media screen and (min-width:1024) {
    .floating-cta p {
        margin:0;
    }
}

.floating-cta h2    {
    font-size:1.5em;
    margin:0 0 5px 0;
}
.floating-cta .button   {
    width:100%;
    background:var(--brand-color-purple);
    color:#fff;
    text-decoration:none;
}