/* Import Courier new */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

*,*::after,*::before {
    padding:0;
    margin:0;
}
body {
    font-family: 'Space Mono', monospace;
    min-height: 100vh;
}
html {
    font-size: 62.5%;
}
h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
h5 {
    font-size: 1rem;
    margin-bottom: 1rem;
}
h6 {
    font-size: 0.8rem;
    margin-bottom: 1rem;
}
form {
    display:flex;
    flex-direction: column;
    font-size: 1.5rem;
}
input, textarea, select {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border: none;
    border-bottom: 1px solid #ccc;
}
input:focus, textarea:focus, select:focus {
    outline: none;
}
textarea {
    resize: none;
    width: 100%;
}

.container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 1rem;
}
.grid {
    display: grid;
}
.grid-center {
    place-items: center;
    min-height: 100vh;
}
.m-t {
    margin-top: 1rem;
}
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    background-color: #ccc;
    cursor: pointer;
    text-decoration: none;
    color: #000;
}
/* form styling */
.valid, .valid:focus {
    outline: 2px solid green;
}
.invalid, .invalid:focus {
    outline: 2px solid red;
}

.input-wrapper {
    display: flex;
    flex-direction: column-reverse;
    margin-bottom: 0.5rem;
}
.input-wrapper label {
    margin-bottom: 0.5rem;
    transform: translateY(116%);
    transition: all 0.3s ease-in-out;
    user-select: none;
}
.input-wrapper input {
    width: 100%;
}
.input-wrapper input:focus +  label,.input-wrapper textarea:focus + label, .input-wrapper select:focus + label, .input-wrapper .modified + label {
    transform: translateY(0);
}
.form-part-1.hidden {
    display: none;
}
.form-part-2 {
     display: none; 
}
.form-part-2.show {
    display: block;
}
.form-part-3 {
    display: none;
}
.card-number {
    position: relative;
}
.card-number i {
    position: absolute;
    right: -1%;
    top: 28px;
    font-size: 24px;
}
.center {
    text-align: center;
}
img {
    max-width: 100%;
    width: 50%;
    border-radius: 30px;
}
/* add Responsive to font size  */
@media only screen and (max-width: 600px) {
    html {
        font-size: 50%;
    }
}

/* add Responsive to font size  */
@media only screen and (max-width: 400px) {
    html {
        font-size: 40%;
    }
}

/* add Responsive to font size  */
@media only screen and (max-width: 300px) {
    html {
        font-size: 30%;
    }
}

/* add Responsive to font size  */
@media only screen and (max-width: 200px) {
    html {
        font-size: 20%;
    }
}
