*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    color: #000;
}

/* font setting */
@font-face {
    /* cafe24 font */
    /* 메뉴 용도 */
    font-family: 'menuFont';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/Cafe24Ohsquare.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    /* G마켓 산스 */
    /* 비주얼 용도 */
    font-family: 'sansFont';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    /* 구름 산스 */
    /* main Content 용도 (간단한 소개/) */
    font-family: 'contentFont';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408@1.0/goorm-sans-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    /* 티몬체 */
    /* titleText 용도 */
    font-family: 'titleFont';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_two@1.0/TmonMonsori.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


html, body{
    background: #f5f5f5;
}

/* loading */
#loadingBox{
    width: 100%;
    height: 100vh;
    position: fixed;
    background: #00000024;
    z-index: 105;
}
#loading{
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3489db;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    animation: loading 2s 0s infinite;

    position: absolute;
    left: 50%;
    top: 40%;

    transform: translate(-50%, -50%);
}

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

/* 모바일 배너 */
.mobileBanner{
    width: 300px;
    height: 50px;
    margin: 0 auto;

    top: 0;
    position: sticky;
    z-index: 105;

    display: none;
    
    &>div{
        width: 100%;
        height: 100%;
        background: #ffffff;
    }
}

/* 리더보드 배너광고 비활성화 */
.readerbord_banner{
    display: none;
    width: 728px;
    height: 90px;
    background: #fff;
    margin: 0 auto;
}

/* header */
header{
    width: 100%;
    height: 1.7cm;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    background: #f5f5f5;

    #headerAll{
        width: 80%;
        height: 100%;

        display: flex;
        justify-content: space-between;
        align-items: center;

        /* logo */
        #logoBox{
            width: 200px;
            height: 100%;

            img{
                width: 100%;
                height: 100%;
                object-fit: contain;
            }
        }

        /* 메뉴 */
        nav{
            margin-top: 5px;
            #mainMenu{
                display: flex;

                li{
                    
                }
                li>a{
                    font-size: 1.1rem;
                    padding: 0 10px;
                    font-family: "KOHIBaeumOTF";
                    
                    font-weight: bolder;
                    color: #636363;
                    &:hover{
                        border-bottom: 2px solid #000;
                        color: #000;
                    }
                }
            }
        }

        /* 햄버거 메뉴 */
        #hambugerMenu{
            width: 30px;
            height: 30px;
            margin-right: 20px;
            position: relative;
            display: none;

            div{
                background: #000;
                width: 100%;
                height: 13%;
                position: absolute;
            }

            &>div:nth-child(2){
                top: 50%;
                transform: translateY(-50%);
            }
            &>div:last-child{
                bottom: 0;
            }
        }

        #hambugerMenu.activeMenu{
            div:nth-child(2){
                display: none;
            }
            div:nth-child(1){
                top: 50%;
                transform: translateY(-50%) rotate(45deg);
            }
            div:nth-child(3){
                top: 50%;
                transform: translateY(-50%) rotate(135deg);
            }
        }

        #hambugerMenu_Box{
            position: absolute;
            background: #fff;
            right: 0;
            top: 0;
            height: 400px;
            z-index: 100;
            display: none; /* 비활성화 */
            box-shadow: 0 0 3px #000;

            width: 0;
            padding: 0;
            overflow: hidden;

            transition: 0.2s all;

            ul{
                margin-top: 20%;
                height: 300px;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                z-index: 101;

                li{
                }
                li>a{
                    font-size: 1.2rem;
                    padding: 0 4px;
                    font-family: "KOHIBaeumOTF";
                    display: flex;
                    align-items: center;
                    
                    font-weight: bolder;
                    color: #636363;
                    &:hover{
                        border-bottom: 2px solid #000;
                        color: #000;

                    }
                    &::before{
                        content: '●';
                        font-size: 0.7rem;
                        margin-right: 10px;
                    }
                }

            }
        }
    }
}

/* ======================= */

/* visualSection */
#visualSection{
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    margin-top: 1.7cm;

    img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #visual_text{
        position: absolute;
        top: 20%;
        left: 13%;
        width: 500px;

        p{
            font-size: 4.8rem;
            font-family: "sansFont";
            font-weight: bolder;
            color: #fff;
        }
    }
}


