*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: 0;
    font-family:'Times New Roman', Times;
    transition: 0.2 ease-in-out;
}
:root{
    --green:#2aaa;
    --black:#444;
    --light-color:#777;
    --bg-color:#EBEBE3;
    --box-shadow:0.5rem 0.5rem 1rem #ccc,
                -0.5rem -0.5rem 1rem #fff;
    --box-shadow-inset:0.5rem 0rem 1rem #ccc inset,
                -0.5rem -0.5rem 1rem #fff inset;
    --border:rgba(0,0,0,.2);
}
body{
    background: var(--bg-color);
    padding-left: 30rem;
    margin: 0;
}
body.active{
    --black:#fff;
    --light-color:#ddd;
    --bg-color:#222;
    --box-shadow:0.5rem 0.5rem 1rem #111,
                -0.5rem -0.5rem 1rem #333;
    --box-shadow-inset:0.5rem 0rem 1rem #111 inset,
                -0.5rem -0.5rem 1rem #333 inset;
    --border:rgba(0,0,0,.4);
}
header{
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 200;
    padding: 9rem 5rem;
}
.header-container{
    display: flex;
    flex-direction: column;
    text-align: center;
}
.header-container .user img{
    width: 10rem;
    border: 0;
    border-radius: 50%;
    box-shadow: var(--box-shadow);
}

.header-container .profile-info h2{
    font-size: 1.6rem;
    margin: 0.5em 0em;
}
.header-container .profile-info p{
    margin: 1.8em 0em;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 1.1em;
}
.header-container .profile-info {
    text-decoration: none;
    columns: #000;
}
.header-container .profile-info i{
    font-size: 1.6em;
    cursor: pointer;
}
/* header styling ends here */

/* section styling starts here */
section{
    width: 100%;
    height: 100%;
}
.section-container{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 3em;
}
.section-container .box-form {
    margin:3em 2em;
    border: 1px solid #000;
    border-radius: 10px;
    padding: 0.4em;
}
.section-container .first-form{
    padding: 1em;
    padding-left: 0;
    padding-right: 2em;
}
.section-container .box-1 .box-form .form-img img{
    width: 60px;
    border: 0;
    border-radius: 5px;
}
.section-container .box-1 .btn{
    font-size: 1.3em;
    border:0;
    padding-bottom: 8px;
    background: var(--bg-color);
    border-bottom: 1px solid #000;
    font-weight: bold;
}
.form-img{
    display: flex;
}
.img-main{
    display: flex;
    flex-direction: column;
    justify-content: left;
    text-align: left;
    margin: 0em 0.7em;
}
.img-top-cap p{
    color: #777;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 13px;
    margin: 0.5em 0em;
}
.form-inputs{
    display: flex;
    flex-direction: column;
    margin: 2em 0em 0em;
}
.form-inputs-2{
    display: flex;
    flex-direction: column;
}
.form-inputs input{
    background-color: #DFDFD7;
    padding: 1em;
    font-size: 16px;
    border: 0;
    border-radius: 10px;
    margin: 0.8em;
}
.form-inputs-2 button{
    padding: 1em;
    background: #000;
    color: #fff;
    font-size: 20px;
    margin: 0.5em;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}
.form-inputs-2 input{
    background-color: #DFDFD7;
    padding: 1em;
    font-size: 16px;
    border: 0;
    border-radius: 10px;
    margin: 0.8em;
}
.form-inputs input[type="submit"]{
    background: #000;
    color:#fff;
    padding: 1.2em;
    font-size: 1.1em;
    cursor:pointer;
}

/* styling last boxes */
.last-boxes-cont{
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    width: 100%;
    padding: 1em;
}


/* Media Queries */
@media (max-width:1031px){
    header{
        position: relative;
        display: flex;
        justify-content: center;
        text-align: center;
        width: 100%;
    }
    body{
        padding: 0em;
        width: 100%;
    }
    section .last-boxes-cont .form-2{
        width: 100%;
    }
}
@media (max-width:500px){
    header{
        position: relative;
        display: flex;
        justify-content: center;
        text-align: center;
        width: 100%;
        padding: 9rem 0rem;
    }
    .header-container .profile-info h2{
        font-size: 5vw;
    }
    body{
        padding: 0em;
        margin: 0;
        width: 100%;
    }
}


/* Styling the SWC PAGE */
.swc-img{
    width: 100%;
    padding: 0em 2em;
    display: flex;
    flex-direction: column;
}
.swc-img img{
    width: 100%;
    height: 25rem;
    border: 0px;
    border-radius: 25px;
}
.swc-img .contents h1{
    font-size: 1.5rem;
    margin-top: 1em;
    line-height: 1.4em;
}
.swc-img .contents p{
    margin-top: 1em;
    font-size: 1.2em;
    line-height: 1.3em;
}
.purchase{
    margin-top: 1em;
    width: 100%;
}
.purchase h1{
    font-size: 1.3em;
    margin: 0em;
}
.purchase form{
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 4em;
}
.purchase form input{
    padding: 0.7em;
    border:0;
    border-radius: 13px;
    font-size: 17px;
    background-color: #ccc;
}
.check{
    display: flex;
    width: 100%;
    padding: 0;

}
.check input{
    width: 30px;
}


/* Styling the payment methods */
.payment-title {
    width: 100%;
    text-align: center;
}

.form-container .field-container:first-of-type {
    grid-area: name;
}

