@font-face {
    font-family: 'SEBANG_Gothic_Bold';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2104@1.0/SEBANG_Gothic_Bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SUITE-Regular';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2304-2@1.0/SUITE-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'TheJamsil5Bold';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2302_01@1.0/TheJamsil5Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'yg-jalnan';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_four@1.2/JalnanOTF00.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* PC 버전 */
@media screen and (min-width: 768px) {
    .container {
        width: min(calc(80vh * (11/17)), 90vw); /* 100vh -> 80vh로 수정 */
        margin: 20px auto;
    }
    
    #input-form, 
    #profile {
        max-height: 80vh; /* 최대 높이 제한 추가 */
    }
}

/* 모바일 버전 */
@media screen and (max-width: 767px) {
    .container {
        width: calc(100% - 40px);
        margin: 20px;
    }
}

#input-form {
    position: relative;
    padding-bottom: 20px;
    width: 100%;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow-y: auto; /* 내용이 넘칠 경우 스크롤 추가 */
    background-image: url('../images/front_cover.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 11/17;
    min-height: 400px;
}

#profile {
    width: 100%;
    aspect-ratio: 11/17;
    display: none;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

#logo {
    width: 300px;
    max-width: 80%;
    margin: 20px 0;
}

form {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    line-height: 50px;
}

#footer {
    width: 100%;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    font-size: 10pt;
}

canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

#profile {
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

#name-input,
#date-input,
button {
    position: absolute;
    left: 18%;
    width: 64%;
}

#name-input {
    top: 38%;
}

#date-input {
    top: 50%;
}

button {
    top: 67%;
    height: 100px;
    background-color: rgba(0, 0, 0, 0);
    border: none;
}

input {
    border: none;
    height: 40px;
    font-size: 14pt;
    font-family: 'SUITE-Regular';
    color: #6D6E71;
    border-bottom: 2px solid gray;
    box-sizing: border-box;
    padding: 0 10px;
    background-color: transparent;
}

@media screen and (max-width: 767px) {
    #name-input,
    #date-input{
        left: 17%;
        width: 60%;
        height: 30px;
    }


    button {
        left: 10%;
        width: 80%;
        height: 60px;
    }

    #name-input {
        top: 37%;
    }
    
    #date-input {
        top: 50%;
    }
    

    input {
        font-size: 4vw;
    }

    button {
        font-size: 4vw;
    }
}
