@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');


*{

    box-sizing:border-box;

    font-family:Pretendard, sans-serif;

}



body{

    background:#ffffff;

    color:#222;

    margin:0;

    padding:40px;

}



.header{

    text-align:center;

    margin-bottom:40px;

}



.header h1{

    font-size:32px;

    font-weight:700;

    margin-bottom:10px;

}



.header p{

    color:#777;

    font-size:15px;

    margin:0;

    line-height:1.6;

}



#characterContainer{

    display:flex;

    flex-direction:column;

    gap:12px;

}



.characterInput{

    display:flex;

    align-items:center;

    gap:10px;

    padding:15px;

    border:1px solid #e5e5e5;

    border-radius:12px;

    background:#fafafa;

}



input{

    height:40px;

    border:1px solid #ddd;

    border-radius:8px;

    padding:0 12px;

    font-size:14px;

}



input[type="text"]{

    width:180px;

}



input[type="number"]{

    width:100px;

}



button{

    border:none;

    border-radius:8px;

    padding:10px 16px;

    cursor:pointer;

    font-size:14px;

}



#addCharacter{

    background:#222;

    color:white;

    margin-top:20px;

}



#compareButton{

    background:#222;

    color:white;

    margin-top:20px;

}



.deleteButton{

    background:#f1f1f1;

    color:#555;

}



.controlBox{

    margin-top:20px;

    display:flex;

    align-items:center;

    gap:15px;

}



#gapControl{

    width:200px;

}



#resultArea{

    margin-top:60px;

    display:flex;

    align-items:flex-end;

    gap:0px;

    min-height:750px;

    border-bottom:1px solid #ddd;

    padding:20px;

    overflow-x:auto;

}



.characterDisplay{

    display:flex;

    flex-direction:column;

    align-items:center;

}



.imageBox{

    height:700px;

    width:350px;

    display:flex;

    justify-content:center;

    align-items:flex-end;

}



.imageBox img{

    object-fit:contain;

}



.characterInfo{

    margin-top:16px;

    text-align:center;

    font-size:15px;

    font-weight:600;

}




/* 모바일 */

@media(max-width:600px){


    body{

        padding:12px;

    }



    .header h1{

        font-size:24px;

    }



    .characterInput{

        flex-direction:column;

        align-items:stretch;

        gap:6px;

        padding:10px;

    }



    input[type="text"],
    input[type="number"]{

        width:100%;

    }



    input[type="file"]{

        width:100%;

    }



    .deleteButton{

        width:100%;

    }



    .controlBox{

        flex-direction:column;

        align-items:stretch;

    }



    #gapControl{

        width:100%;

    }



    #resultArea{

        gap:10px;

        padding:10px;

        min-height:600px;

    }



    .imageBox{

        width:160px;

        height:600px;

    }


}
