:root {
    --accent-color: hsl(211, 100%, 50%);
    --faded-accent:hsl(211, 31%, 89%);
    --faded-accent2:hsl(211, 31%, 79%);
    --faded-accent3:hsl(211, 31%, 69%);
    --dark-accent: hsl(211, 10%, 10%);
    --dark-accent1: hsl(211, 10%, 20%);
    --dark-accent2: hsl(211, 10%, 30%);
    --icv-autocolor-bg: hsl(211, 50%, 22%);
    --download-color: hsl(152, 100%, 39%);

}
 * {
      touch-action: manipulation;
 }
  
html, body {
    font-family: Arial;
	scroll-behavior: smooth;
    background-color:hsl(211, 12%, 95%);
    width: 100%;
    margin: 0;
    color: hsl(211, 7%, 40%);
}

.header{
    display: flex;
    align-items: center;
    height: 80px;
    background-color: black;
    color: whitesmoke;
}

.cqr-logo{
    /* display: inline-flex; */
    /* align-items: center; */
    position: relative;
    white-space: nowrap;
    /* width: 300px;
    height:64px ; */
}

#cqr-logo-img{
    margin: 0 15px 0 15px;
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
}
.cqr-name{
    display: flex;
    font-size: 1rem;
    font-weight: bold;
}

.cqr-sl{
    display: flex;
    font-size: 0.62rem;
    margin: 5px 0 5px 0;
}

.colorpicker-div {
    width: 50px;
    height: 25px;
    background-color: rgb(230, 230, 230);
    border: 1px solid rgb(153, 153, 153);
    border-radius: 3px;
}

.white {
    background-color: #FFFFFF;
}

.black {
    background-color: #000000;
}

#qrcode-input-txt{
    max-width: 90%;
}

.colorpicker {
    width: 40px;
    height: 15px;
    margin-top: 4px;
    margin-left: 4px;
    border: 1px solid black;
}


.close {
    width: 14px;
    height: 14px;
    background-image: url(../icons/close.gif);
}

.angle-right {
    width: 10px;
    height: 10px;
}

.angle-down {
    width: 10px;
    height: 10px;
}

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

.label-remove-logo {
    position: relative;
    top: 10px;
}

.content-left {
    width: 50%;
    float: left;
    text-align: start;
}

.content-right {
    width: 50%;
    float: right;
    text-align: end;
}

.method-remove {
    margin-top : 7.5px;
    float: right;
}

.input-wrapper {
    margin-top: 20px;
    margin-bottom: 10px;
}

.content-right input[type="range"] {
    width: 90%;
}
  
.input-wrapper label {
    background-color: var(--accent-color);
    border-radius: 3px;
    color: #fff;
    margin-top: 15px;
    padding: 6px 20px;
    cursor: pointer;
}
  
.input-wrapper label:hover {
    background-color:var(--accent-color);
}

.toggle {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.mtop {
    margin-top: 15px;
    height: 25px;
}

.flex-box {
    display: flex;
    justify-content: space-between;  /* horizontal */
    align-items: center;  /* vertical */
    margin-top: 15px;
    margin-bottom: 15px;
    height: 100%;
}

.divisor-div {
    width: -webkit-fill-available;
    margin-left: 2%;
    margin-right: 2%;
}

.divisor {
    border: 0;
    border-bottom: 1px dashed #d3d3d3;
    margin-bottom: 9px;
}

.global-hr {
    height: 12px;
    border: 0;
    box-shadow: inset 0 12px 12px -12px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.divider {
    color: #000;
    display: flex;
}

.divider:before, .divider:after {
    content: "";
    flex: 1;
    background-color: var(--faded-accent3);
} 

.line {
    
    pointer-events: none;
    align-items: center;
    margin: 1em -1em;
    margin-top: 70px;
    margin-bottom: 20px;
}

.line:before, .line:after {
    height: 1px;
    margin: 0 1em;
}

.options-bar {
    cursor: pointer;
    font-size: medium;
    color: rgb(32, 32, 32);
    float: right;
}

.hide {
    max-height: 0 !important;
    pointer-events: none;
}

.mfull {
    margin-top: 15px;
    margin-bottom: 15px;
}

.opt-container {
    width: 100%;
}

.options-menu {
    overflow: hidden;
    max-height: 500px;
}



.conf-title {
    display: flex;
    justify-content: left;
}

.icon-div {
    padding: 4px;
    width: 36px;
    height: 36px;
}

.inlineblock {
    display: inline-block;
}

.container {
	display: block;
    border-radius: 5px;
    background-color: white;
    margin: 0 auto;
    /* box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19); */
    margin-bottom: 50px;
    padding-bottom: 20px;
}


#title {
    padding-top: 2%;
}

label {
    margin-top: auto;
    margin-bottom: auto;
    white-space: nowrap;
}

.center {
    text-align: center;
}

.input {
    padding: 0 20px;
    margin: 20px auto 0 auto;
    width: 100%;
    display: block;
    height: 40px;
    font-size: 1rem;
    color: #000;
    line-height: 1.1;
    box-sizing: border-box;
    text-align: center;
    text-align-last: center;
}

#qrcode-wrapper {  
    margin: 15px auto 15px auto;
    position: relative;
    z-index: 999; 
    /* box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19); */
    /* max-height: 350px */
}

