/* back icon */
.back-icon {
    display: flex;
    width: 20px;
    height: 20px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    position: absolute;
    top: 20px;
    left: 20px;
    cursor: pointer;
}

/* general */
body {
    font-family: SeoulNamsan, sans-serif;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    background-color: #f8f7f7;
}

/* main content*/
.container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 10px;
}

.container-text {
    display: flex;
    width: 100%;
    height: 150px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    text-align: center;
}

.container h1 {
    color: #272737;
    text-align: center;
    font-family: SeoulNamsan,sans-serif;
    font-size: 20px;
}

.container p {
    color: #272737;
    text-align: center;
    font-family: SeoulNamsan, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.card-image img {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 30px;
    display: block;
}

/* form */
.form-row {
    display: flex;
    gap: 50px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    color: #B27889;
    font-family: SeoulNamsan, sans-serif;
    font-size: 14px;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: SeoulNamsan, sans-serif;
    font-size: 14px;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #B27889;
    outline: none;
}

#your-name {
    display: flex;
    padding: 12px 17px 11px 17px;
    justify-content: center;
    align-items: center;
    height: 20px;
    border: 2px solid #B27889;
    border-radius: 20px;
    background-color: #f8f7f7;
}

#card-number {
    display: flex;
    padding: 12px 17px 11px 17px;
    justify-content: center;
    align-items: center;
    height: 20px;
    border: 2px solid #B27889;
    border-radius: 20px;
    background-color: #f8f7f7;
}

.cvv-group {
    position: relative;
    width: 100%; /* Allow it to span the container width */
}

.input-and-icon {
    position: relative;
    width: 100%;
}


.eye-icon {
    position: absolute;
    top: 50%; /* Vertically center */
    right: 20%; /* Distance from right */
    transform: translateY(-50%);
    cursor: pointer;
}

#eye-icon-img {
    width: 20px;
    height: 20px;
}

#expiration-date {
    display: flex;
    padding: 12px 17px 11px 17px;
    justify-content: center;
    align-items: center;
    height: 20px;
    width: 70%;  /* Ensures they are both the same width */
    border: 2px solid #B27889;
    border-radius: 20px;
    background-color: #f8f7f7;
}

#cvv {
    display: flex;
    padding: 12px 17px 11px 17px;
    justify-content: center;
    align-items: center;
    height: 20px;
    width: 70%;  /* Ensures they are both the same width */
    border: 2px solid #B27889;
    border-radius: 20px;
    background-color: #f8f7f7;
}

/* buttons */

.form-row-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 60px;
    width: 100%;
    align-items: center;
}

button {
    padding: 12px;
    border-radius: 20px;
    font-size: 16px;
    border: 2px solid #282E4C;
    width: 50%;
    cursor: pointer;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}

/* Cancel Button */
button[type="cancel"] {
    background-color: #f8f7f7;
    color: #282E4C;
    text-align: center;
    font-family: SeoulNamsan, sans-serif;
}

/* Confirm Button */
button[type="confirm"] {
    background-color: #282E4C;
    color: #f8f7f7;;
    text-align: center;
    font-family: SeoulNamsan, sans-serif;
}

/*Hover Effects*/
button[type="cancel"]:hover {
    background-color: #f8f7f7;; 
    color: #000; 
    transform: scale(1.05); /* Slightly enlarge the button */
}

button[type="confirm"]:hover {
    background-color: #3a3f63;
    transform: scale(1.05); /* Slightly enlarges the button */
}

  /* Media queries */
  @media screen and (min-width: 400px) {
    .bottom-nav {
      max-width: 1080px;
    }