/*공통변수*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;300;400;500;700;900&display=swap');

@font-face {
    font-family: 'NanumSquareRound';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_two@1.0/NanumSquareRound.woff') format('woff');
}
@font-face {
    font-family: 'Galmetgol';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/naverfont_04@1.0/Galmetgol.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body::-webkit-scrollbar{display: none;}
:root{

    --D : #EB5B5B;
    --I : #EEB72B;
    --S : #07c23d;
    --C : #4559A8;
    --O : #777777;

    --D-light : #FFDFDF;
    --I-light : #FFF1CC;
    --S-light : #D7F4DF;
    --C-light : #DAE1FF;

    --D-lighter : #FDEFEF;
    --I-lighter : #FEF8E8;
    --S-lighter : #EBF6EE;
    --C-lighter : #EDEFF7;
    --O-lighter : #E1E1E1;

    --C-lighter01 : #DAEAF5;
    --C-lighter02 : #DBE6F8;

    --D-dark : #D14848;
    --I-dark : #C59928;
    --S-dark : #246737;
    --C-dark : #232F5F;

    --D-bg : #FFF2F2;

    --theme : #F67E3B;
    --theme-light : #FFD0B6;
    --theme-lighter : #FFF7F2 ;
    --theme-dark : #D76A2D;

    --casual : #F67E3B;
    --casual-light : #FFD0B6;
    --casual-lighter : #FFF7F2 ;
    --casual-dark : #D76A2D;

    --pro : #6B5898;
    --pro-light : #D3C8F1;
    --pro-lighter : #F9F6FF ;
    --pro-dark : #30234F;

    --alert-red : #F94A4A;
    --alert-blue : #30B4FF;
    --sub : #222F63;

    --dark1 : #f1f1f1;
    --dark2 : #cccccc;
    --dark3 : #999999;
    --dark4 : #777777;
    --dark5 : #555555;
    --dark6 : #222222;


    --userType : var(--theme);
    --userType-light : var(--theme-light);
    --userType-lighter : var(--theme-lighter);
    --userType-dark : var(--theme-dark);

    --reportTheme : var(--theme);
    --reportTheme-lighter : var(--theme-lighter) ;

    --maxWidth : 500px;
    --headerHeight : 60px;
    --viewHeight : calc(100vh - var(--headerHeight));
    --sidePadding : 0 1rem;

    -webkit-tap-highlight-color: rgba(255,255,255,0);

    --toastHeight1 : calc( var(--headerHeight) + 0.5rem );
    --toastHeight2 : 1rem;

    --scale1 : 0.92;

    color:var(--dark6);
    font-family: 'Noto Sans KR', sans-serif;
}
::selection{
    background-color: var(--theme);
    color: white;
}
html{
    background-color: #EDF0F3 ;
}
body{
    background-color: white;
    width: 100%;
    max-width: var(--maxWidth);
    margin: 0 auto;
    min-height: 100vh;
    box-sizing: border-box;
    position: relative;
    line-height: 1.5;
}
body *::-webkit-scrollbar{display: none;}
a * {cursor: pointer}
/*toast*/
.toast{
    width: 85%;
    height: max-content;
    max-width: calc( var(--maxWidth) - 0.75rem );
    background-color: rgba(0,0,0,0.7);
    color: white;
    font-size: 0.875rem;
    z-index: 99999;
    position: fixed;
    left: 50%;
    bottom: -5rem;
    transform: translateX(-50%);
    font-weight: normal;
    padding: 1rem 1rem;
    box-sizing: border-box;
    border-radius: 0.5rem;
    opacity: 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    backdrop-filter: blur(5px);
}
.toast p {
    flex-grow: 1;
}
.toast button{
    color: white;
    background-color: rgba(241,241,241,0.1);
    padding: 0.3rem 0.75rem;
    border-radius: 0.3rem;
    border-left: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;

}
.toast.on{
    bottom: -5rem;
    animation-name: toastAnimation;
    animation-duration: 0.4s;
    animation-delay: 0.1s;
    animation-fill-mode: forwards;
    animation-direction: normal;
    animation-iteration-count: 1;
    animation-timing-function: cubic-bezier(.19,1.35,.7,1);
}
.toast.hide{
    bottom: -5rem;
    animation-name: toastHide;
    animation-duration: 0.4s;
    animation-timing-function: cubic-bezier(.19,1.35,.7,1);
}
/*@keyframes toastAnimation {*/
/*    0%{*/
/*        bottom: -5rem;*/
/*        opacity: 0;*/
/*    }*/
/*    10%{*/
/*        bottom: 2rem;*/
/*        opacity: 1;*/
/*    }*/
/*    90%{*/
/*        bottom : 2rem;*/
/*        opacity: 1;*/
/*    }*/
/*    92%{*/
/*        bottom : 2.3rem;*/
/*        opacity: 1;*/
/*    }*/
/*    100%{*/
/*        bottom : -5rem;*/
/*        opacity: 0;*/
/*    }*/
/*}*/
@keyframes toastAnimation {
    0%{
        bottom: -5rem;
        opacity: 0;
    }
    100%{
        bottom: 2rem;
        opacity: 1;
    }
}
@keyframes toastHide {
    0%{
        bottom: 2rem;
        opacity: 1;
    }
    100%{
        bottom: 0;
        opacity: 0;
    }

}
/*모달*/

/* modal */
.modal{
    z-index: 9999;
    transition: all 0.3s;
    display: none;
    opacity: 0;
    position: fixed;
    left: 50%;
    width: 100%;
    max-width: var(--maxWidth);
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: scroll;
}
.modal.active{
    opacity: 1;
}
#modal-bg{
    /* width: 100vw; */
    /* max-width: var(--maxWidth); */
    /* height: 100%; */
    background-color: rgba(0, 0, 0, 0.0);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    box-sizing: border-box;
    transition: all 0.3s;
    opacity: 0;
}
#modal-bg.active{
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 1;
}