.margin-title {
    margin-top: 45px;
}

.cqr {
    display: block; 
    width: 100%;
}
.style-selection{
    display: flex;
    flex-wrap: wrap;
    margin: 10px;
    margin-left: 0;
    margin-right: 0;
}

.config {  
    display: block;
    margin: 0 auto;
    width: 90%;
    height: 100%;
    text-align: left;
    margin-top: 10px;
}

.margin-rm-met {
    margin-top: 22px;
    margin-bottom: 22px;
}

.conf-title {
    display: flex;
    justify-content: left;
    margin-bottom: 25px;
}

.conf-icon {
    width: 36px;
    height: 36px;
    image-rendering: pixelated;
    margin-right: 10px;
}

[type="radio"]:checked,
[type="radio"]:not(:checked) {
    position: absolute;
    left: -9999px;
}
[type="radio"]:checked + label,
[type="radio"]:not(:checked) + label
{
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    line-height: 20px;
    display: inline-block;
}
[type="radio"]:checked + label:before,
[type="radio"]:not(:checked) + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border: 1px solid #ddd;
    border-radius: 100%;
    background: #fff;
}
[type="radio"]:checked + label:after,
[type="radio"]:not(:checked) + label:after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    position: absolute;
    top: 4px;
    left: 4px;
    border-radius: 100%;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}
[type="radio"]:not(:checked) + label:after {
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
}
[type="radio"]:checked + label:after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

.wrap-unset {
    flex-wrap: unset;
}

.icv {
    border-radius: 5px;
    cursor: pointer;
    border: 3px solid transparent;
    /* box-shadow: 0px 0px 0px 1px rgb(0 0 0 / 33%), 0 0px 0px 0 rgb(0 0 0 / 19%); */
    background-color: var(--faded-accent);
    width: 40px;
    height: 40px;
    padding: 10px;
    margin: 5px;
}
.icv-autocolor{
    background-color: var(--icv-autocolor-bg);
}
.active {
    border: 3px solid var(--accent-color);
}

#canvas_img {
    display: none;
}

#canvas_aux {
    display: none;
}

canvas {
    display: block;
}

#qrcode {
    height: 100%;
    margin: auto;
    /* box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19); */
}

#div-download {
    display: none;
}

#mini-qrcode {
    position: fixed;
    z-index: 99999;
    top: 0;
    /* border: 0px solid black; */
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
    margin-top: 1%;
    display: none;
}

.download {
    width: 100%;
    height: 100%;
    text-align: center;
}

#download_label {
    position: relative;
    top: 4px;
    font-weight: bold;
}

.download-slider {
    margin: 20px 0 20px 0;
    width: 90%;
}


.download-btn {
    font-size: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 36px;
    width: 180px;
    border-radius: 50px;
    -webkit-border-radius: 50px;
    padding: 6px 20px;
    background-color: var(--download-color);
    color: #fff;
    top: 15px;
    cursor: pointer;
    margin: 0 auto;
}

