body {
    margin: 0;
    font-family: 'Noto Sans KR', sans-serif;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, #fa756c 80%, rgb(255, 199, 199), #009000);
}

section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: white;
    width: 650px;
    height: 640px;
    border-radius: 24px;
}

section:nth-child(1) {
    margin-right: -90px;
    background-color: #eee;
    width: 500px;
    height: 540px;
    z-index: 1;
}

.inputBox-group {
    position: relative;
}

.infobox-logo {
    width: 200px;
}

.infobox-mainImg {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: 0% 50%;
}

.creditcard-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 40%;
    overflow-x: hidden;
}

.creditcard-mainImg {
    width: 300px;
    transition: width 0.5s ease;
    cursor: pointer;
}

.creditcard-mainImg:nth-child(odd) {
    width: 200px;
    opacity: 0.5;
    mix-blend-mode: luminosity;
}

.creditcard-mainImg:nth-child(odd):hover {
    opacity: 1;
    width: 300px;
    mix-blend-mode: normal;
}

.creditcard-mainImg:nth-child(odd):hover + .creditcard-mainImg:nth-child(even){
    opacity: 0.5;
    mix-blend-mode: luminosity;
    width: 200px;
}

.creditcard-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 60%;
    width: 50%;
}

.creditcard-body_namewrap,
.creditcard-body_numberwrap,
.date_wrap_inputwrap {
    display: flex;
}

.main_input {
    width: 23%;
    height: 20px;
    margin-right: 2%;
    text-align: center;
    border: none;
    border-bottom: 1px solid lightgray;
    outline: none;
    transition: border-width 0.1s ease;
}

.main_input:focus {
    border-bottom: 3px solid #006600;
}

.main_input:last-child {
    margin-right: 0;
}

.main_input:first-child {
    margin-left: 0;
}

.sub_input {
    width: 50px;
    height: 20px;
    margin: 0 5px;
    text-align: center;
    border: none;
    border-bottom: 1px solid lightgray;
    outline: none;
    transition: border-width 0.1s ease;
}

.sub_input:focus {
    border-bottom: 3px solid #006600;
}

.creditcard-body_title {
    margin: 10px 0;
    font-size: 20px;
    color: black;
    font-weight: 500;
}

.date-cvv-wrap {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 20px;
}

.cvv-wrap,
.date-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cvv_input {
    width: 40px;   
}

.submit_button {
    width: 100%;
    height: 40px;
    margin-top: 30px;
    font-size: 18px;
    background-color: #009000;
    color: white;
    border : none;
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.5s ease;
}

.submit_button:hover {
    background-color: #006600;
}

.margin-35 {
    margin-top: 35px;
}

.flex_container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.name_input {
    width: 150px;
}