/* main */
main{
    max-width: 100%;
    display: flex;
    justify-content: space-around;
    padding-top: 80px;
    margin: 0 auto;
    
    /* 배너 광고판 */
    .bannerBox{
        width: 300px;
        height: 610px; /* 10px은 top 여유 공간 */
        position: sticky;
        display: flex;
        align-items: end;
        top: 0;
        
        .banner{
            background: #fff;
            width: 100%;
            height: 600px;
        }
    }
    
    /* mainContentBox */
    #mainContentBox{
        width: 60%;
    }
}

/* 메인 타이틀 */
.titleText{
    font-family: "titleFont";
    font-size: 2rem;
    font-weight: 600;
}

/* 서브 타이틀 */
.subText{
    font-family: "contentFont";
    font-size: 1.3rem;
}

#titleTextBox{
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* 계산 콘텐츠 섹션 */
#calcSection{
    margin-top: 40px;
    width: 100%;
    min-height: 650px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;

    #top{
        width: 100%;
        height: 70px;
        display: flex;
        justify-content: start;
        align-items: center;
        margin-bottom: 20px;

        #productNameBox{
            height: 100%;
            display: flex;
            align-items: center;
            
            label{
                font-family: "contentFont";
                font-size: 1.7rem;
                margin-right: 10px;
            }
            input{
                font-family: "contentFont";
                font-size: 1.5rem;
                background: #00000000;
                border: none;
                padding: 5px;
            }
        }

        #addBtnBox{
            height: 100%;
            display: flex;
            align-items: center;

            button{
                margin: 0 5px;
                padding: 10px 13px;
                font-size: 1.1rem;
                font-family: "contentFont";
                cursor: pointer;
            }
        }
    }
}

/* 계산활동박스 */
#calcMain{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    #ex{
        /* 설명 설정 */
        .type_item{
            position: relative;
            height: 25px;
            margin: 0 10px;

            .type_info_icon{
                position: absolute;
                left: 60%;
                bottom: 85%;
                font-weight: bolder;
                width: 13px;
                height: 13px;
                text-align: center;
                font-size: 0.5rem;
                border-radius: 50%;
                background: #6cc2ff;
                color: #fff;
                cursor: pointer;

                &:hover ~.type_info{
                    display: block;
                }
            }

            .type_info_icon2{
                position: absolute;
                left: 80%;
                bottom: 85%;
                font-weight: bolder;
                width: 13px;
                height: 13px;
                text-align: center;
                font-size: 0.5rem;
                border-radius: 50%;
                background: #6cc2ff;
                color: #fff;
                cursor: pointer;

                &:hover ~.type_info{
                    display: block;
                }
            }

            .type_info_icon3{
                position: absolute;
                left: 100%;
                bottom: 85%;
                font-weight: bolder;
                width: 13px;
                height: 13px;
                text-align: center;
                font-size: 0.5rem;
                border-radius: 50%;
                background: #6cc2ff;
                color: #fff;
                cursor: pointer;

                &:hover ~.type_info{
                    display: block;
                }
                &:hover ~.type_info1{
                    display: block;
                }
            }

            .type_info{
                display: none;
                position: absolute;
                bottom: 130%;
                left: 30%;
                width: 500px;
                background: #fff;
                padding: 10px;

                box-shadow: 0 0 5px #2f2f2f;

                z-index: 105;

                p{
                    font-size: 1rem;
                    line-height: 24px;
                }

                &:hover{
                    display: block;
                }
            }

            .type_info1{
                display: none;
                position: absolute;
                bottom: 130%;
                left: -350px;
                width: 500px;
                background: #fff;
                padding: 10px;

                box-shadow: 0 0 5px #2f2f2f;

                z-index: 105;

                p{
                    font-size: 1rem;
                    line-height: 24px;
                }

                &:hover{
                    display: block;
                }
            }
        }
    }

    table{
        border-collapse: collapse;
        box-shadow: inset 0 0 3px #686868;

        thead{
            border-bottom: 1px solid #989898;
            tr{
                th{
                    padding: 12px 0;
                }
            }
        }

        tbody{
            width: 100%;
            tr{
                width: 100%;

                td{
                    text-align: center;
                    font-size: 0.95rem;
                    padding: 5px 0;
                    border: 1px solid #9c9c9c;
                    border-top: none;

                    input{
                        width: 80%;
                        background: #00000000;
                        border: none;
                        box-shadow: inset 0 0 3px #000;
                        padding: 10px 5px;
                    }

                    button{
                        border: 1px solid #919191;
                        border-radius: 2px;
                        padding: 0 2px;

                        &:hover{
                            background: #dddddd;
                        }
                    }

                    .delete_btn{
                        background: #c4c4c4;
                    }
                }
            }
        }
    }
}

