/*================================
BASE
================================*/
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#d9d9d9;
    font-family:
        "Hiragino Sans",
        "Yu Gothic",
        sans-serif;
    color:#1822a6;
}

button,
textarea{
    font-family:inherit;
}

/*================================
APP
================================*/
.app{
    width:100%;
    max-width:900px;
    margin:auto;
    padding:12px;
}
    /*================================
TAB
================================*/
.tabArea{
    display:flex;
    margin-bottom:16px;
    margin-top:15px;
}

.tabButton{
    flex:1;
    height:60px;
    border:none;
    background:#bebebe;
    color:#5d76ff;
    font-size:20px;
    font-weight:bold;
    cursor:pointer;
    transition:.2s;
}

.tabButton:first-child{
    border-radius:18px 0 0 18px;
}

.tabButton:last-child{
    border-radius:0 18px 18px 0;
}

.tabButton.active{
    background:#5d76ff;
    color:white;
}

/*================================
PAGE
================================*/
.page{
    width:100%;
}

/*================================
INPUT
================================*/
.inputBlock{
  margin-bottom:22px;
}

.blockTitle{
    color:#1822a6;
    font-size:20px;
    margin-bottom:8px;
}

.blockTitle span{
    font-size:15px;
    font-weight:normal;
}

.blockTitle .frontblank{
    display:inline-block;
    padding-left:22px;
}

.inputFrame{
    display:flex;
    justify-content:center;
    align-items:center;
    background:#5d76ff;
    padding:8px;
    border-radius:18px;
}

textarea{
    width:100%;
    border:none;
    outline:none;
    resize:none;
    border-radius:14px;
    background:white;
    padding:12px;
    font-size:18px;
    line-height:1.8;
}

#nodeData{
    height:75px;
}

#elementData{
    height:75px;
}

#materialData{
    height:75px;
}

/*================================
BUTTON
================================*/
.buttonArea{
    display:flex;
    gap:14px;
    margin-top:30px;
}

.buttonArea button{
    flex:1;
    height:60px;
    border:none;
    border-radius:16px;
    background:#5d76ff;
    color:white;
    font-size:20px;
    font-weight:bold;
    cursor:pointer;
    transition:.2s;
    padding:10px;
}

.buttonArea button:hover{
    transform:translateY(-2px);
    box-shadow: 0 4px 12px 
      rgba(0,0,0,.12);
}

/*================================
OUTPUT
================================*/
.viewer{
    background:white;
    border-radius:24px;
    padding:24px;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.viewerRow{
    display:flex;
    justify-content:space-between;
    gap:30px;
    margin-bottom:30px;
}

.viewerRow:last-child{
    margin-bottom:0;
}

.viewItem{
    width:48%;
}

.viewItem h3{
    text-align:center;
    color:#1822a6;
    font-size:15px;
    margin-bottom:12px;
    text-decoration:underline;
}

/*================================
DRAW AREA
================================*/
.canvas{
    width:100%;
    aspect-ratio:1;
    border:2px solid #d6d6d6;
    border-radius:10px;
    background:white;
    overflow:hidden;
}

.legend{
    width:100%;
    aspect-ratio:1;
    border:2px solid #d6d6d6;
    border-radius:10px;
    background:white;
    padding:10px;
    overflow:auto;
}

/*================================
STEP
================================*/
.stepArea{
    display:flex;
    margin-top:24px;
}

.stepArea button{
    width:70px;
    height:55px;
    border:none;
    background:#5d76ff;
    color:white;
    font-size:20px;
    cursor:pointer;
}

.stepArea button:first-child{
    border-radius:16px 0 0 16px;
}

.stepArea button:last-child{
    border-radius:0 16px 16px 0;
}

#stepText{
    flex:1;
    height:55px;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#5d76ff;
    color:white;
    font-size:20px;
    font-weight:bold;
}

/*================================
LEGEND
================================*/
.legendItem{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:2px;
}

.legendColor{
    width:15px;
    height:15px;
    border-radius:4px;
    border:1px solid #999;
    flex-shrink:0;
}

.legendText{
    font-size:15px;
    color:#1822a6;
}