#remove-logo {
    display: none;
    float: right;
    cursor: pointer;
}

#remove-bgimg {
    display: none;
    float: right;
    cursor: pointer;
}

#remove-bodybgimg{
    display: none;
    float: right;
    cursor: pointer;
}

.options-slider{
    /* width: 50%; */
}

.icon_canvas {
    width: 100%;
}

/* #qrcodewrapper {
    display: none;
} */

.hidden {
    opacity: 0;
}

.slidecontainer {
    width: 100%;
}

.extra-options{
    overflow: hidden;
    transition: all .5s ease-in-out;

}

.options-hidden{
    max-height: 0;
}

.no-select{
    -webkit-tap-highlight-color: transparent; /*android*/
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#mo1,
#mo2,
#mo3,
#mo4,
#mo5 {
  overflow: hidden;
  margin-bottom: 20px;
  width: 100%;
  height: 0;
  transition: height 0.23s ease;
}
.mo-text{
    display: block;
    float:left;
}

.more-options-btn{
    display: flex;
    align-items: center; 
    flex-shrink: 0;
    /* justify-items: left ; */
    cursor: pointer;
    height: 30px;
    width: fit-content;
    /* width: 100px; */
    padding: 10px 20px 10px 0;
    /* margin-left: 40%; */
    /* width: 50%; */
    /* -webkit-touch-callout: none; */
    /* -webkit-user-select: none; */
    /* user-select: none; */
}

.mo-icon{
    position: relative;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    background-color: var(--accent-color);
    width: 20px; 
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin-right: 5px;
}


.mo-icon.plus:before{
    /* top:20%;
    left: 50%;
    width: 2px;
    height: 60%;
    margin-left: -1px;
    content: "";
    position: absolute;
    background-color: white; */
    top:50%;
    left: 20%;
    width: 60%;
    height: 2px;
    margin-top: -1px;
    content: "";
    position: absolute;
    background-color: white;

    transition: 0.2s ease;
    /* transform: rotate(180deg); */

}
.mo-icon.plus:after{
    top:20%;
    left: 50%;
    width: 2px;
    height: 60%;
    margin-left: -1px;
    content: "";
    position: absolute;
    background-color: white;
    /* top:50%;
    left: 20%;
    width: 60%;
    height: 2px;
    margin-top: -1px;
    content: "";
    position: absolute;
    background-color: white; */

    transition: 0.2s ease;
    /* transform: rotate(90deg); */
}

.mo-icon.minus:before{ 
    top:50%;
    left: 20%;
    width: 60%;
    height: 2px;
    margin-top: -1px;
    content: "";
    position: absolute;
    background-color: white;
    /* top:20%;
    left: 50%;
    width: 2px;
    height: 60%;
    margin-left: -1px;
    content: "";
    position: absolute;
    background-color: white; */

    transition: 0.2s ease;
    transform: rotate(180deg);

}

.mo-icon.minus:after{
    top:20%;
    left: 50%;
    width: 2px;
    height: 60%;
    margin-left: -1px;
    content: "";
    position: absolute;
    background-color: white;
    /* top:50%;
    left: 20%;
    width: 60%;
    height: 2px;
    margin-top: -1px;
    content: "";
    position: absolute;
    background-color: white; */

    transition: 0.2s ease;
    transform: rotate(270deg);
}
.slider {
    -webkit-appearance: none;
    height: 5px;
    border-radius: 50px;
    background: var(--faded-accent2);
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%; 
    background: var(--accent-color);
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
}

.lds-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #fff;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: rgb(7, 195, 241) transparent transparent transparent;
  }
  .lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
  }
  .lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
  }
  .lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
  }
  @keyframes lds-ring {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
}

input[type='checkbox'] {
    --active: var(--accent-color);
    --active-inner: #fff;
    --focus: 2px rgba(39, 94, 254, .3);
    --border: #bbc1e1;
    --border-hover: var(--accent-color);
    --background: #fff;
    --disabled: #f6f8ff;
    --disabled-inner: #e1e6f9;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 24px;
    outline: none;
    display: inline-block;
    vertical-align: top;
    position: relative;
    margin: 0;
    cursor: pointer;
    border: 1px solid var(--bc, var(--border));
    background: var(--b, var(--background));
    transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
}

