/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}.sr-only{clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;position:absolute}.container{height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:sans-serif;background-color:#d4eafd}.card-editor{width:400px;border-radius:10px;padding:28px;background-color:#fefefe}.card-editor:has(#card-number:focus) .card-editor__number,.card-editor:has(#card-holder:focus) .card-editor__holder,.card-editor:has(#card-month:focus) .card-editor__expires,.card-editor:has(#card-year:focus) .card-editor__expires{border:1px solid #9391a2}.card-editor__preview{width:345px;height:215px;perspective:1000px;transform:translateY(-135.5px);margin:0 auto -107.5px}.card-editor__inner{position:relative;width:100%;height:100%;background-image:url(../images/background.jpg);background-size:cover;font-family:monospace;border-radius:15px;transition:transform .8s;transform-style:preserve-3d}.card-editor:has(#card-cvv:focus) .card-editor__inner,.card-editor__preview:hover .card-editor__inner{transform:rotateY(180deg)}.card-editor__side{position:absolute;width:100%;height:100%;backface-visibility:hidden;color:#fff;font-size:1rem;box-sizing:border-box}.card-editor__side--back{transform:rotateY(180deg);display:flex;flex-direction:column;gap:1rem;padding:16px 0}.card-editor__side--front{padding:16px;display:grid;grid-template-columns:1fr auto;grid-template-rows:1fr 1fr 1fr;grid-template-areas:"chip brand" "number number" "holder expires"}.card-editor__chip{width:47px;height:37px;grid-area:chip;background-image:url(../images/chip.png);background-size:cover}.card-editor__brand{width:100%;max-height:37px;background-size:auto 100%;background-repeat:no-repeat;background-position:right}.card-editor__brand--mastercard{background-image:url(../images/mastercard.png)}.card-editor__brand--visa{background-image:url(../images/visa.png)}.card-editor__brand--front{grid-area:brand;justify-self:end}.card-editor__brand--back{height:100%;transform:translate(-16px)}.card-editor__number,.card-editor__holder,.card-editor__expires{padding:6px;border:1px solid transparent;border-radius:6px;transition:all .3s ease-out}.card-editor__number{grid-area:number;align-self:center;font-size:1.5rem;transform:translate(-6px)}.card-editor__digit{display:inline-block}.card-editor__digit:nth-child(4n){margin-right:8px}.card-editor__holder{grid-area:holder;align-self:end;text-transform:uppercase;transform:translate(-6px,6px)}.card-editor__holder:before{content:"Card Holder";display:block;color:#ab9fa9;font-size:.7rem;margin:0 0 2px;text-transform:none}.card-editor__expires{grid-area:expires;justify-self:end;align-self:end;transform:translate(6px,6px)}.card-editor__expires:before{content:"Expires";display:block;color:#ab9fa9;font-size:.7rem;margin:0 0 2px}.card-editor__magnetic-strip{width:345px;height:32px;background-color:#06051c}.card-editor__cvv{padding:0 16px;text-align:right}.card-editor__cvv-label{color:#fff}.card-editor__cvv-bar{box-sizing:content-box;width:100%;height:16px;background-color:#fff;color:#000;padding:6px;margin-left:-6px}.card-editor__fieldset{border:0;margin:0;padding:0}.card-editor__row{display:flex;flex-direction:column;color:#39465c}.card-editor__row:not(:last-of-type){margin-bottom:16px}.card-editor__row--horizontal{flex-direction:row;justify-content:space-between}.card-editor__input,.card-editor__select{padding:8px;outline:none;border:2px solid #e9e9ec;border-radius:4px;transition:all .3s ease-out}.card-editor__input:active,.card-editor__input:focus,.card-editor__select:active,.card-editor__select:focus{border-color:#acc2da}.card-editor__select:not(:last-of-type){margin-right:6px}.card-editor__button{width:100%;padding:12px;background-color:#0055d4;color:#fff;border:0;border-radius:4px}