.btn_row{
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: end;

    margin-bottom: 5px;

    span{
        font-size: 1.3rem;
        font-family: "contentFont";

        &::before{
            content: "▶";
            font-size: 1.3rem;
            margin-right: 10px;
        }
    }
    button{
        padding: 8px 15px;
        font-size: 0.9rem;
        font-family: "contentFont";
        cursor: pointer;
    }
}

/* 계산값 입력 테이블 */
.calc_input_table{
    width: 100%;
    margin-bottom: 30px;

    &>thead>tr>th:first-child{
        width: 10%;
    }

    &>thead>tr>th:nth-child(2){
        width: 15%;
    }
    &>thead>tr>th:nth-child(3){
        width: 20%;
    }
    &>thead>tr>th:nth-child(4){
        width: 5%;
    }
    &>thead>tr>th:nth-child(5){
        width: 13%;
    }
    &>thead>tr>th:nth-child(6){
        width: 10%;
    }
    &>thead>tr>th:nth-child(7){
        width: 10%;
    }
    &>thead>tr>th:nth-child(8){
        width: 10%;
    }
    &>thead>tr>th:nth-child(9){
        width: 10%;
    }
    &>thead>tr>th:last-child{
        width: 5%;
    }
}


/* 계산 산출값 표시 박스 */
#calc_result_table{
    width: 94%;
    margin-top: 50px;
    opacity: 0;

    &>thead>tr>th:first-child{
        width: 20%;
    }

    &>thead>tr>th:nth-child(2){
        width: 20%;
    }
    &>thead>tr>th:nth-child(3){
        width: 20%;
    }
    &>thead>tr>th:nth-child(6){
        width: 25%;
    }
    &>thead>tr>th:nth-child(7){
        width: 15%;
    }
}

/* 계산버튼 */
#calc_btn{
    width: 300px;
    height: 50px;
    font-size: 1.2rem;
    margin-top: 30px;
    cursor: pointer;

}

/* 합계 표시 테이블 */
#calc_all_title{
    font-family: "contentFont";
    font-size: 1.1rem;
    margin-top: 40px;
    opacity: 0;
}

#calc_all{
    opacity: 0;
    width: 60%;
    margin-top: 10px;
    border: 1px solid #000;
}

/* ----------------- */
/* ================= */

/* footer */
footer{
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;

    #footerAll{
        width: 79%;
        display: flex;
        align-items: center;
        justify-content: center;
        

        #f_content{
            width: 35%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;

            #f_logo{
                width: 300px;
                height: 150px;
    
                img{
                    object-fit: contain;
                    width: 100%;
                    height: 100%;
                }
            }

            span{
                font-size: 1.1rem;
            }
            p{
                margin-top: 20px;
                font-size: 1.1rem;
                color: #000000;
            }
        }
    }
}

/* 기본정보 입력 권유 메세지 */
#default_info_message{
    position: fixed;
    left: 50%;
    top: -50%;
    transform: translateX(-50%);
    z-index: 101;
    transition: 0.5s all;

    background: #ffffff;
    box-shadow: 0 0 3px #000;
    padding: 10px 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    
    span{
        font-size: 1.1rem;
        display: flex;
        text-align: center;
    }
}

/* 다음 단계 산출 바로가기 버튼 */
#nextBtn{
    position: fixed;
    right: 5%;
    bottom: 3%;
    width: 150px;
    height: 60px;

    text-align: center;
    font-size: 1.2rem;
    font-family: "contentFont";
    border-radius: 5%;
    
    border: 2px solid #000;
    background: #c9c9c9;

    cursor: pointer;
}