.form-container .field-container:nth-of-type(2) {
    grid-area: number;
}

.form-container .field-container:nth-of-type(3) {
    grid-area: expiration;
}

.form-container .field-container:nth-of-type(4) {
    grid-area: security;
}

.field-container input {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.field-container {
    position: relative;
}

.form-container {
    display: grid;
    grid-column-gap: 10px;
    grid-template-columns: auto auto;
    grid-template-rows: 90px 90px 90px;
    grid-template-areas: "name name""number number""expiration security";
    max-width: 400px;
    padding: 20px;
    color: #707070;
}

label {
    padding-bottom: 5px;
    font-size: 13px;
}

input {
    margin-top: 3px;
    padding: 15px;
    font-size: 16px;
    width: 100%;
    border-radius: 3px;
    border: 1px solid #dcdcdc;
}

.ccicon {
    height: 38px;
    position: absolute;
    right: 6px;
    top: calc(50% - 17px);
    width: 60px;
}

/* CREDIT CARD IMAGE STYLING */
.container {
    width: 100%;
    max-width: 400px;
    max-height: 251px;
    height: 54vw;
    padding: 20px;
}

#ccsingle {
    position: absolute;
    right: 15px;
    top: 20px;
}

#ccsingle svg {
    width: 100px;
    max-height: 60px;
}

.creditcard svg#cardfront,
.creditcard svg#cardback {
    width: 100%;
    -webkit-box-shadow: 1px 5px 6px 0px black;
    box-shadow: 1px 5px 6px 0px black;
    border-radius: 22px;
}

#generatecard{
    cursor: pointer;
    float: right;
    font-size: 12px;
    color: #fff;
    padding: 2px 4px;
    background-color: #909090;
    border-radius: 4px;
    cursor: pointer;
    float:right;
}

/* CHANGEABLE CARD ELEMENTS */
.creditcard .lightcolor,
.creditcard .darkcolor {
    -webkit-transition: fill .5s;
    transition: fill .5s;
}

.creditcard .lightblue {
    fill: #03A9F4;
}

.creditcard .lightbluedark {
    fill: #0288D1;
}

.creditcard .red {
    fill: #ef5350;
}

.creditcard .reddark {
    fill: #d32f2f;
}

.creditcard .purple {
    fill: #ab47bc;
}

.creditcard .purpledark {
    fill: #7b1fa2;
}

.creditcard .cyan {
    fill: #26c6da;
}

.creditcard .cyandark {
    fill: #0097a7;
}

.creditcard .green {
    fill: #66bb6a;
}

.creditcard .greendark {
    fill: #388e3c;
}

.creditcard .lime {
    fill: #d4e157;
}

.creditcard .limedark {
    fill: #afb42b;
}

.creditcard .yellow {
    fill: #ffeb3b;
}

.creditcard .yellowdark {
    fill: #f9a825;
}

.creditcard .orange {
    fill: #ff9800;
}

.creditcard .orangedark {
    fill: #ef6c00;
}

.creditcard .grey {
    fill: #bdbdbd;
}

.creditcard .greydark {
    fill: #616161;
}

/* FRONT OF CARD */
#svgname {
    text-transform: uppercase;
}

#cardfront .st2 {
    fill: #FFFFFF;
}

#cardfront .st3 {
    font-family: 'Source Code Pro', monospace;
    font-weight: 600;
}

#cardfront .st4 {
    font-size: 54.7817px;
}

#cardfront .st5 {
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
}

#cardfront .st6 {
    font-size: 33.1112px;
}

#cardfront .st7 {
    opacity: 0.6;
    fill: #FFFFFF;
}

#cardfront .st8 {
    font-size: 24px;
}

#cardfront .st9 {
    font-size: 36.5498px;
}

#cardfront .st10 {
    font-family: 'Source Code Pro', monospace;
    font-weight: 300;
}

#cardfront .st11 {
    font-size: 16.1716px;
}

#cardfront .st12 {
    fill: #4C4C4C;
}

/* BACK OF CARD */
#cardback .st0 {
    fill: none;
    stroke: #0F0F0F;
    stroke-miterlimit: 10;
}

#cardback .st2 {
    fill: #111111;
}

#cardback .st3 {
    fill: #F2F2F2;
}

#cardback .st4 {
    fill: #D8D2DB;
}

#cardback .st5 {
    fill: #C4C4C4;
}

#cardback .st6 {
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
}

#cardback .st7 {
    font-size: 27px;
}

#cardback .st8 {
    opacity: 0.6;
}

#cardback .st9 {
    fill: #FFFFFF;
}

#cardback .st10 {
    font-size: 24px;
}

#cardback .st11 {
    fill: #EAEAEA;
}

#cardback .st12 {
    font-family: 'Rock Salt', cursive;
}

#cardback .st13 {
    font-size: 37.769px;
}

/* FLIP ANIMATION */
.container {
    perspective: 1000px;
}

.creditcard {
    width: 100%;
    max-width: 400px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    transition: -webkit-transform 0.6s;
    -webkit-transition: -webkit-transform 0.6s;
    transition: transform 0.6s;
    transition: transform 0.6s, -webkit-transform 0.6s;
    cursor: pointer;
}

.creditcard .front,
.creditcard .back {
    position: absolute;
    width: 100%;
    max-width: 400px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    color: #47525d;
}

.creditcard .back {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.creditcard.flipped {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}
