@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    color: #333;
    word-break: break-word;
}
img{
    width: 100%;
    display: block;
    -webkit-touch-callout: none;
}
a{  
    text-decoration: none;
    color: initial;
}
b{
    display: block;
}
body{
    background: #F4F5F6;
    max-width: 500px;
    margin: 0 auto;
    touch-action: pan-x pan-y;
}
#content{
    padding-bottom: 60px;
}
.flex{
    display: flex;
}
input{
    width: 100%;
    height: 48px;
    background: rgba(214, 214, 214, 0.2);
    border-radius: 5px;
    border-color: transparent;
    padding-left: 23px;
}
textarea{
    width: 100%;
    resize: none;
    background: rgba(214, 214, 214, 0.2);
    border-radius: 5px;
    border-color: transparent;
    padding: 13px 23px;
}
input::placeholder,
textarea::placeholder{
    color: #ccc;
}
button{
    background: #1E3A8A;
    border-radius: 5px;
    border: transparent;
    color: #fff;
    font-weight: bold;
    width: 50%;
    height: 46px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
select{
    background: rgba(214, 214, 214, 0.2);
    border-radius: 5px;
    border-color: transparent;
    padding-left: 23px;
    height: 48px;
    width: 100%;
    color: #ccc;
}
.list{
    flex-direction: column;
    border-radius: 10px;
    background: #fff;
    padding-bottom: 15px;
    margin-bottom: 14px;
}
.card{
    padding: 30px 25px 20px;
    background: #fff;
    margin-bottom: 15px;
    border-radius: 5px;
}
.active{
    font-weight: bold;
    color: #1E3A8A;
}
#content > div{
    padding: 22px;
}
.ellipsis{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* -----------------
        Header 
----------------- */
header{
    background: #fff;
    padding: 23px;
}
#prev_header{
    display: flex;
    gap: 12px;
    align-items: center;
}
#prev_header img{
    width: 25px;
}
.header_prev{
    cursor: pointer;
}
/* -----------------
        Footer 
----------------- */
footer{
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 55px;
    max-width: 500px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-items: center;
    z-index: 2;
    font-size: 10px;
    border-top: 1px solid #ddd;
    background: #fff;
}
footer div a{
    display: flex;
    gap: 5px;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}
footer img{
    width: 25px;
}
footer p{
    color: #777;
}
.chat{
    position: relative;
}
.unread{
    position: absolute;
    display: block;
    right: 1px;
    top: 3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: red;
}
/* -----------------
        loading 
----------------- */
#loading{
    /* display: none; */
}
.loader_cover {
    width: 100%; 
    /* height: 100%;  */
    max-width: 500px; 
    position: relative;
    top: 0;
    left: 50%; 
    z-index: 1;
    transform: translateX(-50%); 
    display: flex;
    justify-content: center; 
    align-items: center; 
}
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #1E3A8A;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {transform: rotate(0deg);}
    100% {transform: rotate(360deg);}
} 

/* 반응형 */
@media(max-width: 499px){
    input, textarea{
        padding-left: 10px;
        font-size: 16px;
    }
    input::placeholder, textarea::placeholder{
        font-size: 14px;
    }
    select{
        font-size: 14px;
    }
    .datepicker img{
        width: 18px;
        top: 15px;
    }
    .bubble {
        max-width: 220px !important;
    }
}