@ti-color-bg: #E6E7ED;
.wrap{
    position:relative;
    z-index:100;
    background:#fff;
}
.arc-btns-wrap{
    position:relative;
    z-index:100;
    background:#fff;
    padding-top:30px;
}

.noscroll{
    overflow:hidden;
}
.velcro-wrap{
    font-size:16.6pt;
    margin:0;
    background:#f1f1f1;
    font-size:16.6pt;
    *{
        position:relative;
        box-sizing: border-box;
    }
    a{
        color:inherit;
        &:visited{
            color:inherit;
        }
    }
    .velcro-header{
        height:50px;
        text-align:left;
        position:fixed;
        top:0;
        width:100%;
        z-index:100;
        padding:10px 6%;
        font-size:0.75em;
        display:flex;
        transition:0.2s all ease-in;
        -webkit-transition:0.2s ease-in;
        -moz-transition:0.2s ease-in;
        -o-transition:0.2s ease-in;
        opacity:0;
        font-family:"Noto Sans KR", sans-serif;
        transform:translateY(-10px);
        &.show{
            opacity:1;
            transform:translateY(0px);
        }
        &>*{
            display:inline-block;
            margin:15px 0;
        }
        div{
            text-align:left;
        }
        #logo{
            width:10%;
            div{
                margin: 10px 40px 0;
                position: relative;
                color:#38252A;
                display:inline-block;
                height:30px;
            }
        }
        #logo_des{
            width:100%;
            text-decoration: none;
        }
        #mob_des{
            display:none;
        }
        #menu{
            width:10%;
            cursor:pointer;
            text-align:right;
            a{
                text-align:right;
            }
        }
    }
    .mobile{
        display:none;
    }
    #follow_sub{
        position:fixed;
        z-index:1;
        // opacity:0;
        transition:0.3s all ease-in;
        -webkit-transition: 0.3s ease-in;
        -moz-transition: 0.3s ease-in;
        -o-transition:  0.3s ease-in;
        top: 20%;
        width:200px;
        font-size:.75em;
        left: 7%;
        opacity:0;
        font-family:"Noto Serif KR", serif;
        transform:translateY(-10px);
        &.show{
            opacity:1;
            transform:translateY(0px);
        }
        .subcap_container{
            z-index:10;
        }
        .subcap_bd{
            font-weight:700;
        }
        .subcap_lt{
            display:block;
        }
        
    }
    
    .seperator{
        width:20%;
        height:1px;
        background:#000;
        margin:7em auto;
    }
    
    .sticking-bg{
        position:fixed;
        height:100%;
        top:0;
        opacity:.25;
        width:100%;
        .sticking-grad{    
            position: absolute;
            width: 100%;
            top: 0;
            height: 101%;
            background: linear-gradient(90deg, transparent 0%, #f1f1f1 25%,#f1f1f1 75%, transparent);
        }
    }
    
    .title-wrap{
        height:130vh;
        opacity:0;
        z-index:100;
        transition:.7s opacity ease-in-out;
        font-family:"Noto Serif KR", serif;
        .canvas-wrap{
            .grad{
                pointer-events:none;
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: linear-gradient(0deg, #f1f1f1, transparent, #67696d);
            }
        }
        .contents{
            width:100%;
            height:100vh;
            top:0;
            pointer-events:none;
            position:absolute;
            .information{
                width: 100%;
                height: 100%;
                padding: 6%;
                font-family:"Noto Sans KR", sans-serif;
                font-size:.75em;
                .credit{
                    position:absolute;
                    bottom:8%;
                    .credit-wrap{
                        color:#38252A;
                        margin-top:80px;
                        .role{
                            margin-bottom:10px;
                        }
                    }
                }
            }
            .letters{
                text-align:center;
                padding:70px;
                height:100%;
                left:0;
                right:0;
                top:0;
                margin:auto;
                position:absolute;
                svg{
                    opacity:.85;    
                    max-width: 100%;
                    height: 100%;
                    .fill {
                        transform:translate(0, -120%);
                        animation-delay:1s;
                        animation-name: fillAction;
                        animation-iteration-count: 1;
                        animation-timing-function: cubic-bezier(0.19, 0.15, 0, 1.04);
                        animation-duration: 6s;
                        animation-fill-mode: forwards;
                    }           
                    #waveShape {
                        animation-name: waveAction;
                        animation-direction: alternate;
                        animation-iteration-count: infinite;
                        animation-timing-function: ease-out;
                        animation-duration: 0.5s;
                        width: 300px;
                        height: 150px;
                        // fill: #04ACFF;
                    }
                }
                .subtitle{
                    margin-top:7%;
                    .editor{
                        width: 60%;
                        margin: 30px auto;
                        font-size: .30em;
                        word-break: keep-all;
                    }
                    .subtitle-seperator{
                        height:1px;
                        width:10%;
                        margin:30px auto;
                        background:#a1a1a1;
                    }
                }
                svg{
                    height:100%;
                    // margin:auto;
                }
            }
        }
    }
    
    .varticle{
        text-align:left;
        width:640px;
        font-size:.97em;
        margin:auto;
        line-height:1.7;
        word-break:keep-all;
        font-family:"Noto Sans KR", sans-serif;
        font-weight:400;
        >div{
            margin-bottom:40px;
            word-break:keep-all;
        }
        img{
            width:100%;
            margin-bottom:40px;
        }
        .hascaption{
            img{
                margin-bottom:5px;
            }
            span{
                font-size:.75em;
                opacity:.5;
            }
        }
        .add-year{
            span{
                opacity:0;
                transition:.2s all ease-in;
                display:block;
                &.show{
                    opacity:1;
                }
                &:before{
                    content:"";
                    display:inline-block;
                    width:50px;
                    height:1px;
                    background:#000;
                    vertical-align: middle;
                    margin-right:10px;
                }
            }
        }
        
        .add-year-noline{
            span{
                opacity:0;
                transition:.2s all ease-in;
                display:block;
                &.show{
                    opacity:1;
                }
                &:before{
                    content:"";
                    width:50px;
                    height:1px;
                    background:#000;
                    vertical-align: middle;
                    margin-right:10px;
                }
            }
        }
    }
    .varticle-chapter{
        font-weight:900;
        width:640px;
        font-size:1em;
        margin:100px auto 40px;
        line-height:1.8;
        word-break:keep-all;
        font-family:"Noto Sans KR", sans-serif;
        &:after{
            content:"";
            position:absolute;
            bottom:-10px;
            width:30px;
            height:2px;
            left:0;
            background:#000;
        }
    }
    .judge-img-wrap{
         text-align:center;
        width: 100%;
        padding: 10%;
        background: #333;
        margin-bottom:60px;
        .judge-single{
            display:flex;
            align-items:center;
            margin-bottom:40px;
            .judge-img{
                width:60%;
                padding:0 10%;
                img{
                    width:100%;
                }
            }
            .judge-d{
                font-family:"Noto Serif KR", serif;
                text-align:left;
                .judge-d-title{
                    font-size:1em;
                    margin-bottom:10px;
                }
                .judge-d-text{
                    font-size:.75em;
                    line-height:1.77;
                    margin-bottom:30px;
                    word-break:keep-all;
                }
                width:40%;
                color:#fff;
            }
        }
        .judge-btn{
            border:1px solid #fff;
            color:#fff;
            text-decoration:none;
            padding:15px;
            margin:auto;
            display:inline-block;
            margin-top:50px;
            font-size:.75em;
        }
    }
    
    .story{
        text-align:center;
        width:640px;
        font-size:1em;
        margin:auto;
        line-height:1.8;
        word-break:keep-all;
        font-family:"Noto Serif KR", serif;
        font-weight:600;
        >div{
            margin-bottom:40px;
        }
       
        .judge{
            line-height:3.2;
            .hidden{
                transition:0.1s all ease-in;
                position: absolute;
                font-family: "Noto Sans KR";
                font-weight:500;
                top: 12px;
                font-size:0.74em;
                text-align: left;
                color:rgba(33, 33, 33, 0);
                span{
                    transition:0.1s all ease-in;
                    line-height:53pt;
                    background-image:url(//ojsfile.ohmynews.com/dst/2020/abuse/img/grain.gif);
                    opacity: .7;
                    // background-color:rgb(234 234 234);
                    cursor:pointer;
                }
            }
        }
    }
    .message{
        text-align:left;
        width:85%;
        margin:auto;
        font-size:0.7em;
        .message-loading {
            background-color: @ti-color-bg;
            will-change: transform;
            width: auto;
            border-radius: 30px;
            padding: 20px;
            margin-bottom:10px;
            display: table;
            position: relative;
            animation: 2s bulge infinite ease-out;
            position:absolute;
            top:0;
            span {
              height: 10px;
              width: 10px;
              float: left;
              margin: 0 1px;
              background-color: #9E9EA1;
              display: block;
              border-radius: 50%;
              opacity: 0.4;
              .spanloop (@i) when (@i < 4) {
                &:nth-of-type(@{i}) {
                  animation: 1s blink infinite (@i * .3333s);
                }
                .spanloop(@i + 1)
              }
              .spanloop(1);
            }
          }
          @keyframes blink {
            50% {
              opacity: 1;
            }
          }
          @keyframes bulge {
            50% {
              transform: scale(1.05);
            }
          }
          // vertically center demo 
          html {
            display: table;
            height: 100%;
            width: 100%;
          }
          
          body {
            display: table-cell;
            vertical-align: middle;
          }
        .message-block-wrap{
            max-width:55%;
            font-family:"Noto Sans KR", sans-serif;
            font-weight:400;
            clear:both;
            transition:.1s all ease-in;
            transform:scale(1, 0);
            &.show{
                transform:scale(1);
            }
            &.waituser{
                margin-left:auto;
                transform:scale(1);
                text-align:right;
                &:hover{
                    &:after{
                        content: "";
                        position: absolute;
                        background-color: #37ca5b;
                        border-radius: 100%;
                        width: 30px;
                        height: 30px;
                        right: -40px;
                        background-image:url(//ojsfile.ohmynews.com/dst/2020/abuse/img/send.png);
                        background-position:center;
                        background-size:40%;
                        background-repeat: no-repeat;
                        cursor:pointer;
                        &:hover{
                            opacity:.7;
                        }
                    }
                }
                .yellow{
                    background:#fff;
                    color:#333;
                    border:1px solid #37ca5b;
                    cursor:pointer;
                    &:hover{
                        background:#37ca5b;
                        color:#fff;
                    }
                }
            }
            &.sentuser{
                margin-left:auto;
                transform:scale(1, 0);
                text-align:right;
                &:after{
                    transform:scale(0);
                    background-image:url(//ojsfile.ohmynews.com/dst/2020/abuse/img/send.png);
                }
                .yellow{
                    background:#37ca5b;
                }
            }
            .yellow{
                padding:10px;
                margin-bottom:5px;
                border-radius:10px;
                display:inline-block;
                color:#fff;
                transition:0.1s all ease-in;
            }
            .grey{
                display:inline-block;
                background:@ti-color-bg;
                padding:10px;
                margin-bottom:5px;
                border-radius:10px;
            }
        }
    }
    .varticles-list{
        width:100%;
        margin-top:150px;
        border-top:1px solid #d1d1d1;
        
        .list-item{
            display:block;
            padding:40px;
            border-bottom:1px solid #d1d1d1;;
            background-size:cover;
            background-position:center;
            background-repeat:no-repeat;
            // &:hover{
            //     .title{
            //         height:30%;
            //     }
            // }
            &.disabled{
                pointer-events: none;
                -moz-user-select: none;
                -khtml-user-select: none;
                -webkit-user-select: none;
                -ms-user-select: none;
                user-select: none;
                .title{
                    opacity:0.3;
                }
                .subtitle{
                    opacity:0.3;
                }
                &:hover{
                    background:transparent;
                }
            }
            &:hover{
                background:#eaeaea;
            }
            .title{
                height:8%;
                text-align:center;
                margin-bottom:20px;
                transition:.2s all ease-in;
                img{
                    height:100%;
                }
            }
            .subtitle{
                word-break:keep-all;
                font-size:1em;
                font-family:"Noto Serif KR", serif;
                text-align:center;
            }
        }
    }
    
    .menu-list{
        width:400px;
        top:0;
        transform:translateX(100vw);
        height:100vh;
        background:#f1f1f1;
        overflow:auto;
        font-size:.75em;
        transition:.2s all ease-in;
        position:fixed;
        font-family:"Noto Serif KR", serif;
        z-index: 101;
        border-left:1px solid #333;
        &.show{
            transform:translateX(calc(~"100vw - 400px") );
        }
        .menu-top{
            display:flex;
            padding:20px;
            a{
                width:100%;
            }
            .closemenu{
                width:50px;
                height:20px;
                text-align:right;
                img{
                    height:100%;
                }
            }
        }
        .menu-item{
            text-decoration: underline;
            width: 90%;
            margin: auto;
            display: block;
            word-break: keep-all;
            margin-bottom: 32px;
            &:nth-child(2){
                margin-top:30px;
            }
        }
    }
    
    @keyframes fillAction {
        0% {
            transform: translate(0, -110%);
        }
        100% {
            transform: translate(0, -5%);
        }
        }
        @keyframes waveAction {
        0% {
            transform: translate(-30%, 0);
        }
        100% {
            transform: translate(-10%, 0);
        }
    }
    
    .closing{
        font-size:0.65em;
        padding:30px;
        font-family:"Noto Serif KR", serif;
        .closing-name{
            width: 60%;
            margin: 30px auto;
            text-align: center;
        }
        .closing-mention{
            width: 60%;
            margin: 5px auto;
            text-align: center;
        }
        .sns{
            margin-top:30px;
            width: 60%;
            text-align: center;
            color:#fff;
            margin:30px auto 40px;
            img{
                height:20px;
                margin:0 20px;
            }
        }
    }
    
    .footer{
        width:100%;
        height:150px;
        color:#fff;
        background:#000;
        position:relative;
        text-align:left;
        font-size:0.65em;
        div{
            padding-left:20px;
            text-align:left;
        }
        svg{
            padding-top:30px;
            fill:#fff;
            height:50px;
            display:none;
        }
        .copy{
            display:flex;
            position:absolute;
            bottom:30px;
            padding-left:0;
            div{
                padding-right:30px;
            }
            a{
                color:#fff;
                font-weight:700;
            }
        }
    }
    
    
    .table-graph{
        width:640px;
        margin:100px auto 0;
        display:block;
        &#tb1{
            width:100%;
        }
        .charttitle{
            width:640px;
            margin:auto;
            font-size:1em;
            font-weight:900
        }
        .legend{
            width:640px;
            margin:10px auto 0;
    
            .legend_item{
                display:inline-block;
                margin-right:15px;
                &.clickable{
                    cursor:pointer;
                }
                &.exclude{
                    opacity:0.2;
                }
                div{
                    min-width: .75em;
                    min-height: .75em;
                    display: inline-block;
                    vertical-align:middle;
                    font-size:.75em;
                }
        
            }
        }
        .chartinner{
            height:400px;
        }
    
        .barinner{
            height:90%;
            width:95%;
            position:absolute;
            bottom:0;
            right:0;
            display:flex;
            z-index:1;
            align-items:flex-end;
            .bar{
                will-change: transform;
                height:100%;
                width:20%;
                display:flex;
                flex-direction: column;
                align-items: flex-end;
                /* transform:scaleY(0); */
                transform-origin:bottom;
                transition:0.6s all cubic-bezier(0.76, 0.04, 0.17, 0.99);
                -webkit-transition: 0.6s cubic-bezier(0.76, 0.04, 0.17, 0.99);
                -moz-transition:  0.6s cubic-bezier(0.76, 0.04, 0.17, 0.99);
                -o-transition: 0.6s cubic-bezier(0.76, 0.04, 0.17, 0.99);
                transform:scale(1);
                // &>div{
                //     display:table-cell;
                // }
                &>div:first-child{
                    margin-top:auto;
                }
                &.exclude{
                    transform:scale(1,0);
                }
            }
            .exclude{
                transform:scale(1,0);
            }
        }
        .chart-x{
            width:95%;
            position:absolute;
            right:0;
            display:flex;
            .skip{
                position: absolute;
                width: 6px;
                top: -375px;
                height: 380px;
                border-left: 1px dotted #000;
                border-right: 1px dotted #000;
                z-index: 10;
                background: #f1f1f1;
                &:first-child{
                    left:86.5%;
                }
                &:nth-child(2){
                    left: 95.5%;
                }
            }
        }
    }
    .axisinner{
        z-index: 1;
        position: absolute;
        bottom: 0;
        height: 90%;
        width: 100%;
    }
    canvas{
        width:100%;
        height:100%;
    }
    @media screen and (max-width:780px) and (min-width:760px){
        .velcro-header{
            background:#f1f1f1;
            border-bottom:.5px solid #333;
            font-size:.9em;
            font-weight:600;
            padding:10px 6%;
            height:auto;
            #logo_des{
                display:none;
            }
            #mob_des{
                width: 100%;
                margin-top:2px;
                margin-bottom:0;
                display:block;
                text-decoration:none;
                span{
                    display:block;
                }
                .subcap_lt{
                    font-weight:400;
                }
            }
            #menu{
                margin: 10px;
    
            }
        }
        .pc{
            display:none;
        }
        .mobile{
            display:block;
        }
        #follow_sub{
            top:0;
            display:none;
            margin-top:10px;
            z-index:101;
        }
    }
    @media screen and (max-width:760px){
        *{
            // border:1px solid #ff000022;
        }
        font-size:13pt;
        &:nth-child(2){
            padding-top:180px;
        }
        // html, body{
        //     font-size:12pt;
        // }
        .velcro-header{
            background:#f1f1f1;
            border-bottom:.5px solid #333;
            font-size:.9em;
            font-weight:600;
            padding:10px 6%;
            height:auto;
            #logo_des{
                display:none;
            }
            #mob_des{
                width: 100%;
                margin-top:2px;
                margin-bottom:0;
                display:block;
                text-decoration:none;
                span{
                    display:block;
                }
                .subcap_lt{
                    font-weight:400;
                }
            }
            #menu{
                margin: 10px;
    
            }
        }
        .pc{
            display:none;
        }
        .mobile{
            display:block;
        }
        #follow_sub{
            top:0;
            display:none;
            margin-top:10px;
            z-index:101;
        }
        .title-wrap {
            height:100vh;
            // padding-bottom:10%;
            font-size:1em;
            text-align:center;
            .contents{
                pointer-events:none;
                height:100%;
                .information{
                    height:100%;
                    text-align:center;
                    .title{
                        margin-top:10px;
                        font-size:1em;
                        font-weight:600;
                    }
                    .credit{
                        bottom:4%;
                        margin:auto;
                        left:0;
                        right:0;
                        font-size:1em;
                        font-weight:600;
                        .credit-wrap{
                            margin-top:25px;
                        }
                    }
                }
                .letters{
                    padding: 45% 2.5%;
                    &.main{
                        padding:20% 0;
                        width:85vw;
                        svg{
                            width:100%;
                            height:auto;
                        }
                        
                    }
                    svg{
                        height:70vw;
                        margin:auto;
                    }
                    .subtitle{
                        word-break:keep-all;
                        margin-top:20%;
                    }
                }
            }
        }
        .message{
            width:100%;
            .message-block-wrap{
                max-width:65%;
                font-size:1em;
            }
        }
        .varticle{
            width:90%;
        }
        .story{
            width:90%;
            .judge{
                .hidden{
                    font-size: 0.9em;
                    span{
                        line-height:41pt;
                    }
                }
            }
        }
        .varticle-chapter{
            width:90%;
        }
        .table-graph{
            width:90%;
            .charttitle{
                width:100%;
            }
            .legend{
                width:100%;
            }
            &#tb1{
                .chartinfo{
                    margin-bottom: -70px;
                    z-index:10;
                }
                .chartinner{
                    .bar{
                        &:nth-child(6n+1){
                            display:none;
                        }
                        &:nth-child(6n+2){
                            display:none;
                        }
                        &:nth-child(6n+3){
                            display:none;
                        }
                    }
                    .axisinner{
                        div{
                            &:nth-child(23), &:nth-child(24), &:nth-child(25), &:nth-child(26){
                                display:none;
                            }
                        }
                    }
                }
                .chart-x{
                    .skip{
                        display:none;
                    }
                    .tick{
                        &:nth-child(2n+1){
                            display:none;
                        }
                    }
                }
            }
            
        }
        .sticking-bg{
            display:none;
        }
    
        .menu-list{
            width:100%;
            height:100%;
            overflow:auto;
            font-size:1em;
            font-family:"Noto Serif KR", serif;
            .menu-top{
                position:fixed;
                width:100%;
                top:0;
            }
            .menu-item:nth-child(2){
                margin-top:120px;
            }
            &.show{
                transform:translateX(0%);
            }
        }
        .judge-img-wrap{
            padding:0;
            .judge-single{
                display:block;
                width:95%;
                height:200vh;
                margin:auto;
                .judge-img{
                    margin:auto;
                    top: 0;
                    width: 90%;
                    height: 100vh;
                    display: flex;
                    align-items: center;
                    padding: 0;
                    z-index:1;
                    transform:translateZ(0);
                    position:-webkit-sticky;
                    position:sticky;
                }
                .judge-d{
                    width:100%;
                    background:#fff;
                    z-index:10;
                    color:#333;
                    text-align:center;
                    padding:20px;
                    z-index:1;
                    transform:translateZ(0px);
                    border:1px solid #000;
                    .judge-d-title{
                        font-size:1em;
                        &:last-child{
                            margin-bottom:0;
                        }
                    }
                    .judge-d-text{
                        font-size:.9em;
                        &:last-child{
                            margin-bottom:0;
                        }
                    }
                }
            }
             .judge-btn{
                margin-top:20px;
                margin-bottom:60px;
            }
        }
        .closing{
            margin-top:60px;
            &:before{
                content:"";
                left: 0;
                right: 0;
                margin:auto;
                position:absolute;
                top:0;
                width:300px;
                height:1px;
                border-top:.5px solid #333;
            }
            .closing-mention{
                width:80%;
                word-break:kep-all;
            }
        }
    }
}