input[type='checkbox']:after {
    content: '';
    display: block;
    left: 0;
    top: 0;
    position: absolute;
    transition: transform var(--d-t, 0.3s) var(--d-t-e, ease), opacity var(--d-o, 0.2s);
}

input[type='checkbox']:checked {
    --b: var(--active);
    --bc: var(--active);
    --d-o: 0.3s;
    --d-t: 0.6s;
    --d-t-e: cubic-bezier(0.2, 0.85, 0.32, 1.2);
}

input[type='checkbox']:disabled {
    --b: var(--disabled);
    cursor: not-allowed;
    opacity: 0.9;
}

input[type='checkbox']:disabled:checked {
    --b: var(--disabled-inner);
    --bc: var(--border);
}

input[type='checkbox']:disabled + label {
    cursor: not-allowed;
}

input[type='checkbox']:hover:not(:checked):not(:disabled) {
    --bc: var(--border-hover);
}

input[type='checkbox']:focus {
    box-shadow: 0 0 0 var(--focus);
}

input[type='checkbox'] + label {
    font-size: medium;
    line-height: 21px;
    display: inline-block;
    vertical-align: top;
    cursor: pointer;
    margin-left: 4px;
}

input[type='checkbox'].switch {
    width: 49px;
    border-radius: 11px;
}

input[type='checkbox'].switch:after {
    left: 2px;
    top: 2px;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    background: var(--ab, var(--border));
    transform: translateX(var(--x, 0));
}

input[type='checkbox'].switch:checked {
    --ab: var(--active-inner);
    --x: 24px;
}

input[type='checkbox'].switch:disabled:not(:checked):after {
    opacity: 0.6;
}
 
@media screen and (max-width: 767px) {
    .container {
        width: 100%;
        margin-bottom: 0;
    }
    #qrcode-wrapper {
        height: 80vw;

    }
    #mini-qrcode {
        width:  40vw;
        max-width: 80vw;
        height: 40vw;
        right: 0;
    }
    /* .icv {
        width: 9vw;
        height: 9vw;
        padding: calc(9vw / 4);
        margin: calc(9vw / 8);
    } */
    .input {
        width: 80%;
        max-width: 80%;
    }
}

@media screen and (min-width: 768px) and (max-width:1023px){
    
    .container {
        width: 400px;
        margin-top: 40px;
        margin-bottom: 40px;
    }

    #qrcode-wrapper {
        width: 250px;
        max-width: 250px;
        height: 250px;
    }
    #mini-qrcode {
        width:  100px;
        height: 100px;
        max-width: 200px;
        right: calc((100% - 400px - 200px) / 2);
    }
    /* .icv {
        width: 30px;
        height: 30px;
        padding: calc(30px / 4);
        margin: calc(30px / 8);
    } */
    .input {
        max-width: 250px;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1500px) {
  
    .container {
        width: 550px;
        margin-top: 50px;
        margin-bottom: 50px;
    }
    #qrcode-wrapper {
        width: 350px;
        max-width: 350px;
        height: 350px;
    }
    #mini-qrcode {
        width:  200px;
        max-width: 400px;
        height: 200px;
        right: calc((100% - 550px - 400px) / 2);
    }
    /* .icv {
        width: 40px;
        height: 40px;
        padding: calc(40px / 4);
        margin: calc(40px / 8);
    } */
    .input {
        max-width: 350px;
    }  
}

@media screen and (min-width: 1501px) {
    
    .container {
        width: 750px;
        margin-top: 60px;
        margin-bottom: 60px;
    }
    #qrcode-wrapper {
        width: 350px;
        max-width: 350px;
        height: 350px;
    }
    #mini-qrcode {
        width:  250px;
        height: 250px;
        max-width: 500px;
        right: calc((100% - 750px - 500px) / 2);
    }
    /* .icv {
        width: 45px;
        height: 45px;
        padding: calc(45px / 4);
        margin: calc(45px / 8);
    } */
    .input {
        max-width: 350px;
    }
}
